/* ============================================================
   PRICING PAGE — Styles spécifiques
   ============================================================ */

/* --- Lien actif dans la nav --- */
.nav-link-active {
  color: var(--purple) !important;
  background: rgba(117, 81, 232, 0.08) !important;
  border-radius: 6px;
}

/* ============================================================
   HERO TARIFS
   ============================================================ */
.pricing-hero {
  position: relative;
  background: var(--purple-dark);
  padding: 140px 0 80px;
  overflow: hidden;
  text-align: center;
  color: var(--white);
}

.pricing-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pricing-hero-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(117, 81, 232, 0.45) 0%, transparent 70%);
  filter: blur(60px);
}

.pricing-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.pricing-hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
}

.pricing-hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin: 16px 0 20px;
  line-height: 1.15;
}

.pricing-hero-content > p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
}

.pricing-billing-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 8px 18px;
  margin-top: 4px;
}

.pricing-billing-note svg {
  flex-shrink: 0;
  color: var(--gold);
}

/* ============================================================
   SECTION CARDS
   ============================================================ */
.pricing-cards-section {
  background: var(--gray-50);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

/* ============================================================
   PRICING CARD
   ============================================================ */
.pricing-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(40, 32, 69, 0.1);
}

/* Carte mise en avant */
.pricing-card-featured {
  border-color: var(--purple);
  box-shadow: 0 8px 40px rgba(117, 81, 232, 0.18);
  transform: translateY(-10px);
  background: linear-gradient(180deg, #faf8ff 0%, var(--white) 100%);
}

.pricing-card-featured:hover {
  transform: translateY(-14px);
  box-shadow: 0 20px 60px rgba(117, 81, 232, 0.25);
}

/* Badge "Le plus populaire" */
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(117, 81, 232, 0.38);
}

/* --- Header de la carte --- */
.pricing-card-header {
  padding: 36px 28px 20px;
  border-bottom: 1px solid var(--gray-200);
}

.pricing-card-featured .pricing-card-header {
  border-bottom-color: rgba(117, 81, 232, 0.12);
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.pricing-card-featured .plan-name {
  color: var(--purple);
}

.plan-desc {
  font-size: 0.875rem;
  color: #6B7280;
  line-height: 1.55;
  margin-bottom: 20px;
  min-height: 44px;
}

/* Prix */
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-amount {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}

.pricing-card-featured .price-amount {
  color: var(--purple);
}

.price-period {
  font-size: 0.875rem;
  color: #6B7280;
  font-weight: 500;
}

.plan-price-custom {
  display: flex;
  align-items: center;
}

.price-amount-custom {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}

/* --- Corps de la carte --- */
.pricing-card-body {
  padding: 24px 28px;
  flex: 1;
}

/* Encart projets */
.plan-projects {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
}

.plan-projects-unlimited {
  background: rgba(117, 81, 232, 0.05);
  border-color: rgba(117, 81, 232, 0.15);
}

.pricing-card-featured .plan-projects {
  background: rgba(117, 81, 232, 0.08);
  border-color: rgba(117, 81, 232, 0.22);
}

.plan-projects-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--purple);
  line-height: 1;
  display: flex;
  align-items: center;
}

.plan-projects-num svg {
  color: var(--purple);
}

.plan-projects-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.35;
}

/* Liste de features */
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.4;
}

.plan-features li svg {
  flex-shrink: 0;
}

.feature-yes svg  { color: #16A34A; }
.feature-partial svg { color: #D97706; }
.feature-no svg  { color: #D1D5DB; }
.feature-no span { color: #9CA3AF; }

/* --- Footer de la carte --- */
.pricing-card-footer {
  padding: 20px 28px 28px;
  border-top: 1px solid var(--gray-200);
}

.pricing-card-featured .pricing-card-footer {
  border-top-color: rgba(117, 81, 232, 0.12);
}

.btn-block {
  display: flex;
  justify-content: center;
  width: 100%;
  text-align: center;
}

/* Bouton outline sombre (cartes non-featured) */
.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  background: transparent;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-900);
}

.btn-outline-dark:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: rgba(117, 81, 232, 0.04);
}

.plan-cta-note {
  text-align: center;
  font-size: 0.78rem;
  color: #9CA3AF;
  margin-top: 10px;
  margin-bottom: 0;
}

/* ============================================================
   TABLEAU COMPARATIF
   ============================================================ */
.compare-section {
  background: var(--white);
}

.compare-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1.5px solid var(--gray-200);
  box-shadow: 0 2px 16px rgba(40, 32, 69, 0.06);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table thead tr {
  background: var(--gray-50);
}

.compare-table th {
  padding: 18px 20px;
  text-align: center;
  font-weight: 700;
  color: var(--gray-900);
  font-size: 0.95rem;
  border-bottom: 2px solid var(--gray-200);
}

.compare-table th:first-child {
  text-align: left;
  width: 36%;
}

.compare-table th small {
  display: block;
  font-weight: 400;
  color: #6B7280;
  font-size: 0.8rem;
  margin-top: 3px;
}

.col-featured {
  background: rgba(117, 81, 232, 0.04);
  border-left: 2px solid rgba(117, 81, 232, 0.18);
  border-right: 2px solid rgba(117, 81, 232, 0.18);
}

.compare-table th.col-featured {
  color: var(--purple);
}

.compare-table td {
  padding: 14px 20px;
  text-align: center;
  color: #374151;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}

.compare-table td:first-child {
  text-align: left;
  color: var(--gray-900);
  font-weight: 500;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:not(.compare-category):hover {
  background: rgba(117, 81, 232, 0.02);
}

/* Ligne catégorie */
.compare-category td {
  background: var(--gray-50);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple);
  padding: 10px 20px;
}

.compare-category td.col-featured {
  background: rgba(117, 81, 232, 0.07);
}

/* Valeurs */
.compare-unlimited {
  font-weight: 600;
  color: #16A34A;
}

.compare-limit {
  font-weight: 600;
  color: var(--purple);
}

.check {
  display: inline-block;
  color: #16A34A;
}

.cross {
  display: inline-block;
  color: #D1D5DB;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .pricing-card-featured {
    transform: none;
    order: -1;
  }

  .pricing-card-featured:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 640px) {
  .pricing-hero {
    padding: 120px 0 60px;
  }

  .pricing-cards-section {
    padding: 56px 0 72px;
  }

  .pricing-card-header {
    padding: 28px 20px 16px;
  }

  .pricing-card-body {
    padding: 20px;
  }

  .pricing-card-footer {
    padding: 16px 20px 20px;
  }

  .plan-desc {
    min-height: unset;
  }
}
