/* ═══════════════════════════════════════════════════════════════════════════
   MilestoneMe — Design System "Cosmic Observatory"
   OLED Dark premium + glassmorphism raffiné
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ──────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:  #030711;
  --bg2: #0A0818;

  /* Surfaces — layered glass */
  --surface:  rgba(255,255,255,0.03);
  --surface2: rgba(255,255,255,0.06);
  --surface3: rgba(255,255,255,0.10);

  /* Borders */
  --border:  rgba(255,255,255,0.06);
  --border2: rgba(255,255,255,0.12);
  --border3: rgba(255,255,255,0.22);

  /* Text hierarchy */
  --text:  #F1F5F9;
  --text2: #CBD5E1;
  --muted: rgba(203,213,225,0.65);

  /* Brand accents */
  --indigo:  #6366F1;
  --violet:  #8B5CF6;
  --amber:   #F59E0B;
  --emerald: #10B981;
  --rose:    #F43F5E;
  --cyan:    #06B6D4;

  /* Dim versions for backgrounds */
  --indigo-dim:  rgba(99,102,241,0.12);
  --violet-dim:  rgba(139,92,246,0.12);
  --amber-dim:   rgba(245,158,11,0.12);
  --emerald-dim: rgba(16,185,129,0.10);
  --rose-dim:    rgba(244,63,94,0.10);
  --cyan-dim:    rgba(6,182,212,0.10);

  /* ── Legacy aliases — préservés pour compatibilité render.js ── */
  --gold:        #F59E0B;
  --gold-dim:    rgba(245,158,11,0.12);
  --purple:      #8B5CF6;
  --purple-dim:  rgba(139,92,246,0.12);
  --purple-glow: rgba(139,92,246,0.20);
  --green:       #10B981;
  --green-dim:   rgba(16,185,129,0.10);
  --pink:        #F43F5E;
  --pink-dim:    rgba(244,63,94,0.10);

  /* Radii */
  --radius-sm: 10px;
  --radius-card: 16px;
  --radius-pill: 100px;

  /* Typography scale */
  --font-display: 'Playfair Display', serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --fs-xs: 0.72rem;
  --fs-sm: 0.82rem;
  --fs-base: 0.92rem;
  --fs-md: 1.05rem;
  --fs-lg: 1.2rem;
  --fs-xl: 1.5rem;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semi: 600;
  --fw-bold: 700;
  --ls-tight: 0.01em;
  --ls-normal: 0.03em;
  --ls-wide: 0.06em;
  --ls-caps: 0.10em;
  --lh-tight: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;
}

/* ─── Z-INDEX SCALE ────────────────────────────────────────────────────── *
 *  1   — base content (wrap, hero children, cards)
 * 10   — cosmic background layers (aurora, stars, planets, nebula)
 * 20   — header / nav (site-header sticky)
 * 50   — floating UI (tooltips, dropdowns, PWA banner)
 * 100  — overlays / drawers (cart overlay, cart drawer, side panels)
 * 200  — modals / dialogs (checkout modal)
 * 300  — toasts / notifications (milestone toast, validation toast, confetti)
 * 400  — cookie banner, flash overlays
 * ──────────────────────────────────────────────────────────────────────── */

/* ─── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Prevent horizontal overflow from widening the viewport on mobile */
html {
  overflow-x: hidden;
}

/* ─── FOCUS-VISIBLE — keyboard accessibility ───────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

/* ─── BASE ───────────────────────────────────────────────────────────────── */
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  width: 100%;          /* Prevent body from expanding beyond viewport on mobile */
  max-width: 100vw;     /* Hard cap — belt-and-suspenders for iOS Safari */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── HERO WEBGL CANVAS ──────────────────────────────────────────────────── */
#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  will-change: transform;
  opacity: 1;
  transition: opacity 1s ease;
  pointer-events: none;
}

/* Canvas s'estompe quand les résultats sont visibles */
#results.show ~ * #hero-canvas,
body.results-visible #hero-canvas {
  opacity: 0;
}

/* ─── AURORA CSS LAYER — fallback + ambiance résultats ───────────────────── */
.aurora-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  will-change: transform;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(100deg, transparent 0%, transparent 7%, rgba(99,102,241,0.02) 10%, transparent 12%, transparent 16%),
    repeating-linear-gradient(100deg, rgba(99,102,241,0.04) 10%, rgba(139,92,246,0.03) 15%, rgba(6,182,212,0.02) 20%, rgba(139,92,246,0.02) 25%, rgba(99,102,241,0.03) 30%);
  background-size: 300% 300%, 200% 200%;
  animation: auroraMove 20s linear infinite;
  filter: blur(8px);
}

@keyframes auroraMove {
  from { background-position: 50% 50%, 50% 50%; }
  to   { background-position: 350% 50%, 350% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-layer { animation: none; }
  #hero-canvas  { display: none; }
  /* Hero enhancements — disable all motion-based animations */
  .hero::before,
  .hero::after     { animation: none; }
  .hero-badge      { animation: none; }
  .hero-chips .hero-chip { animation: none; opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   COSMIC BACKGROUND — stars, nebulae, constellations, planets, shooting stars
   Positioned behind all content (z-index: 1), pointer-events: none
   ═══════════════════════════════════════════════════════════════════════════ */

#cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  will-change: transform;
  pointer-events: none;
  overflow: hidden;
}

/* ── Parallax containers — translateY driven by JS scroll listener ─────── */
/* Each layer moves at a different speed for depth illusion               */
.cosmic-stars  { position: absolute; inset: 0; will-change: transform; }
.cosmic-nebulae { position: absolute; inset: 0; will-change: transform; }
.cosmic-constellations { position: absolute; inset: 0; }
.cosmic-planets { position: absolute; inset: 0; }
.cosmic-shooters { position: absolute; inset: 0; }

/* ────────────────────────────────────────────────────────────────────────
   STARS — base + modifier classes
   ──────────────────────────────────────────────────────────────────────── */
.cstar {
  position: absolute;
  border-radius: 50%;
  animation: starTwinkle ease-in-out infinite alternate;
  will-change: opacity, transform;
}

/* ── Glowing star: soft pulsing halo around brighter stars ─────────────── */
.cstar--glow {
  /* box-shadow set inline by JS with star's own color */
  animation: starGlow ease-in-out infinite alternate;
}

/* ── Sparkle star: 4-point cross via box-shadow — renders a cross shape ── */
/* The inline box-shadow is set by JS; CSS class adds the second animation  */
.cstar--sparkle {
  border-radius: 1px; /* slightly square core looks better for cross shape */
  animation: starSparkle ease-in-out infinite alternate;
}

/* ── Drift stars: float slowly while also twinkling ───────────────────── */
.cstar--drift {
  animation: starDrift ease-in-out infinite alternate;
}

/* Twinkle: opacity + imperceptible scale pulse for "breathing" feel */
@keyframes starTwinkle {
  0%   { opacity: var(--star-min, 0.08); transform: scale(0.85); }
  35%  { opacity: 1;                     transform: scale(1.05); }
  65%  { opacity: var(--star-mid, 0.55); transform: scale(0.95); }
  100% { opacity: var(--star-min, 0.10); transform: scale(0.80); }
}

/* Glow star: opacity + box-shadow spread pulse */
@keyframes starGlow {
  0%   { opacity: 0.25; transform: scale(0.9); filter: blur(0px); }
  40%  { opacity: 1;    transform: scale(1.15); filter: blur(0.4px); }
  70%  { opacity: 0.70; transform: scale(1.05); filter: blur(0px); }
  100% { opacity: 0.20; transform: scale(0.85); filter: blur(0.2px); }
}

/* Sparkle star: rotates slightly so the cross "glints" */
@keyframes starSparkle {
  0%   { opacity: 0.10; transform: scale(0.8)  rotate(0deg); }
  30%  { opacity: 1;    transform: scale(1.20) rotate(15deg); }
  60%  { opacity: 0.65; transform: scale(1.05) rotate(5deg); }
  100% { opacity: 0.15; transform: scale(0.75) rotate(-10deg); }
}

/* Drift star: gentle float on top of twinkle (added via translateY) */
@keyframes starDrift {
  0%   { opacity: 0.12; transform: translateY(0px)   scale(0.9); }
  45%  { opacity: 0.90; transform: translateY(-4px)  scale(1.05); }
  100% { opacity: 0.15; transform: translateY(2px)   scale(0.88); }
}

/* Light mode: stars are very faint so they don't pollute the white bg */
:root[data-theme="light"] .cstar,
:root[data-theme="light"] .cstar--glow,
:root[data-theme="light"] .cstar--sparkle,
:root[data-theme="light"] .cstar--drift {
  opacity: 0.07;
  mix-blend-mode: multiply;
}

/* ────────────────────────────────────────────────────────────────────────
   NEBULA CLOUDS — large, softly drifting colored blobs
   Very low opacity; use radial-gradient + blur for an astronomical feel
   ──────────────────────────────────────────────────────────────────────── */
.cnebula {
  position: absolute;
  border-radius: 50%;
  /* blur turns a flat circle into a gossamer cloud */
  filter: blur(var(--nebula-blur, 60px));
  animation: nebulaDrift ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes nebulaDrift {
  0%   { transform: translate(0, 0)              scale(1);    opacity: var(--nebula-opacity, 0.18); }
  30%  { transform: translate(var(--ndx), 0)     scale(1.04); opacity: calc(var(--nebula-opacity, 0.18) * 1.25); }
  65%  { transform: translate(var(--ndx), var(--ndy)) scale(0.97); opacity: var(--nebula-opacity, 0.18); }
  100% { transform: translate(0, var(--ndy))     scale(1.03); opacity: calc(var(--nebula-opacity, 0.18) * 0.80); }
}

/* Light mode: nebulae invisible (they'd muddy a light background) */
:root[data-theme="light"] .cnebula {
  display: none;
}

/* ────────────────────────────────────────────────────────────────────────
   CONSTELLATION LINES — REMOVED (replaced by bigger planets)
   ──────────────────────────────────────────────────────────────────────── */
  100% { opacity: 0; }
}

/* Light mode: constellation lines invisible */
:root[data-theme="light"] .cconstellation {
  display: none;
}

/* ────────────────────────────────────────────────────────────────────────
   FLOATING PLANETS — unchanged structure, slightly richer glow
   ──────────────────────────────────────────────────────────────────────── */
.cplanet {
  position: absolute;
  border-radius: 50%;
  animation: planetDrift ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes planetDrift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(var(--dx), calc(var(--dy) * 0.4)); }
  50%  { transform: translate(calc(var(--dx) * 0.6), var(--dy)); }
  75%  { transform: translate(calc(var(--dx) * -0.3), calc(var(--dy) * 0.7)); }
  100% { transform: translate(calc(var(--dx) * -0.1), calc(var(--dy) * -0.2)); }
}

:root[data-theme="light"] .cplanet { opacity: 0.06; }

/* ────────────────────────────────────────────────────────────────────────
   SHOOTING STARS — longer, glowier, more dramatic
   ──────────────────────────────────────────────────────────────────────── */
.cshooter {
  position: absolute;
  /* Head dot sits at right edge; tail gradient trails behind */
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent             0%,
    rgba(160,200,255, 0.05) 20%,
    rgba(200,220,255, calc(var(--shoot-opacity, 0.85) * 0.55)) 55%,
    rgba(255,255,255, var(--shoot-opacity, 0.90))               82%,
    rgba(255,255,255, var(--shoot-opacity, 0.95))               90%,
    rgba(255,255,255, 1.00)                                      100%
  );
  animation: shooterFly linear forwards;
  will-change: transform, opacity;
  /* Multi-layer glow: tight hot core + wide blue bloom */
  filter:
    drop-shadow(0 0 2px rgba(255,255,255,0.95))
    drop-shadow(0 0 6px rgba(160,200,255,0.70))
    drop-shadow(0 0 14px rgba(120,160,255,0.35));
}

/* Grand shooter variant — used occasionally by JS */
.cshooter--grand {
  height: 3px;
  filter:
    drop-shadow(0 0 3px rgba(255,255,255,1))
    drop-shadow(0 0 10px rgba(180,210,255,0.85))
    drop-shadow(0 0 28px rgba(100,140,255,0.50))
    drop-shadow(0 0 50px rgba(80,120,255,0.25));
}

@keyframes shooterFly {
  0%   {
    transform: rotate(var(--angle, 35deg)) translateX(calc(-1 * var(--tail-len, 120px)));
    opacity: 0;
  }
  5%   {
    transform: rotate(var(--angle, 35deg)) translateX(0px);
    opacity: 0;
  }
  10%  {
    transform: rotate(var(--angle, 35deg)) translateX(20px);
    opacity: 1;
  }
  85%  {
    transform: rotate(var(--angle, 35deg)) translateX(85vw);
    opacity: var(--shoot-opacity, 0.90);
  }
  100% {
    transform: rotate(var(--angle, 35deg)) translateX(calc(100vw + 300px));
    opacity: 0;
  }
}

/* Light mode: shooting stars barely visible */
:root[data-theme="light"] .cshooter,
:root[data-theme="light"] .cshooter--grand {
  opacity: 0.10;
}

/* Entirely disable all cosmic bg animations when user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  #cosmic-bg { display: none; }
}
/* Hide cosmic stars and hero canvas on mobile for performance and cleaner look */
@media (max-width: 768px) {
  #cosmic-bg { display: none; }
  #hero-canvas { display: none !important; }
}

/* ─── ANIMATED NEBULA BACKGROUND ─────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 10%,  rgba(99,102,241,0.06)  0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 85% 90%,  rgba(139,92,246,0.05)  0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 50% 45%,  rgba(245,158,11,0.02)  0%, transparent 60%);
  pointer-events: none;
  animation: nebulaShift 12s ease-in-out infinite alternate;
}

@keyframes nebulaShift {
  0%   { opacity: 0.8; }
  100% { opacity: 1; }
}

/* ─── LAYOUT ─────────────────────────────────────────────────────────────── */
.wrap {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
  text-align: center;
  padding: 100px 20px 80px;
  position: relative;
  isolation: isolate;
  overflow: hidden;     /* Clips pseudo-elements that extend beyond hero bounds */
  contain: paint;       /* Stronger containment — prevents painted overflow from expanding viewport */
}

/* Diagonal light streaks — complementary to aurora, purely decorative */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
}

.hero::before {
  width: 560px;
  height: 220px;
  top: -60px;
  left: -120px;
  background: linear-gradient(135deg,
    rgba(99,102,241,0.06) 0%,
    rgba(139,92,246,0.04) 50%,
    transparent 100%);
  transform: rotate(-22deg);
  animation: heroStreakDrift 12s ease-in-out infinite alternate;
}

.hero::after {
  width: 480px;
  height: 180px;
  bottom: 0;
  right: -100px;
  background: linear-gradient(135deg,
    transparent 0%,
    rgba(245,158,11,0.03) 40%,
    rgba(99,102,241,0.05) 100%);
  transform: rotate(-18deg);
  animation: heroStreakDrift 16s ease-in-out infinite alternate-reverse;
}

@keyframes heroStreakDrift {
  from { opacity: 0.6; transform: rotate(-22deg) translateX(0); }
  to   { opacity: 1;   transform: rotate(-22deg) translateX(30px); }
}

/* Ensure all direct children sit above streaks */
.hero > * { position: relative; z-index: 1; }

/* Badge pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(99,102,241,0.10);
  border: 1px solid rgba(99,102,241,0.32);
  color: #818CF8;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 36px;
  /* Glow pulse — subtle halo breathing */
  box-shadow:
    0 0 0 0 rgba(99,102,241,0),
    inset 0 1px 0 rgba(255,255,255,0.08);
  animation: badgePulse 3.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow:
      0 0 8px 0 rgba(99,102,241,0.15),
      inset 0 1px 0 rgba(255,255,255,0.08);
  }
  50% {
    box-shadow:
      0 0 20px 4px rgba(99,102,241,0.30),
      0 0 40px 8px rgba(139,92,246,0.12),
      inset 0 1px 0 rgba(255,255,255,0.12);
  }
}

/* Hero headline */
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.9rem, 6.5vw, 5.2rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.025em;
  background: linear-gradient(155deg, #ffffff 0%, rgba(226,232,240,0.85) 60%, rgba(196,210,230,0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 22px;
}

/* Aurora borealis gradient on the italic word */
.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--amber) 0%, var(--violet) 55%, var(--indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.70;
}

/* ─── HERO SOCIAL PROOF ──────────────────────────────────────────────────── */
.hero-social-proof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero-social-proof__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px rgba(16,185,129,0.5);
  animation: socialDot 2s ease-in-out infinite;
}

@keyframes socialDot {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ─── HERO POSTER BANNER ─────────────────────────────────────────────────── */
.hero-poster-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 20px;
  padding: 10px 22px;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.14));
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 50px;
  text-decoration: none;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  transition: all 0.22s;
  animation: chipSlideIn 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.05s both;
}
.hero-poster-banner:hover {
  border-color: rgba(99,102,241,0.50);
  background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(139,92,246,0.20));
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99,102,241,0.20);
}
.hero-poster-banner__icon { font-size: 1.1rem; }
.hero-poster-banner__text { line-height: 1.3; }
.hero-poster-banner__text strong {
  color: var(--indigo);
  font-weight: 700;
  margin-right: 4px;
}
.hero-poster-banner svg {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.18s;
}
.hero-poster-banner:hover svg {
  transform: translateX(3px);
  color: var(--indigo);
}
@media (max-width: 480px) {
  .hero-poster-banner { font-size: 0.75rem; padding: 8px 16px; gap: 8px; }
}

/* ─── COUPLE HERO BANNER — full-width prominent ─────────────────────── */
.couple-hero-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 24px;
  padding: 16px 24px;
  min-height: 70px;
  background: linear-gradient(135deg, rgba(180,40,50,0.18), rgba(220,60,80,0.10), transparent 80%);
  border: 1.5px solid rgba(244,63,94,0.40);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.25s;
  animation: chipSlideIn 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.15s both;
}
.couple-hero-banner:hover {
  border-color: rgba(244,63,94,0.65);
  background: linear-gradient(135deg, rgba(180,40,50,0.25), rgba(220,60,80,0.15), transparent 80%);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(244,63,94,0.20);
}
.couple-hero-banner__heart {
  font-size: 1.5rem;
  flex-shrink: 0;
  animation: coupleHeartPulse 1.2s ease-in-out infinite;
}
@keyframes coupleHeartPulse {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.2); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
}
.couple-hero-banner__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.couple-hero-banner__top {
  font-size: 0.92rem;
  line-height: 1.3;
}
.couple-hero-banner__top strong {
  color: #F43F5E;
  font-weight: 700;
  margin-right: 4px;
}
.couple-hero-banner__sub {
  font-size: 0.82rem;
  color: rgba(255,138,138,0.8);
  font-style: italic;
  font-weight: 400;
}
.couple-hero-banner__arrow {
  flex-shrink: 0;
  color: rgba(244,63,94,0.6);
  transition: transform 0.18s;
}
.couple-hero-banner:hover .couple-hero-banner__arrow {
  transform: translateX(3px);
  color: #F43F5E;
}
@media (max-width: 480px) {
  .couple-hero-banner { font-size: 0.8rem; padding: 12px 16px; gap: 10px; min-height: 60px; }
  .couple-hero-banner__top { font-size: 0.82rem; }
  .couple-hero-banner__sub { font-size: 0.75rem; }
}

/* ─── HERO CHIPS MICRO-TITLE ────────────────────────────────────────── */
.hero-chips-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(210, 205, 230, 0.45);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-variant: small-caps;
}

/* ─── MILESTONE SUGGESTION CHIPS ─────────────────────────────────────────── */
/* Row of 3 clickable example chips displayed between subtitle and form card  */
.hero-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-chips-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  /* Hidden on very small screens to save space */
  flex-basis: 100%;
  margin-bottom: 4px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-pill);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.80rem;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(99,102,241,0.2);
  transition:
    background 0.20s ease,
    border-color 0.20s ease,
    color 0.20s ease,
    transform 0.15s ease,
    box-shadow 0.20s ease;
  /* Subtle inner shimmer */
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.hero-chip:hover {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.40);
  color: #a5b4fc;
  transform: translateY(-2px);
  box-shadow:
    0 4px 16px rgba(99,102,241,0.20),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

.hero-chip:active {
  transform: translateY(0);
  transition-duration: 0.06s;
}

/* Color variants per chip — accent visible at rest */
.hero-chip--days {
  --chip-accent: var(--emerald);
  --chip-accent-rgb: 16,185,129;
  border-color: rgba(16,185,129,0.20);
  color: #6ee7b7;
}
.hero-chip--days:hover {
  background: rgba(16,185,129,0.10);
  border-color: rgba(16,185,129,0.38);
  color: #6ee7b7;
  box-shadow:
    0 4px 16px rgba(16,185,129,0.18),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

.hero-chip--seconds {
  --chip-accent: var(--violet);
  --chip-accent-rgb: 139,92,246;
  border-color: rgba(139,92,246,0.20);
  color: #c4b5fd;
}
.hero-chip--seconds:hover {
  background: rgba(139,92,246,0.12);
  border-color: rgba(139,92,246,0.40);
  color: #c4b5fd;
  box-shadow:
    0 4px 16px rgba(139,92,246,0.22),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

.hero-chip--weeks {
  --chip-accent: var(--amber);
  --chip-accent-rgb: 245,158,11;
  border-color: rgba(245,158,11,0.20);
  color: #fcd34d;
}
.hero-chip--weeks:hover {
  background: rgba(245,158,11,0.10);
  border-color: rgba(245,158,11,0.36);
  color: #fcd34d;
  box-shadow:
    0 4px 16px rgba(245,158,11,0.18),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

/* Chip dot indicator */
.hero-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
  opacity: 0.6;
}

/* Chip "ripple" on click — pure CSS via pseudo */
.hero-chip::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: opacity 0.12s;
}
.hero-chip { position: relative; overflow: hidden; }
.hero-chip:active::after { opacity: 1; }

/* Staggered entrance animation */
@keyframes chipSlideIn {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.hero-chips .hero-chip:nth-child(1) { animation: chipSlideIn 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.1s both; }
.hero-chips .hero-chip:nth-child(2) { animation: chipSlideIn 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.2s both; }
.hero-chips .hero-chip:nth-child(3) { animation: chipSlideIn 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.3s both; }

/* ═══════════════════════════════════════════════════════════════════════════
   FORM CARD — glassmorphism premium
   ═══════════════════════════════════════════════════════════════════════════ */
.form-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(48px) saturate(1.4);
  -webkit-backdrop-filter: blur(48px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 28px;
  padding: 40px;
  max-width: 480px;
  margin: 0 auto;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.50),
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 1px 0 rgba(255,255,255,0.10) inset;
  transition:
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  /* Top edge highlight — gives the glass a "lifted" look */
  position: relative;
}

/* Inner top highlight line — mimics real glass catching light */
.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  border-radius: 0 0 50% 50%;
  pointer-events: none;
}

/* Ambient glow that activates when the date input has focus */
.form-card:has(input:focus),
.form-card.focus-glow {
  border-color: rgba(99,102,241,0.35);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.50),
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 1px 0 rgba(255,255,255,0.10) inset,
    0 0 0 3px rgba(99,102,241,0.10),
    0 0 60px 0 rgba(99,102,241,0.18),
    0 0 100px 0 rgba(139,92,246,0.10);
}

/* Form layout */
.form-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-group--date { flex: 1 1 auto; }
.field-group--time { flex: 0 0 auto; min-width: 160px; }
.field-group--place { width: 100%; }

.field-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.field-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.70rem;
  opacity: 0.7;
}

/* ─── INPUTS ─────────────────────────────────────────────────────────────── */
input[type="date"],
.inp-time,
.inp-place,
.inp-select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 15px 18px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  color-scheme: dark;
}

input[type="date"] {
  width: 100%;
}

.inp-time {
  width: 130px;
  padding: 15px 16px;
}

.inp-place {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inp-place::placeholder {
  color: var(--muted);
}

/* Focus states */
input[type="date"]:focus,
.inp-time:focus {
  border-color: var(--indigo);
  box-shadow:
    0 0 0 3px rgba(99,102,241,0.22),
    0 0 20px rgba(99,102,241,0.15);
  background: rgba(99,102,241,0.06);
}

.inp-place:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.15);
}

/* Select */
.inp-select {
  width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(203,213,225,0.5)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
  box-sizing: border-box;
}

.inp-select:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}

.inp-select option {
  background: #0F0F23;
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SEGMENTED DATE/TIME INPUT — inline numeric fields with unified glass look
   ═══════════════════════════════════════════════════════════════════════════ */

.seg-input {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  cursor: text;
  box-sizing: border-box;
}

.seg-input:focus-within {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow:
    0 0 0 3px rgba(99, 102, 241, 0.12),
    0 0 20px rgba(99, 102, 241, 0.10);
}

.seg-input__field {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text, #F1F5F9);
  font-size: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: center;
  width: 2rem;
  min-width: 2rem;
  padding: 4px 2px;
  border-radius: 6px;
  caret-color: transparent;
  transition: background 0.15s;
  box-sizing: content-box;
}

.seg-input__field--year {
  width: 3.2rem;
  min-width: 3.2rem;
}

.seg-input__field::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.seg-input__field:focus {
  background: rgba(99, 102, 241, 0.18);
  color: #fff;
}

.seg-input__sep {
  color: rgba(255, 255, 255, 0.30);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 300;
  user-select: none;
  line-height: 1;
  padding: 0 1px;
  flex-shrink: 0;
}

/* field-group sizing consolidated above (line ~816) */

/* ── Light mode ─────────────────────────────────────────────────────────── */
[data-theme="light"] .seg-input {
  background: rgba(255, 255, 255, 0.80);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .seg-input:focus-within {
  border-color: rgba(79, 70, 229, 0.45);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
[data-theme="light"] .seg-input__field {
  color: #1E293B;
}
[data-theme="light"] .seg-input__field::placeholder {
  color: rgba(0, 0, 0, 0.25);
}
[data-theme="light"] .seg-input__field:focus {
  background: rgba(79, 70, 229, 0.10);
  color: #1E293B;
}
[data-theme="light"] .seg-input__sep {
  color: rgba(0, 0, 0, 0.30);
}

/* ── Mobile breakpoint (≤ 480px) ────────────────────────────────────────── */
@media (max-width: 480px) {
  .seg-input__field { font-size: 16px; }
  .field-group--time { min-width: 140px; }
}

/* ─── PERSONALIZE ACCORDION ─────────────────────────────────────────────── */
.personalize-wrap {
  margin-bottom: 20px;
}

.personalize-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  text-align: left;
  letter-spacing: 0.01em;
}

.personalize-toggle:hover {
  background: var(--surface3);
  border-color: var(--border3);
  color: var(--text);
}

.personalize-toggle[aria-expanded="true"] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

.personalize-chevron {
  font-size: 1rem;
  opacity: 0.5;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.personalize-toggle[aria-expanded="true"] .personalize-chevron {
  transform: rotate(180deg);
}

.personalize-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
}

.personalize-panel.open {
  max-height: 600px;
  opacity: 1;
}

.personalize-inner {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-top: none;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  padding: 20px 18px 18px;
}

/* Genre buttons */
.genre-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.genre-btn {
  padding: 8px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border2);
  border-radius: var(--radius-pill);
  color: var(--text2);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}

.genre-btn:hover {
  background: var(--surface2);
  border-color: var(--border3);
  color: var(--text);
}

.genre-btn.selected {
  background: rgba(139,92,246,0.18);
  border-color: rgba(139,92,246,0.55);
  color: var(--violet);
}

/* ─── CTA BUTTON — Simple solid (mobile-safe, no backdrop-filter) ────────── */
.btn-go-simple {
  width: 100%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 28px;
  border: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 24px rgba(99,102,241,0.40);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: rgba(99,102,241,0.3);
  touch-action: manipulation;
  position: relative;
  z-index: 5;
}
.btn-go-simple:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99,102,241,0.55);
}
.btn-go-simple:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(99,102,241,0.35);
}

/* ─── CTA BUTTON — Liquid Glass (legacy, desktop only) ──────────────────── */
.btn-go {
  /* Base reset — override si besoin */
  width: 100%;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

/* Liquid glass layer */
.liquid-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 17px 28px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  background: rgba(99,102,241,0.15);
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow:
    0 0 8px rgba(0,0,0,0.03),
    0 2px 6px rgba(0,0,0,0.08),
    inset 3px 3px 0.5px -3px rgba(255,255,255,0.09),
    inset -3px -3px 0.5px -3px rgba(255,255,255,0.85),
    inset 1px 1px 1px -0.5px rgba(255,255,255,0.6),
    inset -1px -1px 1px -0.5px rgba(255,255,255,0.6),
    inset 0 0 6px 6px rgba(255,255,255,0.12),
    inset 0 0 2px 2px rgba(255,255,255,0.06),
    0 0 12px rgba(99,102,241,0.3);
}

/* Gradient gloss overlay */
.liquid-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.18) 0%,
    rgba(255,255,255,0.05) 30%,
    transparent 60%,
    rgba(99,102,241,0.2) 100%);
  pointer-events: none;
}

/* Backdrop distortion layer */
.liquid-glass-layer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
}

/* Content above glass layers */
.liquid-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.liquid-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 8px rgba(0,0,0,0.03),
    0 4px 16px rgba(0,0,0,0.12),
    inset 3px 3px 0.5px -3px rgba(255,255,255,0.09),
    inset -3px -3px 0.5px -3px rgba(255,255,255,0.85),
    inset 1px 1px 1px -0.5px rgba(255,255,255,0.6),
    inset -1px -1px 1px -0.5px rgba(255,255,255,0.6),
    inset 0 0 6px 6px rgba(255,255,255,0.12),
    inset 0 0 2px 2px rgba(255,255,255,0.06),
    0 0 24px rgba(99,102,241,0.5);
}

.liquid-btn:active { transform: translateY(0); }

/* ─── PRIVACY NOTE ─────────────────────────────────────────────────────── */
.privacy-note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESULTS
   ═══════════════════════════════════════════════════════════════════════════ */
#results {
  display: none;
  padding: 48px 0 100px;
}

#results.show {
  display: block;
}

/* ─── AGE BOX ────────────────────────────────────────────────────────────── */
.age-box {
  text-align: center;
  padding: 44px 20px;
  margin-bottom: 48px;
}

.age-box .lbl {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 14px;
}

.age-box .val {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  font-style: italic;
  background: linear-gradient(135deg, var(--amber) 0%, var(--violet) 60%, var(--indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── STATS PILLS — bento grid ───────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 56px;
}

.stat-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 16px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: default;
}

.stat-pill:hover {
  transform: translateY(-2px);
  border-color: var(--border2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.stat-pill strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  margin-bottom: 5px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.stat-pill span {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}

/* Per-unit accent colors */
.stat-pill.s-pill { border-color: rgba(244,63,94,0.20); }
.stat-pill.s-pill strong {
  background: linear-gradient(135deg, #F43F5E, #FB7185);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.stat-pill.m-pill { border-color: rgba(6,182,212,0.20); }
.stat-pill.m-pill strong {
  background: linear-gradient(135deg, #06B6D4, #38BDF8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.stat-pill.h-pill { border-color: rgba(245,158,11,0.20); }
.stat-pill.h-pill strong {
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.stat-pill.d-pill { border-color: rgba(16,185,129,0.20); }
.stat-pill.d-pill strong {
  background: linear-gradient(135deg, #10B981, #34D399);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.stat-pill.w-pill { border-color: rgba(139,92,246,0.20); }
.stat-pill.w-pill strong {
  background: linear-gradient(135deg, #8B5CF6, #A78BFA);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ─── SECTION HEADS ──────────────────────────────────────────────────────── */
.section-head {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  font-style: italic;
  color: var(--text);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border2), transparent);
}

/* Compact variant (used inside accordions, astro, calendars) */
.section-head.compact {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  margin: 0 0 16px;
}

/* ─── ICS ALL BUTTON + TIMELINE CTA ─────────────────────────────────────── */
.ics-all-wrap {
  text-align: center;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-ics-all {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 15px 30px;
  color: var(--text2);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.01em;
}

.btn-ics-all:hover {
  background: var(--surface2);
  border-color: var(--border3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  color: var(--text);
}

/* Timeline CTA — sibling of btn-ics-all */
.btn-timeline-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--indigo);
  text-decoration: none;
  padding: 12px 24px;
  background: var(--indigo-dim);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.22s ease;
  letter-spacing: 0.01em;
}
.btn-timeline-cta:hover {
  background: rgba(99,102,241,0.18);
  border-color: var(--indigo);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99,102,241,0.20);
  color: var(--text);
}

/* ─── SHOW MORE BUTTON ───────────────────────────────────────────────────── */
.btn-show-more {
  display: block;
  margin: 24px auto 8px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 14px 32px;
  color: var(--text2);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}
.btn-show-more:hover {
  background: var(--surface3);
  border-color: var(--border3);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ─── UNIT BAND ──────────────────────────────────────────────────────────── */
.card-unit-band {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.unit-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
}

.unit-tag.s { background: rgba(244,63,94,0.12);  color: #FB7185; border: 1px solid rgba(244,63,94,0.20); }
.unit-tag.m { background: rgba(6,182,212,0.12);  color: #38BDF8; border: 1px solid rgba(6,182,212,0.20); }
.unit-tag.h { background: rgba(245,158,11,0.12); color: #FBBF24; border: 1px solid rgba(245,158,11,0.20); }
.unit-tag.d { background: rgba(16,185,129,0.12); color: #34D399; border: 1px solid rgba(16,185,129,0.20); }
.unit-tag.w { background: rgba(139,92,246,0.12); color: #A78BFA; border: 1px solid rgba(139,92,246,0.20); }

/* ═══════════════════════════════════════════════════════════════════════════
   MILESTONE CARDS
   ═══════════════════════════════════════════════════════════════════════════ */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
  .season-card, .weekday-card { transition: none; }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 56px;
}

@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
  animation: cardIn 0.4s ease both;
}

/* Colored left accent bar */
.card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 99px 0 0 99px;
}

.card.future::before { background: var(--indigo); }
.card.past::before   { background: var(--amber); }
.card.next::before   { background: var(--emerald); }

.card.future {
  border-color: rgba(99,102,241,0.18);
  background: linear-gradient(140deg, rgba(99,102,241,0.05), var(--surface));
}

.card.past {
  border-color: rgba(245,158,11,0.18);
  background: linear-gradient(140deg, rgba(245,158,11,0.05), var(--surface));
}

.card.next {
  border-color: rgba(16,185,129,0.35);
  background: linear-gradient(140deg, rgba(16,185,129,0.07), var(--surface));
  box-shadow: 0 0 40px rgba(16,185,129,0.08);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border3);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

/* "Prochain !" badge */
.next-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--emerald), #34D399);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.60rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* Card content */
.card-emoji { font-size: 2rem; margin-bottom: 10px; }

.card-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
  word-break: break-word;
  overflow-wrap: break-word;
}

.card-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.80rem;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.card-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.card-date strong {
  color: var(--text2);
  font-weight: 600;
}

/* Countdown */
.countdown {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--emerald);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  min-height: 1.4em;
}

.countdown.hot {
  color: var(--rose);
  animation: blink 0.9s ease-in-out infinite;
}

@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.60; }
}

/* Past card */
.past-done {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--amber);
}

.past-ago {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
}

/* Progress bar */
.prog-wrap { margin-top: 14px; }

.prog-meta {
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 0.70rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.prog-track {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
}

.prog-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--indigo), var(--violet));
  transition: width 1.2s ease;
}

/* Card action buttons */
.card-btns {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn-sm {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  cursor: pointer;
  transition: all 0.18s;
  letter-spacing: 0.01em;
}

.btn-share {
  background: rgba(139,92,246,0.10);
  color: var(--violet);
  border-color: rgba(139,92,246,0.28);
}

.btn-share:hover {
  background: rgba(139,92,246,0.22);
  border-color: rgba(139,92,246,0.50);
}

.btn-cal {
  background: rgba(16,185,129,0.10);
  color: var(--emerald);
  border-color: rgba(16,185,129,0.28);
}

.btn-cal:hover {
  background: rgba(16,185,129,0.20);
  border-color: rgba(16,185,129,0.50);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ASTRO SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.astro-box {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 36px;
}

.astro-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.22s, border-color 0.22s;
  backdrop-filter: blur(10px);
}

.astro-card:hover {
  transform: translateY(-3px);
  border-color: var(--border2);
}

.astro-card.western {
  border-color: rgba(245,158,11,0.18);
  background: linear-gradient(140deg, rgba(245,158,11,0.04), var(--surface));
}

.astro-card.moon {
  border-color: rgba(139,92,246,0.18);
  background: linear-gradient(140deg, rgba(139,92,246,0.04), var(--surface));
}

.astro-card.chinese {
  border-color: rgba(244,63,94,0.18);
  background: linear-gradient(140deg, rgba(244,63,94,0.04), var(--surface));
}

.astro-emoji {
  font-size: 2.4rem;
  margin-bottom: 10px;
  line-height: 1;
}

.astro-type {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
  margin-bottom: 5px;
}

.astro-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
}

.astro-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Astral profile expand button */
.astro-profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 12px;
  padding: 14px 24px;
  background: linear-gradient(135deg, rgba(139,92,246,0.10), rgba(244,63,94,0.07));
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s;
  text-align: center;
  letter-spacing: 0.01em;
}

.astro-profile-btn::after {
  content: '▾';
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.3s ease;
  opacity: 0.5;
  margin-left: 2px;
}

.astro-profile-btn.open::after {
  transform: rotate(180deg);
}

.astro-profile-btn:hover {
  background: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(244,63,94,0.12));
  border-color: rgba(139,92,246,0.45);
  color: var(--text);
  transform: translateY(-1px);
}

.astro-profile-btn.open {
  border-color: rgba(139,92,246,0.40);
  color: var(--text);
}

.astro-profile-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.35s ease;
  margin-bottom: 0;
}

.astro-profile-panel.open {
  max-height: 1800px;
  opacity: 1;
  margin-bottom: 36px;
}

.astro-profile-inner {
  background: linear-gradient(140deg, rgba(139,92,246,0.07), rgba(244,63,94,0.04), rgba(245,158,11,0.03));
  border: 1px solid rgba(139,92,246,0.18);
  border-radius: var(--radius-card);
  padding: 28px 30px;
}

.astro-profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.astro-profile-sigils {
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  line-height: 1;
}

.astro-profile-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.astro-profile-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.70rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.astro-profile-body {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.78;
  color: var(--text2);
}

.astro-profile-body p { margin-bottom: 10px; }
.astro-profile-body p:last-child { margin-bottom: 0; }

.astro-profile-body em {
  font-style: normal;
  color: var(--violet);
  font-weight: 600;
}

.astro-profile-disclaimer {
  margin-top: 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

.sky-map-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 24px;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.12));
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-sm);
  color: #818cf8;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.sky-map-cta:hover {
  background: linear-gradient(135deg, rgba(99,102,241,0.22), rgba(139,92,246,0.22));
  border-color: rgba(99,102,241,0.4);
  color: #a5b4fc;
}

/* ── NUMÉROLOGIE ─────────────────────────────────────────────────────────── */
.astro-card.numerology {
  background: linear-gradient(135deg, rgba(245,158,11,0.07), var(--surface2));
  border-color: rgba(245,158,11,0.22);
}

.astro-master-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 9px;
  background: linear-gradient(90deg, var(--amber), #FB923C);
  color: #0F172A;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.63rem;
  font-weight: 700;
  border-radius: var(--radius-card);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.numerology-divider {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 24px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.numerology-block { margin-bottom: 20px; }

.numerology-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.numerology-master-label {
  display: inline-block;
  padding: 2px 9px;
  background: linear-gradient(90deg, var(--amber), #FB923C);
  color: #0F172A;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.63rem;
  font-weight: 700;
  border-radius: var(--radius-card);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.numerology-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0 8px;
}

.numerology-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.90rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 10px;
}

.numerology-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.numerology-trait {
  padding: 3px 10px;
  background: rgba(245,158,11,0.10);
  border: 1px solid rgba(245,158,11,0.18);
  border-radius: var(--radius-card);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--text);
}

.numerology-method {
  font-family: 'Inter', sans-serif;
  font-size: 0.70rem;
  color: var(--muted);
  font-style: italic;
  opacity: 0.75;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CALENDARS GRID
   ═══════════════════════════════════════════════════════════════════════════ */
.calendars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin-bottom: 56px;
}

.cal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.22s, border-color 0.22s;
}

.cal-card:hover {
  transform: translateY(-2px);
  border-color: var(--border2);
}

.cal-flag {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.cal-body { flex: 1; min-width: 0; }

.cal-type {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 3px;
}

.cal-date {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.cal-note {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.35;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIFE STATS
   ═══════════════════════════════════════════════════════════════════════════ */
.section-sub {
  font-family: 'Inter', sans-serif;
  color: var(--muted);
  font-size: 0.85rem;
  margin: -8px 0 24px;
  line-height: 1.5;
}

.lifestats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 56px;
}

.lifestats-card {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-card);
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.lifestats-card:hover {
  transform: translateY(-2px);
  border-color: var(--border3);
}

.ls-emoji { font-size: 1.8rem; margin-bottom: 8px; }

.ls-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
  font-variant-numeric: tabular-nums;
  will-change: transform;
}

/* ── Live counter animations ── */

/* LIVE badge — small pulsing dot + micro label */
.ls-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  top: 8px;
  right: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rose, #F43F5E);
  opacity: 0.7;
}

.ls-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose, #F43F5E);
  animation: lsLivePulse 2s ease-in-out infinite;
}

@keyframes lsLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

/* Make lifestats-card position:relative for badge placement */
.lifestats-card { position: relative; }

/* ── Hidden stat card (tap to reveal) ── */
.lifestats-card--hidden {
  cursor: pointer;
  background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(99,102,241,0.05));
  border: 2px dashed rgba(139,92,246,0.35);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.lifestats-card--hidden:hover {
  border-color: rgba(139,92,246,0.6);
  box-shadow: 0 0 20px rgba(139,92,246,0.15);
  transform: translateY(-3px);
}
.lifestats-card--hidden::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(139,92,246,0.04) 8px,
    rgba(139,92,246,0.04) 16px
  );
  pointer-events: none;
}
.lifestats-card--hidden .ls-hidden-hint {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: var(--violet);
  margin-top: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
  animation: hintPulse 2s ease-in-out infinite;
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.lifestats-card--hidden.revealed {
  border-style: solid;
  border-color: rgba(139,92,246,0.4);
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(244,63,94,0.06));
  cursor: default;
  animation: revealBounce 0.5s cubic-bezier(.22,.68,0,1.2);
}
.lifestats-card--hidden.revealed::before { display: none; }
@keyframes revealBounce {
  0%   { transform: scale(0.9); }
  50%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* Generic tick pulse — subtle scale bump + faint glow */
.ls-value.ls-tick {
  animation: lsTickPulse 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes lsTickPulse {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* Heartbeat-specific double-beat pulse */
.ls-value.ls-heartbeat {
  animation: lsHeartbeat 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes lsHeartbeat {
  0%   { transform: scale(1); }
  15%  { transform: scale(1.05); }
  30%  { transform: scale(0.98); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* Highlighted trailing digits — accent glow */
.ls-live-digits {
  color: var(--indigo, #6366F1);
  text-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
  transition: color 0.3s, text-shadow 0.3s;
}

/* Reduced motion — disable all live animations but keep badge visible */
@media (prefers-reduced-motion: reduce) {
  .ls-live-dot { animation: none; opacity: 0.7; }
  .ls-value.ls-tick,
  .ls-value.ls-heartbeat { animation: none; }
  .ls-live-digits { text-shadow: none; }
}

.ls-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

.ls-footnote {
  font-size: 0.72rem;
  color: var(--muted, #888);
  margin-top: 2px;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PLANET AGES
   ═══════════════════════════════════════════════════════════════════════════ */
.planet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 12px;
  margin-bottom: 56px;
}

.planet-card {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-card);
  padding: 20px 12px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.planet-card:hover {
  transform: translateY(-2px);
  border-color: var(--border3);
}

.planet-emoji { font-size: 2rem; margin-bottom: 6px; }

.planet-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
}

.planet-age {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GEO CARD
   ═══════════════════════════════════════════════════════════════════════════ */
.geo-card {
  background: linear-gradient(140deg, rgba(6,182,212,0.06), var(--surface));
  border: 1px solid rgba(6,182,212,0.20);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  margin-bottom: 16px;
}

.geo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.geo-flag { font-size: 2.2rem; line-height: 1; flex-shrink: 0; }

.geo-city-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.geo-country {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

.geo-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.geo-fact-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: center;
}

.geo-fact-emoji { font-size: 1.5rem; margin-bottom: 6px; }

.geo-fact-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  font-variant-numeric: tabular-nums;
}

.geo-fact-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.70rem;
  color: var(--muted);
  line-height: 1.35;
}

.geo-hemisphere-note {
  margin-top: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.80rem;
  color: var(--cyan);
  font-weight: 600;
  text-align: center;
  padding: 9px 14px;
  background: rgba(6,182,212,0.07);
  border-radius: 10px;
  border: 1px solid rgba(6,182,212,0.15);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SEASONS & EVENTS
   ═══════════════════════════════════════════════════════════════════════════ */
.season-events-wrap { margin-bottom: 56px; }

.season-events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

/* Season card */
.season-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, rgba(16,185,129,0.07), rgba(6,182,212,0.04), var(--surface));
  border: 1px solid rgba(16,185,129,0.20);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
  backdrop-filter: blur(10px);
}

.season-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16,185,129,0.35);
  box-shadow: 0 8px 28px rgba(16,185,129,0.07);
}

.season-emoji { font-size: 2.4rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }

.season-body { flex: 1; min-width: 0; }

.season-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--muted);
  margin-bottom: 3px;
}

.season-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  font-style: italic;
  color: var(--emerald);
  margin-bottom: 6px;
}

.season-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.80rem;
  color: var(--text2);
  line-height: 1.55;
}

/* Weekday card */
.weekday-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, rgba(139,92,246,0.07), rgba(244,63,94,0.04), var(--surface));
  border: 1px solid rgba(139,92,246,0.20);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
  backdrop-filter: blur(10px);
}

.weekday-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139,92,246,0.35);
  box-shadow: 0 8px 28px rgba(139,92,246,0.08);
}

.weekday-emoji { font-size: 2.4rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }

.weekday-body { flex: 1; min-width: 0; }

.weekday-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--muted);
  margin-bottom: 3px;
}

.weekday-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  font-style: italic;
  color: var(--violet);
  margin-bottom: 6px;
}

.weekday-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.80rem;
  color: var(--text2);
  line-height: 1.55;
}

/* Events box */
.events-box {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.events-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.events-box-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.events-box-date {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--amber);
  background: rgba(245,158,11,0.10);
  border: 1px solid rgba(245,158,11,0.18);
  border-radius: var(--radius-card);
  padding: 3px 10px;
  font-variant-numeric: tabular-nums;
}

.events-list { padding: 8px 0; }

.event-item {
  display: grid;
  grid-template-columns: 70px 28px 1fr;
  align-items: start;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.18s;
}

.event-item:last-child { border-bottom: none; }
.event-item:hover { background: rgba(255,255,255,0.02); }

.event-year {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
  white-space: nowrap;
}

.event-cat-emoji {
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
}

.event-content { min-width: 0; }

.event-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.3;
}

.event-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.77rem;
  color: var(--muted);
  line-height: 1.5;
}

.events-empty {
  padding: 24px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONFETTI
   ═══════════════════════════════════════════════════════════════════════════ */
.c-piece {
  position: fixed;
  top: -12px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 300;
  animation: cfall linear forwards;
}

@keyframes cfall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(800deg); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MILESTONE CELEBRATION — real-time zero-crossing animations
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Screen flash overlay ─────────────────────────────────────────────── */
#milestone-flash {
  position: fixed;
  inset: 0;
  z-index: 400;
  will-change: transform;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    rgba(251,191,36,0.22) 0%,
    rgba(99,102,241,0.14) 50%,
    transparent 80%
  );
  opacity: 0;
}

#milestone-flash.active {
  animation: milestoneFlash 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes milestoneFlash {
  0%   { opacity: 0; }
  12%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ── Toast notification ───────────────────────────────────────────────── */
#milestone-toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  width: min(92vw, 480px);
}

.milestone-toast {
  pointer-events: auto;
  width: 100%;
  background: rgba(10, 8, 24, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(251,191,36,0.35);
  border-radius: var(--radius-card);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.15),
    0 8px 32px rgba(0,0,0,0.55),
    0 0 60px rgba(251,191,36,0.08),
    inset 0 1px 0 rgba(255,255,255,0.06);

  /* Entrance animation */
  animation: toastSlideIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.milestone-toast.toast-exit {
  animation: toastSlideOut 0.4s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(-28px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastSlideOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-16px) scale(0.94); }
}

/* Gradient top border line */
.milestone-toast::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(251,191,36,0.6) 30%,
    rgba(99,102,241,0.6) 70%,
    transparent
  );
  border-radius: 99px;
}

.toast-icon {
  font-size: 2rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(251,191,36,0.5));
  animation: toastIconPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.12s both;
}

@keyframes toastIconPop {
  from { transform: scale(0) rotate(-20deg); }
  to   { transform: scale(1) rotate(0deg); }
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 3px;
}

.toast-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1.1rem;
  padding: 4px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: color 0.15s;
  line-height: 1;
}

.toast-close:hover { color: var(--text2); }

/* Progress bar that drains as toast auto-dismisses */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--amber), var(--indigo));
  border-radius: 0 0 16px 16px;
  transform-origin: left center;
  animation: toastProgress var(--toast-duration, 6s) linear forwards;
}

@keyframes toastProgress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* ── Card celebration state ───────────────────────────────────────────── */
.card.milestone-achieved {
  /* Override future card styles with a golden celebration palette */
  background: linear-gradient(140deg,
    rgba(251,191,36,0.09) 0%,
    rgba(99,102,241,0.06) 60%,
    var(--surface) 100%
  ) !important;
  border-color: rgba(251,191,36,0.40) !important;
  animation: achievedPulse 0.6s ease forwards, cardCelebration 2.4s ease 0.5s;
}

/* Accent bar turns gold */
.card.milestone-achieved::before {
  background: linear-gradient(180deg, var(--amber), var(--indigo)) !important;
}

@keyframes achievedPulse {
  /* Snap open with scale + glow burst */
  0%   { transform: scale(1);    box-shadow: 0 0 0 rgba(251,191,36,0); }
  30%  { transform: scale(1.03); box-shadow: 0 0 40px rgba(251,191,36,0.30), 0 0 80px rgba(99,102,241,0.15); }
  60%  { transform: scale(1.015); }
  100% { transform: scale(1);    box-shadow: 0 0 20px rgba(251,191,36,0.14), 0 0 40px rgba(99,102,241,0.08); }
}

@keyframes cardCelebration {
  /* Gentle 3-pulse glow that lingers */
  0%, 100% { box-shadow: 0 0 20px rgba(251,191,36,0.14), 0 0 40px rgba(99,102,241,0.08); }
  33%       { box-shadow: 0 0 35px rgba(251,191,36,0.24), 0 0 60px rgba(99,102,241,0.14); }
  66%       { box-shadow: 0 0 28px rgba(251,191,36,0.18), 0 0 50px rgba(99,102,241,0.10); }
}

/* Countdown text when milestone is achieved */
.countdown.achieved,
.top-milestone-countdown.achieved {
  color: var(--amber);
  font-size: 0.90rem;
  font-weight: 700;
  animation: none;
  letter-spacing: 0.01em;
}

/* Achievement badge that replaces "Prochain !" */
.achieved-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--amber) 0%, #FBBF24 100%);
  color: #1a1000;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.60rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  box-shadow: 0 0 12px rgba(251,191,36,0.40);
  animation: badgePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s both;
}

@keyframes badgePop {
  from { opacity: 0; transform: scale(0.5) rotate(-10deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .card.milestone-achieved { animation: none; }
  .milestone-toast { animation: none; }
  .milestone-toast.toast-exit { animation: none; opacity: 0; }
  #milestone-flash.active { animation: none; opacity: 0; }
  .toast-icon { animation: none; }
  .toast-progress { animation: none; }
  .achieved-badge { animation: none; }
}

/* Light mode adjustments — Toast & Flash solaires */
:root[data-theme="light"] .milestone-toast {
  background: rgba(255, 252, 240, 0.96);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-color: rgba(194,105,10,0.38);
  color: #1C1810;
  box-shadow:
    0 0 0 1px rgba(194,105,10,0.12),
    0 8px 32px rgba(180,120,20,0.18),
    0 0 40px rgba(194,105,10,0.08),
    inset 0 1px 0 rgba(255,255,255,0.80);
}

/* Ligne supérieure — dégradé solaire */
:root[data-theme="light"] .milestone-toast::before {
  background: linear-gradient(90deg,
    transparent,
    rgba(194,105,10,0.55) 30%,
    rgba(224,80,32,0.50) 70%,
    transparent
  );
}

:root[data-theme="light"] .toast-title {
  color: #A35608;
}

:root[data-theme="light"] .toast-name {
  color: #1C1810;
}

:root[data-theme="light"] .toast-tagline {
  color: rgba(90,75,50,0.65);
}

:root[data-theme="light"] .toast-close {
  color: rgba(90,75,50,0.55);
}

:root[data-theme="light"] .toast-close:hover {
  color: #1C1810;
}

:root[data-theme="light"] .toast-progress {
  background: linear-gradient(90deg, #C2690A, #E05020);
}

:root[data-theme="light"] #milestone-flash {
  background: radial-gradient(ellipse at center,
    rgba(194,105,10,0.16) 0%,
    rgba(224,80,32,0.08) 50%,
    transparent 80%
  );
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
footer {
  text-align: center;
  padding: 40px 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.80rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

/* ─── SITE FOOTER — structured, trust-building ──────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border2);
  padding: 48px 24px 24px;
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
}

.site-footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  align-items: start;
}

.site-footer-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.site-footer-tagline {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-top: 6px;
}

.site-footer-trust {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.6;
}

.site-footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.site-footer-col h4 {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  margin-bottom: 12px;
}

.site-footer-col a {
  display: block;
  font-size: var(--fs-sm);
  color: var(--muted);
  text-decoration: none;
  padding: 3px 0;
  transition: color 0.18s;
}

.site-footer-col a:hover {
  color: var(--text);
}

.site-footer-bottom {
  max-width: 980px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--muted);
}

@media (max-width: 768px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .site-footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .stats-row { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .astro-box { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 600px) {
  /* Hero */
  .hero { padding: 48px 16px 32px; }
  .hero-title { letter-spacing: -0.01em; }

  /* Chips — compact on mobile */
  .hero-chips { gap: 8px; margin-bottom: 24px; }
  .hero-chip  { font-size: 0.75rem; padding: 6px 13px; }
  .hero-chips-label { font-size: 0.68rem; }

  /* Form */
  .form-card { padding: 28px 22px; border-radius: var(--radius-card); }
  .form-row { flex-direction: column; align-items: stretch; }
  .field-group--date,
  .field-group--time { width: 100%; min-width: unset; }
  .field-label { text-align: left; }
  .inp-time { width: 100%; }

  /* Stats */
  .stats-row { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }

  /* Grids */
  .grid { grid-template-columns: 1fr; }
  .season-events-grid { grid-template-columns: 1fr; }
  .geo-facts-grid { grid-template-columns: 1fr; }
  .lifestats-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }

  /* Events */
  .event-item { grid-template-columns: 54px 22px 1fr; gap: 8px; padding: 11px 14px; }
  .events-box-header { padding: 12px 14px; }

  /* Planet grid */
  .planet-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}

@media (max-width: 480px) {
  .hero { padding: 36px 12px 24px; }
  .hero-badge { margin-bottom: 18px; padding: 5px 14px; font-size: 0.68rem; }
  .hero-sub { font-size: 0.88rem; margin-bottom: 18px; line-height: 1.5; }
  .form-card { padding: 24px 18px; border-radius: 20px; }
  /* CTA — iOS safe: pas de backdrop-filter, gradient solide */
  .liquid-btn {
    padding: 16px 20px;
    font-size: 0.95rem;
    background: linear-gradient(135deg, var(--indigo), var(--violet));
    border-color: rgba(139,92,246,0.40);
    box-shadow: 0 4px 20px rgba(99,102,241,0.35);
    -webkit-tap-highlight-color: rgba(99,102,241,0.3);
  }
  .liquid-btn::before { display: none; }
  .liquid-glass-layer { display: none; }
  .liquid-content { gap: 8px; }

  /* Form card — simplifier backdrop-filter iOS */
  .form-card {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  /* Chips — touch safe */
  .hero-chip {
    -webkit-tap-highlight-color: rgba(99,102,241,0.2);
  }
}

@media (max-width: 380px) {
  .hero { padding: 40px 10px 28px; }
  .hero-title { font-size: clamp(2rem, 8vw, 2.6rem); }
  .form-card { padding: 20px 14px; border-radius: 18px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-pill strong { font-size: 0.95rem; }
}

@media (max-width: 320px) {
  .hero-title { font-size: 2rem; }
  .hero-sub { font-size: 0.88rem; }
  .form-card { padding: 18px 12px; }
  .hero-chips { display: none; }
  .site-logo-text { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOP 3 MILESTONES — Section vedette
   ═══════════════════════════════════════════════════════════════════════════ */
.top-milestones-wrap {
  margin-bottom: 52px;
}

.top-milestones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 700px) {
  .top-milestones-grid { grid-template-columns: 1fr; }
}

@media (min-width: 701px) and (max-width: 900px) {
  .top-milestones-grid { grid-template-columns: 1fr 1fr; }
  .top-milestones-grid .top-milestone-card:last-child { grid-column: 1 / -1; max-width: 70%; margin: 0 auto; width: 100%; }
}

.top-milestone-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--emerald);
  border-radius: var(--radius-card);
  padding: 24px 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  animation: cardIn 0.5s ease both;
  position: relative;
  overflow: hidden;
}

/* Couleurs par rang — nth-child plus robuste que color-mix */
.top-milestone-card:nth-child(1) {
  border-left-color: var(--emerald);
  background: linear-gradient(140deg, var(--emerald-dim), var(--surface));
  border-color: rgba(16,185,129,0.22);
}
.top-milestone-card:nth-child(2) {
  border-left-color: var(--indigo);
  background: linear-gradient(140deg, var(--indigo-dim), var(--surface));
  border-color: rgba(99,102,241,0.22);
}
.top-milestone-card:nth-child(3) {
  border-left-color: var(--violet);
  background: linear-gradient(140deg, var(--violet-dim), var(--surface));
  border-color: rgba(139,92,246,0.22);
}

.top-milestone-card:nth-child(1) .top-milestone-rank,
.top-milestone-card:nth-child(1) .top-milestone-countdown { color: var(--emerald); }

.top-milestone-card:nth-child(2) .top-milestone-rank,
.top-milestone-card:nth-child(2) .top-milestone-countdown { color: var(--indigo); }

.top-milestone-card:nth-child(3) .top-milestone-rank,
.top-milestone-card:nth-child(3) .top-milestone-countdown { color: var(--violet); }

.top-milestone-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.30);
  border-color: var(--border3);
}

/* Subtle glow orb in top-right corner */
.top-milestone-card::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.04), transparent 70%);
  pointer-events: none;
}

.top-milestone-rank {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  opacity: 0.9;
}

.top-milestone-emoji {
  font-size: 2.6rem;
  margin-bottom: 10px;
  line-height: 1;
}

.top-milestone-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.top-milestone-tagline {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 14px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.top-milestone-date {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.top-milestone-countdown {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--emerald);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  min-height: 1.4em;
}

.top-milestone-countdown.hot {
  animation: blink 0.9s ease-in-out infinite;
}

/* Progress bar dans les top cards */
.top-milestone-card .prog-wrap {
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLL REVEAL — Intersection Observer animations
   ═══════════════════════════════════════════════════════════════════════════ */
.reveal-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger sur les enfants directs de #results */
#results > div:nth-child(1) .reveal-section { transition-delay: 0.00s; }
#results > div:nth-child(2) .reveal-section { transition-delay: 0.05s; }
#results > div:nth-child(3) .reveal-section { transition-delay: 0.10s; }
#results > div:nth-child(4) .reveal-section { transition-delay: 0.15s; }
#results > div:nth-child(5) .reveal-section { transition-delay: 0.20s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .top-milestone-card { animation: none; transition: none; }
  .liquid-btn { transition: none; }
}

/* Theme toggle removed — dark mode forced */

/* ═══════════════════════════════════════════════════════════════════════════
   SMOOTH THEME TRANSITIONS
   Applies only to color/background — never to transform-based animations
   ═══════════════════════════════════════════════════════════════════════════ */
/* Universal * transition removed — perf killer on 1000+ DOM nodes.
   Theme transitions are now applied per-component below. */

/* Theme-safe transitions on interactive components */
.card,
.stat-pill,
.top-milestone-card {
  transition:
    transform        0.22s ease,
    border-color     0.22s ease,
    box-shadow       0.22s ease,
    background-color 0.30s ease,
    color            0.30s ease;
}

/* Smooth color transitions for common elements during theme changes */
body,
.site-header,
.form-card,
.section-head,
.section-sub,
.hero,
.footer,
a,
button,
input,
select {
  transition:
    background-color 0.30s ease,
    border-color     0.30s ease,
    color            0.30s ease;
}

.liquid-btn {
  transition:
    transform  0.20s ease,
    box-shadow 0.20s ease;
}

.reveal-section {
  transition:
    opacity   0.60s ease,
    transform 0.60s ease;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIGHT MODE — "Jour céleste ensoleillé"
   Palette : blancs chauds, crèmes dorées, azur ciel, touches de corail/safran
   ═══════════════════════════════════════════════════════════════════════════ */
:root[data-theme="light"] {
  /* ── Tokens propres au mode clair ── */

  /* Couleurs d'accent primaires (solaires) — utilisées dans les composants */
  --solar-amber:  #C2690A;         /* amber foncé, contraste WCAG AA sur blanc */
  --solar-coral:  #C2440A;         /* corail/safran chaud */
  --solar-gold:   #B8850A;         /* or profond */
  --solar-sky:    #0369A1;         /* ciel profond, contraste AA */
  --solar-teal:   #0F766E;         /* teinte teal ensoleillée */
  --solar-sage:   #4D7C0F;         /* vert sauge naturel */

  /* Dim / backgrounds solaires */
  --solar-amber-dim: rgba(194,105,10,0.09);
  --solar-coral-dim: rgba(194,68,10,0.08);
  --solar-sky-dim:   rgba(3,105,161,0.08);
  --solar-gold-dim:  rgba(184,133,10,0.08);

  /* Backgrounds — dégradé de ciel blanc-crème (gradient via body::before) */
  --bg:  #FFFEF9;   /* blanc crème chaud */
  --bg2: #FEF9EE;   /* crème légèrement dorée */

  /* Surfaces — cartes blanches nettes avec chaleur subtile */
  --surface:  rgba(255, 252, 245, 0.90);
  --surface2: rgba(254, 249, 238, 0.85);
  --surface3: rgba(252, 244, 225, 0.90);

  /* Borders — beige doré, très subtil */
  --border:  rgba(180,130,60,0.12);
  --border2: rgba(160,110,40,0.20);
  --border3: rgba(140,90,20,0.32);

  /* Text — anthracite profond, jamais noir pur */
  --text:  #1C1810;   /* brun-anthracite chaud */
  --text2: #4A3F2E;   /* brun moyen lisible */
  --muted: rgba(90,75,50,0.60);

  /* Accents — réorientés vers palette solaire */
  --indigo:  #7C5AF6;   /* conservé pour compatibilité render.js mais atténué */
  --violet:  #9333EA;
  --amber:   #C2690A;   /* amber solaire profond */
  --emerald: #16803C;
  --rose:    #D62E4A;
  --cyan:    #0369A1;   /* ciel profond */

  /* Dim backgrounds */
  --indigo-dim:  rgba(124,90,246,0.08);
  --violet-dim:  rgba(147,51,234,0.08);
  --amber-dim:   rgba(194,105,10,0.09);
  --emerald-dim: rgba(22,128,60,0.08);
  --rose-dim:    rgba(214,46,74,0.08);
  --cyan-dim:    rgba(3,105,161,0.08);

  /* Legacy aliases */
  --gold:        #C2690A;
  --gold-dim:    rgba(194,105,10,0.09);
  --purple:      #9333EA;
  --purple-dim:  rgba(147,51,234,0.08);
  --purple-glow: rgba(147,51,234,0.12);
  --green:       #16803C;
  --green-dim:   rgba(22,128,60,0.08);
  --pink:        #D62E4A;
  --pink-dim:    rgba(214,46,74,0.08);
}

/* ── Fond ciel lumineux : masque le fond cosmique sombre ── */
:root[data-theme="light"] body {
  background: linear-gradient(
    180deg,
    #E8F4FE 0%,     /* bleu azur très pâle — ciel du matin */
    #F5FBFF 12%,    /* transition douce vers blanc */
    #FFFEF9 35%,    /* blanc crème chaud */
    #FEF9EE 65%,    /* crème dorée */
    #FFFCF0 100%    /* crème claire */
  ) fixed;
}

/* ── Masquer entièrement le canvas WebGL ── */
:root[data-theme="light"] #hero-canvas {
  display: none;
}

/* ── Masquer tout le cosmic background (étoiles, planètes, nébuleuses) ── */
:root[data-theme="light"] #cosmic-bg {
  display: none;
}

/* ── Remplacer l'aurora par une ambiance solaire subtile ── */
:root[data-theme="light"] .aurora-layer {
  display: none;
}

/* ── Remplacer body::before (nébuleuses cosmiques) par un ciel solaire ── */
:root[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 60% 45% at 8% 5%,   rgba(255,220,100,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 40% 35% at 92% 8%,   rgba(255,180,80,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 50% 0%,   rgba(147,210,255,0.20) 0%, transparent 55%),
    radial-gradient(ellipse 35% 30% at 18% 80%,  rgba(255,200,120,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 82% 75%,  rgba(255,240,180,0.12) 0%, transparent 60%);
  opacity: 1;
  animation: solarShift 16s ease-in-out infinite alternate;
}

@keyframes solarShift {
  0%   { opacity: 0.80; }
  50%  { opacity: 1.00; }
  100% { opacity: 0.85; }
}

/* ── Hero title — dégradé doré-safran ensoleillé ── */
:root[data-theme="light"] .hero-title {
  background: linear-gradient(145deg, #1C1810 0%, #4A3F2E 60%, #7A5A20 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* L'em italic dans le titre reçoit une teinte solaire */
:root[data-theme="light"] .hero-title em {
  background: linear-gradient(135deg, #C2690A 0%, #E05020 45%, #C2440A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero badge — doré solaire ── */
:root[data-theme="light"] .hero-badge {
  background: rgba(194,105,10,0.09);
  border-color: rgba(194,105,10,0.28);
  color: #A35608;
}

/* ── Hero sub — brun moyen lisible ── */
:root[data-theme="light"] .hero-sub {
  color: rgba(90,75,50,0.70);
}

/* ── Form card — verre blanc chaud avec ombre douce ── */
:root[data-theme="light"] .form-card {
  background: rgba(255, 254, 248, 0.94);
  border-color: rgba(194,155,80,0.20);
  backdrop-filter: blur(32px) saturate(1.4);
  -webkit-backdrop-filter: blur(32px) saturate(1.4);
  box-shadow:
    0 20px 60px rgba(180,120,20,0.10),
    0 4px 16px rgba(180,120,20,0.06),
    0 0 0 1px rgba(255,255,255,0.90) inset;
}

:root[data-theme="light"] .form-card::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.80), transparent);
}

:root[data-theme="light"] .form-card:has(input:focus),
:root[data-theme="light"] .form-card.focus-glow {
  border-color: rgba(194,105,10,0.40);
  box-shadow:
    0 20px 60px rgba(180,120,20,0.12),
    0 4px 16px rgba(180,120,20,0.08),
    0 0 0 1px rgba(255,255,255,0.90) inset,
    0 0 0 3px rgba(194,105,10,0.08),
    0 0 40px 0 rgba(194,105,10,0.12);
}

/* ── Hero chips — light mode ── */
:root[data-theme="light"] .hero-chip {
  background: rgba(0,0,0,0.04);
  border-color: rgba(180,130,60,0.22);
  color: #5A4A30;
}

:root[data-theme="light"] .hero-chip--days:hover {
  background: rgba(5,150,105,0.08);
  border-color: rgba(5,150,105,0.32);
  color: #065f46;
}

:root[data-theme="light"] .hero-chip--seconds:hover {
  background: rgba(124,58,237,0.08);
  border-color: rgba(124,58,237,0.30);
  color: #4c1d95;
}

:root[data-theme="light"] .hero-chip--weeks:hover {
  background: rgba(217,119,6,0.08);
  border-color: rgba(217,119,6,0.30);
  color: #78350f;
}

:root[data-theme="light"] .hero-chips-label {
  color: rgba(90,75,50,0.60);
}

/* ── Inputs — fond blanc propre, bordure beige-dorée ── */
:root[data-theme="light"] input[type="date"],
:root[data-theme="light"] .inp-time,
:root[data-theme="light"] .inp-place,
:root[data-theme="light"] .inp-select {
  color-scheme: light;
  background: rgba(255,255,255,0.95);
  border-color: rgba(180,130,60,0.22);
  color: #1C1810;
  box-shadow: 0 1px 4px rgba(180,120,20,0.06);
}

:root[data-theme="light"] input[type="date"]:focus,
:root[data-theme="light"] .inp-time:focus {
  border-color: #C2690A;
  box-shadow: 0 0 0 3px rgba(194,105,10,0.15);
}

:root[data-theme="light"] .inp-place:focus {
  border-color: #0369A1;
  box-shadow: 0 0 0 3px rgba(3,105,161,0.12);
}

:root[data-theme="light"] .inp-select:focus {
  border-color: #C2690A;
  box-shadow: 0 0 0 3px rgba(194,105,10,0.15);
}

/* Select option */
:root[data-theme="light"] .inp-select option {
  background: #FFFEF9;
  color: #1C1810;
}

/* Flèche du select en teinte brun */
:root[data-theme="light"] .inp-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(90,75,50,0.55)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* ── Placeholder ── */
:root[data-theme="light"] .inp-place::placeholder {
  color: rgba(90,75,50,0.45);
}

/* ── Personnaliser toggle — look crème ── */
:root[data-theme="light"] .personalize-toggle {
  background: rgba(255,250,240,0.90);
  border-color: rgba(194,155,80,0.20);
}

:root[data-theme="light"] .personalize-toggle:hover {
  background: rgba(254,246,225,0.95);
  border-color: rgba(194,105,10,0.28);
}

:root[data-theme="light"] .personalize-inner {
  background: rgba(255,252,242,0.95);
  border-color: rgba(194,155,80,0.16);
}

/* ── Genre buttons ── */
:root[data-theme="light"] .genre-btn {
  background: rgba(255,252,245,0.90);
  border-color: rgba(180,130,60,0.20);
  color: #4A3F2E;
}

:root[data-theme="light"] .genre-btn.selected {
  background: rgba(194,105,10,0.12);
  border-color: rgba(194,105,10,0.40);
  color: #A35608;
}

/* ── CTA Button — dégradé solaire amber/corail ── */
:root[data-theme="light"] .liquid-btn {
  background: rgba(194,105,10,0.12);
  border-color: rgba(194,105,10,0.30);
  color: #7A3A06;
  box-shadow:
    0 0 8px rgba(0,0,0,0.02),
    0 4px 16px rgba(194,105,10,0.12),
    inset 0 1px 0 rgba(255,255,255,0.70),
    inset 0 0 12px rgba(255,220,150,0.15),
    0 0 20px rgba(194,105,10,0.08);
}

:root[data-theme="light"] .liquid-btn::before {
  background: linear-gradient(135deg,
    rgba(255,255,255,0.50) 0%,
    rgba(255,240,200,0.25) 30%,
    transparent 60%,
    rgba(255,180,80,0.10) 100%);
}

:root[data-theme="light"] .liquid-btn:hover {
  box-shadow:
    0 6px 24px rgba(194,105,10,0.20),
    inset 0 1px 0 rgba(255,255,255,0.80),
    0 0 36px rgba(194,105,10,0.12);
  background: rgba(194,105,10,0.16);
  border-color: rgba(194,105,10,0.45);
  color: #5C2A04;
}

/* ── Cards milestones — blanc chaud, ombres dorées ── */
:root[data-theme="light"] .card {
  background: rgba(255, 254, 250, 0.95);
  border-color: rgba(194,155,80,0.15);
  box-shadow:
    0 2px 12px rgba(180,120,20,0.07),
    0 1px 3px rgba(180,120,20,0.04);
}

:root[data-theme="light"] .card:hover {
  border-color: rgba(194,105,10,0.30);
  box-shadow:
    0 8px 28px rgba(180,120,20,0.13),
    0 2px 8px rgba(180,120,20,0.07);
}

:root[data-theme="light"] .card.future {
  border-color: rgba(3,105,161,0.18);
  background: linear-gradient(140deg, rgba(3,105,161,0.05), rgba(255,254,250,0.95));
}

:root[data-theme="light"] .card.past {
  border-color: rgba(194,105,10,0.20);
  background: linear-gradient(140deg, rgba(194,105,10,0.06), rgba(255,254,250,0.95));
}

:root[data-theme="light"] .card.next {
  border-color: rgba(22,128,60,0.28);
  background: linear-gradient(140deg, rgba(22,128,60,0.07), rgba(255,254,250,0.95));
  box-shadow:
    0 4px 20px rgba(22,128,60,0.08),
    0 1px 4px rgba(22,128,60,0.05);
}

/* Barres colorées des cards en mode clair */
:root[data-theme="light"] .card.future::before { background: #0369A1; }
:root[data-theme="light"] .card.past::before   { background: #C2690A; }
:root[data-theme="light"] .card.next::before   { background: #16803C; }

/* ── Stat pills — surfaces dorées subtiles ── */
:root[data-theme="light"] .stat-pill {
  background: rgba(255,254,250,0.95);
  border-color: rgba(194,155,80,0.15);
  box-shadow: 0 2px 10px rgba(180,120,20,0.07);
}

:root[data-theme="light"] .stat-pill:hover {
  border-color: rgba(194,105,10,0.25);
  box-shadow: 0 6px 20px rgba(180,120,20,0.12);
}

/* ── Progress track — fond beige visible ── */
:root[data-theme="light"] .prog-track {
  background: rgba(180,130,60,0.12);
}

:root[data-theme="light"] .prog-fill {
  background: linear-gradient(90deg, #C2690A, #E05020);
}

/* ── Section heads — ligne dégradée ambrée ── */
:root[data-theme="light"] .section-head::after {
  background: linear-gradient(to right, rgba(194,105,10,0.25), transparent);
}

/* ── ICS button ── */
:root[data-theme="light"] .btn-ics-all {
  background: rgba(255,254,250,0.92);
  border-color: rgba(194,155,80,0.20);
  color: #4A3F2E;
  box-shadow: 0 2px 10px rgba(180,120,20,0.07);
}

:root[data-theme="light"] .btn-ics-all:hover {
  background: rgba(255,250,235,0.98);
  border-color: rgba(194,105,10,0.35);
  box-shadow: 0 6px 20px rgba(180,120,20,0.12);
  color: #1C1810;
}

/* ── Timeline CTA ── */
:root[data-theme="light"] .btn-timeline-cta {
  color: #A35608;
  background: rgba(194,105,10,0.09);
  border-color: rgba(194,105,10,0.22);
}

:root[data-theme="light"] .btn-timeline-cta:hover {
  background: rgba(194,105,10,0.15);
  border-color: #C2690A;
  box-shadow: 0 6px 24px rgba(194,105,10,0.15);
  color: #7A3A06;
}

/* ── Show more button ── */
:root[data-theme="light"] .btn-show-more {
  background: rgba(255,254,250,0.92);
  border-color: rgba(194,155,80,0.20);
  color: #4A3F2E;
}

:root[data-theme="light"] .btn-show-more:hover {
  background: rgba(255,250,235,0.98);
  border-color: rgba(194,105,10,0.35);
  color: #1C1810;
  box-shadow: 0 6px 20px rgba(180,120,20,0.12);
}

/* ── Tags d'unité ── */
:root[data-theme="light"] .unit-tag.s { background: rgba(214,46,74,0.08);  color: #C42040; border-color: rgba(214,46,74,0.18); }
:root[data-theme="light"] .unit-tag.m { background: rgba(3,105,161,0.08);  color: #0369A1; border-color: rgba(3,105,161,0.18); }
:root[data-theme="light"] .unit-tag.h { background: rgba(194,105,10,0.09); color: #A35608; border-color: rgba(194,105,10,0.20); }
:root[data-theme="light"] .unit-tag.d { background: rgba(22,128,60,0.08);  color: #16803C; border-color: rgba(22,128,60,0.18); }
:root[data-theme="light"] .unit-tag.w { background: rgba(147,51,234,0.07); color: #7C3AED; border-color: rgba(147,51,234,0.16); }

/* ── Astro cards — verre crème ── */
:root[data-theme="light"] .astro-card {
  background: rgba(255,254,250,0.95);
  border-color: rgba(194,155,80,0.15);
  box-shadow: 0 2px 12px rgba(180,120,20,0.07);
}

:root[data-theme="light"] .astro-card.western {
  border-color: rgba(194,105,10,0.20);
  background: linear-gradient(140deg, rgba(194,105,10,0.05), rgba(255,254,250,0.95));
}

:root[data-theme="light"] .astro-card.moon {
  border-color: rgba(147,51,234,0.16);
  background: linear-gradient(140deg, rgba(147,51,234,0.05), rgba(255,254,250,0.95));
}

:root[data-theme="light"] .astro-card.chinese {
  border-color: rgba(214,46,74,0.16);
  background: linear-gradient(140deg, rgba(214,46,74,0.05), rgba(255,254,250,0.95));
}

:root[data-theme="light"] .astro-card.ascendant {
  border-color: rgba(3,105,161,0.18);
  background: linear-gradient(140deg, rgba(3,105,161,0.05), rgba(255,254,250,0.95));
}

:root[data-theme="light"] .astro-card.numerology {
  border-color: rgba(194,105,10,0.22);
  background: linear-gradient(135deg, rgba(194,105,10,0.07), rgba(255,254,250,0.95));
}

/* ── Astro profile btn ── */
:root[data-theme="light"] .astro-profile-btn {
  background: linear-gradient(135deg, rgba(194,105,10,0.08), rgba(214,46,74,0.05));
  border-color: rgba(194,105,10,0.22);
  color: #4A3F2E;
}

:root[data-theme="light"] .astro-profile-btn:hover {
  background: linear-gradient(135deg, rgba(194,105,10,0.14), rgba(214,46,74,0.08));
  border-color: rgba(194,105,10,0.38);
  color: #1C1810;
}

/* ── Astro profile inner ── */
:root[data-theme="light"] .astro-profile-inner {
  background: linear-gradient(140deg, rgba(194,105,10,0.06), rgba(214,46,74,0.03), rgba(255,220,100,0.04));
  border-color: rgba(194,105,10,0.16);
}

/* ── Astro body em ── */
:root[data-theme="light"] .astro-profile-body em {
  color: #A35608;
}

/* ── Numerology ── */
:root[data-theme="light"] .numerology-divider {
  border-bottom-color: rgba(180,130,60,0.14);
}

:root[data-theme="light"] .numerology-trait {
  background: rgba(194,105,10,0.08);
  border-color: rgba(194,105,10,0.16);
  color: #4A3F2E;
}

/* ── Calendar cards ── */
:root[data-theme="light"] .cal-card {
  background: rgba(255,254,250,0.95);
  border-color: rgba(194,155,80,0.15);
  box-shadow: 0 2px 10px rgba(180,120,20,0.07);
}

:root[data-theme="light"] .cal-card:hover {
  border-color: rgba(194,105,10,0.28);
  box-shadow: 0 6px 20px rgba(180,120,20,0.12);
}

/* ── Lifestats & planet cards ── */
:root[data-theme="light"] .lifestats-card,
:root[data-theme="light"] .planet-card {
  background: rgba(255,254,250,0.95);
  border-color: rgba(194,155,80,0.15);
  box-shadow: 0 2px 10px rgba(180,120,20,0.06);
}

:root[data-theme="light"] .lifestats-card:hover,
:root[data-theme="light"] .planet-card:hover {
  border-color: rgba(194,105,10,0.25);
  box-shadow: 0 6px 18px rgba(180,120,20,0.11);
}

/* ── Geo card ── */
:root[data-theme="light"] .geo-card {
  background: linear-gradient(140deg, rgba(3,105,161,0.06), rgba(255,254,250,0.95));
  border-color: rgba(3,105,161,0.18);
}

:root[data-theme="light"] .geo-fact-item {
  background: rgba(255,254,250,0.95);
  border-color: rgba(194,155,80,0.14);
}

:root[data-theme="light"] .geo-hemisphere-note {
  color: #0369A1;
  background: rgba(3,105,161,0.07);
  border-color: rgba(3,105,161,0.14);
}

/* ── Events box ── */
:root[data-theme="light"] .events-box {
  background: rgba(255,254,250,0.95);
  border-color: rgba(194,155,80,0.16);
}

:root[data-theme="light"] .events-box-header {
  background: rgba(255,252,240,0.90);
  border-bottom-color: rgba(194,155,80,0.14);
}

:root[data-theme="light"] .event-item {
  border-bottom-color: rgba(194,155,80,0.10);
}

:root[data-theme="light"] .event-item:hover {
  background: rgba(255,240,200,0.25);
}

:root[data-theme="light"] .events-box-date {
  color: #A35608;
  background: rgba(194,105,10,0.09);
  border-color: rgba(194,105,10,0.18);
}

/* ── Season & weekday cards ── */
:root[data-theme="light"] .season-card {
  background: linear-gradient(135deg, rgba(22,128,60,0.06), rgba(3,105,161,0.03), rgba(255,254,250,0.95));
  border-color: rgba(22,128,60,0.18);
}

:root[data-theme="light"] .weekday-card {
  background: linear-gradient(135deg, rgba(147,51,234,0.06), rgba(214,46,74,0.03), rgba(255,254,250,0.95));
  border-color: rgba(147,51,234,0.16);
}

/* ── Top milestone cards ── */
:root[data-theme="light"] .top-milestone-card {
  background: rgba(255,254,250,0.95);
  border-color: rgba(194,155,80,0.14);
  box-shadow: 0 3px 14px rgba(180,120,20,0.08);
}

:root[data-theme="light"] .top-milestone-card:hover {
  box-shadow: 0 10px 36px rgba(180,120,20,0.14);
  border-color: rgba(194,105,10,0.28);
}

:root[data-theme="light"] .top-milestone-card:nth-child(1) {
  background: linear-gradient(140deg, rgba(22,128,60,0.07), rgba(255,254,250,0.95));
  border-color: rgba(22,128,60,0.20);
}

:root[data-theme="light"] .top-milestone-card:nth-child(2) {
  background: linear-gradient(140deg, rgba(3,105,161,0.07), rgba(255,254,250,0.95));
  border-color: rgba(3,105,161,0.20);
}

:root[data-theme="light"] .top-milestone-card:nth-child(3) {
  background: linear-gradient(140deg, rgba(194,105,10,0.07), rgba(255,254,250,0.95));
  border-color: rgba(194,105,10,0.20);
}

:root[data-theme="light"] .top-milestone-card:nth-child(3) .top-milestone-rank,
:root[data-theme="light"] .top-milestone-card:nth-child(3) .top-milestone-countdown {
  color: #A35608;
}

/* ── Glow orb des top cards — solaire ── */
:root[data-theme="light"] .top-milestone-card::after {
  background: radial-gradient(circle, rgba(255,200,100,0.12), transparent 70%);
}

/* ── View toggle ── */
:root[data-theme="light"] .view-toggle-segmented {
  background: rgba(255,252,240,0.90);
  border-color: rgba(194,155,80,0.20);
}

:root[data-theme="light"] .view-toggle-btn.active {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 1px 6px rgba(180,120,20,0.12), inset 0 1px 0 rgba(255,255,255,0.95);
  border-color: rgba(194,155,80,0.25);
  color: #1C1810;
}

/* ── Timeline — épine solaire ── */
:root[data-theme="light"] .timeline-spine {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    #C2690A 6%,
    #E05020 50%,
    #C2690A 94%,
    transparent 100%
  );
  box-shadow:
    0 0 6px 1px rgba(194,105,10,0.30),
    0 0 18px 4px rgba(224,80,32,0.12);
}

:root[data-theme="light"] .timeline-now-ring {
  background: #C2690A;
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.95),
    0 0 0 6px rgba(194,105,10,0.25),
    0 0 16px rgba(194,105,10,0.30);
}


/* ── PWA Banner (déjà overridé mais harmonisation) ── */
:root[data-theme="light"] .pwa-banner__inner {
  background: rgba(255,252,240,0.96);
  border-color: rgba(194,155,80,0.20);
  box-shadow: 0 4px 24px rgba(180,120,20,0.14);
}

/* ── Dynamic section backgrounds — teintes solaires en light ── */
:root[data-theme="light"] body::after { opacity: 0.25; }

/* ── Blog cards ── */
:root[data-theme="light"] .blog-card-tag {
  background: rgba(194,105,10,0.09);
  color: #A35608;
}

:root[data-theme="light"] .blog-card {
  background: rgba(255,254,250,0.92);
  border-color: rgba(194,155,80,0.14);
  box-shadow: 0 2px 10px rgba(180,120,20,0.06);
}

:root[data-theme="light"] .blog-card:hover {
  background: rgba(255,252,240,0.98);
  border-color: rgba(194,105,10,0.26);
  box-shadow: 0 6px 22px rgba(180,120,20,0.12);
}

/* ── Friend compare cards ── */
:root[data-theme="light"] .friend-form-card {
  background: linear-gradient(140deg, rgba(3,105,161,0.05), rgba(255,254,250,0.92));
  border-color: rgba(194,155,80,0.18);
}

:root[data-theme="light"] .friend-form-field input {
  background: rgba(255,255,255,0.95);
  border-color: rgba(180,130,60,0.22);
  color: #1C1810;
}

:root[data-theme="light"] .friend-form-field input:focus {
  border-color: #C2690A;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(194,105,10,0.12);
}

:root[data-theme="light"] .friend-compare-summary {
  background: rgba(194,105,10,0.08);
  border-color: rgba(194,105,10,0.18);
}

:root[data-theme="light"] .friend-compare-summary strong {
  color: #A35608;
}

:root[data-theme="light"] .friend-compare-card {
  background: rgba(255,254,250,0.95);
  border-color: rgba(194,155,80,0.16);
  box-shadow: 0 2px 10px rgba(180,120,20,0.07);
}

:root[data-theme="light"] .friend-compare-card:hover {
  border-color: rgba(194,105,10,0.28);
  box-shadow: 0 6px 20px rgba(180,120,20,0.12);
}

:root[data-theme="light"] .fcard-row {
  background: rgba(255,248,230,0.60);
}

:root[data-theme="light"] .btn-show-all-pairs {
  background: rgba(255,254,250,0.92);
  border-color: rgba(194,155,80,0.18);
  color: #4A3F2E;
}

:root[data-theme="light"] .btn-show-all-pairs:hover {
  background: rgba(255,250,235,0.98);
  border-color: rgba(194,105,10,0.32);
  color: #1C1810;
}

/* ── Countdown colors en clair ── */
:root[data-theme="light"] .countdown {
  color: #16803C;
}

:root[data-theme="light"] .countdown.hot {
  color: #D62E4A;
}

:root[data-theme="light"] .past-done {
  color: #A35608;
}

/* ── Numerology famous names ── */
:root[data-theme="light"] .numerology-famous-name {
  background: rgba(3,105,161,0.07);
  border-color: rgba(3,105,161,0.16);
  color: #4A3F2E;
}

/* ── Blog showcase CTA ── */
:root[data-theme="light"] .blog-showcase-cta {
  color: #A35608;
}

:root[data-theme="light"] .blog-showcase-cta:hover {
  background: rgba(194,105,10,0.08);
  color: #7A3A06;
}

/* ── Btn compare (friend) — couleur solaire ── */
:root[data-theme="light"] .btn-compare {
  background: linear-gradient(135deg, #C2690A, #E05020);
  box-shadow: 0 4px 16px rgba(194,105,10,0.28);
}

:root[data-theme="light"] .btn-compare:hover {
  box-shadow: 0 6px 24px rgba(194,105,10,0.38);
}

/* ── Age box — texte anthracite ── */
:root[data-theme="light"] .age-box .val {
  background: linear-gradient(135deg, #C2690A 0%, #E05020 50%, #A35608 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Countdown achieved ── */
:root[data-theme="light"] .countdown.achieved,
:root[data-theme="light"] .top-milestone-countdown.achieved {
  color: #A35608;
}

/* ── Achieved badge ── */
:root[data-theme="light"] .achieved-badge {
  background: linear-gradient(135deg, #C2690A 0%, #E05020 100%);
  box-shadow: 0 0 12px rgba(194,105,10,0.30);
}

/* ── Card milestone-achieved ── */
:root[data-theme="light"] .card.milestone-achieved {
  background: linear-gradient(140deg,
    rgba(194,105,10,0.09) 0%,
    rgba(224,80,32,0.05) 60%,
    rgba(255,254,250,0.95) 100%
  ) !important;
  border-color: rgba(194,105,10,0.40) !important;
}

:root[data-theme="light"] .card.milestone-achieved::before {
  background: linear-gradient(180deg, #C2690A, #E05020) !important;
}

/* ── Footer ── */
:root[data-theme="light"] footer {
  border-top-color: rgba(194,155,80,0.16);
}

/* ── Astro card achieved badge hot ── */
:root[data-theme="light"] .top-milestone-countdown.hot {
  color: #D62E4A;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DYNAMIC SECTION BACKGROUNDS — body::after changes per section
   ═══════════════════════════════════════════════════════════════════════════ */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: background 1.8s ease, opacity 1.2s ease;
  opacity: 0.55;
}

body.theme-hero::after {
  background:
    radial-gradient(ellipse 80% 60% at 15% 10%, rgba(99,102,241,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 85% 90%, rgba(139,92,246,0.12) 0%, transparent 70%);
}

body.theme-planets::after {
  background:
    radial-gradient(ellipse 100% 80% at 50% 50%, rgba(6,182,212,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 30%, rgba(139,92,246,0.12) 0%, transparent 50%),
    radial-gradient(ellipse 30% 30% at 80% 70%, rgba(245,158,11,0.10) 0%, transparent 50%);
}

body.theme-astro::after {
  background:
    radial-gradient(ellipse 70% 60% at 30% 20%, rgba(139,92,246,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 70% 80%, rgba(245,158,11,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(244,63,94,0.06) 0%, transparent 50%);
}

body.theme-future::after {
  background:
    radial-gradient(ellipse 80% 60% at 10% 50%, rgba(99,102,241,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 30%, rgba(16,185,129,0.08) 0%, transparent 55%);
}

body.theme-past::after {
  background:
    radial-gradient(ellipse 80% 60% at 80% 50%, rgba(245,158,11,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(244,63,94,0.07) 0%, transparent 50%);
}

body.theme-life::after {
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(16,185,129,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 15% 70%, rgba(6,182,212,0.08) 0%, transparent 50%);
}

body.theme-calendars::after {
  background:
    radial-gradient(ellipse 60% 60% at 40% 40%, rgba(245,158,11,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 70% 60%, rgba(244,63,94,0.07) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 20% 20%, rgba(16,185,129,0.07) 0%, transparent 45%);
}

body.theme-seasons::after {
  background:
    radial-gradient(ellipse 80% 60% at 60% 30%, rgba(245,158,11,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 30% 70%, rgba(139,92,246,0.08) 0%, transparent 50%);
}

/* Light mode: reduce theme intensity — overridé par la section principale */
:root[data-theme="light"] body::after { opacity: 0.20; }

/* ─── ASCENDANT CARD ─── */
.astro-card.ascendant { border-color: rgba(6,182,212,0.2); background: linear-gradient(140deg, rgba(6,182,212,0.05), var(--surface)); }

/* ─── NUMEROLOGY ENRICHED ─── */
.numerology-insight { margin-top: 14px; }
.numerology-sub-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}
.numerology-desc-small {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.6;
  margin: 0;
}
.numerology-famous-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.numerology-famous-name {
  font-size: 0.72rem;
  padding: 3px 10px;
  background: var(--indigo-dim, rgba(99,102,241,0.12));
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 100px;
  color: var(--text2);
}

/* Passion card span 2 columns responsively */
@media (max-width: 500px) {
  .passion-card { grid-column: span 1 !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   VIEW TOGGLE — segmented control pill above milestone sections
   ═══════════════════════════════════════════════════════════════════════════ */
.view-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.view-toggle-segmented {
  display: inline-flex;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 2px;
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: calc(var(--radius-pill) - 2px);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.20s ease, border-color 0.20s ease, color 0.20s ease;
  white-space: nowrap;
}

.view-toggle-btn svg {
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.20s ease;
}

.view-toggle-btn:hover {
  color: var(--text2);
  background: var(--surface3);
}

.view-toggle-btn:hover svg {
  opacity: 0.85;
}

.view-toggle-btn.active {
  background: var(--surface3);
  border-color: var(--border2);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.06);
}

.view-toggle-btn.active svg {
  opacity: 1;
}

/* Light mode adjustments — overridé par la section principale light mode */
:root[data-theme="light"] .view-toggle-btn.active {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 1px 6px rgba(180,120,20,0.12), inset 0 1px 0 rgba(255,255,255,0.95);
  border-color: rgba(194,155,80,0.25);
}

@media (max-width: 440px) {
  .view-toggle-btn { padding: 8px 14px; font-size: 0.78rem; }
  .view-toggle-btn svg { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TIMELINE — Ma Frise Chronologique
   Vertical spine with alternating cards; mobile becomes left-aligned
   ═══════════════════════════════════════════════════════════════════════════ */
#timeline-section {
  margin-bottom: 80px;
}

/* ── Container ───────────────────────────────────────────────────────────── */
.timeline-wrap {
  position: relative;
  /* Height is determined by content — each item gets ~130px */
  padding: 20px 0 40px;
}

/* ── Vertical glowing spine ──────────────────────────────────────────────── */
.timeline-spine {
  position: absolute;
  /* Centered on desktop */
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--indigo) 6%,
    var(--violet) 50%,
    var(--indigo) 94%,
    transparent 100%
  );
  border-radius: 2px;
  /* Glow effect via box-shadow */
  box-shadow:
    0 0 6px 1px rgba(99,102,241,0.35),
    0 0 18px 4px rgba(139,92,246,0.15);
  pointer-events: none;
}

/* ── "Tu es ici" marker ──────────────────────────────────────────────────── */
.timeline-now-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.timeline-now-ring {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--indigo);
  box-shadow:
    0 0 0 0 rgba(99,102,241,0.70),
    0 0 8px 2px rgba(99,102,241,0.50);
  animation: nowPulse 2.2s ease-out infinite;
}

@keyframes nowPulse {
  0%   { box-shadow: 0 0 0 0px rgba(99,102,241,0.70), 0 0 8px 2px rgba(99,102,241,0.50); }
  70%  { box-shadow: 0 0 0 12px rgba(99,102,241,0), 0 0 12px 4px rgba(99,102,241,0.25); }
  100% { box-shadow: 0 0 0 0px rgba(99,102,241,0), 0 0 8px 2px rgba(99,102,241,0.50); }
}

.timeline-now-label {
  margin-top: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--indigo);
  white-space: nowrap;
  background: var(--bg);
  padding: 2px 7px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(99,102,241,0.25);
}

/* ── Year band markers ───────────────────────────────────────────────────── */
.timeline-year-band {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  z-index: 5;
}

.timeline-year-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  padding: 2px 9px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border2);
  white-space: nowrap;
}

/* ── Timeline item row ───────────────────────────────────────────────────── */
.timeline-item {
  display: grid;
  /* Two halves around the centered spine */
  grid-template-columns: 1fr 28px 1fr;
  align-items: center;
  gap: 0;
  margin-bottom: 0;
  /* opacity/translateY set to 0 for scroll-reveal; JS adds .tl-visible */
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.timeline-item.tl-visible {
  opacity: 1;
  transform: translateY(0);
}

/* "Tu es ici" spacer row — keeps grid flow, spinner sits outside */
.timeline-item.is-now-row {
  grid-template-columns: 1fr 28px 1fr;
  height: 48px;
  margin-bottom: 8px;
  opacity: 1;
  transform: none;
}

/* Stagger delays for reveal — every 6th item resets */
.timeline-item:nth-child(1)  { transition-delay: 0.00s; }
.timeline-item:nth-child(2)  { transition-delay: 0.05s; }
.timeline-item:nth-child(3)  { transition-delay: 0.10s; }
.timeline-item:nth-child(4)  { transition-delay: 0.15s; }
.timeline-item:nth-child(5)  { transition-delay: 0.20s; }
.timeline-item:nth-child(6)  { transition-delay: 0.25s; }

/* ── Dot on spine ────────────────────────────────────────────────────────── */
.timeline-dot-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 3;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  flex-shrink: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Unit color coding — matches existing unit-tag colors */
.timeline-dot.u-s { background: var(--rose);    box-shadow: 0 0 6px 1px rgba(244,63,94,0.45); }
.timeline-dot.u-m { background: var(--cyan);    box-shadow: 0 0 6px 1px rgba(6,182,212,0.45); }
.timeline-dot.u-h { background: var(--amber);   box-shadow: 0 0 6px 1px rgba(245,158,11,0.45); }
.timeline-dot.u-d { background: var(--emerald); box-shadow: 0 0 6px 1px rgba(16,185,129,0.45); }
.timeline-dot.u-w { background: var(--violet);  box-shadow: 0 0 6px 1px rgba(139,92,246,0.45); }

/* ── Connector line from dot to card ─────────────────────────────────────── */
.timeline-connector {
  height: 1px;
  background: var(--border2);
  flex: 1;
  opacity: 0.5;
  transition: opacity 0.18s;
}

/* ── Card side helpers ───────────────────────────────────────────────────── */
/* "left" column = odd items go on the left, even on the right (alternating) */
.timeline-card-left,
.timeline-card-right {
  padding: 10px 0;
}

/* Left card: right-aligned content so it reads toward the spine */
.timeline-card-left {
  display: flex;
  justify-content: flex-end;
}

.timeline-card-right {
  display: flex;
  justify-content: flex-start;
}

/* ── Timeline card itself ─────────────────────────────────────────────────── */
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  max-width: 340px;
  width: calc(100% - 20px);
  transition: transform 0.20s ease, border-color 0.20s ease, box-shadow 0.20s ease;
  position: relative;
  overflow: hidden;
}

/* Colored accent bar matching card type */
.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.timeline-card.future::before { background: linear-gradient(90deg, var(--indigo), var(--violet)); }
.timeline-card.past::before   { background: linear-gradient(90deg, var(--amber), #FBBF24); }

.timeline-card.future {
  border-color: rgba(99,102,241,0.18);
  background: linear-gradient(135deg, rgba(99,102,241,0.05), var(--surface));
}

.timeline-card.past {
  border-color: rgba(245,158,11,0.18);
  background: linear-gradient(135deg, rgba(245,158,11,0.05), var(--surface));
}

.timeline-card:hover {
  transform: translateY(-2px);
  border-color: var(--border3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.20);
}

.timeline-card:hover .timeline-dot {
  transform: scale(1.35);
}

/* ── Card content ─────────────────────────────────────────────────────────── */
.tl-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.tl-emoji {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.tl-card-titles { flex: 1; min-width: 0; }

.tl-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tl-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 2px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tl-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 5px;
}

.tl-date strong {
  color: var(--text2);
  font-weight: 600;
}

.tl-countdown {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--emerald);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.tl-countdown.hot {
  color: var(--rose);
  animation: blink 0.9s ease-in-out infinite;
}

.tl-past-done {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber);
}

.tl-unit-tag {
  display: inline-flex;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
  margin-bottom: 7px;
}

/* Unit tag variants reuse existing color tokens */
.tl-unit-tag.u-s { background: rgba(244,63,94,0.12);  color: #FB7185; border: 1px solid rgba(244,63,94,0.20); }
.tl-unit-tag.u-m { background: rgba(6,182,212,0.12);  color: #38BDF8; border: 1px solid rgba(6,182,212,0.20); }
.tl-unit-tag.u-h { background: rgba(245,158,11,0.12); color: #FBBF24; border: 1px solid rgba(245,158,11,0.20); }
.tl-unit-tag.u-d { background: rgba(16,185,129,0.12); color: #34D399; border: 1px solid rgba(16,185,129,0.20); }
.tl-unit-tag.u-w { background: rgba(139,92,246,0.12); color: #A78BFA; border: 1px solid rgba(139,92,246,0.20); }

/* ── "Voir plus" button ──────────────────────────────────────────────────── */
.timeline-voir-plus {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.btn-tl-voir-plus {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 13px 28px;
  color: var(--text2);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: all 0.22s ease;
}

.btn-tl-voir-plus:hover {
  background: var(--surface3);
  border-color: var(--border3);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ── MOBILE: left-aligned spine, cards all on right ─────────────────────── */
@media (max-width: 700px) {
  .timeline-spine {
    left: 20px;
    transform: none;
  }

  .timeline-now-marker {
    left: 20px;
    transform: translateX(-50%);
  }

  .timeline-year-band {
    left: 20px;
    transform: none;
  }

  .timeline-year-label { margin-left: 12px; }

  /* Collapse the two-column grid into single column after the dot */
  .timeline-item {
    grid-template-columns: 40px 16px 1fr;
  }

  .timeline-item.is-now-row {
    grid-template-columns: 40px 16px 1fr;
  }

  /* Left column disappears — card always on right */
  .timeline-card-left {
    display: none;
  }

  /* Right column fills remaining space */
  .timeline-card-right {
    grid-column: 3;
    justify-content: flex-start;
  }

  .timeline-card {
    max-width: 100%;
    width: 100%;
    padding: 12px 14px;
  }

  .tl-name { font-size: 0.82rem; }

  /* Dot sized up for touch target */
  .timeline-dot {
    width: 14px;
    height: 14px;
  }
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .timeline-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .timeline-now-ring {
    animation: none;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.35);
  }

  .timeline-card:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG SHOWCASE — Section on main page
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── SITE HEADER / NAV — REFONTE ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  padding: 0 24px;
  background: linear-gradient(180deg, #0b1120 0%, #111b33 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Header twinkling stars — overflow:hidden here, not on parent header */
.header-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.header-stars::before,
.header-stars::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: headerStarTwinkle 3s ease-in-out infinite;
}
.header-stars::before {
  top: 12px; left: 15%;
  animation-delay: 0s;
}
.header-stars::after {
  top: 38px; left: 85%;
  animation-delay: 1.5s;
}
@keyframes headerStarTwinkle {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.55; }
}
/* Extra stars via box-shadow on parent */
.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: transparent;
  box-shadow:
    30% 20px 0 0 rgba(255,255,255,0.12),
    45% 45px 0 0 rgba(255,255,255,0.08),
    60% 10px 0 0 rgba(255,255,255,0.15),
    75% 35px 0 0 rgba(255,255,255,0.10),
    20% 50px 0 0 rgba(255,255,255,0.07),
    90% 25px 0 0 rgba(255,255,255,0.13);
  animation: headerStarTwinkle 4s ease-in-out infinite 0.8s;
  opacity: 0.5;
}

[data-theme="light"] .site-header {
  background: rgba(255,251,240,0.82);
  border-bottom-color: rgba(194,155,80,0.15);
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}

.site-logo-mark {
  font-size: 1.2rem;
  color: var(--indigo);
  line-height: 1;
}

.site-logo-text {
  color: var(--text);
  font-family: var(--font-display);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-logo-text span {
  opacity: 0.55;
  font-weight: 400;
}

.site-logo-tagline {
  font-size: 0.52rem;
  color: rgba(210, 205, 230, 0.5);
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-left: -2px;
}

@media (max-width: 480px) {
  .site-logo-tagline { display: none; }
}

/* ── Nav container ── */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Nav separators ── */
.nav-sep {
  display: block;
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.08);
  margin: 0 4px;
  flex-shrink: 0;
}

/* ── Base nav link ── */
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* ── Blog link — discret ── */
.nav-link--blog {
  color: rgba(210, 205, 230, 0.6);
}
.nav-link--blog:hover {
  color: #f0eaff;
  background: rgba(255,255,255,0.04);
}

/* ── Boutique link — violet pill ── */
.nav-link--boutique {
  color: #c4b5fd;
  background: rgba(168, 130, 255, 0.15);
  border-color: rgba(168, 130, 255, 0.25);
}
.nav-link--boutique:hover {
  background: rgba(168, 130, 255, 0.28);
  border-color: rgba(168, 130, 255, 0.40);
  color: #f0eaff;
}

/* ── Product links — lumineux ── */
.nav-link--product {
  color: rgba(230, 225, 245, 0.85);
  font-size: 0.85rem;
}
.nav-link--product:hover {
  color: #f0eaff;
  background: rgba(255,255,255,0.06);
}

/* ── Couple link — rose/rouge pill ── */
.nav-link--couple {
  color: #ff8a8a;
  background: rgba(220, 60, 70, 0.15);
  border-color: rgba(220, 60, 70, 0.3);
}
.nav-link--couple:hover {
  background: rgba(220, 60, 70, 0.28);
  border-color: rgba(220, 60, 70, 0.45);
  color: #f0eaff;
}

/* ── Nav badge "Nouveau" — amber/gold ── */
.nav-badge-new {
  font-family: var(--font-heading);
  font-size: 0.50rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 170, 80, 0.15);
  color: #ffbb77;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  line-height: 1;
  margin-left: 3px;
}

/* ── Nav CTA button — opaque violet ── */
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, #8B5CF6, #a78bfa);
  color: #1a0a2e;
  white-space: nowrap;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 12px rgba(139,92,246,0.35);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(139,92,246,0.5);
}

/* ── Hamburger (mobile) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 25;
}
.nav-hamburger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open .nav-hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open .nav-hamburger__line:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open .nav-hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── STICKY SHOP BAR ────────────────────────────────────────────────── */
.sticky-shop-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(3,7,17,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border2);
  padding: 12px 20px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}
.sticky-shop-bar.visible { transform: translateY(0); pointer-events: auto; }
.sticky-shop-bar__inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sticky-shop-bar__text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text2);
}
.sticky-shop-bar__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.80rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(99,102,241,0.30);
  transition: all 0.18s;
  white-space: nowrap;
}
.sticky-shop-bar__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(99,102,241,0.45);
}
@media (max-width: 480px) {
  .sticky-shop-bar__text { display: none; }
  .sticky-shop-bar__cta { width: 100%; justify-content: center; }
}

/* ─── MILESTONE SHOP CTA (inline after top milestones) ──────────────── */
.milestone-shop-cta {
  max-width: 680px;
  margin: 24px auto 32px;
}
.milestone-shop-cta__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(139,92,246,0.06));
  border: 1.5px solid rgba(245,158,11,0.25);
  border-radius: var(--radius-card);
  transition: border-color 0.2s, transform 0.2s;
}
.milestone-shop-cta__inner:hover {
  border-color: rgba(245,158,11,0.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245,158,11,0.12);
}
.milestone-shop-cta__icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245,158,11,0.10);
  border-radius: var(--radius-sm);
}
.milestone-shop-cta__text { flex: 1; }
.milestone-shop-cta__text strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.milestone-shop-cta__text span {
  font-size: 0.78rem;
  color: var(--muted);
}
.milestone-shop-cta__btn {
  flex-shrink: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a0a00;
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: transform 0.18s, box-shadow 0.18s;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(245,158,11,0.25);
}
.milestone-shop-cta__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,158,11,0.40);
}
@media (max-width: 600px) {
  .milestone-shop-cta__inner { flex-direction: column; text-align: center; gap: 12px; }
  .milestone-shop-cta__btn { width: 100%; text-align: center; display: block; }
}

/* Light theme nav overrides not needed for dark-only header */

/* ── Language toggle ──────────────────────────────────────────────────────── */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text2);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
  -webkit-user-select: none;
  user-select: none;
}

.lang-toggle:hover {
  color: var(--text);
  background: var(--surface2);
  border-color: var(--border2);
  transform: translateY(-1px);
}

.lang-toggle:active {
  transform: translateY(0);
}

[data-theme="light"] .lang-toggle {
  color: #4A3F2E;
  background: rgba(255,254,250,0.7);
  border-color: rgba(194,155,80,0.2);
}

[data-theme="light"] .lang-toggle:hover {
  background: rgba(255,250,235,0.95);
  border-color: rgba(194,105,10,0.3);
  color: #1C1810;
}

/* ── Mobile nav — hamburger + dropdown ── */
@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }
  .nav-sep { display: none; }
  .nav-cta { display: none; }

  /* Mobile nav: slides down from header as a dropdown, not position:fixed */
  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 12px 16px 20px;
    background: linear-gradient(180deg, #0d1528 0%, #111b33 100%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  }
  .site-nav.nav-open {
    display: flex;
  }
  .nav-link {
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }
  .nav-badge-new {
    font-size: 0.55rem;
  }
  .lang-toggle {
    align-self: flex-start;
    margin-top: 12px;
  }
}
@media (max-width: 480px) {
  .site-header { padding: 0 16px; }
  .site-header-inner { height: 56px; }  /* Taller bar so header is clearly visible at a glance */
  .site-logo { gap: 8px; }
  .site-logo-mark { font-size: 1.6rem; }  /* Bigger logo mark — more visible */
  .site-logo-text { font-size: 1.05rem; font-weight: 700; }  /* Bolder text */
  .site-logo-tagline { display: none; }
  /* Ensure hamburger is clearly visible */
  .nav-hamburger { width: 48px; height: 48px; }
  .nav-hamburger__line { background: var(--text); height: 2.5px; }
}

/* ─────────────────────────────────────────────────────────────────────────── */

.blog-showcase {
  position: relative;
  padding: 80px 0 60px;
  margin-top: 40px;
}

.blog-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
}

.blog-showcase-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-showcase-header {
  text-align: center;
  margin-bottom: 48px;
}

.blog-showcase-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.blog-showcase-sub {
  font-size: 1.35rem;
  color: var(--muted);
  font-family: 'Playfair Display', serif;
}

.blog-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border2);
  background: var(--surface2);
}

.blog-card-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(99,102,241,0.12);
  color: var(--indigo);
  margin-bottom: 14px;
}

.blog-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 10px;
}

.blog-card-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.blog-showcase-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--indigo);
  text-decoration: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  transition: background 0.18s ease, color 0.18s ease;
}

.blog-showcase-cta:hover {
  background: rgba(99,102,241,0.08);
  color: #818cf8;
}

.blog-showcase-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-showcase-cta--shop {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15));
  border: 1px solid rgba(99,102,241,0.25);
  color: #818cf8;
}

.blog-showcase-cta--shop:hover {
  background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(139,92,246,0.25));
  border-color: rgba(99,102,241,0.4);
  color: #a5b4fc;
}

[data-theme="light"] .blog-showcase-cta--shop {
  color: #6366f1;
  border-color: rgba(99,102,241,0.3);
}

[data-theme="light"] .blog-showcase-cta--shop:hover {
  background: rgba(99,102,241,0.1);
  color: #4f46e5;
}

/* Blog accent word */
.blog-showcase-accent {
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

@media (max-width: 640px) {
  .blog-showcase-grid {
    grid-template-columns: 1fr;
  }
  .blog-showcase {
    padding: 60px 0 40px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHOP SHOWCASE — homepage product preview
   ═══════════════════════════════════════════════════════════════════════════ */
.shop-showcase {
  position: relative;
  padding: 60px 0 60px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: var(--radius-card);
  max-width: 1000px;
  margin: 40px auto 0;
}

.shop-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,0.35), transparent);
}

.shop-showcase-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.shop-showcase-header {
  text-align: center;
  margin-bottom: 40px;
}

.shop-showcase-sub {
  font-size: 1.15rem;
  color: var(--muted);
}

.shop-showcase-accent {
  background: linear-gradient(135deg, var(--amber), var(--rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.shop-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.shop-preview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.shop-preview-card:hover {
  transform: translateY(-4px);
  border-color: var(--border2);
  background: var(--surface2);
}

.shop-preview-card--amber:hover  { border-color: var(--amber);  box-shadow: 0 12px 40px rgba(245,158,11,0.10); }
.shop-preview-card--indigo:hover { border-color: var(--indigo); box-shadow: 0 12px 40px rgba(99,102,241,0.10); }
.shop-preview-card--violet:hover { border-color: var(--violet); box-shadow: 0 12px 40px rgba(139,92,246,0.10); }
.shop-preview-card--cyan:hover { border-color: var(--cyan); box-shadow: 0 12px 40px rgba(6,182,212,0.10); }

.shop-preview-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  line-height: 1;
}

.shop-preview-visual {
  margin-bottom: 14px;
  color: var(--text2);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.shop-preview-card:hover .shop-preview-visual {
  opacity: 1;
}

.shop-preview-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.shop-preview-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 12px;
  flex: 1;
}

.shop-preview-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.shop-showcase-actions {
  display: flex;
  justify-content: center;
}

.shop-showcase-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a0a00;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 16px rgba(245,158,11,0.30);
}

.shop-showcase-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245,158,11,0.45);
  color: #1a0a00;
}

@media (max-width: 640px) {
  .shop-showcase-grid {
    grid-template-columns: 1fr;
  }
  .shop-showcase {
    padding: 40px 16px;
    margin: 20px 12px 0;
    max-width: none;
  }
}

/* Light mode — shop */
[data-theme="light"] .shop-showcase-cta {
  color: var(--amber);
  border-color: rgba(217,119,6,0.25);
}
[data-theme="light"] .shop-showcase-cta:hover {
  background: rgba(217,119,6,0.08);
  color: #b45309;
}
[data-theme="light"] .shop-preview-card {
  background: rgba(255,254,250,0.92);
  border-color: rgba(194,155,80,0.14);
}
[data-theme="light"] .shop-preview-card:hover {
  background: rgba(255,252,240,0.98);
}

/* Light mode — blog (palette solaire, overridé par :root[data-theme="light"] section principale) */
[data-theme="light"] .blog-card-tag {
  background: rgba(194,105,10,0.09);
  color: #A35608;
}
[data-theme="light"] .blog-card {
  background: rgba(255,254,250,0.92);
  border-color: rgba(194,155,80,0.14);
}
[data-theme="light"] .blog-card:hover {
  background: rgba(255,252,240,0.98);
  border-color: rgba(194,105,10,0.26);
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPARAISON AVEC UN AMI
   ═══════════════════════════════════════════════════════════════════════════ */

.friend-compare-section {
  margin-top: 56px;
}

/* ── En-tête de section ── */
.friend-compare-section .section-head {
  margin-bottom: 28px;
}

/* ── Formulaire compact ── */
.friend-form-card {
  background: linear-gradient(140deg, rgba(99,102,241,0.06), var(--surface));
  border: 1px solid var(--border2);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.friend-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 160px;
}

.friend-form-field label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.friend-form-field input {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
  width: 100%;
}

.friend-form-field input:focus {
  border-color: var(--indigo);
  background: var(--surface3);
}

/* Narrower time field */
.friend-form-field--time {
  flex: 0 1 140px;
  min-width: 120px;
}

/* Name field */
.friend-form-field--name {
  flex: 0 1 180px;
  min-width: 140px;
}

/* ── Bouton Comparer ── */
.btn-compare {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
  flex-shrink: 0;
  align-self: flex-end;
}

.btn-compare:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.45);
}

.btn-compare:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

/* ── Zone de résultat ── */
.friend-compare-result {
  margin-top: 28px;
}

/* Résumé — "N milestones partagés" */
.friend-compare-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: var(--indigo-dim);
  border: 1px solid rgba(99,102,241,0.20);
  margin-bottom: 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  color: var(--text2);
}

.friend-compare-summary strong {
  color: var(--indigo);
  font-weight: 700;
}

.friend-compare-summary .friend-summary-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* ── Grille de cards de comparaison ── */
.friend-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 18px;
}

/* ── Card de comparaison ── */
.friend-compare-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-card);
  padding: 22px 22px 20px;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
  /* Entrée animée */
  opacity: 0;
  transform: translateY(14px);
  animation: fcardReveal 0.40s ease forwards;
}

@keyframes fcardReveal {
  to { opacity: 1; transform: translateY(0); }
}

.friend-compare-card:hover {
  transform: translateY(-2px);
  border-color: var(--border3);
}

/* Barre colorée gauche : simultané = violet, proche = indigo */
.friend-compare-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: var(--indigo);
}

.friend-compare-card.is-simultaneous::before {
  background: linear-gradient(180deg, var(--violet), var(--indigo));
}

/* Badge simultané */
.fcard-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.fcard-badge--simultaneous {
  background: rgba(139,92,246,0.14);
  color: var(--violet);
  border: 1px solid rgba(139,92,246,0.22);
}

.fcard-badge--close {
  background: rgba(99,102,241,0.10);
  color: var(--indigo);
  border: 1px solid rgba(99,102,241,0.18);
}

/* Corps de la card */
.fcard-emoji {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 10px;
}

.fcard-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.fcard-tagline {
  font-size: 0.83rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

/* Rangée user / ami */
.fcard-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fcard-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--surface2);
}

.fcard-row.is-user {
  border-left: 2px solid var(--indigo);
}

.fcard-row.is-friend {
  border-left: 2px solid var(--violet);
}

.fcard-row-who {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  min-width: 52px;
  flex-shrink: 0;
}

.fcard-row.is-user .fcard-row-who {
  color: var(--indigo);
}

.fcard-row.is-friend .fcard-row-who {
  color: var(--violet);
}

.fcard-row-date {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  color: var(--text2);
  flex: 1;
  font-weight: 500;
}

/* Ecart en jours */
.fcard-delta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
}

.fcard-delta-val {
  font-weight: 700;
  color: var(--text2);
}

/* ── État vide ── */
.friend-compare-empty {
  text-align: center;
  padding: 40px 24px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.friend-compare-empty .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

/* ── Animation delay pour staggering ── */
.friend-compare-card:nth-child(1)  { animation-delay: 0ms }
.friend-compare-card:nth-child(2)  { animation-delay: 60ms }
.friend-compare-card:nth-child(3)  { animation-delay: 120ms }
.friend-compare-card:nth-child(4)  { animation-delay: 180ms }
.friend-compare-card:nth-child(5)  { animation-delay: 240ms }
.friend-compare-card:nth-child(6)  { animation-delay: 300ms }
.friend-compare-card:nth-child(7)  { animation-delay: 360ms }
.friend-compare-card:nth-child(8)  { animation-delay: 400ms }

/* ── Bouton "voir tous" ── */
.btn-show-all-pairs {
  display: block;
  margin: 22px auto 0;
  padding: 11px 28px;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text2);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.btn-show-all-pairs:hover {
  background: var(--surface3);
  border-color: var(--border3);
}

/* ── Light mode overrides — friend compare (palette solaire) ── */
[data-theme="light"] .friend-form-card {
  background: linear-gradient(140deg, rgba(3,105,161,0.05), rgba(255,254,250,0.92));
  border-color: rgba(194,155,80,0.18);
}

[data-theme="light"] .friend-form-field input {
  background: rgba(255,255,255,0.95);
  border-color: rgba(180,130,60,0.22);
  color: #1C1810;
}

[data-theme="light"] .friend-form-field input:focus {
  border-color: #C2690A;
  background: #ffffff;
}

[data-theme="light"] .friend-compare-summary {
  background: rgba(194,105,10,0.08);
  border-color: rgba(194,105,10,0.18);
}

[data-theme="light"] .friend-compare-card {
  background: rgba(255,254,250,0.95);
  border-color: rgba(194,155,80,0.16);
}

[data-theme="light"] .friend-compare-card:hover {
  border-color: rgba(194,105,10,0.28);
}

[data-theme="light"] .fcard-row {
  background: rgba(255,248,230,0.60);
}

[data-theme="light"] .btn-show-all-pairs {
  background: rgba(255,254,250,0.92);
  border-color: rgba(194,155,80,0.18);
  color: #4A3F2E;
}

[data-theme="light"] .btn-show-all-pairs:hover {
  background: rgba(255,250,235,0.98);
  border-color: rgba(194,105,10,0.32);
  color: #1C1810;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .friend-form-card {
    padding: 20px;
    gap: 14px;
  }
  .friend-form-field--time,
  .friend-form-field--name {
    flex: 1 1 calc(50% - 7px);
  }
  .btn-compare {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .friend-form-field {
    min-width: 100%;
    flex: 1 1 100%;
  }
  .friend-form-field--time,
  .friend-form-field--name {
    flex: 1 1 100%;
  }
  .friend-compare-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .friend-compare-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ILS SONT NÉS COMME TOI — section "Born Like You"
   ═══════════════════════════════════════════════════════════════════════════ */

#born-like-you-section {
  margin-bottom: 56px;
}

/* ── Grid principale — 3 cards top ───────────────────────────────────────── */
.bly-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

/* Card de base — glassmorphism cohérent avec le reste du site */
.bly-card {
  position: relative;
  background: linear-gradient(140deg, var(--surface2), var(--surface));
  border: 1px solid var(--border2);
  border-radius: var(--radius-card);
  padding: 22px 20px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.bly-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.bly-card:hover {
  transform: translateY(-3px);
  border-color: var(--border3);
  box-shadow: 0 12px 36px rgba(0,0,0,0.22);
}

/* Accent bar gauche — couleur par type de card */
.bly-card::after {
  content: '';
  position: absolute;
  left: 0; top: 16px; bottom: 16px;
  width: 3px;
  border-radius: 0 2px 2px 0;
}

.bly-card--twins::after   { background: linear-gradient(180deg, var(--cyan), var(--indigo)); }
.bly-card--rarity::after  { background: linear-gradient(180deg, var(--violet), var(--rose)); }
.bly-card--event::after   { background: linear-gradient(180deg, var(--amber), var(--emerald)); }

/* Event card — pleine largeur */
.bly-card--event {
  grid-column: 1 / -1;
  background: linear-gradient(140deg, var(--amber-dim), var(--surface));
  border-color: rgba(245,158,11,0.18);
}

.bly-card--twins {
  background: linear-gradient(140deg, var(--cyan-dim), var(--surface));
  border-color: rgba(6,182,212,0.15);
}

.bly-card--rarity {
  background: linear-gradient(140deg, var(--violet-dim), var(--surface));
  border-color: rgba(139,92,246,0.15);
}

/* Icône de la card */
.bly-card-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.1));
}

.bly-card-body {
  flex: 1;
  min-width: 0;
}

.bly-card-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}

.bly-card-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.bly-card-sub {
  font-size: 0.8rem;
  color: var(--text2);
  line-height: 1.5;
}

.bly-card-note {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 3px;
  font-style: italic;
}

/* Jumeaux : grand nombre stylisé */
.bly-twins-count {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}

/* Événement : texte plus grand */
.bly-event-text {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
}

/* ── Barre de rareté ─────────────────────────────────────────────────────── */
.bly-rarity-bar-wrap {
  margin-bottom: 10px;
}

.bly-rarity-bar-track {
  height: 7px;
  background: var(--surface3);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 7px;
}

.bly-rarity-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  /* width set inline; use transform-based grow animation for performance */
  transform-origin: left center;
  animation: blyBarGrow 1.1s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes blyBarGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.bly-rarity-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bly-rarity-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  /* color set inline */
}

.bly-rarity-score {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

/* Chips des facteurs de rareté */
.bly-rarity-factors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.bly-factor-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text2);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.02em;
}

.bly-factor-chip--gold {
  background: var(--amber-dim);
  border-color: rgba(245,158,11,0.35);
  color: var(--amber);
}

/* ── Journée mondiale badge ──────────────────────────────────────────────── */
.bly-worldday-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(245,158,11,0.14), rgba(99,102,241,0.10));
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.bly-worldday-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(245,158,11,0.07), transparent 60%);
  pointer-events: none;
}
.bly-worldday-emoji {
  font-size: 2rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(245,158,11,0.5));
}
.bly-worldday-body {
  flex: 1;
}
.bly-worldday-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 3px;
}
.bly-worldday-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

/* ── Section célébrités ──────────────────────────────────────────────────── */
.bly-celebs-section {
  background: linear-gradient(140deg, var(--indigo-dim), var(--surface));
  border: 1px solid rgba(99,102,241,0.18);
  border-radius: var(--radius-card);
  padding: 22px 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

/* Lueur subtile en haut à gauche */
.bly-celebs-section::before {
  content: '';
  position: absolute;
  top: -40px; left: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.bly-celebs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.bly-celebs-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bly-celebs-count {
  flex-shrink: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--indigo);
  background: var(--indigo-dim);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
}

.bly-celebs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Chip individuelle d'une célébrité */
.bly-celeb-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  /* Appear with stagger */
  animation: blyChipIn 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes blyChipIn {
  from { opacity: 0; transform: scale(0.85) translateY(6px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);   }
}

.bly-celeb-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(99,102,241,0.4);
  background: rgba(99,102,241,0.08);
  box-shadow: 0 4px 16px rgba(99,102,241,0.15);
}

.bly-celeb-emoji {
  font-size: 1.1rem;
  line-height: 1;
}

.bly-celeb-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.bly-celeb-domain {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  padding: 2px 8px;
  background: var(--surface);
  border-radius: var(--radius-pill);
}

.bly-celeb-year {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.bly-no-celeb {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
  padding: 4px 0;
}

/* ── Carte Vie passée ────────────────────────────────────────────────────── */
.bly-pastlife-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, var(--violet-dim), rgba(139,92,246,0.05), var(--surface));
  border: 1px solid rgba(139,92,246,0.22);
  border-radius: var(--radius-card);
  padding: 24px 22px;
}

/* Halo de fond */
.bly-pastlife-card::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(139,92,246,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.bly-pastlife-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.bly-pastlife-icon {
  font-size: 2.4rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(139,92,246,0.3));
}

.bly-pastlife-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}

.bly-pastlife-era {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--violet);
  background: rgba(139,92,246,0.10);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  display: inline-block;
}

.bly-pastlife-job {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.bly-pastlife-job strong {
  color: var(--violet);
  font-style: normal;
}

.bly-pastlife-desc {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.65;
  font-family: 'Inter', sans-serif;
}

/* ── Light mode overrides ────────────────────────────────────────────────── */
:root[data-theme="light"] .bly-worldday-badge {
  background: linear-gradient(135deg, rgba(245,158,11,0.10), rgba(99,102,241,0.06));
  border-color: rgba(217,119,6,0.3);
}
:root[data-theme="light"] .bly-worldday-name {
  color: var(--text);
}

:root[data-theme="light"] .bly-card {
  background: linear-gradient(140deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

:root[data-theme="light"] .bly-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}

:root[data-theme="light"] .bly-card--twins {
  background: linear-gradient(140deg, rgba(6,182,212,0.07), rgba(255,255,255,0.85));
  border-color: rgba(6,182,212,0.18);
}

:root[data-theme="light"] .bly-card--rarity {
  background: linear-gradient(140deg, rgba(139,92,246,0.07), rgba(255,255,255,0.85));
  border-color: rgba(139,92,246,0.18);
}

:root[data-theme="light"] .bly-card--event {
  background: linear-gradient(140deg, rgba(245,158,11,0.07), rgba(255,255,255,0.85));
  border-color: rgba(245,158,11,0.20);
}

:root[data-theme="light"] .bly-celebs-section {
  background: linear-gradient(140deg, rgba(99,102,241,0.06), rgba(255,255,255,0.85));
  border-color: rgba(99,102,241,0.15);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

:root[data-theme="light"] .bly-celeb-chip {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.09);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

:root[data-theme="light"] .bly-celeb-chip:hover {
  background: rgba(99,102,241,0.06);
  border-color: rgba(99,102,241,0.30);
}

:root[data-theme="light"] .bly-pastlife-card {
  background: linear-gradient(140deg, rgba(139,92,246,0.07), rgba(255,255,255,0.85));
  border-color: rgba(139,92,246,0.18);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

:root[data-theme="light"] .bly-celeb-domain {
  background: rgba(0,0,0,0.05);
}

:root[data-theme="light"] .bly-rarity-bar-track {
  background: rgba(0,0,0,0.08);
}

:root[data-theme="light"] .bly-factor-chip {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.10);
}

/* ── Responsive — tablet ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .bly-grid {
    gap: 12px;
  }

  .bly-card {
    padding: 18px 16px;
    gap: 12px;
  }

  .bly-card-icon {
    font-size: 1.5rem;
  }

  .bly-twins-count {
    font-size: 1.5rem;
  }
}

/* ── Responsive — mobile ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .bly-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bly-card--event {
    grid-column: auto;
  }

  .bly-celebs-section {
    padding: 18px 16px;
  }

  .bly-celebs-chips {
    gap: 8px;
  }

  .bly-celeb-chip {
    padding: 7px 11px;
    gap: 6px;
  }

  .bly-celeb-year {
    display: none; /* économiser de l'espace sur mobile */
  }

  .bly-pastlife-card {
    padding: 20px 16px;
  }

  .bly-pastlife-icon {
    font-size: 2rem;
  }
}

/* ── Reduced motion ────────────────────────────────────────────────────────  */
@media (prefers-reduced-motion: reduce) {
  .bly-celeb-chip,
  .bly-rarity-bar-fill {
    animation: none;
  }
  .bly-celeb-chip {
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHART HIT — Hit du jour de ta naissance
   ═══════════════════════════════════════════════════════════════════════════ */

#chart-hit-section {
  padding: 32px 0 8px;
}

.chart-hit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

/* ── Carte pays ──────────────────────────────────────────────────────────── */
.chart-hit-card {
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(var(--chart-accent, 99,102,241), 0.06),
    var(--surface)
  );
  border: 1px solid var(--border2);
  border-radius: var(--radius-card);
  padding: 24px 20px 20px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Barre d'accentuation en haut — couleur par pays via --chart-accent */
.chart-hit-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--chart-accent, var(--indigo)), transparent);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.chart-hit-card:hover {
  transform: translateY(-3px);
  border-color: var(--border3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.chart-hit-card--empty {
  opacity: 0.55;
}

.chart-hit-card--empty:hover {
  transform: none;
}

.chart-hit-flag {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 4px;
}

.chart-hit-country {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.chart-hit-artist {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-top: 4px;
}

.chart-hit-title {
  font-size: 0.88rem;
  color: var(--text2);
  font-style: italic;
  margin: 4px 0 14px;
  line-height: 1.4;
}

.chart-hit-unavailable {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 8px;
}

/* ── Bouton YouTube ──────────────────────────────────────────────────────── */
.chart-hit-listen {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 0, 0, 0.12);
  border: 1px solid rgba(255, 0, 0, 0.25);
  color: #ff4444;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.80rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.chart-hit-listen:hover {
  background: rgba(255, 0, 0, 0.22);
  border-color: rgba(255, 0, 0, 0.45);
  transform: scale(1.03);
}

.chart-hit-listen:focus-visible {
  outline: 2px solid #ff4444;
  outline-offset: 3px;
}

/* ── Light mode overrides ────────────────────────────────────────────────── */
:root[data-theme="light"] .chart-hit-card {
  background: linear-gradient(145deg, rgba(99,102,241,0.05), rgba(255,255,255,0.8));
  border-color: rgba(0,0,0,0.10);
}

:root[data-theme="light"] .chart-hit-card:hover {
  border-color: rgba(0,0,0,0.18);
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .chart-hit-grid {
    grid-template-columns: 1fr;
  }
  .chart-hit-card {
    padding: 20px 16px 18px;
  }
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .chart-hit-card,
  .chart-hit-listen {
    transition: none;
  }
  .chart-hit-card:hover,
  .chart-hit-listen:hover {
    transform: none;
  }
}

/* ── POSTER BUTTON ─────────────────────────────────────────────────────────── */
.poster-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 40px auto 20px;
  padding: 0 20px;
}

.btn-poster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, #d4af37 0%, #f0cc55 45%, #c49a20 100%);
  color: #1a1200;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  /* Subtle gold glow */
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.25),
    0 4px 16px rgba(212,175,55,0.30),
    0 1px 3px rgba(0,0,0,0.30);
  transition:
    transform 0.22s cubic-bezier(0.34,1.56,0.64,1),
    box-shadow 0.22s ease,
    filter 0.22s ease;
  position: relative;
  overflow: hidden;
}

/* Shimmer gloss sweep */
.btn-poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255,255,255,0.38) 50%,
    transparent 65%
  );
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}

.btn-poster:hover::before {
  transform: translateX(100%);
}

.btn-poster:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.40),
    0 8px 28px rgba(212,175,55,0.45),
    0 2px 6px rgba(0,0,0,0.25);
  filter: brightness(1.06);
}

.btn-poster:active {
  transform: translateY(-1px) scale(1.00);
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.30),
    0 3px 10px rgba(212,175,55,0.30);
  transition-duration: 0.08s;
}

.btn-poster:focus-visible {
  outline: 3px solid #d4af37;
  outline-offset: 4px;
}

.btn-poster:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.poster-btn-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.poster-hint {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.80rem;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.02em;
}

/* Light mode */
:root[data-theme="light"] .btn-poster {
  color: #2a1a00;
  box-shadow:
    0 0 0 1px rgba(180,140,20,0.30),
    0 4px 16px rgba(180,140,20,0.25),
    0 1px 3px rgba(0,0,0,0.12);
}

:root[data-theme="light"] .btn-poster:hover {
  box-shadow:
    0 0 0 1px rgba(180,140,20,0.45),
    0 8px 28px rgba(180,140,20,0.35),
    0 2px 6px rgba(0,0,0,0.10);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .btn-poster,
  .btn-poster::before {
    transition: none;
  }
  .btn-poster:hover {
    transform: none;
    filter: brightness(1.05);
  }
  .btn-poster::before {
    display: none;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   POSTER CTA CARD — link to /poster-personnalise from index results
   ═══════════════════════════════════════════════════════════════════════════ */
.poster-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.poster-cta-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.10));
  border: 1px solid rgba(99,102,241,0.20);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  max-width: 520px;
  width: 100%;
  transition: all 0.22s;
}
.poster-cta-card:hover {
  border-color: rgba(99,102,241,0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.18);
}
.poster-cta-visual {
  flex-shrink: 0;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(99,102,241,0.12);
  border-radius: 12px;
  color: var(--indigo);
}
.poster-cta-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.poster-cta-text strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}
.poster-cta-text span {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--text2);
  line-height: 1.4;
}
.poster-cta-arrow {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.18s;
}
.poster-cta-card:hover .poster-cta-arrow {
  transform: translateX(4px);
  color: var(--indigo);
}
@media (max-width: 480px) {
  .poster-cta-card { padding: 14px 16px; gap: 12px; }
  .poster-cta-visual { width: 44px; height: 44px; }
  .poster-cta-visual svg { width: 28px; height: 28px; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   BOUTIQUE & CART
   Composants partagés entre index.html et boutique.html
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Floating cart button (FAB) ────────────────────────────────────────── */
.cart-fab {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: rgba(15, 12, 28, 0.72);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  color: var(--text);
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.18),
    0 8px 32px rgba(0,0,0,0.55),
    0 2px 8px rgba(99,102,241,0.12);
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.22s ease, border-color 0.22s ease;
  /* position: fixed already set above */
}

.cart-fab:hover {
  transform: translateY(-4px) scale(1.07);
  border-color: var(--border3);
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.35),
    0 12px 40px rgba(0,0,0,0.60),
    0 4px 16px rgba(99,102,241,0.22);
}

.cart-fab:active {
  transform: translateY(-1px) scale(1.02);
  transition-duration: 0.08s;
}

.cart-fab:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 4px;
}

/* Badge nombre d'articles */
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--rose);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  border: 2px solid var(--bg);
  pointer-events: none;
  animation: cartBadgePop 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes cartBadgePop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ── Cart overlay ──────────────────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3,7,17,0.65);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0s 0.28s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
  transition: opacity 0.28s ease, visibility 0s 0s;
}

/* ── Cart drawer ───────────────────────────────────────────────────────── */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(380px, 100vw);
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  background: rgba(10, 8, 24, 0.88);
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border-left: 1px solid var(--border2);
  box-shadow: -12px 0 60px rgba(0,0,0,0.6), -2px 0 12px rgba(99,102,241,0.06);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.32s;
  will-change: transform;
  pointer-events: none;
  visibility: hidden;
  contain: layout;
}

.cart-drawer.open {
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
}

/* Accent line at top */
.cart-drawer::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--indigo), var(--violet));
  flex-shrink: 0;
}

/* ── Drawer header ─────────────────────────────────────────────────────── */
.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-drawer__header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0;
}

.cart-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--text2);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  font-size: 1.25rem;
  line-height: 1;
}

.cart-drawer__close:hover {
  background: var(--rose-dim);
  border-color: rgba(244,63,94,0.30);
  color: var(--rose);
}

.cart-drawer__close:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

/* ── Drawer body (scroll) ──────────────────────────────────────────────── */
.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
}

.cart-drawer__body::-webkit-scrollbar {
  width: 4px;
}
.cart-drawer__body::-webkit-scrollbar-track { background: transparent; }
.cart-drawer__body::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* ── Cart empty state ──────────────────────────────────────────────────── */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 10px;
}

.cart-empty__icon {
  color: var(--muted);
  margin-bottom: 4px;
}

.cart-empty__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text2);
  margin: 0;
}

.cart-empty__sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.cart-empty__link {
  margin-top: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--indigo);
  text-decoration: none;
  border-bottom: 1px solid rgba(99,102,241,0.3);
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.cart-empty__link:hover {
  color: var(--violet);
  border-color: rgba(139,92,246,0.5);
}

/* ── Cart item ─────────────────────────────────────────────────────────── */
.cart-item {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child { border-bottom: none; }

.cart-item__emoji {
  font-size: 1.4rem;
  text-align: center;
  line-height: 1;
}

.cart-item__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cart-item__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item__price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--text2);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cart-qty-btn:hover {
  background: var(--indigo-dim);
  border-color: rgba(99,102,241,0.3);
  color: var(--text);
}

.cart-qty-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  min-width: 16px;
  text-align: center;
}

.cart-item__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.cart-item__remove:hover {
  background: var(--rose-dim);
  color: var(--rose);
}

/* ── Cart footer ───────────────────────────────────────────────────────── */
.cart-drawer__footer {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.90rem;
  color: var(--text2);
}

.cart-drawer__total strong {
  font-size: 1.10rem;
  font-weight: 700;
  color: var(--text);
}

.cart-drawer__checkout {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--violet) 100%);
  color: #fff;
  border: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.93rem;
  font-weight: 600;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.22s ease;
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}

.cart-drawer__checkout:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px rgba(99,102,241,0.50);
}

/* ── WRAPPED CTA (top of results) ─────────────────────────────────────── */
.wrapped-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px auto;
  max-width: 420px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(244,63,94,0.12), rgba(139,92,246,0.08));
  border: 1.5px solid rgba(244,63,94,0.35);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  animation: wrappedGlow 3s ease-in-out infinite;
}
@keyframes wrappedGlow {
  0%, 100% { box-shadow: 0 2px 12px rgba(244,63,94,0.1); }
  50% { box-shadow: 0 4px 24px rgba(244,63,94,0.2); }
}
.wrapped-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(244,63,94,0.2);
  border-color: rgba(244,63,94,0.5);
}
.wrapped-cta__badge {
  position: absolute;
  top: -1px;
  right: 16px;
  background: var(--rose);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px 2px;
  border-radius: 0 0 6px 6px;
}
.wrapped-cta__content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.wrapped-cta__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.wrapped-cta__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.wrapped-cta__text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.wrapped-cta__sub {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wrapped-cta__arrow {
  flex-shrink: 0;
  color: var(--rose);
  opacity: 0.7;
  transition: transform 0.25s, opacity 0.25s;
}
.wrapped-cta:hover .wrapped-cta__arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* ── Hero CTAs (Wrapped + Couple) — prominent after results ────────────── */
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px auto 28px;
  max-width: 480px;
  animation: heroCtasReveal 0.6s cubic-bezier(.22,.68,0,1.2) both;
}
@keyframes heroCtasReveal {
  0%   { opacity: 0; transform: translateY(30px) scale(0.97); }
  60%  { opacity: 1; transform: translateY(-4px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-cta-big {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.hero-cta-big:hover {
  transform: translateY(-3px) scale(1.01);
}
.hero-cta-big:active {
  transform: scale(0.98);
}

/* ── Wrapped variant ── */
.hero-cta-big--wrapped {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.12), rgba(244,63,94,0.08));
  border: 2px solid rgba(99,102,241,0.45);
  box-shadow: 0 4px 20px rgba(99,102,241,0.15), 0 0 0 1px rgba(99,102,241,0.1);
  animation: wrappedCtaPulse 3s ease-in-out infinite;
}
.hero-cta-big--wrapped:hover {
  border-color: rgba(99,102,241,0.7);
  box-shadow: 0 8px 40px rgba(99,102,241,0.25), 0 0 60px rgba(139,92,246,0.1);
}
@keyframes wrappedCtaPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(99,102,241,0.15), 0 0 0 1px rgba(99,102,241,0.1); }
  50%      { box-shadow: 0 6px 30px rgba(99,102,241,0.25), 0 0 0 2px rgba(139,92,246,0.15); }
}

/* shimmer sweep */
.hero-cta-big__shimmer {
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: ctaShimmerSweep 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaShimmerSweep {
  0%   { left: -100%; }
  40%  { left: 200%; }
  100% { left: 200%; }
}

/* ── Couple variant ── */
.hero-cta-big--couple {
  background: linear-gradient(135deg, rgba(244,63,94,0.12), rgba(251,113,133,0.08), transparent 80%);
  border: 1.5px solid rgba(244,63,94,0.35);
  box-shadow: 0 2px 12px rgba(244,63,94,0.1);
}
.hero-cta-big--couple:hover {
  border-color: rgba(244,63,94,0.6);
  box-shadow: 0 8px 30px rgba(244,63,94,0.2);
}

/* ── Shared elements ── */
.hero-cta-big__icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}
.hero-cta-big--wrapped .hero-cta-big__icon {
  animation: wrappedIconBounce 2s ease-in-out infinite;
}
@keyframes wrappedIconBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-4px) scale(1.1); }
}
.hero-cta-big--couple .hero-cta-big__icon {
  animation: coupleHeartPulse 1.2s ease-in-out infinite;
}

.hero-cta-big__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero-cta-big__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.2;
}
.hero-cta-big--wrapped .hero-cta-big__title {
  background: linear-gradient(135deg, #818CF8, #A78BFA, #FB7185);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-cta-big--couple .hero-cta-big__title {
  background: linear-gradient(135deg, #F43F5E, #FB7185);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-cta-big__sub {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.hero-cta-big__arrow {
  flex-shrink: 0;
  opacity: 0.5;
  transition: transform 0.25s, opacity 0.25s;
}
.hero-cta-big--wrapped .hero-cta-big__arrow { color: #818CF8; }
.hero-cta-big--couple  .hero-cta-big__arrow { color: #F43F5E; }

/* Share card variant */
.hero-cta-big--sharecard {
  background: linear-gradient(135deg, rgba(245,158,11,0.10), rgba(249,115,22,0.06), transparent 80%);
  border: 1.5px solid rgba(245,158,11,0.30);
  box-shadow: 0 2px 12px rgba(245,158,11,0.08);
}
.hero-cta-big--sharecard:hover {
  border-color: rgba(245,158,11,0.55);
  box-shadow: 0 8px 30px rgba(245,158,11,0.18);
}
.hero-cta-big--sharecard .hero-cta-big__title {
  background: linear-gradient(135deg, #F59E0B, #F97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-cta-big--sharecard .hero-cta-big__arrow { color: #F59E0B; }

.hero-cta-big:hover .hero-cta-big__arrow {
  transform: translateX(5px);
  opacity: 1;
}

@media (max-width: 480px) {
  .hero-ctas { margin: 20px 0 24px; }
  .hero-cta-big { padding: 16px 18px; gap: 14px; }
  .hero-cta-big__icon { font-size: 1.7rem; }
  .hero-cta-big__title { font-size: 1.05rem; }
  .hero-cta-big__sub { font-size: 0.75rem; }
}

/* ── Gift trigger banner ───────────────────────────────────────────────── */
.gift-trigger {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.06));
  border: 1px solid rgba(99,102,241,0.22);
  border-radius: var(--radius-card);
  margin: 8px 0 20px;
  transition: border-color 0.22s ease, background 0.22s ease;
}

.gift-trigger:hover {
  border-color: rgba(99,102,241,0.38);
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.09));
}

.gift-trigger__icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
}

.gift-trigger__text {
  flex: 1;
  min-width: 0;
}

.gift-trigger__text strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.gift-trigger__text p {
  font-size: 0.80rem;
  color: var(--text2);
  margin: 0;
  line-height: 1.5;
}

.gift-trigger__cta {
  flex-shrink: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.80rem;
  font-weight: 600;
  color: var(--indigo);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(99,102,241,0.30);
  background: rgba(99,102,241,0.08);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.gift-trigger__cta:hover {
  background: rgba(99,102,241,0.18);
  border-color: rgba(99,102,241,0.50);
  color: var(--violet);
}

/* ── Boutique page — product grid ──────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 0 48px;
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ── Product card ──────────────────────────────────────────────────────── */
.product-card {
  position: relative;
  background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--border2);
  border-radius: var(--radius-card);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), border-color 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

/* Top accent gradient per card */
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--card-accent, var(--indigo)), transparent);
}

/* Subtle glow blob in the corner */
.product-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--card-glow, rgba(99,102,241,0.15)) 0%, transparent 70%);
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border3);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35), 0 0 0 1px var(--card-accent, rgba(99,102,241,0.2));
}

/* Card variants */
.product-card--mug {
  --card-accent: var(--amber);
  --card-glow: rgba(245,158,11,0.15);
}
.product-card--poster {
  --card-accent: var(--indigo);
  --card-glow: rgba(99,102,241,0.15);
}
.product-card--premium {
  --card-accent: var(--violet);
  --card-glow: rgba(139,92,246,0.15);
}

/* Badge */
.product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
}

.product-badge--amber {
  color: var(--amber);
  background: var(--amber-dim);
  border-color: rgba(245,158,11,0.30);
}
.product-badge--indigo {
  color: var(--indigo);
  background: var(--indigo-dim);
  border-color: rgba(99,102,241,0.30);
}
.product-badge--violet {
  color: var(--violet);
  background: var(--violet-dim);
  border-color: rgba(139,92,246,0.30);
}

/* Card emoji icon */
.product-icon {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}

.product-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.product-desc {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.6;
  margin: 0 0 20px;
  flex: 1;
}

.product-price {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.product-price sup {
  font-size: 0.65em;
  font-weight: 500;
  vertical-align: super;
  letter-spacing: 0;
}

.product-price sub {
  font-size: 0.52em;
  font-weight: 500;
  vertical-align: baseline;
  color: var(--text2);
  letter-spacing: 0;
}

/* Product CTA button */
.btn-product {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.20s ease, border-color 0.20s ease, color 0.20s ease, transform 0.20s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  overflow: hidden;
}

.btn-product::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--card-accent, var(--indigo)) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.20s ease;
}

.btn-product:hover {
  border-color: var(--card-accent, var(--indigo));
  color: #fff;
  transform: translateY(-1px);
}

.btn-product:hover::before { opacity: 0.18; }

.btn-product:active {
  transform: translateY(0);
  transition-duration: 0.08s;
}

.btn-product:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}

/* Added state */
.btn-product.btn-added {
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.4);
  color: var(--emerald);
}

/* ── How it works (3 steps) ────────────────────────────────────────────── */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 0 48px;
}

@media (max-width: 600px) {
  .how-it-works { grid-template-columns: 1fr; gap: 12px; }
}

.hiw-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  gap: 10px;
  position: relative;
}

/* Connector line between steps */
.hiw-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -12px;
  width: 24px;
  height: 1px;
  background: var(--border2);
}

@media (max-width: 600px) {
  .hiw-step:not(:last-child)::after { display: none; }
}

.hiw-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--indigo-dim);
  border: 1px solid rgba(99,102,241,0.25);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--indigo);
}

.hiw-step__text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text2);
  line-height: 1.4;
}

/* ── Boutique page — page header ────────────────────────────────────────── */
.boutique-hero {
  text-align: center;
  padding: 60px 0 48px;
}

.boutique-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid rgba(245,158,11,0.25);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.boutique-hero__title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.18;
}

.boutique-hero__title span {
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.boutique-hero__sub {
  font-size: 1.02rem;
  color: var(--text2);
  max-width: 440px;
  margin: 0 auto 0;
  line-height: 1.6;
}

/* Section heading on boutique page */
.boutique-section-head {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

/* ── Checkout mockup modal ─────────────────────────────────────────────── */
.checkout-mockup-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3,7,17,0.70);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.18s ease;
}

.checkout-mockup-panel {
  background: rgba(14, 10, 30, 0.95);
  border: 1px solid var(--border2);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}

.checkout-mockup-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--indigo), var(--violet));
}

.checkout-mockup-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.checkout-mockup-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
}

.checkout-mockup-msg {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.6;
  margin: 0 0 24px;
}

.checkout-mockup-close {
  min-width: 140px;
}

/* ── Light mode overrides ──────────────────────────────────────────────── */
:root[data-theme="light"] .cart-fab {
  background: rgba(255,255,255,0.82);
  border-color: rgba(0,0,0,0.10);
  color: #1E293B;
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.15),
    0 8px 32px rgba(0,0,0,0.15);
}

:root[data-theme="light"] .cart-drawer {
  background: rgba(250,251,255,0.94);
  border-left-color: rgba(0,0,0,0.08);
}

:root[data-theme="light"] .cart-overlay {
  background: rgba(15,20,50,0.45);
}

:root[data-theme="light"] .product-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.90) 0%, rgba(240,242,255,0.80) 100%);
  border-color: rgba(0,0,0,0.10);
}

:root[data-theme="light"] .gift-trigger {
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(139,92,246,0.04));
  border-color: rgba(99,102,241,0.18);
}

/* ── Reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .cart-fab,
  .cart-drawer,
  .cart-overlay,
  .product-card,
  .btn-product,
  .gift-trigger__cta {
    transition: none;
  }

  .cart-fab:hover,
  .product-card:hover {
    transform: none;
  }

  .cart-badge {
    animation: none;
  }

  .checkout-mockup-modal {
    animation: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESULT CHAPTERS — Chapitres thématiques résultats
   ═══════════════════════════════════════════════════════════ */

.result-chapter {
  border-radius: var(--radius-card);
  padding: 40px 24px;
  margin: 16px 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-top: 2px solid var(--chapter-accent);
  background: var(--chapter-bg);
}

/* Bannière de chapitre : ─── ⏱ TES MILESTONES ─── */
.chapter-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.chapter-banner::before,
.chapter-banner::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--chapter-accent);
  opacity: 0.6;
}
.chapter-banner-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--chapter-accent-text);
  opacity: 0.9;
}

/* Variables par chapitre */
.chapter-milestones {
  --chapter-bg: rgba(79, 70, 229, 0.08);
  --chapter-accent: rgba(99, 102, 241, 0.35);
  --chapter-accent-text: #818cf8;
}
.chapter-profil {
  --chapter-bg: rgba(139, 92, 246, 0.08);
  --chapter-accent: rgba(167, 139, 250, 0.35);
  --chapter-accent-text: #a78bfa;
}
.chapter-univers {
  --chapter-bg: rgba(30, 41, 59, 0.35);
  --chapter-accent: rgba(148, 163, 184, 0.25);
  --chapter-accent-text: #94a3b8;
}
.chapter-culture {
  --chapter-bg: rgba(180, 120, 20, 0.08);
  --chapter-accent: rgba(251, 191, 36, 0.35);
  --chapter-accent-text: #fbbf24;
}
.chapter-partage {
  --chapter-bg: rgba(51, 65, 85, 0.25);
  --chapter-accent: rgba(100, 116, 139, 0.35);
  --chapter-accent-text: #94a3b8;
}

/* Mobile : réduire padding */
@media (max-width: 600px) {
  .result-chapter {
    padding: 28px 12px;
    border-radius: var(--radius-sm);
    margin: 10px 0;
  }
}

/* ── VALIDATION TOASTS ─────────────────────────────────────────────────── */
#validation-toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 90vw;
}
.validation-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: 'Space Grotesk', sans-serif;
  color: #fff;
  pointer-events: auto;
  animation: vtoastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.validation-toast--error {
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(244, 63, 94, 0.4);
}
.validation-toast--success {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.validation-toast--exit {
  animation: vtoastOut 0.4s ease forwards;
}
.validation-toast__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.validation-toast__msg {
  line-height: 1.4;
}
@keyframes vtoastIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes vtoastOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-12px); }
}

/* ── COOKIE CONSENT BANNER ─────────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  padding: 16px 24px;
  background: rgba(10, 8, 24, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text2, #CBD5E1);
  font-family: 'Space Grotesk', sans-serif;
}
#cookie-banner[hidden] {
  display: none !important;
}
#cookie-banner a {
  color: var(--indigo, #6366F1);
  text-decoration: underline;
}
#cookie-banner button {
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}
#cookie-banner button:hover { opacity: 0.85; }
.cookie-accept {
  background: var(--indigo, #6366F1);
  color: #fff;
}
.cookie-refuse {
  background: rgba(255,255,255,0.08);
  color: var(--text2, #CBD5E1);
}
@media (max-width: 600px) {
  #cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }
  #cookie-banner p {
    font-size: 0.78rem;
    line-height: 1.4;
  }
  #cookie-banner button {
    width: 100%;
    padding: 12px 20px;
    min-height: 44px;
  }
}

/* ── LEGAL PAGES ──────────────────────────────────────────────────────── */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  color: var(--text, #F1F5F9);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.7;
}
.legal-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--indigo, #6366F1), var(--violet, #8B5CF6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.legal-page .legal-date {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 32px;
}
.legal-page h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  color: var(--amber, #F59E0B);
  margin: 32px 0 12px;
}
.legal-page p, .legal-page li {
  color: var(--text2, #CBD5E1);
  margin-bottom: 12px;
}
.legal-page ul {
  padding-left: 20px;
}
.legal-page a {
  color: var(--indigo, #6366F1);
}
.legal-back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.legal-back:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE PERFORMANCE — reduce GPU-heavy effects on small screens
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* ── Full-width layout fix — prevent content from being narrower than viewport ── */
  .wrap { padding: 0 16px; }
  .hero { max-width: 100%; }
  .hero-poster-banner { max-width: 100%; white-space: normal; }
  .couple-hero-banner { max-width: 100%; }
  .blog-showcase { overflow: hidden; }
  .shop-showcase { overflow: hidden; }
  footer { overflow-wrap: break-word; word-break: break-word; }

  /* ── Hero pseudo-elements: scale down to prevent viewport overflow ── */
  /* Desktop: ::before is 560px wide at left:-120px, ::after is 480px at right:-100px */
  /* On mobile these extend far beyond viewport width → contain them */
  .hero::before {
    width: 100%;
    left: 0;
    top: -40px;
    transform: rotate(-22deg) translateX(-20%);
    animation: none;    /* Kill animation to save GPU on mobile */
  }
  .hero::after {
    width: 100%;
    right: 0;
    bottom: -20px;
    transform: rotate(-18deg) translateX(20%);
    animation: none;
  }

  /* Reduce blur intensity — heavy on mobile GPU */
  .form-card {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  /* No backdrop-filter on .site-header — creates containing block that clips position:absolute nav */
  /* Simplify cosmic background on mobile */
  .cnebula { display: none; }
  .cshooter--grand { display: none; }
  /* Reduce box-shadow complexity */
  .stat-pill:hover { box-shadow: none; transform: none; }
  .blog-card:hover { transform: none; }
}

/* Extra performance on very small/slow devices */
@media (max-width: 480px) {
  body::before { animation: none; }
  .aurora-layer { animation: none; opacity: 0.5; }
  /* Ensure the fixed nebula background doesn't create layout side-effects */
  body::before { width: 100vw; max-width: 100vw; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESULTS REDESIGN — Summary, Teasers, CTAs
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Results Summary Navigation ────────────────────────────────────────── */
.results-summary {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.results-summary__title {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 16px;
}
.results-summary__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.summary-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text2);
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.summary-link:hover {
  background: var(--surface2);
  border-color: var(--border2);
  color: var(--text);
  transform: translateY(-1px);
}
.summary-link__icon {
  font-size: 0.9rem;
}

/* ── Astro Teaser (compact) ────────────────────────────────────────────── */
.astro-teaser {
  max-width: 680px;
  margin: 0 auto 40px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-align: center;
}
.astro-teaser__header {
  margin-bottom: 20px;
}
.astro-teaser__header .section-head {
  margin-bottom: 6px;
}
.astro-teaser__signs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.astro-teaser__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-pill);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.astro-teaser__emoji {
  font-size: 1.2rem;
}
.astro-teaser__type {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 2px;
}
.astro-teaser__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(99,102,241,0.12));
  border: 1px solid rgba(139,92,246,0.30);
  border-radius: var(--radius-pill);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #C4B5FD;
  text-decoration: none;
  transition: all 0.18s ease;
}
.astro-teaser__cta:hover {
  background: linear-gradient(135deg, rgba(139,92,246,0.22), rgba(99,102,241,0.22));
  border-color: rgba(139,92,246,0.50);
  transform: translateY(-1px);
}

/* ── Sky Map CTA Block ─────────────────────────────────────────────────── */
.sky-cta {
  max-width: 680px;
  margin: 0 auto 48px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(6,182,212,0.06));
  border: 1px solid rgba(99,102,241,0.20);
  border-radius: var(--radius-card);
  text-align: center;
}
.sky-cta__content {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  text-align: left;
}
.sky-cta__icon {
  font-size: 2.4rem;
  flex-shrink: 0;
}
.sky-cta__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.sky-cta__desc {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.5;
}
.sky-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(99,102,241,0.30);
  transition: all 0.18s ease;
}
.sky-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99,102,241,0.45);
}

/* ── Top Milestones Intro ──────────────────────────────────────────────── */
.top-milestones-intro {
  text-align: center;
  margin-bottom: 28px;
}

/* ── Planet Grid Inline (horizontal scroll on mobile) ──────────────────── */
.planet-grid--inline {
  display: flex !important;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.planet-grid--inline .planet-card {
  flex: 0 0 auto;
  min-width: 120px;
  scroll-snap-align: start;
}
.planet-grid--inline::-webkit-scrollbar {
  height: 4px;
}
.planet-grid--inline::-webkit-scrollbar-track {
  background: transparent;
}
.planet-grid--inline::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 2px;
}

/* Duplicate .section-head/.section-sub removed — defined at line ~1370 */

/* ── Mobile responsive ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .results-summary__links { gap: 6px; }
  .summary-link { padding: 6px 12px; font-size: 0.72rem; }
  .astro-teaser { padding: 20px 16px; }
  .astro-teaser__pill { padding: 8px 14px; font-size: 0.78rem; }
  .sky-cta { padding: 20px 16px; }
  .sky-cta__content { flex-direction: column; text-align: center; }
  .sky-cta__icon { font-size: 2rem; }
  .section-head { font-size: 1.2rem; }
  .section-sub { font-size: 0.82rem; }
}

/* ── City Autocomplete ─────────────────────────────────────────────────── */
.city-ac-wrapper {
  position: relative;
  width: 100%;
}

.city-ac-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #1a1a2e;
  border: 1px solid rgba(99,102,241,0.35);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  list-style: none;
  margin: 0;
  padding: 4px;
  max-height: 240px;
  overflow-y: auto;
}

.city-ac-dropdown.city-ac-open {
  display: block;
}

.city-ac-item {
  padding: 9px 12px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.3;
  transition: background 0.12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.city-ac-item:hover,
.city-ac-item.city-ac-active {
  background: rgba(99,102,241,0.25);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Couple page — Noces, milestones, form
   ═══════════════════════════════════════════════════════════════════════════ */

/* Type toggle */
.couple-type-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.couple-type-btn {
  flex: 1;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-card, 14px);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

.couple-type-btn.active {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.40);
  color: var(--text);
  box-shadow: 0 0 16px rgba(99,102,241,0.10);
}

.couple-type-btn:hover:not(.active) {
  border-color: rgba(255,255,255,0.15);
  color: var(--text2);
  background: rgba(255,255,255,0.06);
}

/* Names row */
.couple-names-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 8px;
}

@media (max-width: 480px) {
  .couple-names-row { grid-template-columns: 1fr; gap: 14px; }
}

/* Age hero */
/* couple-age-hero: base styles moved to COUPLE PAGE POLISH v2 section below */

/* ── Collapsible sections (couple page) ────────────────────────────── */
.couple-section {
  margin: 16px 0;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s;
}
.couple-section:hover {
  border-color: var(--border2);
}
.couple-section__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  transition: background 0.15s;
}
.couple-section__toggle:hover {
  background: var(--surface2);
}
.couple-section__icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}
.couple-section__title {
  flex: 1;
}
.couple-section__chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  opacity: 0.5;
}
.couple-section[data-open="false"] .couple-section__chevron {
  transform: rotate(-90deg);
}
.couple-section[data-open="true"] .couple-section__chevron {
  transform: rotate(0deg);
}
.couple-section__body {
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 20px;
}
.couple-section[data-open="false"] .couple-section__body {
  padding-top: 0;
  padding-bottom: 0;
}
.couple-section[data-open="true"] .couple-section__body {
  padding-bottom: 20px;
}

/* Poster CTA card (couple) */
.couple-poster-cta,
.couple-tarot-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.12));
  border: 1px solid rgba(139,92,246,0.18);
}
.couple-tarot-cta {
  background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(245,158,11,0.08));
  border-color: rgba(139,92,246,0.15);
}
.couple-poster-cta__visual,
.couple-tarot-cta__visual {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(139,92,246,0.12);
  color: var(--violet);
}
.couple-tarot-cta__visual {
  background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(245,158,11,0.12));
  color: var(--amber);
}
.couple-poster-cta__text,
.couple-tarot-cta__text {
  flex: 1;
}
.couple-poster-cta__text strong,
.couple-tarot-cta__text strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.couple-poster-cta__text p,
.couple-tarot-cta__text p {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.5;
  margin: 0;
}
.couple-poster-cta__btn,
.couple-tarot-cta__btn {
  flex-shrink: 0;
  width: auto;
  padding: 12px 24px;
  font-size: 0.92rem;
  text-decoration: none;
}

@media (max-width: 640px) {
  .couple-poster-cta,
  .couple-tarot-cta {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .couple-poster-cta__btn,
  .couple-tarot-cta__btn {
    width: 100%;
  }
  .couple-section__toggle {
    padding: 14px 16px;
    font-size: 0.95rem;
  }
  .couple-section__body {
    padding: 0 16px;
  }
  .couple-section[data-open="true"] .couple-section__body {
    padding-bottom: 16px;
  }
}

/* Share section */
.couple-share-section {
  text-align: center;
  margin: 40px 0;
}

/* ── CTA Button base (couple + shared) ──────────────────────────────── */
.cta-btn {
  width: 100%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 28px;
  border: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 24px rgba(99,102,241,0.40);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: rgba(99,102,241,0.3);
  touch-action: manipulation;
  position: relative;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99,102,241,0.55);
}
.cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(99,102,241,0.35);
}

.cta-btn--secondary {
  background: var(--surface2);
  border: 1px solid var(--border2);
  box-shadow: none;
}

.cta-btn--secondary:hover {
  border-color: var(--indigo);
  background: var(--indigo-dim);
  box-shadow: 0 4px 16px rgba(99,102,241,0.20);
}

/* Poster CTA — gift section */
.couple-cta-poster {
  margin-bottom: 48px;
}
.couple-cta-poster .sky-cta {
  text-decoration: none;
  display: block;
  background: linear-gradient(135deg, rgba(244,63,94,0.06), rgba(236,72,153,0.04), rgba(99,102,241,0.06));
  border: 1px solid rgba(244,63,94,0.18);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  transition: transform 0.25s cubic-bezier(.22,1,.36,1), border-color 0.25s, box-shadow 0.25s;
  will-change: transform;
}
.couple-cta-poster .sky-cta:hover {
  transform: translateY(-3px);
  border-color: rgba(244,63,94,0.35);
  box-shadow: 0 12px 40px rgba(244,63,94,0.12), 0 0 0 1px rgba(244,63,94,0.08);
}
.couple-cta-poster .sky-cta__content {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
  text-align: left;
}
.couple-cta-poster .sky-cta__icon {
  font-size: 2.6rem;
  flex-shrink: 0;
}
.couple-cta-poster .sky-cta strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}
.couple-cta-poster .sky-cta p {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 560px) {
  .couple-cta-poster .sky-cta { padding: 22px 18px; }
  .couple-cta-poster .sky-cta__content { flex-direction: column; text-align: center; }
}

/* ── Couple lifestats card animations ───────────────────────────────── */

/* Kiss bounce on bisous card */
@keyframes kiss-bounce {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(0.95); }
  45% { transform: scale(1.08); }
  60% { transform: scale(1); }
}
.ls-kiss-anim .ls-emoji {
  animation: kiss-bounce 2s ease-in-out infinite;
  will-change: transform;
}

/* Romantic pulse on je t'aime card */
@keyframes romantic-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}
.ls-love-anim .ls-emoji {
  animation: romantic-pulse 1.8s ease-in-out infinite;
  will-change: transform, opacity;
}

/* ── Noces ─────────────────────────────────────────────────────────────── */

/* Progress bar */
.noces-progress {
  margin: 24px 0 32px;
  padding: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-card, 14px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.noces-progress__labels {
  display: flex;
  justify-content: space-between;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}

.noces-progress__bar {
  height: 8px;
  background: var(--surface3);
  border-radius: 4px;
  overflow: hidden;
}

.noces-progress__fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--indigo), var(--violet));
  transition: width 0.6s ease;
}

.noces-progress__pct {
  text-align: right;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--indigo);
  margin-top: 6px;
}

/* Noces grid */
.noces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 56px;
}

.noces-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-card, 14px);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.25s cubic-bezier(.22,1,.36,1), border-color 0.25s, box-shadow 0.25s;
}

.noces-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.noces-card__emoji {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
}

.noces-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.noces-card__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.noces-card__years {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.noces-card__date {
  font-size: 0.78rem;
  color: var(--text2);
}

.noces-card__status {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
}

.noces-card__status--past { color: var(--emerald); }
.noces-card__status--next { color: var(--indigo); }
.noces-card__status--future { color: var(--muted); }

/* Past noce */
.noces-card--past {
  border-color: rgba(16, 185, 129, 0.15);
  background: rgba(16, 185, 129, 0.04);
}

/* Next noce — highlighted */
.noces-card--next {
  border-color: rgba(99,102,241,0.35);
  background: linear-gradient(140deg, rgba(99,102,241,0.10), rgba(139,92,246,0.06));
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.12);
  grid-column: span 2;
  padding: 20px;
}

.noces-card--next .noces-card__emoji { font-size: 2rem; }
.noces-card--next .noces-card__name { font-size: 1rem; }

/* Future noce */
.noces-card--future {
  opacity: 0.7;
}

@media (max-width: 480px) {
  .noces-grid { grid-template-columns: 1fr; }
  .noces-card--next { grid-column: span 1; }
}

/* ── Milestones couple ─────────────────────────────────────────────────── */

.couple-milestones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.couple-ms-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 14px;
}
.couple-ms-subtitle--future {
  color: var(--indigo, #6366F1);
}
.couple-ms-subtitle--past {
  color: var(--emerald, #10B981);
  margin-top: 28px;
}

.couple-ms-hidden {
  margin-top: 14px;
}

.milestone-card {
  padding: 18px 16px;
  border-radius: var(--radius-card, 14px);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-align: center;
  transition: transform 0.25s cubic-bezier(.22,1,.36,1), border-color 0.25s, box-shadow 0.25s;
  position: relative;
  animation: cardReveal 0.4s ease both;
}

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.milestone-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99,102,241,0.22);
  box-shadow: 0 6px 24px rgba(99,102,241,0.12);
}

.milestone-card__emoji {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.milestone-card__unit-tag {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 6px;
  background: rgba(99,102,241,0.12);
  color: rgba(99,102,241,0.9);
}
.milestone-card__unit-tag--days { background: rgba(59,130,246,0.12); color: rgba(59,130,246,0.9); }
.milestone-card__unit-tag--weeks { background: rgba(168,85,247,0.12); color: rgba(168,85,247,0.9); }
.milestone-card__unit-tag--months { background: rgba(236,72,153,0.12); color: rgba(236,72,153,0.9); }
.milestone-card__unit-tag--hours { background: rgba(245,158,11,0.12); color: rgba(245,158,11,0.9); }
.milestone-card__unit-tag--minutes { background: rgba(16,185,129,0.12); color: rgba(16,185,129,0.9); }
.milestone-card__unit-tag--seconds { background: rgba(239,68,68,0.12); color: rgba(239,68,68,0.9); }

.milestone-card__label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.milestone-card__date {
  font-size: 0.75rem;
  color: var(--text2);
}

.milestone-card__ago {
  font-size: 0.75rem;
  color: var(--emerald, #10B981);
  font-weight: 600;
  margin-top: 6px;
}

.milestone-card__countdown {
  font-size: 0.78rem;
  color: var(--indigo, #6366F1);
  font-weight: 700;
  margin-top: 6px;
}
.milestone-card__countdown--hot {
  color: #F43F5E;
  animation: hotPulse 1.5s ease-in-out infinite;
}
@keyframes hotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Next tag */
.milestone-card__next-tag {
  position: absolute;
  top: -8px;
  right: 12px;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

/* Progress bar */
.milestone-card__progress {
  margin-top: 10px;
}
.milestone-card__progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: var(--muted, #888);
  margin-bottom: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}
.milestone-card__progress-track {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.milestone-card__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366F1, #8B5CF6);
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* Action buttons */
.milestone-card__actions {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.milestone-card__btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s ease;
}
.milestone-card__btn:hover {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.25);
  color: var(--text);
}

/* Card variants */
.milestone-card--past {
  border-color: rgba(16, 185, 129, 0.12);
  opacity: 0.85;
}
.milestone-card--past:hover {
  opacity: 1;
  border-color: rgba(16, 185, 129, 0.22);
  box-shadow: 0 4px 16px rgba(16,185,129,0.08);
}

.milestone-card--future {
  border-color: rgba(99, 102, 241, 0.12);
}

.milestone-card--next {
  border-color: rgba(99, 102, 241, 0.25);
  background: linear-gradient(145deg, rgba(99,102,241,0.06), rgba(139,92,246,0.04));
  box-shadow: 0 4px 20px rgba(99,102,241,0.08);
}
.milestone-card--next:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 8px 30px rgba(99,102,241,0.15);
}

/* Fun facts hidden grid */
.couple-ff-hidden {
  margin-top: 14px;
}

/* ── Confetti (couple page standalone) ─────────────────────────────────── */

.confetti-piece {
  position: fixed;
  top: -10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  z-index: 9999;
  pointer-events: none;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ── Couple page — missing classes ────────────────────────────────────── */

/* Name field wrapper inside names row */
.couple-name-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.couple-name-field .field-label {
  margin-bottom: 2px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.couple-name-field .form-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-card, 14px);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  box-sizing: border-box;
}

.couple-name-field .form-input::placeholder {
  color: var(--muted);
  opacity: 0.45;
}

.couple-name-field .form-input:focus {
  border-color: rgba(99,102,241,0.50);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12), 0 0 24px rgba(99,102,241,0.10);
}

:root[data-theme="light"] .couple-name-field .form-input {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

:root[data-theme="light"] .couple-name-field .form-input:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

/* Nav link couple variant — overrides for couple.html active state */
.nav-link--couple.active {
  color: #fff;
  background: linear-gradient(135deg, #F43F5E, #ec4899);
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(244, 63, 94, 0.35);
}

/* Light theme overrides for couple page */
:root[data-theme="light"] .nav-link--couple.active {
  color: #fff;
  background: linear-gradient(135deg, #F43F5E, #ec4899);
  border-color: transparent;
}

:root[data-theme="light"] .milestone-card {
  background: rgba(255,255,255,0.70);
  border-color: var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

:root[data-theme="light"] .milestone-card:hover {
  border-color: var(--border2);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

:root[data-theme="light"] .milestone-card--next {
  background: rgba(99,102,241,0.06);
  border-color: rgba(99,102,241,0.18);
}

:root[data-theme="light"] .milestone-card--past {
  background: rgba(16,185,129,0.04);
  border-color: rgba(16,185,129,0.12);
}

:root[data-theme="light"] .milestone-card__progress-track {
  background: rgba(0,0,0,0.06);
}

:root[data-theme="light"] .milestone-card__btn {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
}

:root[data-theme="light"] .milestone-card__btn:hover {
  background: rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.18);
}

:root[data-theme="light"] .noces-card {
  background: rgba(255,255,255,0.70);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

:root[data-theme="light"] .noces-card--past {
  background: rgba(16, 185, 129, 0.06);
}

:root[data-theme="light"] .noces-card--next {
  background: rgba(99, 102, 241, 0.08);
}

:root[data-theme="light"] .noces-progress {
  background: rgba(255,255,255,0.70);
  border-color: var(--border);
}

:root[data-theme="light"] .couple-type-btn {
  background: rgba(255,255,255,0.50);
  border-color: var(--border);
}

:root[data-theme="light"] .couple-type-btn.active {
  background: rgba(99,102,241,0.10);
  border-color: var(--indigo);
}

/* ── Heartbeat pulse animation on heart emoji ─────────────────────────── */
.ls-emoji-heartbeat {
  display: inline-block;
  animation: emojiHeartbeat 1.2s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform;
}

@keyframes emojiHeartbeat {
  0%   { transform: scale(1); }
  10%  { transform: scale(1.15); }
  20%  { transform: scale(1); }
  30%  { transform: scale(1.1); }
  40%  { transform: scale(1); }
  100% { transform: scale(1); }
}

/* ── Breathing animation on respiration cards ─────────────────────────── */
.ls-emoji-breathing {
  display: inline-block;
  animation: emojiBreathing 4s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform, opacity;
}

@keyframes emojiBreathing {
  0%   { transform: scale(1);    opacity: 0.7; }
  50%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1);    opacity: 0.7; }
}

.lifestats-card--breathing {
  animation: cardBreathing 4s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes cardBreathing {
  0%   { transform: scale(1);     opacity: 0.85; }
  50%  { transform: scale(1.015); opacity: 1; }
  100% { transform: scale(1);     opacity: 0.85; }
}

/* Reduced motion — disable heartbeat and breathing animations */
@media (prefers-reduced-motion: reduce) {
  .ls-emoji-heartbeat,
  .ls-emoji-breathing,
  .lifestats-card--breathing { animation: none; opacity: 1; }
}

/* ── Couple fun facts section ─────────────────────────────────────────── */
.couple-funfacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .couple-funfacts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .couple-funfacts-grid { grid-template-columns: 1fr; }
}

.couple-funfact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 24px 18px 20px;
  border-radius: var(--radius-card, 14px);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  transition: transform 0.25s cubic-bezier(.22,1,.36,1), border-color 0.25s, box-shadow 0.25s;
  will-change: transform;
}

.couple-funfact-card:hover {
  transform: translateY(-3px) scale(1.015);
  border-color: rgba(99,102,241,0.25);
  box-shadow: 0 8px 32px rgba(99,102,241,0.10), 0 0 0 1px rgba(99,102,241,0.08);
}

.couple-funfact-card--highlight {
  border-color: rgba(244, 63, 94, 0.20);
  background: linear-gradient(150deg, rgba(244, 63, 94, 0.08), rgba(236,72,153,0.04), rgba(255,255,255,0.04));
  grid-column: span 2;
}

.couple-funfact-card--highlight:hover {
  border-color: rgba(244, 63, 94, 0.40);
  box-shadow: 0 8px 32px rgba(244,63,94,0.12), 0 0 0 1px rgba(244,63,94,0.10);
}

@media (max-width: 560px) {
  .couple-funfact-card--highlight { grid-column: span 1; }
}

.couple-funfact-emoji {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.couple-funfact-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.couple-funfact-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.couple-funfact-card--highlight .couple-funfact-value {
  background: linear-gradient(135deg, #F43F5E, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.couple-funfact-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

:root[data-theme="light"] .couple-funfact-card {
  background: rgba(255,255,255,0.65);
  border-color: var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

:root[data-theme="light"] .couple-funfact-card:hover {
  border-color: var(--border2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

:root[data-theme="light"] .couple-funfact-card--highlight {
  background: linear-gradient(150deg, rgba(244, 63, 94, 0.06), rgba(255,255,255,0.65));
}

:root[data-theme="light"] .couple-funfact-card--highlight .couple-funfact-value {
  background: linear-gradient(135deg, #e11d48, #db2777);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════════════════════════════════════
   COUPLE PAGE POLISH v2 — separators, hero, counters, animations
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Section dividers ─────────────────────────────────────────────────────── */
.couple-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.25), transparent);
  margin: 40px 0;
  position: relative;
}
.couple-divider::after {
  content: attr(data-symbol);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg, #030711);
  padding: 0 14px;
  font-size: 0.7rem;
  color: rgba(139,92,246,0.5);
  letter-spacing: 0.15em;
}
:root[data-theme="light"] .couple-divider::after {
  background: var(--bg, #FFFDF7);
}

/* ── Section descriptive text ─────────────────────────────────────────────── */
.couple-section__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--muted);
  opacity: 0.7;
  margin: -4px 0 16px;
  line-height: 1.5;
  padding: 0 2px;
}

/* ── Couple hero enhanced ─────────────────────────────────────────────────── */
.couple-age-hero {
  text-align: center;
  margin-top: 48px;
  margin-bottom: 48px;
  padding: 44px 28px 40px;
  background: linear-gradient(160deg, rgba(99,102,241,0.06), rgba(139,92,246,0.04), rgba(244,63,94,0.03));
  border: 1px solid rgba(139,92,246,0.18);
  border-radius: var(--radius-card, 14px);
  backdrop-filter: blur(32px) saturate(1.3);
  -webkit-backdrop-filter: blur(32px) saturate(1.3);
  box-shadow: 0 12px 48px rgba(99,102,241,0.08), 0 0 0 1px rgba(139,92,246,0.05);
  position: relative;
  overflow: hidden;
}
.couple-age-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(139,92,246,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(244,63,94,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.couple-age-names {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.2;
  position: relative;
}
.couple-age-names .heart-separator {
  display: inline-block;
  color: #F43F5E;
  margin: 0 8px;
  font-size: 0.8em;
  animation: heartPulse 1.5s ease-in-out infinite;
}
@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.couple-age-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.25;
  position: relative;
}

.couple-age-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
  position: relative;
}

.couple-age-date-badge {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(139,92,246,0.10);
  color: rgba(139,92,246,0.85);
  margin-top: 14px;
  position: relative;
}

/* ── Enhanced stat counters (couple page) ─────────────────────────────────── */
.couple-stats-intro {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
  opacity: 0.6;
  margin-bottom: 20px;
  line-height: 1.5;
}

.couple-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}

.couple-stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-card, 14px);
  padding: 22px 14px 18px;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.25s cubic-bezier(.22,1,.36,1), border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.couple-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--stat-accent, linear-gradient(90deg, #6366F1, #8B5CF6));
  opacity: 0.5;
}
.couple-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.couple-stat-card__icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
  display: block;
}
.couple-stat-card__value {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.15rem, 3.5vw, 1.6rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  margin-bottom: 4px;
  color: #fff;
  word-break: break-word;
}
.couple-stat-card__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}

/* Counter accent colors */
.couple-stat-card--s { --stat-accent: linear-gradient(90deg, #F43F5E, #FB7185); }
.couple-stat-card--s .couple-stat-card__value {
  background: linear-gradient(135deg, #F43F5E, #FB7185);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.couple-stat-card--m { --stat-accent: linear-gradient(90deg, #06B6D4, #38BDF8); }
.couple-stat-card--m .couple-stat-card__value {
  background: linear-gradient(135deg, #06B6D4, #38BDF8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.couple-stat-card--h { --stat-accent: linear-gradient(90deg, #F59E0B, #FBBF24); }
.couple-stat-card--h .couple-stat-card__value {
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.couple-stat-card--d { --stat-accent: linear-gradient(90deg, #10B981, #34D399); }
.couple-stat-card--d .couple-stat-card__value {
  background: linear-gradient(135deg, #10B981, #34D399);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.couple-stat-card--w { --stat-accent: linear-gradient(90deg, #8B5CF6, #A78BFA); }
.couple-stat-card--w .couple-stat-card__value {
  background: linear-gradient(135deg, #8B5CF6, #A78BFA);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.couple-stat-card--mo { --stat-accent: linear-gradient(90deg, #EC4899, #F472B6); }
.couple-stat-card--mo .couple-stat-card__value {
  background: linear-gradient(135deg, #EC4899, #F472B6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Pulse animation on live updating digits */
@keyframes statFlash {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}
.couple-stat-flash {
  animation: statFlash 0.3s ease;
}

@media (max-width: 640px) {
  .couple-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .couple-stat-card {
    padding: 18px 10px 14px;
  }
  .couple-stat-card__value {
    font-size: clamp(1rem, 4vw, 1.3rem);
  }
}

/* ── Section entrance animations ──────────────────────────────────────────── */
@keyframes coupleSectionReveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.couple-section--animate {
  animation: coupleSectionReveal 0.5s ease both;
}

/* ── Couple sections spacing override ─────────────────────────────────────── */
.couple-results-wrap .couple-section {
  margin: 24px 0;
}
.couple-results-wrap .cta-banner-inline {
  margin: 28px 0;
}

/* ── Section toggle larger touch targets on mobile ────────────────────────── */
@media (max-width: 640px) {
  .couple-section__toggle {
    min-height: 52px;
    padding: 16px 16px;
  }
  .couple-section__icon {
    font-size: 1.5rem;
  }
  .couple-results-wrap .couple-section {
    margin: 20px 0;
  }
  .couple-divider {
    margin: 32px 0;
  }
}

/* ── Light theme overrides for new couple styles ──────────────────────────── */
:root[data-theme="light"] .couple-stat-card {
  background: rgba(255,255,255,0.70);
  border-color: var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
:root[data-theme="light"] .couple-stat-card:hover {
  border-color: var(--border2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
:root[data-theme="light"] .couple-age-hero {
  background: linear-gradient(160deg, rgba(99,102,241,0.04), rgba(139,92,246,0.02), rgba(244,63,94,0.02));
  border-color: var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
:root[data-theme="light"] .couple-divider::after {
  background: var(--bg);
}

/* ═══════════════════════════════════════════════════════════════════════════
   INLINE CTA BANNERS — discret, glassmorphism, réutilisable
   ═══════════════════════════════════════════════════════════════════════════ */

.cta-banner-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  margin: 20px 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--text2);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  line-height: 1.4;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cta-banner-inline:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--border2);
  transform: translateY(-1px);
}

.cta-banner-inline__icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.cta-banner-inline__text {
  flex: 1;
  min-width: 0;
}

.cta-banner-inline__link {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-semi);
  font-size: var(--fs-sm);
  white-space: nowrap;
  transition: opacity 0.15s;
}

.cta-banner-inline:hover .cta-banner-inline__link {
  opacity: 0.85;
}

/* Accent variants */
.cta-banner-inline--violet .cta-banner-inline__link {
  color: var(--violet);
}
.cta-banner-inline--rose .cta-banner-inline__link {
  color: var(--rose);
}
.cta-banner-inline--gold .cta-banner-inline__link {
  color: var(--amber);
}
.cta-banner-inline--indigo .cta-banner-inline__link {
  color: var(--indigo);
}
.cta-banner-inline--emerald .cta-banner-inline__link {
  color: var(--emerald);
}

/* Subtle glow on hover per variant */
.cta-banner-inline--violet:hover { border-color: rgba(139,92,246,0.25); }
.cta-banner-inline--rose:hover { border-color: rgba(244,63,94,0.25); }
.cta-banner-inline--gold:hover { border-color: rgba(245,158,11,0.25); }
.cta-banner-inline--indigo:hover { border-color: rgba(99,102,241,0.25); }
.cta-banner-inline--emerald:hover { border-color: rgba(16,185,129,0.25); }

/* Light theme */
:root[data-theme="light"] .cta-banner-inline {
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
:root[data-theme="light"] .cta-banner-inline:hover {
  background: rgba(255,255,255,0.7);
}

/* Mobile: stack nicely */
@media (max-width: 480px) {
  .cta-banner-inline {
    padding: 10px 14px;
    gap: 8px;
    font-size: 0.78rem;
  }
  .cta-banner-inline__link {
    font-size: 0.78rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   EXPLORE GRID — navigation secondaire / cross-sell bas de page
   ═══════════════════════════════════════════════════════════════════════════ */

.explore-section {
  margin: 40px 0 20px;
}

.explore-section__title {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-semi);
  color: var(--text2);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: var(--ls-wide);
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .explore-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.explore-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--text2);
  text-align: center;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.explore-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--border2);
  transform: translateY(-2px);
}

.explore-card__icon {
  font-size: 1.5rem;
}

.explore-card__name {
  font-family: var(--font-heading);
  font-weight: var(--fw-semi);
  font-size: var(--fs-sm);
  color: var(--text);
}

.explore-card__desc {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.35;
}

/* Accent border on hover per card */
.explore-card--rose:hover { border-color: rgba(244,63,94,0.3); }
.explore-card--violet:hover { border-color: rgba(139,92,246,0.3); }
.explore-card--gold:hover { border-color: rgba(245,158,11,0.3); }
.explore-card--indigo:hover { border-color: rgba(99,102,241,0.3); }
.explore-card--emerald:hover { border-color: rgba(16,185,129,0.3); }
.explore-card--cyan:hover { border-color: rgba(6,182,212,0.3); }

/* Light theme */
:root[data-theme="light"] .explore-card {
  background: rgba(255,255,255,0.5);
}
:root[data-theme="light"] .explore-card:hover {
  background: rgba(255,255,255,0.7);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE UX AUDIT FIXES — 2026-03-23
   P0: hero banners below form, h1 sizing, touch targets, contrast
   ═══════════════════════════════════════════════════════════════════════════ */

/* P0: Hide hero banners on mobile — form must be above the fold */
@media (max-width: 640px) {
  .hero-poster-banner,
  .couple-hero-banner {
    display: none;
  }
}

/* P1: Reduce h1 size earlier (was only at 380px, too big between 380-600px) */
@media (max-width: 600px) {
  .hero-title {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }
}

/* P1: Touch targets — minimum 44px height for tappable elements */
@media (max-width: 640px) {
  .hero-chip {
    padding: 12px 16px;
    min-height: 44px;
    font-size: 0.78rem;
  }
  .gift-trigger__cta {
    padding: 10px 18px;
    min-height: 44px;
  }
}

/* P1: Contrast — increase muted text opacity for small text readability */
@media (max-width: 768px) {
  :root {
    --muted: rgba(203,213,225,0.80);
  }
  /* Field labels must be at least 12px */
  .field-label {
    font-size: max(0.75rem, 12px);
  }
  .hero-chips-label {
    font-size: max(0.72rem, 12px);
  }
  /* P1: Remove stacked backdrop-filters — save GPU on mobile */
  .seg-input {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .liquid-glass-layer {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ══════════════════════════════════════
   BIORHYTHMES
   ══════════════════════════════════════ */
.biorhythm-wrap {
  margin: 2.5rem 0 1.5rem;
  padding: 0;
}

.bio-chart-wrap {
  background: rgba(15, 10, 40, 0.55);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 16px;
  padding: 1rem 0.5rem 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bio-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.bio-wave {
  animation: bioWaveIn 1.2s ease-out both;
}
.bio-wave--physical     { animation-delay: 0s; }
.bio-wave--emotional    { animation-delay: 0.15s; }
.bio-wave--intellectual { animation-delay: 0.3s; }

@keyframes bioWaveIn {
  from { stroke-dasharray: 2000; stroke-dashoffset: 2000; opacity: 0; }
  to   { stroke-dasharray: 2000; stroke-dashoffset: 0; opacity: 0.85; }
}

.bio-dot {
  animation: bioDotPulse 2s ease-in-out infinite;
}
.bio-dot--physical     { animation-delay: 0s; }
.bio-dot--emotional    { animation-delay: 0.66s; }
.bio-dot--intellectual { animation-delay: 1.33s; }

@keyframes bioDotPulse {
  0%, 100% { r: 5; }
  50% { r: 7; }
}

.bio-legend {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.bio-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  color: var(--text2);
}

.bio-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.bio-states-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.bio-state-card {
  background: rgba(15, 10, 40, 0.45);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  transition: border-color 0.3s ease;
}
.bio-state-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

.bio-state-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.bio-state-info {
  flex: 1;
  min-width: 0;
}

.bio-state-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.bio-state-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(203, 213, 225, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.bio-state-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s ease-out;
}

.bio-state-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.bio-state-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.bio-state--high    { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.bio-state--rising  { background: rgba(6, 182, 212, 0.15); color: #06B6D4; }
.bio-state--neutral { background: rgba(203, 213, 225, 0.1); color: var(--text2); }
.bio-state--falling { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }
.bio-state--low     { background: rgba(244, 63, 94, 0.12); color: #F43F5E; }

.bio-state-pct {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.bio-state-period {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .bio-states-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .bio-chart-wrap {
    padding: 0.75rem 0.25rem 0.25rem;
    border-radius: 12px;
  }
  .bio-state-card {
    padding: 0.65rem;
  }
  /* Hide day axis labels on mobile — too small in viewBox 600px */
  .bio-chart-svg .bio-label-day {
    display: none;
  }
  /* Hide Y-axis labels on mobile */
  .bio-chart-svg .bio-label-y {
    display: none;
  }
}

