/* Prospi, le site.
   Mise en page : la page se lit comme une phrase qu'on compose. Chaque
   section ajoute un mot ; les objets centraux sont ceux de l'appli (la
   barre de phrase, les cases de la clé de Fitzgerald) et le cahier à
   grands carreaux (Seyès) où la phrase s'écrit juste. */

@font-face {
  font-family: "Atkinson Next";
  src: url("../fonts/atkinson-next.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Playwrite FR";
  src: url("../fonts/playwrite-fr.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Mono";
  src: url("../fonts/atkinson-mono.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  /* Couleur : un papier légèrement teinté de la sarcelle de l'appli,
     l'encre presque noire, la sarcelle pour agir, et les sept couleurs de
     la clé de Fitzgerald comme contenu (jamais comme décor). */
  --paper: #f3f6f5;
  --paper-2: #e6eeec;
  --card: #ffffff;
  --ink: #13201e;
  --ink-2: #485855;
  --line: #d0dcd9;
  --teal: #0f766e;
  --teal-ink: #0c655e;
  --on-teal: #ffffff;
  --band: #0b2e2b;
  --on-band: #e3f1ee;
  --on-band-2: #a9c7c1;
  --seyes-h: #b9cbe8;
  --seyes-strong: #8eaadb;
  --seyes-margin: #e27d7d;
  --pen: #b4232c;
  --focus: #0f766e;

  --k-who: #f3b211;   --k-who-bg: #fdf3d7;
  --k-act: #43a047;   --k-act-bg: #e3f3e4;
  --k-thing: #ef6c00; --k-thing-bg: #fdebdc;
  --k-desc: #1e88e5;  --k-desc-bg: #e3effb;
  --k-small: #8e24aa; --k-small-bg: #f2e7f7;
  --k-social: #d81b60; --k-social-bg: #fbe5ee;
  --k-ask: #3949ab;   --k-ask-bg: #e8eaf6;

  /* Type : Atkinson Hyperlegible Next (dessinée pour les lecteurs
     malvoyants) porte tout le texte ; Playwrite FR, l'écriture cursive
     de l'école française, n'écrit que les phrases que Prospi rend justes. */
  --f-text: "Atkinson Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-hand: "Playwrite FR", "Segoe Script", "Bradley Hand", cursive;
  --f-mono: "Atkinson Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --s-body: 1.125rem;
  --s-small: 0.95rem;
  --s-lead: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  --s-h3: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  --s-h2: clamp(2rem, 1.4rem + 2.6vw, 3.6rem);
  --s-h1: clamp(2.6rem, 1.6rem + 4.6vw, 5.6rem);

  --r-tile: 18px;
  --r-ui: 12px;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1514; --paper-2: #131d1c; --card: #18221f;
    --ink: #e5eeeb; --ink-2: #a2b3af; --line: #2a3835;
    --teal: #45d0be; --teal-ink: #45d0be; --on-teal: #08201c;
    --band: #07201d; --on-band: #e3f1ee; --on-band-2: #9dbcb6;
    --seyes-h: #24344c; --seyes-strong: #33507a; --seyes-margin: #7a3a3a;
    --pen: #ff8a8f; --focus: #45d0be;
    --k-who-bg: #3c331d; --k-act-bg: #223629; --k-thing-bg: #3c2c1e;
    --k-desc-bg: #1f3040; --k-small-bg: #34263c; --k-social-bg: #3b2330;
    --k-ask-bg: #262a40;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1514; --paper-2: #131d1c; --card: #18221f;
  --ink: #e5eeeb; --ink-2: #a2b3af; --line: #2a3835;
  --teal: #45d0be; --teal-ink: #45d0be; --on-teal: #08201c;
  --band: #07201d; --on-band: #e3f1ee; --on-band-2: #9dbcb6;
  --seyes-h: #24344c; --seyes-strong: #33507a; --seyes-margin: #7a3a3a;
  --pen: #ff8a8f; --focus: #45d0be;
  --k-who-bg: #3c331d; --k-act-bg: #223629; --k-thing-bg: #3c2c1e;
  --k-desc-bg: #1f3040; --k-small-bg: #34263c; --k-social-bg: #3b2330;
  --k-ask-bg: #262a40;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--s-body);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--teal-ink); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.08; text-wrap: balance; margin: 0; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: var(--s-h2); }
h3 { font-size: var(--s-h3); letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--teal); color: var(--on-teal); padding: .6rem 1rem; border-radius: var(--r-ui);
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + .75rem); }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.measure { max-width: 62ch; }
.lead { font-size: var(--s-lead); line-height: 1.5; color: var(--ink-2); }
.kicker {
  font-family: var(--f-mono); font-size: var(--s-small); color: var(--teal-ink);
  display: inline-flex; align-items: center; gap: .55rem;
}
.kicker::before { content: ""; width: .9rem; height: .9rem; border-radius: 4px; background: var(--kicker, var(--teal)); }

/* ——— En-tête ——— */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--paper);
}
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, transform .35s var(--ease);
}
.site-head.is-scrolled { border-bottom-color: var(--line); }
.site-head.is-hidden { transform: translateY(-100%); }
.site-head .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.35rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { width: 2.1rem; height: 2.1rem; flex: none; }
.nav { display: flex; gap: 1.4rem; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; }
.nav a:hover { color: var(--teal-ink); }
.head-tools { display: flex; align-items: center; gap: .6rem; }
.motion-toggle {
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink-2);
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: .4rem .8rem; cursor: pointer; display: inline-flex; gap: .45rem; align-items: center;
}
.motion-toggle[aria-pressed="true"] { color: var(--ink); border-color: var(--ink-2); }
.motion-toggle .dot { width: .65rem; height: .65rem; border-radius: 50%; border: 2px solid currentColor; }
.motion-toggle[aria-pressed="true"] .dot { background: currentColor; }
.head-tools { position: relative; }
.motion-note { position: absolute; top: calc(100% + .5rem); right: 0; width: min(18rem, 80vw); padding: .6rem .8rem; border-radius: var(--r-ui); background: var(--ink); color: var(--paper); font-size: var(--s-small); }
.motion-note:empty { display: none; }
@media (max-width: 880px) {
  .nav { display: none; }
  .head-tools { margin-left: auto; }
  .motion-toggle .label-long { display: none; }
}

/* ——— Boutons ——— */
.btn {
  --btn-bg: var(--teal); --btn-fg: var(--on-teal);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font: inherit; font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  min-height: 3.1rem; padding: .8rem 1.4rem;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 2px solid var(--btn-bg); border-radius: var(--r-ui);
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), color .25s;
}
.btn:active { transform: scale(.97); }
.btn.ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink-2); }
.btn.small { min-height: 2.6rem; padding: .5rem 1rem; font-size: .95rem; }
/* Le bouton principal se « sélectionne » comme une case : un anneau
   d'encre s'y pose au survol, comme dans la grille de l'appli. */
.btn.primary { box-shadow: 0 0 0 0 var(--ink); transition: box-shadow .2s var(--ease), transform .18s var(--ease); }
.btn.primary:hover { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink); }
.btn svg { width: 1.3em; height: 1.3em; flex: none; }

/* ——— Cases de pictogrammes (les mêmes que dans l'appli) ——— */
.tile {
  --c: var(--k-thing); --cbg: var(--k-thing-bg);
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
  aspect-ratio: 1; max-width: 100%; min-height: 0; overflow: hidden;
  background: var(--cbg); color: var(--ink);
  border: 3px solid var(--c); border-radius: var(--r-tile);
  font: inherit; font-weight: 700; font-size: clamp(.8rem, .7rem + .4vw, 1rem); line-height: 1.1;
  padding: .4rem; cursor: pointer; text-align: center;
  box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--c) 70%, transparent);
  transition: transform .16s var(--ease), box-shadow .16s;
  -webkit-tap-highlight-color: transparent;
}
.tile svg { width: 58%; height: auto; aspect-ratio: 1; flex: 0 1 auto; min-height: 0; stroke: currentColor; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tile:hover { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink); }
.tile.is-pressed, .tile:active { transform: scale(.94); }
.k-who { --c: var(--k-who); --cbg: var(--k-who-bg); }
.k-act { --c: var(--k-act); --cbg: var(--k-act-bg); }
.k-thing { --c: var(--k-thing); --cbg: var(--k-thing-bg); }
.k-desc { --c: var(--k-desc); --cbg: var(--k-desc-bg); }
.k-small { --c: var(--k-small); --cbg: var(--k-small-bg); }
.k-social { --c: var(--k-social); --cbg: var(--k-social-bg); }
.k-ask { --c: var(--k-ask); --cbg: var(--k-ask-bg); }

/* ——— Ouverture ——— */
.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6rem); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: var(--s-h1); letter-spacing: -0.035em; line-height: .98; }
.hero h1 > span { display: block; }
.head-cta { white-space: nowrap; }
.narrow-only { display: none; }
@media (max-width: 420px) { .wide-only { display: none; } .narrow-only { display: inline; } }
.hero h1 .soft { color: var(--teal-ink); }
.hero-text { display: grid; gap: 1.6rem; min-width: 0; position: relative; z-index: 2; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero-note { font-size: var(--s-small); color: var(--ink-2); }
@media (max-width: 920px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* Les cases qui flottent derrière l'ouverture (parallaxe) */
.drift { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.drift .tile { position: absolute; width: clamp(56px, 7vw, 104px); opacity: .5; cursor: default; box-shadow: none; }
.drift .tile svg { width: 64%; }
@media (max-width: 920px) { .hero .drift { display: none; } .band .drift .tile { opacity: .1; } }

/* ——— La démo : barre de phrase + grille ——— */
.demo {
  position: relative; z-index: 2; min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(.9rem, 2vw, 1.4rem);
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--ink) 35%, transparent);
  display: grid; gap: .9rem;
}
.demo-bar {
  display: grid; gap: .55rem;
  background: var(--paper); border-radius: 18px; padding: .8rem .9rem;
  min-height: 7.4rem;
}
.chips { display: flex; flex-wrap: wrap; gap: .35rem; min-height: 2rem; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--f-mono); font-size: .85rem; line-height: 1;
  padding: .35rem .5rem; border-radius: 8px;
  background: var(--cbg); color: var(--ink); border: 2px solid var(--c);
}
.chip svg { width: 1.1rem; height: 1.1rem; stroke: currentColor; fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.chips .placeholder { font-size: var(--s-small); color: var(--ink-2); }
.said {
  font-family: var(--f-hand); font-size: clamp(1.25rem, 1rem + 1.1vw, 1.75rem);
  line-height: 1.5; color: var(--ink); min-height: 2.6rem;
  overflow-wrap: anywhere;
}
.said .fixed { color: var(--pen); }
.demo-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.demo-actions .speak { margin-left: auto; }
.demo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.4rem, 1vw, .7rem); }
.demo-hint { font-size: var(--s-small); color: var(--ink-2); }
.demo-hint[data-tone="warn"] { color: var(--ink); }

.wave { display: inline-flex; gap: 3px; align-items: center; height: 1.1em; }
.wave i { width: 3px; height: 30%; background: currentColor; border-radius: 2px; }
.is-speaking .wave i { animation: wave 0.9s var(--ease) infinite; }
.is-speaking .wave i:nth-child(2) { animation-delay: .15s; }
.is-speaking .wave i:nth-child(3) { animation-delay: .3s; }
.is-speaking .wave i:nth-child(4) { animation-delay: .45s; }
@keyframes wave { 0%, 100% { height: 30%; } 50% { height: 100%; } }

/* ——— Le silence (bande sombre) ——— */
.band { background: var(--band); color: var(--on-band); position: relative; overflow: hidden; }
.band a { color: var(--on-band); }
.silence { padding-block: clamp(5rem, 12vw, 10rem); }
.silence .wrap { position: relative; z-index: 2; }
.silence-text { font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.4rem); font-weight: 700; line-height: 1.22; letter-spacing: -0.02em; max-width: 24ch; }
.silence-text .w { display: inline; }
.silence-text .tele { font-family: var(--f-mono); font-weight: 500; font-size: .78em; color: var(--on-band-2); letter-spacing: 0; }
.silence-end { margin-top: clamp(2rem, 5vw, 3.5rem); display: grid; gap: .6rem; }
.silence-end .said { color: var(--on-band); font-size: clamp(1.6rem, 1.1rem + 2.4vw, 3rem); }
.silence-end p { color: var(--on-band-2); font-size: var(--s-lead); }
.band .drift .tile { opacity: .14; }

/* ——— Le geste : téléphone épinglé ——— */
.how { padding-block: clamp(4rem, 9vw, 8rem); }
.how-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); }
.phone-col { position: relative; }
.phone-stick { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 6rem); display: grid; place-items: center; }
.phone {
  width: min(330px, 100%); aspect-ratio: 9 / 18.5;
  background: var(--ink); border-radius: 44px; padding: 10px;
  box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--ink) 60%, transparent);
}
.screen {
  position: relative; height: 100%; border-radius: 35px; overflow: hidden;
  background: var(--paper); display: grid; grid-template-rows: auto auto 1fr; gap: 8px;
  padding: 26px 10px 10px;
}
.screen-bar { background: var(--card); border-radius: 14px; padding: 8px; min-height: 76px; display: grid; gap: 4px; align-content: start; border: 1px solid var(--line); }
.screen-bar .chips { min-height: 1.4rem; gap: 3px; }
.screen-bar .chip { font-size: .62rem; padding: .2rem .3rem; border-width: 1.5px; border-radius: 6px; }
.screen-bar .chip svg { width: .8rem; height: .8rem; }
.screen-said { font-family: var(--f-hand); font-size: .9rem; line-height: 1.5; min-height: 1.4rem; color: var(--ink); }
.screen-tools { display: flex; justify-content: space-between; align-items: center; font-size: .7rem; color: var(--ink-2); padding-inline: 2px; }
.screen-speak { display: inline-flex; gap: 6px; align-items: center; background: var(--teal); color: var(--on-teal); border-radius: 10px; padding: 5px 10px; font-weight: 700; font-size: .72rem; }
.screen-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; align-content: start; }
.screen-grid .tile { border-width: 2px; border-radius: 10px; font-size: .58rem; gap: 1px; padding: 2px; cursor: default; box-shadow: none; }
.screen-grid .tile:hover { box-shadow: none; }
.screen-grid .tile svg { width: 52%; stroke-width: 3.5; }
.touch {
  position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 25%, transparent); border: 2px solid color-mix(in srgb, var(--ink) 50%, transparent);
  pointer-events: none; opacity: 0; left: 50%; top: 50%;
}
.scan-ring {
  position: absolute; pointer-events: none; border-radius: 14px;
  outline: 4px solid var(--teal); outline-offset: 2px; opacity: 0;
}
.dwell-ring { position: absolute; width: 44px; height: 44px; pointer-events: none; opacity: 0; }
.steps { display: grid; gap: 0; }
.step { min-height: 78vh; display: grid; align-content: center; gap: 1rem; padding-block: 2rem; opacity: .9; transition: opacity .4s; }
.step.is-active { opacity: 1; }
.no-js .step, .reduce-motion .step { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .step { opacity: 1; } }
.step h3 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); }
.step p { color: var(--ink-2); max-width: 46ch; }
.step .said { font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); }
.step-tag { font-family: var(--f-mono); font-size: var(--s-small); color: var(--ink-2); }
@media (max-width: 860px) {
  .how-grid { display: block; }
  .phone-col { display: contents; }
  .phone-stick { top: calc(env(safe-area-inset-top, 0px) + 4.2rem); padding-block: .5rem .9rem; background: var(--paper); z-index: 3; box-shadow: 0 10px 12px -10px color-mix(in srgb, var(--ink) 25%, transparent); }
  .phone { width: 100%; aspect-ratio: auto; border-radius: 18px; padding: 4px; box-shadow: none; }
  .screen { border-radius: 14px; padding: 6px; display: block; }
  .screen-tools, .screen-grid, .touch, .scan-ring { display: none; }
  .screen-bar { min-height: 0; padding: 6px 8px; border: 0; }
  .screen-bar .chip { font-size: .8rem; }
  .screen-said { font-size: 1.05rem; min-height: 1.6rem; }
  .step { min-height: 0; padding-block: 2.2rem; opacity: 1; }
}

/* ——— La grammaire : le cahier Seyès ——— */
.grammar { padding-block: clamp(4rem, 9vw, 8rem); background: var(--paper-2); position: relative; overflow: hidden; }
.grammar-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.notebook {
  position: relative; background-color: var(--card);
  /* Grands carreaux : un trait fort tous les 8 mm, trois fins entre. */
  --u: 9px;
  background-image:
    linear-gradient(90deg, transparent calc(3.2rem - 1px), var(--seyes-margin) calc(3.2rem - 1px), var(--seyes-margin) calc(3.2rem + 1px), transparent calc(3.2rem + 1px)),
    repeating-linear-gradient(180deg, transparent 0 calc(var(--u) * 4 - 1px), var(--seyes-strong) calc(var(--u) * 4 - 1px) calc(var(--u) * 4)),
    repeating-linear-gradient(180deg, transparent 0 calc(var(--u) - 1px), var(--seyes-h) calc(var(--u) - 1px) var(--u)),
    repeating-linear-gradient(90deg, transparent 0 calc(var(--u) * 4 - 1px), var(--seyes-h) calc(var(--u) * 4 - 1px) calc(var(--u) * 4));
  border-radius: 6px 22px 22px 6px;
  padding: calc(var(--u) * 4) clamp(1rem, 3vw, 2.5rem) calc(var(--u) * 4) calc(3.2rem + clamp(1rem, 3vw, 2rem));
  box-shadow: 0 1px 0 var(--line), 0 24px 50px -30px color-mix(in srgb, var(--ink) 40%, transparent);
}
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(var(--u) * 4); }
.line { display: grid; gap: calc(var(--u) * 0.5); }
.line .raw {
  font-family: var(--f-mono); font-size: clamp(.9rem, .8rem + .4vw, 1.1rem); color: var(--ink-2);
  display: flex; flex-wrap: wrap; gap: .35rem .55rem; align-items: center; line-height: calc(var(--u) * 4);
  position: relative; width: fit-content; max-width: 100%;
}
.line .raw span { border-bottom: 3px solid var(--c); line-height: 1.4; }
.line .raw::after { content: "→"; font-family: var(--f-text); color: var(--ink-2); opacity: var(--strike, 1); }
.line .right {
  font-family: var(--f-hand); font-size: clamp(1.35rem, 1rem + 1.6vw, 2.2rem); line-height: calc(var(--u) * 8);
  color: var(--ink); clip-path: inset(0 var(--write, 0%) 0 0); overflow-wrap: anywhere;
}
.line .right b { font-weight: 400; color: var(--pen); }
.line .why { font-size: var(--s-small); color: var(--ink-2); line-height: calc(var(--u) * 4); }
.key { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: 1.2rem; }
.key-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.key-list li {
  display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .8rem .45rem .5rem;
  background: var(--cbg); border: 2px solid var(--c); border-radius: 999px; font-weight: 600; font-size: 1rem;
}
.key-list li::before { content: ""; width: 1rem; height: 1rem; border-radius: 50%; background: var(--c); }
.key-list small { font-weight: 400; color: var(--ink-2); font-size: .9rem; }

/* ——— Pour qui : « Je suis… » ——— */
.who { padding-block: clamp(4rem, 9vw, 8rem); }
.whoami { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 1rem; font-size: var(--s-h2); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.whoami-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.whoami-tab {
  font: inherit; font-size: clamp(1.1rem, .9rem + 1vw, 1.7rem); font-weight: 700; letter-spacing: -0.01em;
  padding: .35rem 1rem .45rem; border-radius: 14px; cursor: pointer;
  color: var(--ink); background: var(--k-who-bg); border: 3px solid transparent;
}
.whoami-tab[aria-selected="true"] { border-color: var(--k-who); background: var(--k-who-bg); box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink); }
.whoami-tab:not([aria-selected="true"]) { background: transparent; border-color: var(--line); color: var(--ink-2); }
.who-panel { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.who-panel[hidden] { display: none; }
.no-js .who-panel[hidden] { display: grid; }
.no-js .whoami-tabs, .js .form-nojs { display: none; }
.no-js .demo-grid, .no-js .demo-actions { display: none; }
.who-cta { margin-top: 2rem; text-align: center; }
.no-js #beta-form .field, .no-js #beta-form .check, .no-js #beta-form button { display: none; }
.who-panel .lead { color: var(--ink); }
.who-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .9rem; }
.who-panel li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .6rem; align-items: start; }
.who-panel li svg { width: 1.4rem; height: 1.4rem; margin-top: .15rem; stroke: var(--teal-ink); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.who-side { border-left: 3px solid var(--k-who); padding-left: 1.2rem; display: grid; gap: .6rem; }
.who-side p { color: var(--ink-2); }
@media (max-width: 860px) { .who-panel { grid-template-columns: minmax(0, 1fr); } }

/* ——— Gratuit / Pro ——— */
.free { padding-block: clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--line); }
.free-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.free h2 .hand { font-family: var(--f-hand); font-weight: 400; letter-spacing: 0; color: var(--teal-ink); font-size: .8em; display: block; margin-top: .3rem; }
.free-list { list-style: none; padding: 0; margin: 1.8rem 0 0; columns: 2 16rem; column-gap: 2rem; }
.free-list li { break-inside: avoid; padding: .7rem 0; border-top: 1px solid var(--line); font-weight: 600; }
.pro-box { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.2rem, 3vw, 2rem); display: grid; gap: .9rem; }
.pro-box .tag { justify-self: start; font-weight: 800; font-size: .9rem; padding: .15rem .7rem; border-radius: 999px; background: var(--k-ask-bg); color: var(--ink); border: 2px solid var(--k-ask); }
.pro-box p { color: var(--ink-2); }
.pro-box ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
@media (max-width: 860px) { .free-grid { grid-template-columns: minmax(0, 1fr); } }

/* ——— Confiance ——— */
.trust { padding-block: clamp(3rem, 7vw, 6rem); }
.trust-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 2rem 3rem; }
.trust-list li { display: grid; gap: .4rem; align-content: start; }
.trust-list strong { font-size: 1.25rem; line-height: 1.25; }
.trust-list span { color: var(--on-band-2); }

/* ——— Bêta ——— */
.beta { padding-block: clamp(4rem, 9vw, 8rem); }
.beta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.beta-facts { margin: 1.6rem 0 0; display: grid; gap: 0; }
.beta-facts div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.beta-facts dt { font-family: var(--f-mono); font-size: var(--s-small); color: var(--ink-2); padding-top: .15rem; }
.beta-facts dd { margin: 0; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: clamp(1.2rem, 3vw, 2.2rem); display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field label, .field legend { font-weight: 700; }
.field .help { font-size: var(--s-small); color: var(--ink-2); }
.field input, .field select {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink-2); border-radius: var(--r-ui); padding: .7rem .8rem; min-height: 3rem; width: 100%;
}
.field input:focus-visible, .field select:focus-visible { border-color: var(--teal); outline-offset: 1px; }
.check { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: .7rem; align-items: start; font-size: var(--s-small); }
.check input { width: 1.3rem; height: 1.3rem; margin: .15rem 0 0; accent-color: var(--teal); }
.form-msg { font-weight: 600; }
.form-msg:empty { display: none; }
.field-err { font-size: var(--s-small); font-weight: 700; color: var(--pen); }
.field-err:empty { display: none; }
.field-err::before { content: "⚠ "; }
.form-after { font-size: var(--s-small); color: var(--ink-2); }
.field [aria-invalid="true"], .check [aria-invalid="true"] { border-color: var(--pen); outline: 2px solid var(--pen); outline-offset: 1px; }
.form-msg[data-tone="ok"] { color: var(--teal-ink); }
.form-msg[data-tone="err"] { color: var(--pen); }
.form-copy { font-family: var(--f-mono); font-size: .85rem; background: var(--paper); border-radius: var(--r-ui); padding: .8rem; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 860px) { .beta-grid { grid-template-columns: minmax(0, 1fr); } .beta-facts div { grid-template-columns: minmax(0, 1fr); gap: .2rem; } }

/* ——— Questions ——— */
.faq { padding-block: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--line); }
.faq-list { margin-top: 1.6rem; display: grid; max-width: 60rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.1rem 0; font-weight: 700; font-size: 1.2rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--teal-ink); font-size: 1.4rem; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.2rem; color: var(--ink-2); max-width: 62ch; }

/* ——— Pied de page ——— */
.site-foot { background: var(--band); color: var(--on-band-2); padding-block: 3rem calc(2rem + env(safe-area-inset-bottom, 0px)); font-size: var(--s-small); }
.site-foot a { color: var(--on-band); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.foot-grid nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.foot-big { font-family: var(--f-hand); color: var(--on-band); font-size: clamp(1.4rem, 1rem + 2vw, 2.4rem); margin-bottom: 2rem; line-height: 1.5; }
.foot-legal { margin-top: 2rem; display: grid; gap: .4rem; max-width: 70ch; }

/* ——— Pages de texte (mentions, confidentialité…) ——— */
.doc { padding-block: clamp(2.5rem, 6vw, 5rem); }
.doc h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem); margin-bottom: 1rem; }
.doc h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); margin: 2.4rem 0 .6rem; }
.doc p, .doc li { max-width: 68ch; }
.doc p + p { margin-top: .9rem; }
.doc ul { padding-left: 1.3rem; display: grid; gap: .4rem; }
.doc .todo { background: var(--k-who-bg); border: 2px dashed var(--k-who); padding: .1rem .4rem; border-radius: 6px; font-family: var(--f-mono); font-size: .9em; }
.doc .updated { color: var(--ink-2); font-size: var(--s-small); }

/* ——— Mouvement réduit : tout est posé, rien ne bouge ——— */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }

/* ——— Contraste forcé (Windows) : les états ne passent plus par la couleur ——— */
@media (forced-colors: active) {
  .whoami-tab[aria-selected="true"] { outline: 3px solid Highlight; outline-offset: 2px; text-decoration: underline; }
  .motion-toggle[aria-pressed="true"] .dot { forced-color-adjust: none; background: CanvasText; }
  .tile, .chip, .key-list li { border: 2px solid CanvasText; }
  .drift { display: none; }
}

/* ——— Impression : du texte noir sur blanc, sans décor ——— */
@media print {
  :root { --paper: #fff; --paper-2: #fff; --card: #fff; --ink: #000; --ink-2: #222; }
  body { background: #fff; color: #000; }
  .site-head, .drift, .demo, .phone-col, .motion-toggle, .hero-cta, #beta-form, .whoami-tabs, .silence-end { display: none !important; }
  .band, .band * { background: #fff !important; color: #000 !important; }
  .who-panel[hidden] { display: grid !important; }
  .step, .silence-text .w, .line .right { opacity: 1 !important; clip-path: none !important; }
  section { padding-block: 1.2rem !important; break-inside: avoid-page; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
