/* ==========================================================================
   Sillage — sillage.ekaii.fr
   Direction A « Le sillage du curseur » — brief de fabrication définitif.
   Un seul accent : le Phosphore. Tout ce qui brille est du sillage.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Polices auto-hébergées + replis ajustés métriquement (G11 — CLS 0)
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Replis métriques : la page ne bouge pas quand la vraie police arrive. */
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 105%;
  ascent-override: 96%;
  descent-override: 24%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Inter Fallback";
  src: local("Helvetica Neue"), local("Arial");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */

:root {
  --ink:    #07090C;
  --ink2:   #0D1117;
  --algue:  #103B33;
  --phos:   #7DF3D4;
  --coeur:  #E9FFF8;
  --txt:    #EDF2EF;
  --txt2:   #8FA09B;
  --filet:  #1C2622;

  --f-disp: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --f-text: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:  cubic-bezier(0.65, 0, 0.35, 1);

  --pad-x: clamp(1.25rem, 6vw, 6rem);
  --measure: 34em;
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */

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

html {
  background: var(--ink);
  color-scheme: dark;
  scrollbar-color: var(--filet) var(--ink);
  scrollbar-width: thin;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip; /* clip sans créer de conteneur de scroll (sticky intact) */
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: transparent; /* le champ WebGL vit derrière */
  color: var(--txt);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, figure, blockquote, p, ul, ol { margin: 0; }
ul, ol { padding: 0; }
button { font: inherit; }
a { color: inherit; }
em { font-style: italic; }

::selection { background: var(--phos); color: var(--ink); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
  background: var(--filet);
  border-radius: 5px;
  border: 2px solid var(--ink);
}
::-webkit-scrollbar-thumb:hover { background: var(--algue); }

:focus { outline: 2px solid var(--phos); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--phos); outline-offset: 3px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink2);
  color: var(--txt);
  border: 1px solid var(--phos);
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

/* --------------------------------------------------------------------------
   4. Le champ (canvas fixe) + affiche statique de repli
   -------------------------------------------------------------------------- */

#field {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  display: block;
  background: var(--ink);
}

.poster {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: none;
  background:
    radial-gradient(120% 80% at 28% 30%, rgba(16, 59, 51, 0.5), transparent 60%),
    radial-gradient(90% 70% at 75% 75%, rgba(16, 59, 51, 0.28), transparent 65%),
    var(--ink);
}
.poster svg { width: 100%; height: 100%; display: block; }

.field-static #field { display: none; }
.field-static .poster { display: block; }

/* --------------------------------------------------------------------------
   5. Le fil de sillage (SVG pleine page)
   -------------------------------------------------------------------------- */

.thread {
  position: absolute;
  top: 0; left: 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
.thread-glow   { fill: none; stroke: var(--phos); stroke-opacity: 0.07; stroke-width: 7;   stroke-linecap: round; }
.thread-line   { fill: none; stroke: var(--phos); stroke-opacity: 0.38; stroke-width: 1.2; stroke-linecap: round; }
.thread-branch { fill: none; stroke: var(--phos); stroke-opacity: 0.20; stroke-width: 1;   stroke-linecap: round; }

/* --------------------------------------------------------------------------
   6. En-tête
   -------------------------------------------------------------------------- */

.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.1rem var(--pad-x);
  background: linear-gradient(to bottom, rgba(7, 9, 12, 0.82), rgba(7, 9, 12, 0));
  pointer-events: none;
}
.site-head a { pointer-events: auto; }

.wordmark {
  font-family: var(--f-disp);
  font-weight: 560;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--txt);
  text-decoration: none;
}
.wordmark:hover { color: var(--coeur); }

.site-nav { display: flex; gap: 1.8rem; }
.site-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--txt2);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.site-nav a:hover { color: var(--phos); }

/* --------------------------------------------------------------------------
   7. Chapitres — gabarit commun
   -------------------------------------------------------------------------- */

main { position: relative; z-index: 1; }

.ch {
  position: relative;
  padding: 24vh var(--pad-x);
  max-width: 100rem;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--f-text);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--phos);
  margin-bottom: 1.6rem;
}

.ch-title {
  font-family: var(--f-disp);
  font-weight: 480;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--txt);
  max-width: 16em;
  font-variation-settings: "opsz" 144;
}
.ch-title em { font-weight: 500; }

.lead {
  max-width: var(--measure);
  color: var(--txt);
  margin-top: 2.2rem;
}
.lead + .lead { margin-top: 1.1rem; }

.mono, .mono-fact {
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}
.mono-fact {
  color: var(--txt2);
  border: 1px solid var(--filet);
  border-radius: 8px;
  padding: 0.7rem 1.1rem;
  display: inline-block;
  margin-top: 3rem;
}

/* --------------------------------------------------------------------------
   8. Chapitre 01 — Le champ (héros)
   -------------------------------------------------------------------------- */

.ch-hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 18vh;
  padding-bottom: 12vh;
}

.hero-inner { will-change: transform; }

.hero-eyebrow { margin-bottom: 2.4rem; }

.hero-title {
  font-family: var(--f-disp);
  font-weight: 580;
  font-size: clamp(4rem, 12vw, 11.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--txt);
  font-variation-settings: "opsz" 144;
}

.tagline {
  margin-top: 2.6rem;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.55;
  color: var(--txt);
}
.tagline em { font-family: var(--f-disp); font-weight: 500; }

.hero-hint {
  position: absolute;
  bottom: 7.5rem;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  color: var(--txt2);
}

.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  width: 1px;
  height: 3.6rem;
  margin-left: -0.5px;
  background: var(--filet);
  overflow: hidden;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  top: -30%;
  left: 0;
  width: 100%;
  height: 30%;
  background: var(--phos);
  animation: cue-drop 2.4s var(--ease-in) infinite;
}
@keyframes cue-drop {
  0%   { transform: translateY(0); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translateY(433%); opacity: 0; }
}

/* --------------------------------------------------------------------------
   9. Chapitre 02 — Le sillage (fenêtres chevauchantes)
   -------------------------------------------------------------------------- */

.windows {
  margin-top: 4.5rem;
  overflow: hidden;
  padding: 1.5rem 0;
}

.lamelles {
  display: flex;
  list-style: none;
  width: max-content;
  will-change: transform;
}

.lamelle {
  width: 19rem;
  flex: none;
  margin-right: -4.5rem; /* le chevauchement */
  padding: 1.15rem 1.3rem 1.3rem;
  background: rgba(13, 17, 23, 0.88);
  border: 1px solid var(--filet);
  border-radius: 10px;
  opacity: 0.5;
  transition: opacity 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}
.lamelle:last-child { margin-right: 0; }

.lamelle .meta {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  color: var(--txt2);
  letter-spacing: 0.02em;
}
.lamelle .tracks {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--txt2);
  opacity: 0.75;
}
.lamelle .fill {
  display: block;
  margin-top: 1rem;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--algue), rgba(16, 59, 51, 0.15));
}

.lamelle.is-present {
  opacity: 1;
  border-color: var(--phos);
  box-shadow: 0 0 28px rgba(125, 243, 212, 0.10);
}
.lamelle.is-present .meta { color: var(--phos); }
.lamelle.is-present .fill {
  background: linear-gradient(90deg, var(--phos), var(--algue));
}

/* --------------------------------------------------------------------------
   10. Chapitre 03 — Les trois gestes (panneaux sticky)
   -------------------------------------------------------------------------- */

.stack {
  margin-top: 5rem;
  padding-bottom: 12vh;
}

.panel {
  position: sticky;
  max-width: 40rem;
  margin: 0 auto;
  background: var(--ink2);
  border: 1px solid var(--filet);
  border-radius: 14px;
  padding: 2rem 2.2rem 1.8rem;
}
.panel:nth-of-type(1) { top: 13vh; }
.panel:nth-of-type(2) { top: 17vh; margin-top: 26vh; }
.panel:nth-of-type(3) { top: 21vh; margin-top: 26vh; }

.panel-tag {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--phos);
  margin-bottom: 1.3rem;
}

.bubble-meta {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--txt2);
  letter-spacing: 0.02em;
  border: 1px solid var(--filet);
  border-radius: 6px;
  padding: 0.45rem 0.7rem;
  display: inline-block;
}

.bubble-quote {
  margin: 1.3rem 0 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 2px solid var(--filet);
  color: var(--txt2);
  font-size: 0.95rem;
  line-height: 1.6;
}
.bubble-quote cite { font-style: normal; font-weight: 500; color: var(--txt); display: block; margin-bottom: 0.2rem; }

.bubble-draft {
  margin-top: 1.3rem;
  background: rgba(7, 9, 12, 0.6);
  border: 1px solid var(--filet);
  border-radius: 10px;
  padding: 1rem 1.2rem;
}
.bubble-draft-label {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--txt2);
  margin-bottom: 0.55rem;
}
.bubble-draft p { font-size: 0.98rem; }
.bubble-list { list-style: none; font-size: 0.98rem; }
.bubble-list li + li { margin-top: 0.45rem; }

.bubble-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.4rem;
}

.demo-state {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--phos);
  min-height: 1em;
}

.panel-close {
  margin-top: 1.6rem;
  font-family: var(--f-disp);
  font-weight: 460;
  font-size: 1.15rem;
  color: var(--txt2);
}
.panel-close em { color: var(--txt); font-weight: 520; }

/* Boutons */
.btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--filet);
  border-radius: 999px;
  color: var(--txt);
  font-family: var(--f-text);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.btn:hover { border-color: var(--phos); }
.btn.is-done { border-color: var(--phos); color: var(--phos); cursor: default; }
.btn:disabled { opacity: 0.9; }

/* --------------------------------------------------------------------------
   11. Chapitre 04 — Mémoire et confidentialité
   -------------------------------------------------------------------------- */

.privacy-scene {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-top: 5rem;
}

.machine {
  position: relative;
  border: 1px solid var(--filet);
  border-radius: 20px;
  padding: 2rem 2.1rem;
  min-height: 24rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}
.machine-caption {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--txt2);
}

.excerpt {
  position: relative;
  background: var(--ink2);
  border: 1px solid var(--filet);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  line-height: 2;
  color: var(--txt);
}
.x-line { position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-keep { overflow: visible; } /* la ligne confirmée doit pouvoir franchir le cadre */

/* Caviardage : barres Encre posées sur Encre 2, une à une (G3). */
.redact { position: relative; display: inline-block; max-width: 100%; }
.redact::after {
  content: "";
  position: absolute;
  inset: 2px -4px;
  background: var(--ink);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease-out);
}
.cloud-on .r1::after { transform: scaleX(1); transition-delay: 0.15s; }
.cloud-on .r2::after { transform: scaleX(1); transition-delay: 0.45s; }
.cloud-on .r3::after { transform: scaleX(1); transition-delay: 0.75s; }

.x-keep { color: var(--txt); }
.sent .x-keep > .keep-text { opacity: 0.35; transition: opacity 0.4s; }

/* La ligne qui voyage vers le cloud, après confirmation. */
.payload {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  color: var(--phos);
  pointer-events: none;
  white-space: nowrap;
  will-change: transform;
  transition: transform 1.15s var(--ease-in), opacity 0.35s var(--ease-out);
}
.sent .payload { opacity: 1; }

.cloud-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }

.switch {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: transparent;
  border: 0;
  padding: 0.3rem 0;
  color: var(--txt);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
}
.switch-track {
  position: relative;
  width: 46px; height: 26px;
  border-radius: 999px;
  border: 1px solid var(--filet);
  background: var(--ink2);
  transition: border-color 0.25s var(--ease-out);
}
.switch-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--txt2);
  transition: transform 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}
.switch[aria-checked="true"] .switch-track { border-color: var(--phos); }
.switch[aria-checked="true"] .switch-thumb { transform: translateX(20px); background: var(--phos); }

.switch-state {
  flex-basis: 100%;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--txt2);
}

.confirm {
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), visibility 0s 0.4s;
}
.confirm-ready .confirm {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.sent .confirm { opacity: 0.35; pointer-events: none; }

.beyond { text-align: center; }
.cloud-ico { width: 6rem; height: auto; display: block; margin: 0 auto 1.4rem; }
.cloud-ico .c-base { stroke: var(--txt2); opacity: 0.6; }
.cloud-ico .c-lit  { stroke: var(--phos); opacity: 0; transition: opacity 0.6s var(--ease-out) 0.95s; }
.sent-scene .cloud-ico .c-lit { opacity: 1; }
.beyond-note { color: var(--txt2); font-size: 0.95rem; max-width: 22em; margin: 0 auto; }

.frame-legend {
  margin-top: 3.2rem;
  text-align: center;
  font-family: var(--f-disp);
  font-weight: 460;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--txt);
}

.facts {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1rem;
  list-style: none;
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  color: var(--txt2);
}
.facts li { padding: 0.5rem 0.9rem; border: 1px solid var(--filet); border-radius: 999px; }

/* --------------------------------------------------------------------------
   12. Chapitre 05 — Plateformes (rien ne s'anime ici — délibéré)
   -------------------------------------------------------------------------- */

.ch-still .ch-title { font-weight: 460; }

.plat-note {
  max-width: var(--measure);
  color: var(--txt2);
  margin-top: 1.6rem;
  font-size: 0.98rem;
}

.plat {
  width: 100%;
  max-width: 62rem;
  margin-top: 4rem;
  border-collapse: collapse;
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
}
.plat th, .plat td {
  text-align: left;
  font-weight: 400;
  vertical-align: top;
  padding: 1.1rem 1.4rem 1.1rem 0;
  border-bottom: 1px solid var(--filet);
}
.plat thead th {
  color: var(--txt2);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 0.7rem;
}
.plat tbody th { color: var(--txt); white-space: nowrap; }
.plat td { color: var(--txt2); }
.plat .cell-level { color: var(--txt); }
.plat .trace { display: block; margin-top: 0.45rem; }
.trace-bar  { fill: var(--algue); }
.trace-head { fill: var(--phos); }

/* --------------------------------------------------------------------------
   13. Chapitre 06 — Télécharger
   -------------------------------------------------------------------------- */

.dl-zone {
  margin-top: 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-wrap { position: relative; display: inline-block; }

.cta-glow {
  position: absolute;
  inset: -120% -60%;
  background: radial-gradient(closest-side, rgba(125, 243, 212, 0.16), transparent 72%);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: var(--phos);
  color: var(--ink);
  border-radius: 999px;
  padding: 1.15rem 2.6rem;
  transition: background-color 0.25s var(--ease-out);
  will-change: transform;
}
.cta:hover { background: var(--coeur); }

/* État honnête avant la sortie : la pastille annonce, elle ne ment pas. */
.cta-soon { cursor: default; }
.cta-soon:hover { background: var(--phos); }
.cta .magnetic-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  will-change: transform;
}
.cta-main { font-weight: 560; font-size: 1.1rem; letter-spacing: -0.01em; }
.cta-os   { font-family: var(--f-mono); font-size: 0.72rem; opacity: 0.75; }

.dl-meta {
  margin-top: 2.2rem;
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  color: var(--txt2);
  max-width: 100%;
}

.dl-alt {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 2rem;
  list-style: none;
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  color: var(--txt2);
}
.dl-alt a { color: var(--txt2); text-decoration: none; border-bottom: 1px solid var(--filet); padding-bottom: 1px; }
.dl-alt a:hover { color: var(--phos); border-color: var(--phos); }

.dl-note { margin-top: 2.6rem; color: var(--txt2); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   14. Chapitre 07 — Pied : la restitution
   -------------------------------------------------------------------------- */

.pied {
  position: relative;
  z-index: 1;
  padding: 22vh var(--pad-x) 4rem;
  max-width: 100rem;
  margin: 0 auto;
  text-align: center;
}

.pied .ch-title { margin: 0 auto; font-size: clamp(1.9rem, 4vw, 3.2rem); }

#archive {
  display: block;
  margin: 3.4rem auto 0;
  width: min(34rem, 88vw);
  height: auto;
  border: 1px solid var(--filet);
  border-radius: 12px;
  background: var(--ink);
}
.archive-fallback { display: none; margin: 3.4rem auto 0; width: min(34rem, 88vw); }
/* Sans animation, pas de trace — et on ne l'invente pas : une ligne, pas un faux tracé. */
.pied .archive-fallback p {
  margin: 0;
  max-width: none;
  padding: 2.8rem 1.8rem;
  border: 1px dashed var(--filet);
  border-radius: 12px;
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  color: var(--txt2);
}
.field-static #archive { display: none; }
.field-static .archive-fallback { display: block; }

.restitution p { max-width: var(--measure); margin: 2.2rem auto 0; }
.restitution .mono-fact { margin-top: 2.2rem; }

.footmark {
  margin-top: 16vh;
  font-family: var(--f-disp);
  font-weight: 580;
  font-size: clamp(5rem, 17vw, 15rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--txt);
  opacity: 0.92;
  user-select: none;
}
.footmark .k { display: inline-block; will-change: transform, opacity; }

.foot-nav {
  margin-top: 5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 2.4rem;
}
.foot-nav a {
  color: var(--txt2);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid var(--filet);
  padding-bottom: 1px;
}
.foot-nav a:hover { color: var(--phos); border-color: var(--phos); }

.colophon {
  margin-top: 2.6rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--txt2);
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   15. Curseur (desktop — le natif reste visible en parallèle)
   -------------------------------------------------------------------------- */

.cursor-halo {
  position: fixed;
  top: 0; left: 0;
  z-index: 90;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  will-change: transform;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(125, 243, 212, 0.35);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), margin 0.25s var(--ease-out);
}
.cursor-on .cursor-halo { opacity: 1; }
.cursor-hover .cursor-halo {
  width: 52px; height: 52px;
  margin: -26px 0 0 -26px;
}

/* --------------------------------------------------------------------------
   16. Reveals + typographie cinétique
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.js .reveal-fade {
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
}
.js .reveal-fade.is-in { opacity: 1; }

.d1 { transition-delay: 0.12s !important; }
.d2 { transition-delay: 0.28s !important; }
.d3 { transition-delay: 0.45s !important; }

/* Titres éclatés : mots en écrins (clip), lettres translatées (G15).
   Le padding préserve les descendantes (g, p, q) du rognage. */
.kw {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
  padding-right: 0.06em;
  margin-right: -0.06em;
}
.k  { display: inline-block; }

.js [data-kinetic] .k {
  transform: translateY(115%);
  transition: transform 0.7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 20ms);
}
.js [data-kinetic].is-in .k { transform: none; }

/* Le H1 héros attend la fin de l'écriture auto (interruptible). */
.js .hero-title .k {
  transform: translateY(115%);
  transition: transform 0.95s var(--ease-out);
  transition-delay: calc(80ms + var(--i, 0) * 45ms);
}
html.hero-ready .hero-title .k { transform: none; }

/* Seule la tagline attend le H1 : eyebrow et hint s'affichent tôt. */
.js:not(.hero-ready) .ch-hero .tagline.reveal { opacity: 0 !important; transform: translateY(24px) !important; }
.js:not(.hero-ready) .scroll-cue { opacity: 0; }
.scroll-cue { transition: opacity 0.8s var(--ease-out) 0.6s; }

/* --------------------------------------------------------------------------
   17. Page contenu (confidentialité)
   -------------------------------------------------------------------------- */

.page {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin: 0 auto;
  padding: 22vh var(--pad-x) 10vh;
}
.page-title {
  font-family: var(--f-disp);
  font-weight: 520;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.page h2 {
  font-family: var(--f-disp);
  font-weight: 480;
  font-size: 1.6rem;
  margin-top: 3.6rem;
  letter-spacing: -0.01em;
}
.page p, .page ul { margin-top: 1.1rem; max-width: var(--measure); color: var(--txt); }
.page ul { list-style: none; }
.page li { padding-left: 1.2rem; position: relative; margin-top: 0.5rem; }
.page li::before { content: "—"; position: absolute; left: 0; color: var(--txt2); }
.page .mono-fact { margin-top: 1.6rem; }
.page a { color: var(--txt); text-decoration-color: var(--filet); }
.page a:hover { color: var(--phos); }
.page .muted { color: var(--txt2); }
.page-foot {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem var(--pad-x) 3rem;
}

/* --------------------------------------------------------------------------
   18. Mobile / tactile
   -------------------------------------------------------------------------- */

@media (max-width: 760px) {
  .ch { padding-top: 18vh; padding-bottom: 18vh; }

  .panel,
  .panel:nth-of-type(1), .panel:nth-of-type(2), .panel:nth-of-type(3) {
    position: static;
    top: auto;
    margin-top: 2rem;
  }

  .privacy-scene { grid-template-columns: 1fr; }
  .beyond { padding-top: 1rem; }

  .lamelle { width: 15.5rem; margin-right: -3.2rem; }

  .plat thead { display: none; }
  .plat, .plat tbody, .plat tr, .plat th, .plat td { display: block; }
  .plat tbody th { white-space: normal; padding-bottom: 0.2rem; border-bottom: 0; }
  .plat td { padding-top: 0; }
  .plat tr { border-bottom: 1px solid var(--filet); padding: 0.9rem 0; }
  .plat th, .plat td { border-bottom: 0; padding-right: 0; }

  .hero-hint { bottom: 6.4rem; }
  .site-nav { gap: 1.1rem; }
}

@media (pointer: coarse) {
  .cursor-halo { display: none; }
}

/* --------------------------------------------------------------------------
   19. prefers-reduced-motion : le site complet, digne, sans animation
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
    transition-delay: 0s !important;
  }

  .js .reveal, .js .reveal-fade {
    opacity: 1;
    transform: none;
    transition: opacity 0.25s ease !important;
  }

  .js [data-kinetic] .k, .js .hero-title .k { transform: none !important; }
  .js:not(.hero-ready) .ch-hero .tagline.reveal { opacity: 1 !important; transform: none !important; }
  .js:not(.hero-ready) .scroll-cue { opacity: 1; }

  .scroll-cue::after { display: none; }
  .lamelles { transform: none !important; }
  .lamelle { opacity: 0.75; }
  .lamelle.is-present { opacity: 1; }
  .cursor-halo { display: none; }
  .cta-glow { opacity: 0.35 !important; }
  .payload { transition: none; }
  .footmark .k { opacity: 1 !important; transform: none !important; }
}
