/* Page Abonnement — alignée sur SubscriptionPlan (app) */

.abo-page {
  --abo-primary: #1c486f;
  --abo-primary-mid: #2a5a85;
  --abo-accent: #ef8121;
  --abo-accent-light: #ff9a4d;
  --abo-ease: cubic-bezier(0.22, 1, 0.36, 1);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1000px 680px at 100% 0%, rgba(28, 72, 111, 0.06), transparent 52%),
    radial-gradient(720px 520px at 0% 100%, rgba(239, 129, 33, 0.055), transparent 48%),
    #f8fafc;
}

.abo-display {
  font-family: "Outfit", "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: -0.025em;
}

/* Hero */
.abo-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 85% 65% at 10% 100%, rgba(251, 191, 36, 0.14), transparent 52%),
    radial-gradient(ellipse 55% 50% at 95% -5%, rgba(56, 189, 248, 0.1), transparent 48%),
    linear-gradient(150deg, #020617 0%, #0f2844 34%, #1c486f 58%, #0c1929 100%);
}

.abo-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(76px);
  pointer-events: none;
  opacity: 0.52;
}

.abo-hero-orb--a {
  width: min(360px, 48vw);
  height: min(360px, 48vw);
  background: rgba(239, 129, 33, 0.35);
  top: -18%;
  right: -6%;
  animation: aboOrb 21s ease-in-out infinite;
}

.abo-hero-orb--b {
  width: min(300px, 42vw);
  height: min(300px, 42vw);
  background: rgba(28, 72, 111, 0.65);
  bottom: -8%;
  left: -12%;
  animation: aboOrb 17s ease-in-out infinite reverse;
}

@keyframes aboOrb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(10px, -14px) scale(1.04);
  }
}

.abo-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.038;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 78% 68% at 50% 38%, black, transparent);
  pointer-events: none;
}

.abo-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: 3rem 1rem 3.25rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .abo-hero-inner {
    grid-template-columns: 1fr min(340px, 34%);
    padding: 4rem 1.5rem 4.5rem;
    gap: 2.75rem;
  }
}

.abo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 1rem 0.38rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 247, 237, 0.95);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  margin-bottom: 0.9rem;
}

.abo-kicker-ic {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fde68a, var(--abo-accent));
  color: #0f172a;
}

.abo-hero-title {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.abo-hero-title [data-ecom-text-rotator] {
  display: block;
  margin-top: 0.3rem;
}

.abo-hero-rotator-line {
  display: flex;
  align-items: center;
  background: linear-gradient(98deg, #ff9a4d, #fff1d6 38%, #ef8121 72%, #ffb366);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: aboTitleFlow 9s ease-in-out infinite;
}

@keyframes aboTitleFlow {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

.abo-hero-lead {
  margin-top: 1.15rem;
  max-width: 36rem;
  font-size: 1.04rem;
  line-height: 1.68;
  color: rgba(226, 232, 240, 0.9);
}

.abo-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.abo-pill {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
}

.abo-hero-cta {
  margin-top: 1.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.abo-btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.95rem 1.4rem;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.9rem;
  color: #0f172a;
  background: linear-gradient(135deg, #ff9a4d, #ef8121);
  box-shadow: 0 14px 40px rgba(239, 129, 33, 0.38);
  transition: transform 0.3s var(--abo-ease), filter 0.25s ease;
}

.abo-btn-gold:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
}

.abo-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.95rem 1.25rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  transition: background 0.25s ease, transform 0.25s var(--abo-ease);
}

.abo-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-2px);
}

.abo-lottie-ring {
  position: relative;
  border-radius: 1.8rem;
  padding: 3px;
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.55),
    rgba(239, 129, 33, 0.45),
    rgba(28, 72, 111, 0.5),
    rgba(56, 189, 248, 0.25)
  );
  box-shadow: 0 28px 60px -22px rgba(0, 0, 0, 0.5);
}

.abo-lottie-inner {
  border-radius: 1.65rem;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(10px);
  aspect-ratio: 1;
  max-height: 320px;
  overflow: hidden;
}

.abo-lottie-inner > div {
  width: 100%;
  height: 100%;
  min-height: 220px;
}

/* Bloc période facturation */
.abo-billing-hint {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
  margin-top: -1.25rem;
  position: relative;
  z-index: 5;
}

.abo-billing-hint-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 16px 48px -24px rgba(28, 72, 111, 0.2);
}

.abo-toggle-fake {
  display: inline-flex;
  padding: 4px;
  border-radius: 9999px;
  background: #e2e8f0;
  gap: 2px;
}

.abo-toggle-fake span {
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.abo-toggle-fake span:first-child {
  background: #fff;
  color: var(--abo-primary);
  box-shadow: 0 2px 8px rgba(28, 72, 111, 0.12);
}

.abo-billing-note {
  font-size: 0.8rem;
  color: #64748b;
  text-align: center;
  max-width: 28rem;
  line-height: 1.5;
}

/* Grille tarifs */
.abo-plans {
  max-width: 1440px;
  margin: 0 auto;
  padding: 3rem 1rem 2rem;
}

@media (min-width: 768px) {
  .abo-plans {
    padding: 3.5rem 1.5rem 2.5rem;
  }
}

.abo-plans-intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.abo-plans-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--abo-accent), var(--abo-accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.abo-plans-h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.65rem;
}

.abo-plans-sub {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
}

.abo-plan-grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .abo-plan-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.abo-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.98);
  box-shadow: 0 12px 40px -18px rgba(28, 72, 111, 0.12);
  transition: transform 0.4s var(--abo-ease), box-shadow 0.4s ease, border-color 0.3s;
  opacity: 0;
  transform: translateY(22px);
}

.abo-plan-card.abo-plan-card--in {
  opacity: 1;
  transform: translateY(0);
}

.abo-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px -20px rgba(28, 72, 111, 0.18);
}

.abo-plan-card--in:hover {
  transform: translateY(-4px);
}

.abo-plan-card--featured {
  border-color: rgba(239, 129, 33, 0.45);
  background: linear-gradient(165deg, #ffffff 0%, #fffbeb 45%, #ffffff 100%);
  box-shadow:
    0 24px 56px -18px rgba(239, 129, 33, 0.25),
    0 0 0 1px rgba(255, 154, 77, 0.15) inset;
}

@media (min-width: 1024px) {
  .abo-plan-card--featured.abo-plan-card--in {
    transform: translateY(-6px) scale(1.02);
    z-index: 2;
  }

  .abo-plan-card--featured.abo-plan-card--in:hover {
    transform: translateY(-10px) scale(1.02);
  }
}

.abo-plan-badge {
  position: absolute;
  top: -0.55rem;
  right: 1.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ff9a4d, #ef8121);
  color: #0f172a;
  box-shadow: 0 6px 20px rgba(239, 129, 33, 0.35);
}

.abo-plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.abo-plan-desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  min-height: 2.75rem;
}

.abo-plan-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--abo-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid #f1f5f9;
}

.abo-plan-price span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 0.35rem;
}

.abo-plan-list {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.abo-plan-list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #334155;
}

.abo-plan-list .material-icons {
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.abo-plan-list .ok {
  color: var(--abo-primary);
}

.abo-plan-list .muted {
  color: #cbd5e1;
}

.abo-plan-cta {
  margin-top: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  font-weight: 800;
  font-size: 0.875rem;
  transition: transform 0.25s var(--abo-ease), box-shadow 0.25s ease;
}

.abo-plan-cta--primary {
  background: linear-gradient(115deg, var(--abo-primary) 0%, var(--abo-primary-mid) 50%, var(--abo-primary) 100%);
  background-size: 200% 100%;
  color: #fff;
  box-shadow: 0 10px 28px -8px rgba(28, 72, 111, 0.45);
}

.abo-plan-cta--primary:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
}

.abo-plan-cta--gold {
  background: linear-gradient(135deg, #ff9a4d, #ef8121);
  color: #0f172a;
  box-shadow: 0 10px 28px -8px rgba(239, 129, 33, 0.4);
}

.abo-plan-cta--gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.abo-plan-cta--outline {
  border: 2px solid #e2e8f0;
  color: #475569;
  background: #fff;
}

.abo-plan-cta--outline:hover {
  border-color: var(--abo-primary);
  color: var(--abo-primary);
  transform: translateY(-2px);
}

/* Section confiance + Lottie secondaire */
.abo-trust {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
}

.abo-trust-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .abo-trust-grid {
    grid-template-columns: 1fr min(280px, 32%);
    gap: 2rem;
  }
}

.abo-trust-card {
  padding: 1.75rem 1.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 48px -28px rgba(28, 72, 111, 0.15);
}

.abo-trust-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.abo-trust-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.65;
}

.abo-mini-lottie {
  border-radius: 1.35rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 36px -20px rgba(28, 72, 111, 0.12);
}

.abo-mini-lottie-host {
  width: 100%;
  aspect-ratio: 1;
  max-height: 220px;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

/* Bloc info facturation */
.abo-info {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

.abo-info-panel {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(226, 232, 240, 0.98);
  box-shadow: 0 8px 32px -12px rgba(28, 72, 111, 0.1);
}

.abo-info-panel .material-icons {
  font-size: 2.75rem;
  color: var(--abo-primary);
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.abo-info-panel h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.65rem;
}

.abo-info-panel p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.65;
}

.abo-stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.abo-store-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid #e2e8f0;
  color: #334155;
  background: #fff;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.abo-store-link:hover {
  border-color: var(--abo-primary);
  color: var(--abo-primary);
}

@media (prefers-reduced-motion: reduce) {
  .abo-hero-orb--a,
  .abo-hero-orb--b {
    animation: none;
  }

  .abo-hero-rotator-line {
    animation: none;
    background-position: center;
  }

  .abo-plan-card {
    opacity: 1;
    transform: none;
    transition: box-shadow 0.3s ease;
  }

  .abo-plan-card:hover,
  .abo-plan-card--featured {
    transform: none;
  }
}
