/* ================================================================================
   PRICING PAGE — PLANS SECTION
================================================================================ */

#pricing-plans {
  position: relative;
  contain: layout;
}

/* ================================================================================
   CARD
================================================================================ */

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: visible;
  background: linear-gradient(170deg, rgba(30, 35, 60, 0.55) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow:
    0 12px 30px -10px rgba(0, 0, 0, 0.55),
    inset 0 1px 1px rgba(255, 255, 255, 0.08);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.plan-card:hover {
  transform: translateY(-6px);
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow:
    0 25px 50px -15px rgba(0, 0, 0, 0.7),
    0 0 30px -5px rgba(139, 92, 246, 0.25);
}

.plan-card--popular {
  border: 1.5px solid rgba(167, 139, 250, 0.6);
  box-shadow:
    0 18px 50px -12px rgba(139, 92, 246, 0.4),
    0 12px 30px -10px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.12);
  transform: translateY(-8px);
}

.plan-card--popular:hover {
  transform: translateY(-14px);
}

/* Popular ribbon */
.plan-popular-ribbon {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translate(-50%, -100%);
  padding: 6px 14px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #8b5cf6, #22d3ee);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4);
  z-index: 2;
}

/* Top gradient accent */
.plan-card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #22d3ee);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.plan-card:hover .plan-card-header::before,
.plan-card--popular .plan-card-header::before {
  opacity: 1;
}

/* ================================================================================
   HEADER OF THE CARD
================================================================================ */

.plan-card-header {
  position: relative;
  padding: 2.25rem 2rem 1.75rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-top-left-radius: 19px;
  border-top-right-radius: 19px;
  overflow: hidden;
}

/* Plan emblem — large SVG badge centred at the top of the header.
   Shared artwork across app + marketing, one visual identity per
   tier. Circular frosted glass container so the emblem sits on a
   distinct surface regardless of the card's background. */
.plan-emblem {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 1.1rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 32px -14px rgba(0, 0, 0, 0.55);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.plan-emblem img {
  width: 56px;
  height: 56px;
  display: block;
}

/* Per-tier accent — a subtle coloured glow on the frame so Standard /
   Premium / Enterprise are distinguishable before reading the name. */
.plan-emblem--standard {
  border-color: rgba(96, 165, 250, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 32px -14px rgba(0, 0, 0, 0.55),
    0 0 28px -8px rgba(96, 165, 250, 0.4);
}
.plan-emblem--premium {
  border-color: rgba(251, 191, 36, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 32px -14px rgba(0, 0, 0, 0.55),
    0 0 28px -8px rgba(251, 191, 36, 0.4);
}
.plan-emblem--enterprise {
  border-color: rgba(244, 114, 182, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 32px -14px rgba(0, 0, 0, 0.55),
    0 0 28px -8px rgba(244, 114, 182, 0.4);
}

.plan-card:hover .plan-emblem {
  transform: translateY(-2px);
}

.plan-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.plan-tagline {
  font-size: 0.95rem;
  color: #cbd5e1;
  min-height: 2.75em;
  margin-bottom: 1.75rem;
  line-height: 1.45;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 0.4rem;
}

.plan-price {
  font-size: 3.5rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.plan-currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: #cbd5e1;
}

.plan-period {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-left: 4px;
}

.plan-billing-note {
  font-size: 0.72rem;
  font-weight: 400;
  color: #64748b;
  text-align: center;
  margin: -0.15rem 0 1.4rem;
}

.plan-price-wrap--custom .plan-price-custom {
  display: inline-block;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  padding-top: 0.5rem;
}

.plan-price-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 1.75rem;
  min-height: 1.25em;
}

/* ================================================================================
   CTA BUTTON
   → variantes `.btn--plan-primary` / `.btn--plan-outline` dans
     marketing/shared/ui/Buttons/button-animations.css
================================================================================ */

/* ================================================================================
   FEATURES LIST
================================================================================ */

.plan-card-body {
  padding: 1.75rem 2rem 2.25rem;
  background: rgba(0, 0, 0, 0.18);
  flex-grow: 1;
  border-bottom-left-radius: 19px;
  border-bottom-right-radius: 19px;
}

.plan-features-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.plan-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #d1d5db;
  line-height: 1.5;
}

.plan-features-list li i {
  margin-top: 0.25rem;
  color: #22d3ee;
  font-size: 0.8rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.4));
}

/* ================================================================================
   FOOTER NOTE
================================================================================ */

.plans-footer-note {
  text-align: center;
  color: #cbd5e1;
  margin-top: 3rem;
  font-size: 0.95rem;
}

.plans-footer-link {
  color: #a5b4fc;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s ease;
  margin-left: 4px;
}

.plans-footer-link:hover {
  color: #c4b5fd;
  text-decoration: underline;
}

/* ================================================================================
   TEMPORAIRE — Flou sur les cartes Pro & Enterprise en attente de leur sortie
   À retirer lorsque les offres seront disponibles
================================================================================ */

.plan-card--blurred {
  filter: blur(3px);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
  transition:
    filter 0.3s ease,
    opacity 0.3s ease,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

/* L'overlay positionne le badge "Bientôt disponible" au-dessus du flou */
.plan-coming-soon-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-radius: inherit;
}

.plan-coming-soon-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.85), rgba(139, 92, 246, 0.85));
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow:
    0 8px 24px -6px rgba(139, 92, 246, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ================================================================================
   RESPONSIVE
================================================================================ */

@media (max-width: 1024px) {
  .plan-card--popular {
    transform: translateY(0);
  }
  .plan-card--popular:hover {
    transform: translateY(-6px);
  }
}

@media (max-width: 768px) {
  #pricing-plans {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .plan-card-header {
    padding: 1.75rem 1.5rem 1.5rem;
  }

  .plan-card-body {
    padding: 1.5rem;
  }

  .plan-price {
    font-size: 2.75rem;
  }

  .plan-popular-ribbon {
    top: -8px;
    left: 50%;
    transform: translate(-50%, -100%);
    padding: 5px 10px;
    font-size: 0.65rem;
  }
}

/* Tooltip tap-to-show sans JS (carte de plan, pas d'overflow clippant) */
.plan-card .comparison-tooltip-wrapper:focus-within .comparison-tooltip-content {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
