/* ================================================= */
/* ===== VIRALPICS — PRICING SECTION =============== */
/* ================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

.pricing-section {
  position: relative;
  z-index: 15;
  padding: 100px 20px 120px;
  /*
   * Transparent, comme .living-hero / .brand-showcase / .video-scroll-gallery :
   * le vrai fond (radial-gradients + #0b0e1f) est peint une seule fois sur le
   * body en background-attachment: fixed. Mettre une couleur ici recréerait
   * une démarcation avec les sections précédentes.
   */
  background: transparent;
  overflow: hidden;

  opacity: 0;
  transform: translate3d(0, 60px, 0);
  transition:
    opacity 0.9s cubic-bezier(0.16, 0.84, 0.44, 1),
    transform 0.9s cubic-bezier(0.16, 0.84, 0.44, 1);
  will-change: opacity, transform;
}

.pricing-section.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .pricing-section {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/*
 * Aucun ::before de fond ici : la couleur de fond est entièrement gérée par
 * le body dans style.css (radial-gradients + #0b0e1f en
 * background-attachment: fixed). Dupliquer un fond ici recréerait une
 * source de vérité concurrente avec le body.
 */

/* ============================== */
/* ===== TITRE ==================== */
/* ============================== */
.pricing-heading {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.pricing-heading h2 {
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--ink, #fff);
  margin: 0 0 10px;
  transition: opacity 0.25s ease;
}

.pricing-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--muted, rgba(255, 255, 255, 0.65));
  margin: 0;
  transition: opacity 0.25s ease;
}

.pricing-subtitle[hidden] {
  display: none;
}

/* ============================== */
/* ===== ONGLETS ================== */
/* ============================== */
.pricing-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 56px;
  padding: 6px;
  border: 1px solid rgba(224, 239, 255, 0.28);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: var(--liquid-glass-shadow-compact);
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  gap: 4px;
}

.pricing-tab-highlight {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(50% - 6px);
  height: calc(100% - 12px);
  background: var(--ink, #fff);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s cubic-bezier(0.16, 0.84, 0.44, 1);
  z-index: 0;
}

.pricing-tabs[data-active="credits"] .pricing-tab-highlight {
  transform: translateX(100%);
}

.pricing-tab {
  position: relative;
  z-index: 1;
  padding: 10px 24px;
  background: transparent;
  border: none;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted, rgba(255, 255, 255, 0.7));
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.pricing-tab.is-active {
  color: var(--bg, #0a0e2a);
}

/* ============================== */
/* ===== PANNEAUX ================== */
/* ============================== */
.pricing-panels {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
}

.pricing-panel {
  display: none;
  opacity: 0;
  animation: pricingPanelIn 0.4s ease forwards;
}

.pricing-panel.is-active {
  display: block;
}

@keyframes pricingPanelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-panel {
    animation: none;
    opacity: 1;
  }
}

/* ============================== */
/* ===== GRILLE DE CARTES ========= */
/* ============================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

/* ============================== */
/* ===== CARTE ===================== */
/* ============================== */
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(224, 239, 255, 0.22);
  border-radius: 22px;
  padding: 32px 26px 28px;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink, #fff);
  text-align: center;
  box-shadow: var(--liquid-glass-shadow-compact);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);

  /* ===== SEUL le survol grossit la carte (pas les onglets) ===== */
  transition: transform 0.32s cubic-bezier(0.16, 0.84, 0.44, 1),
              box-shadow 0.32s ease,
              border-color 0.32s ease;
}

.pricing-card:hover {
  transform: translateY(-4px) scale(1.035);
  box-shadow:
    var(--liquid-glass-shadow-compact),
    0 20px 45px rgba(226, 49, 213, 0.18);
  border-color: rgba(226, 49, 213, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .pricing-card {
    transition: none;
  }
  .pricing-card:hover {
    transform: none;
  }
}

.pricing-card--featured {
  border-color: rgba(226, 49, 213, 0.65);
  background: rgba(226, 49, 213, 0.06);
  box-shadow:
    var(--liquid-glass-shadow),
    0 0 0 1px rgba(226, 49, 213, 0.25),
    0 20px 50px rgba(226, 49, 213, 0.15);
  transform: scale(1.045);
}

.pricing-card--featured:hover {
  transform: translateY(-4px) scale(1.075);
  box-shadow:
    var(--liquid-glass-shadow),
    0 0 0 1px rgba(226, 49, 213, 0.3),
    0 24px 56px rgba(226, 49, 213, 0.24);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: linear-gradient(135deg, #de31d5, #5267ff);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(226, 49, 213, 0.4);
}

.pricing-badge i {
  font-size: 0.7rem;
}

.pricing-card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 6px 0 8px;
}

.pricing-tagline {
  font-size: 0.85rem;
  color: var(--muted, rgba(255, 255, 255, 0.6));
  min-height: 40px;
  margin-bottom: 14px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 14px;
}

.pricing-amount {
  font-family: 'Manrope', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--ink, #fff);
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--muted, rgba(255, 255, 255, 0.55));
}

.pricing-credits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink, #fff);
  margin-bottom: 2px;
}

.pricing-credits i {
  color: var(--blue, #25b9ff);
}

.pricing-credits-sub {
  font-size: 0.8rem;
  color: var(--muted, rgba(255, 255, 255, 0.55));
  margin-bottom: 20px;
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(248, 249, 255, 0.85);
}

.pricing-features li.is-yes i {
  color: #4ade80;
}

.pricing-features li.is-no {
  color: var(--muted, rgba(255, 255, 255, 0.4));
}

.pricing-features li.is-no i {
  color: #f87171;
}

.pricing-features i {
  font-size: 0.8rem;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

/* ===== BOUTON (façon .signup-link / .hero-cta) ===== */
.pricing-cta {
  display: inline-block;
  padding: 13px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  color: var(--ink, #fff);
  border: 1px solid rgba(229, 241, 255, 0.4);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: var(--liquid-glass-shadow-compact);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
}

.pricing-cta:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  border-color: rgba(229, 241, 255, 0.6);
  transform: translateY(-2px);
}

.pricing-cta--featured {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent 42%),
    linear-gradient(135deg, #de31d5, #5267ff);
  border: 1px solid rgba(238, 248, 255, 0.5);
  box-shadow:
    var(--liquid-glass-shadow),
    0 10px 26px rgba(226, 49, 213, 0.35);
}

.pricing-cta--featured:hover {
  box-shadow:
    var(--liquid-glass-shadow),
    0 14px 34px rgba(226, 49, 213, 0.5);
  filter: brightness(1.08);
  transform: translateY(-2px);
}

/* ============================== */
/* ===== RESPONSIVE ================ */
/* ============================== */
@media (max-width: 980px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .pricing-card--featured {
    transform: none;
    order: -1;
  }

  .pricing-card--featured:hover {
    transform: translateY(-4px) scale(1.02);
  }
}

@media (max-width: 768px) {
  .pricing-section {
    padding: 64px 16px 80px;
  }

  .pricing-heading h2 {
    font-size: 1.5rem;
  }

  .pricing-tabs {
    margin-bottom: 40px;
  }

  .pricing-tab {
    padding: 9px 18px;
    font-size: 0.85rem;
  }

  .pricing-card {
    padding: 26px 20px 22px;
  }

  .pricing-amount {
    font-size: 2rem;
  }
}