/* =======================================
   PRICE SECTION
   ======================================= */

/* Base Layout - Design Moderne */
/* === Price Page === */
#price {
  padding: var(--spacing-xl) var(--spacing-lg);
  background: var(--gradient-light);
  min-height: 100vh;
  font-family: var(--main-font);
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Price Container */
.price-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Price Title */
.price-title {
  text-align: center;
  margin: 0 0 30px 0;
  padding: 0;
  font-size: 28px;
  font-weight: 700;
  font-family: var(--main-font);
  color: var(--primary-color);
}

/* Plans Container */
.price-plans-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: var(--spacing-lg);
}

/* Price Cards */
.price-card {
  background: white;
  border: 1px solid rgba(39, 76, 119, 0.12);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(39, 76, 119, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.price-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(39, 76, 119, 0.15);
  border-color: rgba(39, 76, 119, 0.2);
}

.price-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

/* Price Card Header */
.price-card-header {
  background: var(--gradient-primary);
  color: white;
  padding: 1rem 0.75rem;
  text-align: center;
  position: relative;
}

.price-card-header::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.price-card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px 0;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}

.price-card-description {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

/* Price Card Content */
.price-card-content {
  padding: 1rem 0.75rem;
  flex-grow: 1;
  text-align: center;
}

/* Price Amount */
.price-amount {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary-color);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  letter-spacing: -0.02em;
}

.price-period {
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
  display: block;
}

/* Features List */
.price-features-list {
  list-style-type: none;
  padding: 0;
  margin: 0.75rem 0;
  text-align: left;
}

.price-feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  color: #1a3a52;
  font-size: 14px;
  font-weight: 500;
  padding: 0;
  line-height: 1.4;
}

.price-check-icon {
  margin-right: 0;
  color: var(--secondary-color);
  font-weight: 700;
  min-width: 32px;
  font-size: 32px;
}

/* Card Footer */
.price-card-footer {
  padding: 0.75rem;
  text-align: center;
  background: white;
}

/* Price Button */
.price-button {
  display: inline-block;
  width: 100%;
  padding: 12px 20px;
  background: var(--gradient-primary);
  color: white;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(39, 76, 119, 0.2);
  position: relative;
  overflow: hidden;
  font-family: var(--main-font);
  letter-spacing: 0.3px;
}

.price-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.price-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(39, 76, 119, 0.3);
}

.price-button:hover::before {
  opacity: 1;
}

.price-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(39, 76, 119, 0.3);
}

.price-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.price-button:hover::before {
  left: 100%;
}

/* Card spéciale pour le plan recommandé */
.price-card.featured {
  border: 2px solid #6096ba;
  transform: scale(1.02);
}

.price-card.featured::before {
  height: 6px;
  background: linear-gradient(90deg, #274c77, #6096ba, #274c77);
}

.price-card.featured .price-card-header {
  background: var(--gradient-secondary);
}

/* Badge "Recommandé" */
.price-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(255, 107, 107, 0.3);
  transform: rotate(-3deg);
}

/* Footnote */
.price-footnote {
  text-align: center;
  margin-top: 3rem;
  color: var(--secondary-color);
  background: rgba(255, 255, 255, 0.8);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(163, 206, 241, 0.3);
  box-shadow: 0 4px 8px rgba(39, 76, 119, 0.1);
}

/* Responsive Design - Desktop 1245px */
@media (min-width: 1245px) {
  #price {
    padding: 2rem 3rem;
  }

  .price-plans-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .price-card.featured {
    transform: scale(1.05);
  }

  .price-header h1 {
    font-size: 2.5rem;
  }
}

/* Desktop 1024px - See consolidated media query above */

/* Tablette - 2 colonnes */
@media (max-width: 700px) {
  #price {
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem;
  }

  .price-plans-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .price-header {
    padding: 1.5rem;
  }

  .price-header h1 {
    font-size: 1.8rem;
  }

  .price-header::before {
    font-size: 1.5rem;
  }

  .price-card.featured {
    transform: scale(1);
  }
}

/* Mobile 550px - 1 colonne */
@media (max-width: 550px) {
  #price {
    padding: 1rem;
  }

  .price-header {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }

  .price-header h1 {
    font-size: 1.6rem;
  }

  .price-header p {
    font-size: 1rem;
  }

  .price-plans-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .price-card-content {
    padding: 1rem 0.75rem;
  }

  .price-amount {
    font-size: 32px;
  }

  .price-button {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* Mobile 480px */
@media (max-width: 480px) {
  #price {
    padding: 0.8rem;
  }

  .price-header {
    padding: 1.2rem 0.8rem;
    margin-bottom: 1rem;
    border-radius: 0.8rem;
  }

  .price-header::before {
    font-size: 1.3rem;
    left: 1rem;
  }

  .price-header h1 {
    font-size: 1.4rem;
  }

  .price-header p {
    font-size: 0.9rem;
  }

  .price-plans-container {
    gap: 1rem;
  }

  .price-card {
    border-radius: 0.8rem;
  }

  .price-card::before {
    height: 3px;
  }

  .price-card-header {
    padding: 1.5rem 1rem 1rem;
  }

  .price-card-title {
    font-size: 1.3rem;
  }

  .price-card-description {
    font-size: 0.85rem;
  }

  .price-card-content {
    padding: 1.2rem 1rem;
  }

  .price-amount {
    font-size: 2.2rem;
  }

  .price-period {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .price-feature-item {
    font-size: 1rem;
    padding: 0;
    margin-bottom: 0;
  }

  .price-check-icon {
    margin-right: 0;
  }

  .price-card-footer {
    padding: 1rem;
  }

  .price-button {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 0.6rem;
  }

  .price-footnote {
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 0.8rem;
  }

  .price-badge {
    top: -8px;
    right: 15px;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    border-radius: 1.5rem;
  }

  /* Désactiver hover effects sur mobile */
  .price-card:hover {
    transform: none;
    box-shadow: 0 8px 16px rgba(39, 76, 119, 0.1);
  }

  .price-button:hover {
    transform: none;
    box-shadow: 0 4px 8px rgba(39, 76, 119, 0.3);
  }
}


/* Consolidated responsive - Price */
@media (min-width: 1024px) and (max-width: 1244px) {
  /* === PRICE === */
  #price {
    padding: 2rem;
  }

  .price-plans-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .price-card.featured {
    transform: scale(1.03);
  }
}
