/* ============================================================
   SLOVER — Teasing challenger « De la nuit à l'aube »
   Tokens et patterns : docs/DESIGN_SYSTEM.md
   Partition du mouvement : docs/features/refonte-teasing/design.md
   ============================================================ */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-300-italic.woff2') format('woff2');
  font-weight: 300 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0D0818;
  --violet: #9A1BEB;
  --magenta: #F5108C;
  --violet-deep: #5B0BB5;
  --aube: #FF9ACB;
  --ink: #FFFFFF;
  --ink-strong: rgba(255, 255, 255, 0.85);
  --ink-soft: rgba(255, 255, 255, 0.72);
  --ink-mute: rgba(255, 255, 255, 0.45);
  --ink-faint: rgba(255, 255, 255, 0.22);
  --line: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-strong: rgba(13, 8, 24, 0.55);
  --danger: #FF8FB1;
  --ease-ui: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-glow: cubic-bezier(0.33, 0, 0.2, 1);
  --ease-focus: cubic-bezier(0.3, 0.1, 0.1, 1);
  --gutter: 24px;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }
/* Pas de rectangle au tap (Chrome Android, Safari iOS) : les boutons répondent par la lumière et
   `:active`, et l'anneau :focus-visible reste pour le clavier */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
::selection { background: rgba(245, 16, 140, 0.45); color: #fff; }
:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 7px rgba(245, 16, 140, 0.4);
  border-radius: 999px;
}
.serif { font-family: var(--serif); font-style: italic; font-weight: 300; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-size: 12px; line-height: 16px; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- Lien d'évitement ---------- */
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 12px 16px; border-radius: 999px;
  background: #fff; color: var(--bg); font-size: 14px; font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
  transition: transform 300ms var(--ease-ui);
}
.skip:focus-visible { transform: translateY(0); }

/* ---------- Le ciel (WebGL) et son repli ---------- */
/* Hauteur maximale de l'écran (lvh, barre d'adresse repliée) : la zone que
   découvre la barre en se repliant est déjà peinte, et le canvas ne change
   pas de taille pendant le défilement. */
.sky {
  position: fixed; top: 0; left: 0; z-index: 0;
  width: 100%; height: 100vh; height: 100lvh;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1600ms var(--ease-slow);
}
.sky.is-ready { opacity: 1; }
.sky-fallback { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; overflow: hidden; }
.no-webgl .sky { display: none; }
.no-webgl .sky-fallback { display: block; }
.halo { position: absolute; border-radius: 50%; mix-blend-mode: screen; opacity: 0.5; }
.halo--a { width: 70vmax; height: 70vmax; left: -25vmax; top: -30vmax; background: radial-gradient(circle, var(--violet) 0%, transparent 65%); }
.halo--b { width: 60vmax; height: 60vmax; right: -22vmax; bottom: -25vmax; background: radial-gradient(circle, var(--magenta) 0%, transparent 65%); }
.halo--c { width: 40vmax; height: 40vmax; left: 35%; top: 45%; background: radial-gradient(circle, var(--violet-deep) 0%, transparent 65%); }

.grain {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 1; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .footer { position: relative; z-index: 2; }
/* Verrou : aucun descendant n'élargit la page (Chrome Android la dézoome sinon,
   overflow-x: hidden sur body n'y suffit pas). clip, contrairement à hidden, ne
   crée pas de conteneur de défilement : position: sticky reste possible dedans. */
main { overflow-x: clip; }

/* ---------- Bouton son ---------- */
.sound {
  position: fixed; z-index: 21; top: calc(12px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right));
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px 0 14px; border-radius: 999px;
  font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--glass-strong); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: color 300ms var(--ease-ui), border-color 300ms var(--ease-ui), box-shadow 500ms var(--ease-ui);
}
.sound:hover { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.sound.is-on { color: #fff; box-shadow: 0 0 24px -4px rgba(245, 16, 140, 0.55); }
.sound__bars { display: inline-flex; align-items: center; gap: 2px; height: 14px; }
.sound__bars i {
  display: block; width: 2px; height: 14px; border-radius: 2px;
  background: currentColor;
  transform: scaleY(var(--h, 0.2)); transform-origin: center;
  transition: transform 120ms linear;
}
.sound.is-on .sound__bars i { background: linear-gradient(to top, var(--magenta), var(--aube)); }
.js .sound { opacity: 0; animation: fadeIn 800ms var(--ease-ui) 3000ms forwards; }

/* ---------- Boutons ----------
   Le bouton est fait de la même matière que le site : du verre teinté de nuit,
   une lumière qui monte de dessous, et un filet de lumière qui fait le tour de
   la bordure, comme la tête du cadran de présence. Il ne bouge jamais :
   c'est la lumière qui répond au survol. */
@property --orbit { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --glow { syntax: '<number>'; inherits: false; initial-value: 0.22; }
@property --px { syntax: '<percentage>'; inherits: false; initial-value: 50%; }
@property --py { syntax: '<percentage>'; inherits: false; initial-value: 130%; }

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 28px; border-radius: 999px;
  font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: 0.02em;
  text-decoration: none; white-space: nowrap;
  /* `scale` plutôt que `transform` : l'animation d'entrée du hero garde
     la main sur `transform`. */
  transition: scale 200ms var(--ease-ui), box-shadow 600ms var(--ease-ui), opacity 300ms var(--ease-ui),
    --glow 600ms var(--ease-ui), --px 500ms var(--ease-ui), --py 500ms var(--ease-ui);
}
.btn--primary {
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
  background:
    radial-gradient(160px circle at var(--px) var(--py), rgba(255, 154, 203, var(--glow)), transparent 70%),
    linear-gradient(135deg, rgba(154, 27, 235, 0.42) 0%, rgba(245, 16, 140, 0.26) 100%),
    rgba(13, 8, 24, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 12px 40px -14px rgba(245, 16, 140, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
/* Le filet de lumière en orbite sur la bordure */
.btn--primary::before, .hero__capsule::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--orbit),
    transparent 0deg, transparent 200deg,
    rgba(154, 27, 235, 0.9) 250deg, rgba(245, 16, 140, 1) 300deg, #FF9ACB 340deg, #fff 352deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: orbit 7s linear infinite;
  opacity: 0.85;
  transition: opacity 600ms var(--ease-ui);
}
@keyframes orbit { to { --orbit: 360deg; } }
.btn--primary:hover {
  --glow: 0.5;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 16px 56px -12px rgba(245, 16, 140, 0.8),
    0 0 0 6px rgba(245, 16, 140, 0.06);
}
.btn--primary:hover::before { opacity: 1; }
/* Au survol ou au focus clavier, une nacre se lève dans le verre et tourne
   lentement. Elle déborde largement du bouton : on voit la teinte changer,
   jamais une forme tourner. La rotation ne court que pendant le survol. */
.btn--primary::after {
  content: ''; position: absolute; inset: -80% -12%; z-index: -1; pointer-events: none;
  background: conic-gradient(
    rgba(255, 154, 203, 0.22), rgba(154, 27, 235, 0.16), rgba(255, 240, 248, 0.13),
    rgba(245, 16, 140, 0.16), rgba(154, 27, 235, 0.12), rgba(255, 154, 203, 0.22));
  filter: blur(18px); mix-blend-mode: screen;
  opacity: 0;
  animation: nacre 24s linear infinite paused;
  transition: opacity 900ms var(--ease-ui);
}
.btn--primary.btn--sm::after, .hero__submit::after { filter: blur(12px); }
.btn--primary:focus-visible::after { opacity: 1; animation-play-state: running; transition: opacity 2000ms var(--ease-slow); }
/* Sur un écran tactile, un tap laisserait la nacre tourner : survol réel seulement */
@media (hover: hover) {
  .btn--primary:hover::after { opacity: 1; animation-play-state: running; transition: opacity 2000ms var(--ease-slow); }
}
@keyframes nacre { to { transform: rotate(360deg); } }
.btn:active { scale: 0.98; }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: 14px; line-height: 20px; gap: 8px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { cursor: default; }
/* Chargement : la lumière tourne plus vite et le verre est traversé en boucle */
.btn.is-loading::before { animation-duration: 1.6s; opacity: 1; }
.btn.is-loading::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  /* la nacre est coupée net */
  filter: none; mix-blend-mode: normal; opacity: 1; transition: none;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.22) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: sweep 1400ms ease-in-out infinite;
}
@keyframes sweep { to { transform: translateX(100%); } }

.link {
  min-height: 44px; padding: 8px 4px;
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-soft);
  text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 4px;
  transition: color 300ms var(--ease-ui), text-decoration-color 300ms var(--ease-ui);
}
.link:hover { color: #fff; text-decoration-color: #fff; }
.link--quiet { color: var(--ink-mute); }
/* Lien d'aparté, sous un lien principal, sur fond lumineux : effacé par la taille et la
   graisse, pas par la couleur (--ink-mute tomberait sous l'AA sur le hero) */
.link--aside { font-size: 13px; font-weight: 400; text-decoration-color: rgba(255, 255, 255, 0.2); }

/* ---------- Le symbole : il signe, ne s'anime jamais seul ni par le flou ---------- */
/* Le halo aube rend son contour à la goutte sombre sur fond de nuit */
.mark { display: block; flex: none; filter: drop-shadow(0 0 4px rgba(255, 154, 203, 0.32)); }
.mark--seal { filter: drop-shadow(0 0 12px rgba(255, 154, 203, 0.28)); }

/* ---------- Barre flottante ---------- */
.bar {
  position: fixed; z-index: 20; left: 50%; top: calc(12px + env(safe-area-inset-top));
  transform: translate(-50%, -24px);
  opacity: 0; pointer-events: none;
  transition: transform 500ms var(--ease-ui), opacity 500ms var(--ease-ui);
}
.bar.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.bar__inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 52px; padding: 4px 4px 4px 16px; border-radius: 999px;
  background: var(--glass-strong); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
}
.bar__brand {
  font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: 0.3em;
  text-transform: uppercase; text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center; gap: 8px;
}
/* Mobile : le symbole seul, pour laisser la place au bouton Son ; le nom reste dans l'aria-label */
.bar__word { display: none; margin-right: -0.3em; }
.bar__clock {
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-soft);
  padding-right: 20px;
  transition: opacity 300ms var(--ease-ui), filter 300ms var(--ease-ui);
}
.bar__cta { display: none; }
@media (min-width: 768px) {
  .bar__word { display: inline; }
  .bar__cta { display: inline-flex; }
  .bar__clock { padding-right: 0; }
}
/* Déjà inscrit : la barre ne propose plus de s'inscrire */
.is-founder .bar__cta { display: none; }
@media (min-width: 768px) { .is-founder .bar__clock { padding-right: 20px; } }

/* ---------- Horloges ---------- */
.clock { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
.clock .d { display: inline-block; }
.clock .d.is-tick { animation: tick 300ms var(--ease-ui); }
@keyframes tick { from { opacity: 0.2; filter: blur(4px); } to { opacity: 1; filter: blur(0); } }

/* ---------- I. La mise au point ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 96px var(--gutter) 128px;
  text-align: center;
}
.hero__inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  max-width: 680px;
  margin-top: -6vh;
  transform: translate3d(0, var(--hero-shift, 0px), 0);
  opacity: var(--hero-fade, 1);
  filter: blur(var(--hero-blur, 0px));
  /* Au-dessus du clavier virtuel : translate reste distinct du transform lié au défilement */
  translate: 0 calc(var(--hero-lift, 0px) * -1);
  transition: translate 280ms var(--ease-ui);
}
.hero__eyebrow { min-height: 16px; }
/* Posé sur la nacre, là où elle est la plus riche : plus présent qu'ailleurs */
.hero__eyebrow .eyebrow { color: var(--ink-soft); }
.brand {
  display: flex; justify-content: center;
  margin-top: 24px;
  font-weight: 300; letter-spacing: 0.30em; margin-right: -0.30em;
  /* Plancher 44px : SLOVER mesure 5,66 em, il déborderait sous 375 px à 56 px. */
  font-size: clamp(44px, 14vw, 148px);
  line-height: 1;
  text-transform: uppercase; color: #fff;
  user-select: none;
}
.brand span { display: inline-block; }
.brand .g2 {
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.95), 0 0 48px rgba(255, 255, 255, 0.6), 0 0 96px rgba(255, 255, 255, 0.32);
}
.brand .g1 { text-shadow: 0 0 14px rgba(255, 255, 255, 0.42), 0 0 36px rgba(255, 255, 255, 0.2); }
/* iOS : WebKit dessine les grands text-shadow en carrés. La couche serrée reste,
   le halo large passe à un dégradé, sans bord. Ailleurs, le rendu ne change pas. */
@supports (-webkit-touch-callout: none) {
  .brand span { position: relative; isolation: isolate; }
  .brand .g2 { --halo: 0.24; text-shadow: 0 0 18px rgba(255, 255, 255, 0.95); }
  .brand .g1 { --halo: 0.09; text-shadow: 0 0 14px rgba(255, 255, 255, 0.42); }
  .brand .g2::after, .brand .g1::after {
    content: ''; position: absolute; inset: -70% -90%; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, rgba(255, 255, 255, var(--halo)), rgba(255, 255, 255, calc(var(--halo) * 0.35)) 50%, transparent);
  }
}
.hero__tagline { margin-top: 24px; font-size: 24px; line-height: 32px; }
.hero__lead { margin-top: 16px; max-width: 420px; color: var(--ink-soft); text-wrap: pretty; }
/* Un emplacement, trois états superposés (bouton → capsule → message).
   La hauteur de l'état le plus haut est réservée : rien ne saute dessous.
   Tout fait la mise au point sur place, sans transform ni scale. */
.hero__action {
  display: grid; justify-items: center; align-items: start;
  width: 100%; min-height: 80px; margin-top: 40px;
}
.hero__action > * { grid-area: 1 / 1; }
.hero__cta.is-leaving {
  --glow: 0.7; opacity: 0; filter: blur(12px); pointer-events: none;
  transition: --glow 200ms var(--ease-ui), opacity 560ms var(--ease-ui) 120ms, filter 560ms var(--ease-ui) 120ms;
}
.hero__form { width: min(100%, 400px); animation: heroIn 900ms var(--ease-focus) both; }
.hero__form.is-leaving { animation: heroOut 560ms var(--ease-ui) both; pointer-events: none; }
@keyframes heroIn { from { opacity: 0; filter: blur(12px); } to { opacity: 1; filter: blur(0); } }
@keyframes heroOut { from { opacity: 1; filter: blur(0); } to { opacity: 0; filter: blur(12px); } }

/* La capsule : champ + bouton de lumière compact, dans une pilule de verre */
.hero__capsule {
  position: relative; isolation: isolate;
  display: flex; align-items: center; gap: 8px;
  height: 52px; padding: 4px; border-radius: 999px;
  background: rgba(13, 8, 24, 0.45);
  box-shadow: inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  transition: box-shadow 300ms var(--ease-ui);
}
.hero__capsule:focus-within { box-shadow: inset 0 0 0 1px #fff, 0 0 0 4px rgba(245, 16, 140, 0.3); }
.hero__form.is-invalid .hero__capsule { box-shadow: inset 0 0 0 1px var(--danger); }
.hero__form.is-invalid .hero__capsule:focus-within { box-shadow: inset 0 0 0 1px var(--danger), 0 0 0 4px rgba(255, 143, 177, 0.25); }
/* Le filet de lumière passe du bouton à la capsule, une fois celle-ci nette */
.hero__capsule::before { animation: orbit 7s linear infinite, filetIn 600ms var(--ease-glow) 540ms both; }
@keyframes filetIn { from { opacity: 0; } to { opacity: 0.85; } }
.hero__input {
  flex: 1; min-width: 0; height: 100%; padding: 0 8px 0 20px;
  border: 0; border-radius: 999px; background: transparent;
  font-size: 16px; color: var(--ink); outline: none;
  transition: opacity 300ms var(--ease-ui);
}
/* Le focus est porté par la capsule entière (:focus-within) */
.hero__input:focus-visible { outline: none; box-shadow: none; }
.hero__input::placeholder { color: rgba(255, 255, 255, 0.55); }
.hero__input:disabled { opacity: 0.6; }
/* Chrome peint un fond clair sur les champs autocomplétés : on le recouvre */
.hero__input:-webkit-autofill,
.hero__input:-webkit-autofill:hover,
.hero__input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #1B1626 inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
}
.hero__submit { flex: none; min-height: 44px; height: 44px; padding: 0 20px; }
.hero__submit::before { display: none; }
.hero__submit:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Mention et erreur se partagent une ligne réservée */
.hero__note {
  min-height: 20px; margin-top: 8px;
  font-size: 12px; line-height: 20px; color: var(--ink-mute); text-wrap: balance;
  animation: heroSoft 600ms var(--ease-slow) 340ms both;
}
.hero__privacy, .hero__error { animation: fadeIn 300ms var(--ease-ui) both; opacity: 0; }
.hero__error { font-size: 14px; color: var(--danger); }
@keyframes heroSoft { from { opacity: 0; filter: blur(4px); } to { opacity: 1; filter: blur(0); } }

.hero__msg { display: flex; flex-direction: column; align-items: center; animation: heroIn 1200ms var(--ease-focus) both; }
.hero__msg.is-static { animation: none; }
.hero__msg.is-leaving { animation: heroOut 560ms var(--ease-ui) both; pointer-events: none; }
.hero__msg-text { font-size: 24px; line-height: 32px; text-wrap: balance; }
/* Point d'arrivée du focus, pas un contrôle : aucun contour */
.hero__msg-text:focus, .hero__msg-text:focus-visible { outline: none; box-shadow: none; }
.hero__more > [aria-hidden="true"] { display: inline-block; }
.hero__more { display: inline-block; padding: 12px 4px; animation: fadeIn 600ms var(--ease-slow) 640ms both; opacity: 0; }
.hero__msg.is-static .hero__more { animation: none; opacity: 1; }
.hero__more:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }
/* « Inscrire une autre adresse » : arrive 120 ms après le lien principal (hero-autre-adresse) */
.hero__again { padding: 12px 4px; animation: fadeIn 600ms var(--ease-slow) 760ms both; opacity: 0; }
.hero__msg.is-static .hero__again { animation: none; opacity: 1; }
.hero__again:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }
.hero__cue {
  /* Centré sans transform : le mode mouvement réduit remet transform à none. */
  position: absolute; left: 0; right: 0; bottom: calc(24px + env(safe-area-inset-bottom));
  width: max-content; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 12px; line-height: 16px; color: var(--ink-mute); letter-spacing: 0.08em;
}
.hero__cue-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
  transform-origin: top;
  animation: cue 2400ms var(--ease-ui) infinite;
}
@keyframes cue { 0%, 100% { transform: scaleY(0.6); opacity: 0.5; } 50% { transform: scaleY(1); opacity: 1; } }

@media (min-width: 768px) {
  .hero__tagline { font-size: 30px; line-height: 36px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 64px var(--gutter); }
  .hero__cue { display: none; }
}
/* Écran très bas, page en état inscrit : le hero porte deux liens, l'invitation à défiler
   sortirait de l'écran ; « Découvrir la suite ↓ » joue déjà ce rôle (iPhone SE).
   Pas pendant .is-quieting : l'invitation s'y efface d'abord en fondu (transition-merci) */
@media (max-height: 600px) {
  .is-founder .hero:not(.is-quieting) .hero__cue { display: none; }
}
/* Questions facultatives dans le hero, sur écran bas : l'accroche, déjà lue, et
   l'invitation à défiler s'effacent pour que tout tienne sans remontée (iPhone SE). */
@media (max-height: 720px) {
  /* Dès le succès, elles s'effacent sur place (la place reste, rien ne saute)… */
  .hero.is-quieting :is(.hero__tagline, .hero__lead, .hero__cue) { animation: quietOut 360ms var(--ease-ui) forwards; }
  /* …puis la mise en page change d'un coup, pendant que le bloc glisse (main.js, hero-capture.js) */
  .hero.is-asking { padding-top: 48px; }
  .hero.is-asking :is(.hero__tagline, .hero__lead, .hero__cue) { display: none; }
  .hero.is-asking .hero__msg-text { font-size: 18px; line-height: 24px; }
  .hero.is-asking .profile { margin-top: 16px; }
  .hero.is-asking .profile__optional { display: inline; margin-top: 0; }
  /* Au retour, après le glissement inverse */
  .hero.is-returning :is(.hero__tagline, .hero__lead) { animation: heroSoft 400ms var(--ease-slow) 500ms both; }
  .hero.is-returning .hero__cue { animation: fadeIn 400ms var(--ease-slow) 500ms both; }
}
@keyframes quietOut { to { opacity: 0; filter: blur(8px); } }

/* Partition de l'intro : CSS seul, elle démarre au premier rendu.
   Une seule mise au point : tout part à 0 s, hors foyer, et seule la durée
   échelonne. Le décor (ciel, 2,2 s) d'abord, le texte ensuite, le nom en
   dernier, du centre vers les bords. Rien ne part d'une opacité nulle : le
   wordmark est peint dès la première frame (candidat LCP). */
.js .hero__eyebrow, .js .hero__tagline, .js .hero__lead, .js .hero__action { opacity: 0.3; filter: blur(12px); animation: focusIn 2400ms var(--ease-focus) forwards; }
.js .brand span { opacity: 0.3; filter: blur(clamp(20px, 0.35em, 44px)); animation: focusIn 2600ms var(--ease-focus) forwards; }
.js .brand .g1 { animation-duration: 2800ms; }
.js .brand .g2 { animation-duration: 3000ms; }
.js .hero__cue { opacity: 0; animation: fadeIn 800ms var(--ease-ui) 3000ms forwards; }
@keyframes focusIn { to { opacity: 1; filter: blur(0); } }
@keyframes riseIn { from { opacity: 0; filter: blur(8px); transform: translateY(16px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes riseUi { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- Invitation (/ref/) ---------- */
.invite { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.invite__line { font-size: 24px; line-height: 32px; color: #fff; }
.invite__sub { font-size: 14px; line-height: 20px; color: var(--ink-strong); }
.has-invite .eyebrow#heroEyebrow { display: none; }

/* ---------- Apparitions communes ---------- */
.js .focus-in {
  opacity: 0; filter: blur(6px); transform: translateY(16px);
  transition: opacity 900ms var(--ease-slow), filter 900ms var(--ease-slow), transform 900ms var(--ease-slow);
  transition-delay: var(--d, 0ms);
}
.js .focus-in.is-in { opacity: 1; filter: blur(0); transform: none; }

/* Titres révélés par masques, ligne par ligne */
.mask__line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.mask__line > span { display: inline-block; }
.js .mask .mask__line > span {
  transform: translateY(105%); filter: blur(6px);
  transition: transform 1000ms var(--ease-slow), filter 1000ms var(--ease-slow);
}
.js .mask .mask__line:nth-child(2) > span { transition-delay: 90ms; }
.js .mask .mask__line:nth-child(3) > span { transition-delay: 180ms; }
.js .mask.is-in .mask__line > span { transform: none; filter: blur(0); }

.title { font-size: 30px; line-height: 36px; text-wrap: balance; }
.title--sm { font-size: 24px; line-height: 32px; }
@media (min-width: 768px) {
  .title { font-size: 48px; line-height: 1.05; }
  .title--sm { font-size: 30px; line-height: 36px; }
}

/* ---------- II. Le manifeste ---------- */
.manifesto { padding: 64px 0 96px; }
.manifesto__line {
  font-size: 36px; line-height: 40px; max-width: 18ch;
  text-wrap: balance;
}
.manifesto__line + .manifesto__line { margin-top: 24px; }
/* Chaque mot : --p (progression du manifeste) et --n (nombre de pas) sur le bloc,
   --i (pas du mot, silences compris), posés par reveal.js : un seul mot à la fois. */
.js .manifesto__line .w {
  --t: clamp(0, var(--p, 0) * var(--n, 1) - var(--i, 0), 1);
  display: inline-block;
  opacity: calc(0.22 + 0.78 * var(--t));
  filter: blur(calc((1 - var(--t)) * 10px));
  transform: translateY(calc((1 - var(--t)) * 8px));
}
.manifesto__fall {
  margin-top: 64px;
  font-size: 30px; line-height: 36px; font-weight: 300; letter-spacing: -0.01em;
}
/* La chute se pose après le dernier mot, après une respiration ; elle repart sans attendre */
.js .manifesto__fall.is-in { transition-delay: 300ms; }
@media (min-width: 768px) {
  .manifesto { padding: 96px 0 128px; }
  .manifesto__line { font-size: 48px; line-height: 1.05; max-width: 20ch; }
  .manifesto__line + .manifesto__line { margin-top: 32px; }
  .manifesto__fall { font-size: 48px; line-height: 1; margin-top: 80px; }
}
@media (min-width: 1200px) {
  .manifesto__line { font-size: 60px; }
}
/* Desktop : les phrases descendent en diagonale, la chute revient à gauche — l'inverse. */
@media (min-width: 1024px) {
  .manifesto__line:nth-child(2) { margin-left: 14%; }
  .manifesto__line:nth-child(3) { margin-left: 28%; }
}

/* ---------- III. Le temps ---------- */
.time { padding: 96px 0; }
.time .wrap { max-width: 744px; }
.time .eyebrow, .big-clock, .time__caption { text-align: center; }
/* Le cadran : un anneau de lumière se dessine avec les secondes, puis
   s'efface la minute suivante (stroke-dashoffset et --a posés par reveal.js). */
.dial {
  position: relative; width: min(78vw, 320px); aspect-ratio: 1; margin: 24px auto 0;
  display: grid; place-items: center;
}
.dial__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.dial__track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.dial__arc {
  fill: none; stroke: url(#dialGrad); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 60 60; stroke-dashoffset: 60;
  filter: drop-shadow(0 0 6px rgba(245, 16, 140, 0.6));
}
/* L'aiguille : une tige sans épaisseur, du centre au cercle, qui pivote sur son
   pied. Un carré plein qui pivote débordait de 21 px à 45° (page élargie sur mobile). */
.dial__hand { position: absolute; inset: 0 50% 50% 50%; transform-origin: 50% 100%; transform: rotate(var(--a, 0deg)); }
.dial__head {
  position: absolute; left: 50%; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 8px 2px rgba(255, 154, 203, 0.9), 0 0 24px 6px rgba(245, 16, 140, 0.5);
}
.big-clock {
  position: relative;
  font-size: 72px; line-height: 1; font-weight: 200; letter-spacing: 0.04em;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.42), 0 0 36px rgba(255, 255, 255, 0.2);
}
.time__caption { margin: 24px auto 0; max-width: 360px; color: var(--ink-soft); text-wrap: balance; }
.fragments { list-style: none; margin-top: 80px; display: grid; gap: 32px; }
.fragment__text {
  position: relative; font-size: 24px; line-height: 32px; text-wrap: balance;
  transition: opacity 2400ms var(--ease-slow), filter 2400ms var(--ease-slow);
}
/* Le fil de lumière qui passe sous la phrase à l'ouverture */
.fragment__text::after {
  content: ''; position: absolute; left: 0; bottom: -8px; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--aube), transparent);
  transform: scaleX(0); transform-origin: left; opacity: 0;
}
.fragment.is-opening .fragment__text::after { animation: thread 1600ms var(--ease-slow) forwards; }
@keyframes thread {
  0% { transform: scaleX(0); opacity: 1; }
  70% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
.fragment__meta {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  font-size: 12px; line-height: 16px; color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}
.fragment.is-sealed .fragment__text { opacity: 0.35; filter: blur(12px); user-select: none; }
.fragment.is-open .fragment__icon { opacity: 0.6; }
@media (min-width: 768px) {
  .dial { width: 400px; }
  .time { padding: 128px 0; }
  .big-clock { font-size: 96px; }
  .fragment__text { font-size: 30px; line-height: 36px; }
}
@media (min-width: 1200px) {
  .dial { width: 480px; }
  .big-clock { font-size: 112px; }
  .fragment__text { font-size: 36px; line-height: 40px; }
}

/* ---------- IV. Les Fondateurs ---------- */
.founders { padding: 96px 0 128px; scroll-margin-top: 24px; outline: none; }
.founders__grid { display: grid; gap: 48px; }
.founders .title { margin-top: 16px; }
.founders__text { margin-top: 24px; max-width: 460px; color: var(--ink-soft); text-wrap: pretty; }
.privileges { display: grid; gap: 12px; margin-top: 32px; max-width: 360px; }
.privileges__bar {
  display: block; height: 14px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), rgba(255, 154, 203, 0.55));
  filter: blur(6px);
  animation: breathe 4s ease-in-out infinite alternate;
}
.privileges__bar[data-w="1"] { width: 88%; }
.privileges__bar[data-w="2"] { width: 64%; animation-delay: -1.3s; }
.privileges__bar[data-w="3"] { width: 76%; animation-delay: -2.6s; }
@keyframes breathe { from { opacity: 0.5; } to { opacity: 0.75; } }
.privileges__caption { margin-top: 16px; font-size: 12px; line-height: 16px; letter-spacing: 0.08em; color: var(--ink-mute); }

.wl {
  display: flex; flex-direction: column;
  padding: 24px; border-radius: 24px;
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.wl__label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-soft); }
.wl__input {
  margin-top: 8px; width: 100%; min-height: 52px; padding: 12px 16px;
  border-radius: 12px; border: 1px solid var(--line);
  background: rgba(13, 8, 24, 0.45); font-size: 16px;
  transition: border-color 300ms var(--ease-ui), box-shadow 300ms var(--ease-ui), opacity 300ms var(--ease-ui);
}
.wl__input::placeholder { color: rgba(255, 255, 255, 0.32); }
.wl__input:hover { border-color: rgba(255, 255, 255, 0.24); }
.wl__input:focus-visible { outline: none; border-color: #fff; box-shadow: 0 0 0 4px rgba(245, 16, 140, 0.3); border-radius: 12px; }
.wl__input[aria-invalid="true"] { border-color: var(--danger); }
.wl__input:disabled { opacity: 0.6; }
.wl__error { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--danger); animation: fadeIn 300ms var(--ease-ui) both; }
.wl__submit { margin-top: 16px; }
.wl__note { margin-top: 16px; font-size: 12px; line-height: 16px; color: var(--ink-mute); text-align: center; }
.wl__privacy { margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--ink-mute); text-align: center; text-wrap: balance; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.wl.is-leaving { opacity: 0; filter: blur(8px); transition: opacity 500ms var(--ease-ui), filter 500ms var(--ease-ui); }

@media (min-width: 768px) {
  .founders { padding: 128px 0 160px; }
  .founders__grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .wl { padding: 32px; }
}

/* ---------- Après l'inscription ---------- */
.welcome { display: flex; flex-direction: column; align-items: center; text-align: center; }
.welcome .title { outline: none; }
.welcome__text { margin-top: 8px; color: var(--ink-soft); text-wrap: balance; }
.welcome__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; margin-top: 24px; }
.welcome__status, .welcome__code { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.welcome__code strong { color: #fff; font-weight: 600; letter-spacing: 0.08em; }
.welcome .link--quiet { margin-top: 8px; }

/* ---------- Questions facultatives (code postal, genre) ----------
   Un seul bloc, sous la confirmation du hero ou de l'accueil du bas.
   Partition : docs/features/mesure-campagne/design.md */
.profile {
  display: grid; justify-items: center;
  width: min(100%, 400px); margin: 24px auto 0;
  animation: profileIn 900ms var(--ease-focus) 640ms both;
}
.welcome .profile { margin-bottom: 8px; }
.profile > * { grid-area: 1 / 1; }
.profile.is-leaving { animation: profileOut 560ms var(--ease-ui) both; pointer-events: none; }
@keyframes profileIn { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: blur(0); } }
@keyframes profileOut { from { opacity: 1; filter: blur(0); } to { opacity: 0; filter: blur(8px); } }

.profile__form { display: flex; flex-direction: column; align-items: stretch; width: 100%; text-align: center; }
.profile__form.is-leaving { animation: heroOut 560ms var(--ease-ui) both; pointer-events: none; }
.profile__lead { font-size: 14px; line-height: 20px; color: var(--ink-soft); text-wrap: balance; }
.profile__optional { display: block; margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--ink-mute); }
.profile__genders { margin: 16px 0 0; padding: 0; border: 0; min-width: 0; }
.profile__question {
  display: block; width: 100%; padding: 0;
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-strong);
}
/* Quatre choix en 2 × 2, colonnes égales : aucune pastille orpheline */
.profile__chips {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  width: min(100%, 320px); margin: 8px auto 0;
}
.profile__capsule { margin-top: 12px; }
/* Base nulle : la largeur par défaut du champ ne doit pas élargir le bloc sur petit écran */
.profile__capsule .hero__input { width: 0; }
.profile__form.is-invalid .hero__capsule { box-shadow: inset 0 0 0 1px var(--danger); }
.profile__form.is-invalid .hero__capsule:focus-within { box-shadow: inset 0 0 0 1px var(--danger), 0 0 0 4px rgba(255, 143, 177, 0.25); }
.profile__note { animation: none; }
.profile__skip { align-self: center; min-height: 44px; padding: 0 12px; }
.profile__thanks { align-self: center; font-size: 16px; line-height: 24px; color: var(--ink-soft); text-wrap: balance; animation: heroIn 900ms var(--ease-focus) both; }
.profile__thanks:focus, .profile__thanks:focus-visible { outline: none; box-shadow: none; }
/* Hero : le merci se forme en haut de la zone des questions, qui garde sa hauteur
   jusqu'à la fermeture (transition-merci/design.md) */
.hero__msg .profile__thanks { align-self: start; }

/* La pastille de choix : un radio natif habillé en pilule ; la lumière change, rien ne bouge */
.chip { position: relative; display: flex; cursor: pointer; }
.chip__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip__label {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 0 12px;
  white-space: nowrap;
  border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-soft);
  transition: color 300ms var(--ease-glow), background-color 300ms var(--ease-glow), box-shadow 300ms var(--ease-glow);
}
@media (hover: hover) {
  .chip:hover .chip__label { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24); }
}
.chip__input:checked + .chip__label {
  color: #fff; background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 154, 203, 0.55), 0 0 16px rgba(255, 154, 203, 0.18);
}
.chip__input:focus-visible + .chip__label { outline: 2px solid #fff; outline-offset: 3px; }
.chip__input:disabled, .chip__input:disabled + .chip__label { cursor: default; opacity: 0.6; }
.js .welcome.is-in > :not(.card-stage) { animation: riseUi 700ms var(--ease-ui) both; }
.js .welcome.is-in > :nth-child(1) { animation-delay: 1780ms; }
.js .welcome.is-in > :nth-child(2) { animation-delay: 1900ms; }
.js .welcome.is-in > :nth-child(3) { animation-delay: 2020ms; }
.js .welcome.is-in > :nth-child(5) { animation-delay: 2140ms; }
.js .welcome.is-in > :nth-child(n+6) { animation-delay: 2260ms; }
/* Les questions facultatives arrivent après le texte d'accueil, et gardent leur sortie */
.js .welcome.is-in > .profile { animation-delay: 2140ms; }
.js .welcome.is-in > .profile.is-leaving { animation: profileOut 560ms var(--ease-ui) both; }

/* La carte Fondateur : inclinaison (--rx, --ry) et reflet (--sx, --sy) posés par founder-card.js */
.card-stage { margin-top: 24px; width: min(100%, 320px); perspective: 900px; order: -1; margin-bottom: 24px; }
.fcard {
  position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(154, 27, 235, 0.75), transparent 60%),
    radial-gradient(110% 80% at 100% 100%, rgba(255, 154, 203, 0.55), transparent 60%),
    radial-gradient(80% 60% at 70% 30%, rgba(245, 16, 140, 0.35), transparent 70%),
    var(--bg);
  box-shadow: 0 40px 80px -24px rgba(91, 11, 181, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 500ms var(--ease-ui);
}
.fcard.is-tracking { transition: transform 120ms linear; }
.fcard::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.fcard__sheen {
  position: absolute; inset: -20%; pointer-events: none; mix-blend-mode: color-dodge; opacity: 0.55;
  background:
    radial-gradient(40% 40% at var(--sx, 30%) var(--sy, 20%), rgba(255, 255, 255, 0.55), transparent 70%),
    linear-gradient(115deg, transparent 30%, rgba(154, 27, 235, 0.35) 42%, rgba(255, 154, 203, 0.45) 50%, rgba(255, 255, 255, 0.3) 56%, transparent 68%);
  background-size: 100% 100%, 220% 220%;
  background-position: 0 0, var(--sx, 30%) var(--sy, 20%);
}
.fcard__frame {
  position: absolute; inset: 16px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 32px 16px 24px; text-align: center;
}
.fcard__brand {
  font-size: 22px; line-height: 1; font-weight: 300; letter-spacing: 0.3em; margin-right: -0.3em;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.8), 0 0 32px rgba(255, 255, 255, 0.4);
}
.fcard__role { margin-top: auto; font-size: 36px; line-height: 40px; }
.fcard__date { margin-top: 12px; font-size: 12px; line-height: 16px; color: var(--ink-soft); }
.fcard__rule { display: block; width: 40px; height: 1px; margin: 24px 0 16px; background: rgba(255, 255, 255, 0.4); }
.fcard__url { font-size: 12px; line-height: 16px; letter-spacing: 0.16em; color: var(--ink-mute); }
/* Révélation comme un tirage : flou → net, puis un balayage de lumière */
.js .welcome.is-in .fcard { animation: develop 2400ms var(--ease-slow) 500ms both; }
.js .welcome.is-in .fcard::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sweepOnce 1200ms ease-in-out 2100ms forwards;
}
@keyframes develop {
  from { opacity: 0; filter: blur(40px); scale: 0.96; }
  to { opacity: 1; filter: blur(0); scale: 1; }
}
@keyframes sweepOnce { to { transform: translateX(120%); } }

/* ---------- Pilule collante (mobile) ---------- */
.pill {
  position: fixed; z-index: 20; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  transition: transform 500ms var(--ease-ui), opacity 500ms var(--ease-ui), box-shadow 300ms var(--ease-ui);
}
.pill.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
@media (min-width: 768px) { .pill { display: none; } }

/* ---------- Le fil qui remonte (retour en haut) ----------
   Zone cliquable 44 × 64 : la capsule visible (40 px) est dessinée par ::before,
   le fil par ::after, écho inversé de .hero__cue-line. `transform` porte
   l'apparition, `translate` la montée au-dessus de la pilule, `scale` l'appui. */
.totop {
  position: fixed; z-index: 20;
  right: calc(14px + env(safe-area-inset-right)); bottom: calc(10px + env(safe-area-inset-bottom));
  width: 44px; height: 64px; border-radius: 999px;
  display: flex; justify-content: center; padding-top: 12px;
  color: var(--ink-soft); text-decoration: none;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 300ms var(--ease-ui), transform 300ms var(--ease-ui), translate 500ms var(--ease-ui),
    scale 200ms var(--ease-ui), color 300ms var(--ease-ui);
}
.totop.is-visible {
  opacity: 1; transform: none; pointer-events: auto;
  transition-duration: 500ms, 500ms, 500ms, 200ms, 300ms;
}
.totop::before {
  content: ''; position: absolute; inset: 0 2px; z-index: -1; border-radius: inherit;
  background: var(--glass-strong); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  transition: border-color 300ms var(--ease-ui);
}
.totop::after {
  content: ''; position: absolute; left: 50%; top: 26px; width: 1px; height: 24px; margin-left: -0.5px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
  transform-origin: top; transform: scaleY(0.6); opacity: 0.5;
  transition: transform 900ms var(--ease-ui), opacity 900ms var(--ease-ui);
}
.totop__tip { display: block; flex: none; }
/* Survol réel seulement (un tap laisserait le fil allumé), et focus clavier */
@media (hover: hover) {
  .totop:hover { color: #fff; }
  .totop:hover::before { border-color: rgba(255, 255, 255, 0.28); }
  .totop:hover::after { transform: scaleY(1); opacity: 1; background: linear-gradient(to bottom, #fff, rgba(255, 154, 203, 0.5) 60%, transparent); }
}
.totop:focus-visible { color: #fff; }
.totop:focus-visible::before { border-color: rgba(255, 255, 255, 0.28); }
.totop:focus-visible::after { transform: scaleY(1); opacity: 1; background: linear-gradient(to bottom, #fff, rgba(255, 154, 203, 0.5) 60%, transparent); }
.totop:active { scale: 0.96; }
/* Sous 360 px, la pilule et la capsule ne tiennent pas sur une ligne : elle monte à 12 px au-dessus */
@media (max-width: 359px) { .pill.is-visible ~ .totop { translate: 0 -70px; } }
@media (min-width: 768px) {
  .totop { right: calc(22px + env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom)); }
}

/* Le voile du retour : la nuit tombe vite et se lève lentement (durées lues par totop.js) */
.veil {
  --return-out: 480ms; --return-hold: 120ms; --return-in: 1000ms;
  position: fixed; z-index: 90; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh;
  background: var(--bg); opacity: 0; pointer-events: none;
  transition: opacity var(--return-in) var(--ease-slow);
}
.is-returning .veil { opacity: 1; transition: opacity var(--return-out) var(--ease-glow); }
/* Le hero reçoit le focus au retour, sans contour (comme .hero__msg-text) */
.hero:focus { outline: none; box-shadow: none; }

/* ---------- Le fil de lecture (barre de défilement) ----------
   Le même fil que .hero__cue-line. Sa teinte dépend de sa place : un dégradé
   blanc → aube court sur toute la page, et le pouce en montre le morceau qu'il
   couvre (--fil-top → --fil-bot, triplets RVB posés sur <html> par thread.js).
   Desktop : la barre native est habillée, ses gestes restent ceux du système.
   Tactile : le natif est masqué et .fil le remplace, sous une seule et même
   condition, pour qu'il n'y ait jamais deux indicateurs. */
@media (hover: hover) and (forced-colors: none) {
  html::-webkit-scrollbar { width: 12px; height: 12px; background: transparent; }
  html::-webkit-scrollbar-track, html::-webkit-scrollbar-corner { background: transparent; }
  /* Un rail d'un pixel se devine au survol de la barre */
  html::-webkit-scrollbar-track:hover {
    background: linear-gradient(to right, transparent 5.5px, rgba(255, 255, 255, 0.07) 5.5px, rgba(255, 255, 255, 0.07) 6.5px, transparent 6.5px);
  }
  /* Trait de 2 px : la bordure transparente affine le dessin, la prise garde les 12 px */
  html::-webkit-scrollbar-thumb {
    min-height: 56px; border-radius: 999px; border: solid transparent; border-width: 4px 5px; background-clip: padding-box;
    background-image: linear-gradient(to bottom, rgb(var(--fil-top, 255 255 255) / 0.74), rgb(var(--fil-bot, 255 255 255) / 0.74));
  }
  html::-webkit-scrollbar-thumb:hover, html::-webkit-scrollbar-thumb:active {
    border-width: 4px; background-image: linear-gradient(to bottom, rgb(var(--fil-top, 255 255 255)), rgb(var(--fil-bot, 255 255 255)));
  }
  /* Firefox : ni forme ni survol, seulement la finesse et la teinte du milieu */
  @supports not selector(::-webkit-scrollbar) {
    html { scrollbar-width: thin; scrollbar-color: rgb(var(--fil-mid, 255 255 255) / 0.74) transparent; }
  }
}
.fil { display: none; }
@media (hover: none) and (pointer: coarse) and (forced-colors: none) {
  @supports (scrollbar-width: none) {
    html { scrollbar-width: none; }
    .fil { display: block; }
  }
}
.fil {
  position: fixed; z-index: 21; pointer-events: none;
  top: calc(8px + env(safe-area-inset-top)); bottom: calc(8px + env(safe-area-inset-bottom));
  right: calc(4px + env(safe-area-inset-right)); width: 2px;
}
/* Né au geste en 150 ms, effacé en 600 ms après 800 ms d'immobilité (thread.js) */
.fil__thumb {
  position: absolute; top: 0; left: 0; width: 100%; height: 36px; border-radius: 999px;
  background: linear-gradient(to bottom, rgb(var(--fil-top, 255 255 255) / 0.8), rgb(var(--fil-bot, 255 255 255) / 0.8));
  opacity: 0; transition: opacity 600ms var(--ease-glow);
}
.fil.is-on .fil__thumb { opacity: 1; transition: opacity 150ms var(--ease-ui); }

/* ---------- Pied de page ---------- */
.footer { padding: 32px var(--gutter) calc(96px + env(safe-area-inset-bottom)); text-align: center; font-size: 12px; line-height: 16px; color: var(--ink-mute); }
.footer a { text-decoration: none; display: inline-block; padding: 12px 4px; }
.footer a:hover { color: #fff; }
.footer .mark { margin: 0 auto 8px; }
@media (min-width: 768px) { .footer { padding-bottom: 48px; } }

/* ---------- Pages légales ---------- */
.legal { max-width: 680px; margin: 0 auto; padding: 32px var(--gutter) 16px; color: var(--ink-soft); }
.legal a { color: var(--ink); text-underline-offset: 3px; }
.legal__home { display: inline-block; padding: 16px 0; font-size: 12px; line-height: 12px; font-weight: 600; letter-spacing: 0.32em; text-decoration: none; }
.legal__title { margin-top: 32px; font-size: 40px; line-height: 48px; color: var(--ink); }
.legal__date { margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--ink-mute); }
.legal h2 { margin: 48px 0 12px; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); }
.legal__date + p { margin-top: 32px; }
.legal p + p, .legal ul + p, .legal__table + p { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 8px; }
.legal strong { font-weight: 600; color: var(--ink-strong); }
.legal code { font-size: 14px; overflow-wrap: anywhere; }
.legal__table { overflow-x: auto; margin-top: 12px; }
.legal__table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.legal__table th, .legal__table td { padding: 12px 16px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal__table th { font-weight: 500; color: var(--ink-mute); }
.legal__table th[scope="row"] { width: 128px; }
.legal p.legal__back { margin-top: 48px; }

/* ---------- Page 404 ---------- */
.lost {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  padding: 96px var(--gutter); text-align: center;
}
/* Le wordmark ne fait jamais sa mise au point. */
.lost .brand { margin-top: 0; }
.lost .brand span { animation: none; filter: blur(10px); opacity: 0.7; }
.lost__line { font-size: 24px; line-height: 32px; }
.lost .link { font-size: 16px; }
.js .lost > * { opacity: 0; animation: riseIn 1800ms var(--ease-slow) forwards; }
.js .lost > :nth-child(2) { animation-delay: 600ms; }
.js .lost > :nth-child(3) { animation-delay: 1200ms; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js .brand span, .js .hero__eyebrow, .js .hero__tagline, .js .hero__lead, .js .hero__action, .js .hero__cue { opacity: 1; filter: none; transform: none; animation: none; }
  .hero__cta.is-leaving { filter: none; }
  .hero__capsule::before { animation: none; opacity: 0; }
  .js .focus-in, .js .mask .mask__line > span { opacity: 1; filter: none; transform: none; }
  .js .manifesto__line .w { opacity: 1; filter: none; transform: none; }
  .hero__inner { transform: none; opacity: 1; filter: none; }
  .hero__cue-line { animation: none; transform: none; }
  .privileges__bar { animation: none; opacity: 0.6; }
  .clock .d.is-tick { animation: none; }
  .fcard { transform: none; }
  .js .welcome.is-in .fcard { animation: fadeIn 200ms linear both; }
  .js .welcome.is-in .fcard::before { display: none; }
  .js .lost > * { opacity: 1; animation: none; }
  .js .sound { opacity: 1; animation: none; }
  .btn--primary:is(:hover, :focus-visible)::after { animation: none; }
}
