/* ═══════════════════════════════════════════════════════════════
   THUMBSTOP — feuille de style unique (landing + pages légales)
   Thème : variables CSS sur html[data-theme="dark" | "light"]
   Langue : html[data-lang] masque les spans [data-l] non actifs
   ═══════════════════════════════════════════════════════════════ */

/* ── Police auto-hébergée (variable, 300 → 700) ── */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/space-grotesk-vf.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ─────────────────────────────────────── */
:root {
  --font: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Thème sombre (défaut) : noir profond de la marque */
  --bg: #0F0F0F;
  --bg-2: #161616;
  --bg-3: #1D1D1F;
  --text: #F2F1F3;
  --text-2: #A6A4AA;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --accent: #FF2D78;            /* rose de la marque : remplissages, boutons */
  --accent-soft: rgba(255, 45, 120, 0.12);
  --accent-text: #FF4D8D;       /* rose lisible en petit texte sur fond sombre */
  --on-accent: #16050C;         /* texte posé SUR le rose (contraste AA) */
  --glow: rgba(255, 45, 120, 0.22);

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
  --header-bg: rgba(15, 15, 15, 0.78);

  --radius: 16px;               /* système d'arrondi unique : 16px partout, pilules pour l'interactif */
  --container: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="light"] {
  --bg: #FAFAF9;
  --bg-2: #FFFFFF;
  --bg-3: #F0EFF1;
  --text: #161519;
  --text-2: #5D5B63;
  --border: rgba(20, 18, 24, 0.10);
  --border-strong: rgba(20, 18, 24, 0.20);

  --accent: #FF2D78;
  --accent-soft: rgba(255, 45, 120, 0.10);
  --accent-text: #D6045A;       /* rose assombri : lisible en petit texte sur fond clair */
  --on-accent: #16050C;
  --glow: rgba(255, 45, 120, 0.16);

  --shadow-card: 0 1px 3px rgba(22, 21, 25, 0.06), 0 8px 24px rgba(22, 21, 25, 0.05);
  --header-bg: rgba(250, 250, 249, 0.82);
}

/* ── Bascule de langue : on ne montre que la langue active ── */
html[data-lang="fr"] [data-l="en"] { display: none !important; }
html[data-lang="en"] [data-l="fr"] { display: none !important; }

/* ── Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.icon { width: 20px; height: 20px; flex: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 18px; border-radius: 999px; z-index: 100;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus-visible { left: 16px; top: 16px; }

/* ═══════════════════ HEADER ═══════════════════ */
#top-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.35s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.02em;
}
.logo-mark { width: 26px; height: 26px; color: var(--accent); }
.logo-mark rect, .logo-mark circle { fill: currentColor; }

.header-controls { display: flex; align-items: center; gap: 10px; }

/* Switch FR / EN */
.lang-switch {
  display: inline-flex; padding: 3px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg-2);
}
.lang-switch button {
  appearance: none; border: 0; background: transparent;
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text-2); padding: 4px 11px; border-radius: 999px; cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.lang-switch button[aria-pressed="false"]:hover { color: var(--text); }

/* Toggle thème */
.theme-toggle {
  appearance: none; border: 1px solid var(--border); background: var(--bg-2);
  width: 38px; height: 38px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); transition: border-color 0.2s ease, transform 0.15s ease;
}
.theme-toggle:hover { border-color: var(--border-strong); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle svg { width: 18px; height: 18px; }
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }

/* ═══════════════════ BOUTONS ═══════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border-radius: 999px; padding: 12px 24px; font-size: 16px;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-accent {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 0 0 0 var(--glow);
}
.btn-accent:hover { box-shadow: 0 6px 24px var(--glow); transform: translateY(-1px); }

.btn-ghost {
  border: 1px solid var(--border-strong); color: var(--text); background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); }

.btn-header { padding: 9px 16px; font-size: 14px; }
.btn-header .icon { width: 16px; height: 16px; }

/* Badge App Store (style badge officiel, cohérent avec la marque) */
.btn-store {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent); color: var(--on-accent);
  text-decoration: none; border-radius: 999px; padding: 12px 26px 12px 22px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-store:hover { transform: translateY(-1px); box-shadow: 0 8px 28px var(--glow); }
.btn-store:active { transform: translateY(1px) scale(0.98); }
.btn-store .icon { width: 26px; height: 26px; }
.btn-store-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn-store-text small { font-size: 11.5px; font-weight: 500; opacity: 0.85; }
.btn-store-text strong { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }

/* ═══════════════════ ANIMATIONS D'APPARITION ═══════════════════ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal.in { opacity: 1; transform: none; }

/* ═══════════════════ HERO CINÉMATIQUE ═══════════════════
   La scène est épinglée (sticky) pendant que .hero-track défile.
   Toute la chorégraphie dérive de --p (progression 0 → 1, lissée en JS) :
   - phase 1 (0 → ~0.5)  : le copy s'échappe en cascade, le téléphone monte
   - phase 2 (0.48 → 0.8): les pastilles features cascadent autour de l'écran
   - phase 3 (0.82 → 1)  : fondu de sortie vers la section suivante
   Pour AJUSTER LA CHORÉGRAPHIE : fenêtres --w / vitesses --s (copy),
   --at (apparition des pastilles), segments --p-in / --p-out ci-dessous. */

.hero-cine { position: relative; }

.hero-track { height: 260vh; }

.hero-stage {
  position: sticky; top: 0; height: 100dvh;
  overflow: clip;
  display: flex; flex-direction: column; align-items: center;
  --p: 0;
  --p-in:  clamp(0, calc(var(--p) / 0.5), 1);            /* montée du téléphone */
  --p-out: clamp(0, calc((var(--p) - 0.82) / 0.18), 1);  /* sortie de scène */
}

/* Halos parallaxe (vitesses différentes) */
.halo {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(70px);
}
.halo-1 {
  width: 58vw; height: 58vw; max-width: 780px; max-height: 780px;
  left: 6%; top: -12%;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  transform: translateY(calc(var(--p) * -14vh));
}
.halo-2 {
  width: 46vw; height: 46vw; max-width: 640px; max-height: 640px;
  right: -8%; bottom: -16%;
  background: radial-gradient(circle, rgba(255, 45, 120, 0.14), transparent 65%);
  transform: translateY(calc(var(--p) * -32vh));
}

/* ── Copy : chaque élément s'échappe dans sa propre fenêtre (cascade) ── */
.hero-copy {
  position: relative; z-index: 4;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: clamp(24px, 6vh, 64px) 20px 0;
}
.hero-copy.copy-gone { pointer-events: none; }

.hero-eyebrow, .ht-line, .hero-sub, .hero-actions {
  --exit: clamp(0, calc(var(--p) / var(--w, 0.4)), 1);
  transform: translateY(calc(var(--exit) * -14vh * var(--s, 1)));
  opacity: calc(1 - var(--exit));
}

.hero-eyebrow {
  --w: 0.24; --s: 0.7;
  display: inline-block;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--accent-text);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; background: var(--accent-soft);
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.5rem, 5.6vw, 4.1rem);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.04;
  margin-bottom: 20px;
}
.ht-line { display: block; --w: 0.30; --s: 1; }
.ht-line.ht-accent { --w: 0.36; --s: 1.25; color: var(--accent-text); }

.hero-sub {
  --w: 0.38; --s: 1.45;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--text-2); max-width: 32em; margin-bottom: 30px;
}

.hero-actions {
  --w: 0.44; --s: 1.7;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px;
}

/* ── Téléphone : émerge du bas, se redresse, grandit jusqu'au centre ── */
.phone-wrap {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  transform:
    translate(-50%, -50%)
    translateY(calc((1 - var(--p-in)) * 52vh))
    scale(calc(0.92 + 0.2 * var(--p-in) - 0.06 * var(--p-out)))
    rotate(calc((1 - var(--p-in)) * -5deg));
  opacity: calc(1 - var(--p-out) * 0.7);
  will-change: transform, opacity;
}

.phone-glow {
  position: absolute; inset: -10% -16%;
  background: radial-gradient(ellipse at center, var(--glow), transparent 68%);
  filter: blur(34px); pointer-events: none;
  opacity: calc(0.55 + 0.45 * var(--p-in));
}

/* Dans le hero cinématique, le flottement autonome du téléphone est coupé :
   il entrerait en conflit avec le mouvement piloté par le scroll (effet de tremblement). */
.hero-stage .phone-frame { animation: none; }

/* ── Pastilles features : cascade autour du téléphone (phase 2) ── */
.hero-chips { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

.chip {
  position: absolute; left: 50%; top: 50%;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; white-space: nowrap;
  font-weight: 600; font-size: 14px; color: var(--text);
  background: var(--bg-2);
  background: color-mix(in srgb, var(--bg-2) 74%, transparent);
  border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.18);
  --in: clamp(0, calc((var(--p) - var(--at, 0.5)) / 0.17), 1);
  opacity: calc(var(--in) * (1 - var(--p-out)));
  transform:
    translate(-50%, -50%) translate(var(--cx), var(--cy))
    translateY(calc((1 - var(--in)) * 22px - var(--p) * var(--drift, 30px)))
    scale(calc(0.88 + 0.12 * var(--in)));
}
.chip .icon { width: 17px; height: 17px; color: var(--accent-text); }

.chip-1 { --at: 0.48; --cx: -292px; --cy: -120px; --drift: 34px; }
.chip-2 { --at: 0.56; --cx: 288px;  --cy: -28px;  --drift: 52px; }
.chip-3 { --at: 0.64; --cx: -266px; --cy: 132px;  --drift: 22px; }

.phone { margin: 0; position: relative; }

.phone-frame {
  width: min(300px, 72vw); aspect-ratio: 9 / 19;
  border-radius: 46px; padding: 10px;
  background: #1A1A1C;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: phoneFloat 7s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.phone-island {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 22px; border-radius: 999px; background: #060606; z-index: 3;
}

.phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 38px; overflow: hidden; background: #0A0A0B;
  display: flex; align-items: center; justify-content: center;
}

/* Fond animé du hook : nappes roses en mouvement lent */
.hook-bg {
  position: absolute; inset: -20%;
  background:
    radial-gradient(38% 30% at 25% 25%, rgba(255, 45, 120, 0.55), transparent 70%),
    radial-gradient(42% 34% at 78% 62%, rgba(255, 45, 120, 0.35), transparent 70%),
    radial-gradient(30% 26% at 55% 90%, rgba(151, 22, 67, 0.55), transparent 70%),
    linear-gradient(160deg, #17070E, #0A0A0B 55%, #14040C);
  animation: bgDrift 12s ease-in-out infinite alternate;
}
@keyframes bgDrift {
  from { transform: translate(-2%, -2%) scale(1); }
  to   { transform: translate(2%, 3%) scale(1.08); }
}

/* Sous-titres animés mot à mot (boucle 6 s) */
.hook-caption {
  position: relative; z-index: 2;
  padding: 0 26px; text-align: center;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 700; line-height: 1.35;
  color: #FFFFFF; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.01em;
}
.hook-caption .w { display: inline-block; opacity: 0; }
.hook-caption .hl {
  background: var(--accent); color: var(--on-accent);
  padding: 1px 8px; border-radius: 8px; text-shadow: none;
}
.w1 { animation: word1 6s infinite; }
.w2 { animation: word2 6s infinite; }
.w3 { animation: word3 6s infinite; }
.w4 { animation: word4 6s infinite; }
@keyframes word1 { 0%, 6% { opacity: 0; transform: scale(0.8); } 10%, 88% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; } }
@keyframes word2 { 0%, 16% { opacity: 0; transform: scale(0.8); } 20%, 88% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; } }
@keyframes word3 { 0%, 26% { opacity: 0; transform: scale(0.8); } 30%, 88% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; } }
@keyframes word4 { 0%, 38% { opacity: 0; transform: scale(0.8); } 42%, 88% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; } }

/* Voix off : petites barres d'onde */
.hook-voice {
  position: absolute; bottom: 66px; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.hook-voice .vbar {
  width: 3px; height: 14px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
  animation: vwave 1.1s ease-in-out infinite;
}
.hook-voice .vbar:nth-child(2) { animation-delay: -0.9s; }
.hook-voice .vbar:nth-child(3) { animation-delay: -0.7s; }
.hook-voice .vbar:nth-child(4) { animation-delay: -0.5s; }
.hook-voice .vbar:nth-child(5) { animation-delay: -0.3s; }
@keyframes vwave { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
.hook-voice-label {
  margin-left: 8px; font-size: 11px; font-weight: 500;
  color: rgba(255, 255, 255, 0.65); letter-spacing: 0.04em;
}

.hook-watermark {
  position: absolute; bottom: 26px; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, 0.55);
}
.hook-watermark svg { width: 13px; height: 13px; }
.hook-watermark rect, .hook-watermark circle { fill: var(--accent); }

.hook-progress {
  position: absolute; bottom: 12px; left: 26px; right: 26px; z-index: 2;
  height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); overflow: hidden;
}
.hook-progress i {
  display: block; height: 100%; width: 100%;
  background: var(--accent); transform-origin: left;
  animation: hprog 6s linear infinite;
}
@keyframes hprog { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ═══════════════════ PROBLÈME / PROMESSE ═══════════════════ */
.problem { padding-block: clamp(90px, 14vh, 150px); }
.problem-inner { max-width: 780px; text-align: center; margin-inline: auto; }

.problem-count {
  font-size: clamp(4.5rem, 12vw, 8rem); font-weight: 700; line-height: 1;
  letter-spacing: -0.04em; margin-bottom: 8px;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  opacity: 0.9;
}

.problem-title {
  font-size: clamp(1.8rem, 4.2vw, 2.9rem); font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.problem-title em { font-style: normal; color: var(--accent-text); }

.problem-body { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 40em; margin-inline: auto; }

/* ═══════════════════ COMMENT ÇA MARCHE ═══════════════════ */
.how { padding-block: clamp(70px, 10vh, 120px); border-top: 1px solid var(--border); }

.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: clamp(40px, 6vh, 64px);
  max-width: 20em;
}

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 4vw, 44px);
  counter-reset: step;
}
.step { position: relative; padding-top: 18px; }
.step::before {
  content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 3px;
  border-radius: 2px; background: var(--accent);
}
.step-num {
  display: block; font-size: 2.4rem; font-weight: 700; line-height: 1;
  letter-spacing: -0.03em; color: var(--accent-text); margin-bottom: 12px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: 0.98rem; color: var(--text-2); }

/* ═══════════════════ FEATURES (bento) ═══════════════════ */
.features { padding-block: clamp(70px, 10vh, 120px); border-top: 1px solid var(--border); }

.bento {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.cell {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-2); box-shadow: var(--shadow-card);
  padding: 26px; overflow: hidden; position: relative;
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}
.cell:hover { border-color: var(--border-strong); transform: translateY(-3px); }

.cell-voice { grid-column: span 4; }
.cell-captions { grid-column: span 2; }
.cell-bg, .cell-format, .cell-credits { grid-column: span 2; }

.cell-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cell-head .icon { color: var(--accent-text); width: 22px; height: 22px; }
.cell h3 { font-size: 1.12rem; }
.cell p { font-size: 0.97rem; color: var(--text-2); max-width: 46em; }

.cell-visual { margin-bottom: 18px; }

/* Visuel voix off : onde sonore */
.cell-voice .cell-visual {
  border-radius: 12px; background: var(--accent-soft);
  padding: 26px 22px; display: flex; align-items: center; justify-content: center;
}
.wave { display: flex; align-items: center; gap: 5px; height: 44px; }
.wave span {
  width: 5px; border-radius: 3px; background: var(--accent);
  height: 30%;
  animation: wave 1.6s ease-in-out infinite;
}
.wave span:nth-child(odd) { height: 62%; }
.wave span:nth-child(3n) { height: 90%; }
.wave span:nth-child(1) { animation-delay: -1.5s; } .wave span:nth-child(2) { animation-delay: -1.3s; }
.wave span:nth-child(3) { animation-delay: -1.1s; } .wave span:nth-child(4) { animation-delay: -0.9s; }
.wave span:nth-child(5) { animation-delay: -0.7s; } .wave span:nth-child(6) { animation-delay: -0.5s; }
.wave span:nth-child(7) { animation-delay: -0.3s; } .wave span:nth-child(8) { animation-delay: -0.1s; }
.wave span:nth-child(9) { animation-delay: -1.2s; } .wave span:nth-child(10) { animation-delay: -0.8s; }
.wave span:nth-child(11) { animation-delay: -0.4s; } .wave span:nth-child(12) { animation-delay: -1.0s; }
@keyframes wave { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1); } }

/* Visuel sous-titres : mini caption karaoké */
.cell-captions .cell-visual {
  border-radius: 12px; padding: 26px 18px;
  background: linear-gradient(160deg, #17070E, #0E0E10 70%);
  border: 1px solid var(--border);
}
.caption-demo {
  text-align: center; font-weight: 700; font-size: 1.02rem; line-height: 1.5;
  color: #FFFFFF; letter-spacing: -0.01em;
}
.caption-demo mark {
  background: var(--accent); color: var(--on-accent);
  padding: 0 6px; border-radius: 6px;
}

/* Visuel crédits : grand nombre en fond */
.cell-credits { min-height: 190px; }
.cell-credits .cell-visual {
  position: absolute; top: -18px; right: -6px; margin: 0; pointer-events: none;
}
.credits-num {
  font-size: 5.4rem; font-weight: 700; letter-spacing: -0.05em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent);
  opacity: 0.5;
}
.cell-credits .cell-head, .cell-credits p { position: relative; }

/* ═══════════════════ CTA FINAL ═══════════════════ */
.final-cta { padding-block: clamp(90px, 14vh, 160px); position: relative; overflow: clip; border-top: 1px solid var(--border); }
.final-cta::before {
  content: ""; position: absolute; inset: auto -20% -60%; height: 120%;
  background: radial-gradient(ellipse 55% 45% at 50% 100%, var(--glow), transparent 70%);
  pointer-events: none;
}
.final-inner { position: relative; text-align: center; max-width: 700px; margin-inline: auto; }
.final-title {
  font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 700; letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.final-title em { font-style: normal; color: var(--accent-text); }
.final-sub { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); margin-bottom: 36px; }
.final-actions { display: flex; justify-content: center; }

/* ═══════════════════ FOOTER ═══════════════════ */
.site-footer { border-top: 1px solid var(--border); padding-block: 48px; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 28px;
}
.footer-brand .brand { font-size: 17px; }
.footer-brand .logo-mark { width: 22px; height: 22px; }
.footer-tag { margin-top: 10px; font-size: 14px; color: var(--text-2); }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  font-size: 14.5px; color: var(--text-2); text-decoration: none;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--accent-text); }
.footer-copy { font-size: 13.5px; color: var(--text-2); }

/* ═══════════════════ PAGES LÉGALES ═══════════════════ */
.legal-main { padding-block: clamp(48px, 8vh, 80px); }
.legal-article { max-width: 760px; margin-inline: auto; }

.legal-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14.5px; font-weight: 600; color: var(--accent-text);
  text-decoration: none; margin-bottom: 28px;
}
.legal-back:hover { text-decoration: underline; }
.legal-back .icon { width: 15px; height: 15px; transform: rotate(180deg); }

.legal-article h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.legal-updated { font-size: 14.5px; color: var(--text-2); margin-bottom: 42px; }

.legal-article h2 {
  font-size: 1.35rem; margin: 44px 0 14px;
  padding-top: 28px; border-top: 1px solid var(--border);
}
.legal-article h3 { font-size: 1.08rem; margin: 26px 0 10px; }
.legal-article p { margin: 0 0 14px; color: var(--text-2); }
.legal-article p strong, .legal-article li strong { color: var(--text); }
.legal-article ul { margin: 0 0 14px; padding-left: 22px; color: var(--text-2); }
.legal-article li { margin-bottom: 6px; }
.legal-article a { color: var(--accent-text); }

.legal-note {
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0; background: var(--bg-2);
  padding: 14px 18px; margin: 0 0 14px; font-size: 0.95rem; color: var(--text-2);
}

/* Tableaux légaux : défilement horizontal sur mobile */
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--border); border-radius: 12px; }
.legal-article table { border-collapse: collapse; width: 100%; font-size: 0.92rem; min-width: 520px; }
.legal-article th, .legal-article td { text-align: left; padding: 10px 14px; vertical-align: top; }
.legal-article th {
  font-weight: 600; color: var(--text); background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.legal-article td { color: var(--text-2); border-bottom: 1px solid var(--border); }
.legal-article tr:last-child td { border-bottom: 0; }

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 1023px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cell-voice { grid-column: span 6; }
  .cell-captions { grid-column: span 6; }
  .cell-bg, .cell-format { grid-column: span 3; }
  .cell-credits { grid-column: span 6; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }

  /* Hero cinématique : piste plus courte, transforms réduits, pastilles compactes */
  .hero-track { height: 220vh; }
  .hero-copy { padding-top: clamp(16px, 4vh, 36px); width: 100%; }
  .hero-title { font-size: clamp(2.15rem, 9.5vw, 2.6rem); }
  .hero-sub { font-size: 1rem; max-width: 30em; }
  .hero-actions { width: 100%; }
  .hero-actions .btn-store, .hero-actions .btn-ghost { width: 100%; justify-content: center; }
  .phone-wrap {
    transform:
      translate(-50%, -50%)
      translateY(calc((1 - var(--p-in)) * 46vh))
      scale(calc(0.9 + 0.16 * var(--p-in) - 0.05 * var(--p-out)))
      rotate(calc((1 - var(--p-in)) * -4deg));
  }
  .halo { filter: blur(50px); }
  .halo-1 { width: 90vw; height: 90vw; }
  .halo-2 { width: 70vw; height: 70vw; }
  .chip { padding: 8px 13px; font-size: 12.5px; }
  .chip .icon { width: 15px; height: 15px; }
  .chip-1 { --cx: -22vw; --cy: -27vh; --drift: 26px; }
  .chip-2 { --cx: 21vw;  --cy: -8vh;  --drift: 40px; }
  .chip-3 { --cx: -19vw; --cy: 15vh;  --drift: 18px; }

  .steps { grid-template-columns: 1fr; gap: 32px; }

  .bento { grid-template-columns: 1fr; }
  .cell-voice, .cell-captions, .cell-bg, .cell-format, .cell-credits { grid-column: auto; }

  .btn-header { display: none; }

  .footer-inner { flex-direction: column; }
}

/* ═══════════════ HERO STATIQUE (sans JS ou mouvement réduit) ═══════════════
   Composition sobre : tout le message + le téléphone, sans chorégraphie. */
html:not(.js) .hero-track { height: auto; }
html:not(.js) .hero-stage { position: relative; height: auto; min-height: 100dvh; padding-bottom: 72px; }
html:not(.js) .phone-wrap { position: relative; left: auto; top: auto; transform: none; opacity: 1; margin: 44px auto 0; }
html:not(.js) .hero-chips { display: none; }
html:not(.js) .halo { transform: none; }
html:not(.js) .hero-eyebrow, html:not(.js) .ht-line, html:not(.js) .hero-sub, html:not(.js) .hero-actions { transform: none; opacity: 1; }

/* ═══════════════════ MOUVEMENT RÉDUIT ═══════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hook-caption .w { opacity: 1; transform: none; }
  .hook-progress i { transform: scaleX(0.6); }
  .wave span { transform: scaleY(0.8); }

  /* Hero cinématique → composition statique */
  .hero-track { height: auto; }
  .hero-stage { position: relative; height: auto; min-height: 100dvh; padding-bottom: 72px; }
  .phone-wrap { position: relative; left: auto; top: auto; transform: none !important; opacity: 1 !important; margin: 44px auto 0; }
  .hero-chips { display: none; }
  .halo { transform: none; }
  .hero-eyebrow, .ht-line, .hero-sub, .hero-actions { transform: none; opacity: 1; }
}
