/* Site de Syllo — même identité que l'application : monochrome, encre noire sur blanc en clair,
   encre blanche sur noir en sombre. La seule couleur vive est fonctionnelle (liens au survol, focus,
   phrase en cours de lecture). Mise en page : colonnes alignées à gauche, un seul bandeau d'encre
   (les formules dites à voix haute), le reste en filets fins. */

@font-face {
  font-family: "Inter Variable"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: KaTeX_Math; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/KaTeX_Math-Italic.woff2") format("woff2");
}

/* L'italique de texte de KaTeX (même dessin que le logo, avec un crénage de texte) pour les mots mis en avant dans les titres. */
@font-face {
  font-family: KaTeX_Main; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/KaTeX_Main-Italic.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --font: "Inter Variable", ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
  --math: KaTeX_Math, "Times New Roman", serif;

  --bg: #fcfcfc;
  --surface: #ffffff;
  --side: #f6f6f7;
  --text: #18181b;
  --muted: #55555e;
  --faint: #6b6b75;
  --border: #e4e4e7;
  --border-strong: #d0d0d6;
  --hover: rgb(24 24 27 / 0.055);
  --ink: #0b0b0d;
  --ink-text: #ffffff;
  --ink-grad: linear-gradient(180deg, #2a2b31 0%, #0b0b0d 100%);
  --ink-rim: inset 0 1px 0 rgb(255 255 255 / 0.16);
  --focus: #2f5fe0;
  --read: #2457d6;
  --mark: #ffe9a3;
  --todo-bg: #fff1b8;
  --todo-text: #5c3d00;
  --todo-border: #c98a00;
  --shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 10px 32px -12px rgb(0 0 0 / 0.14);
  --shadow-lg: 0 0 0 1px rgb(0 0 0 / 0.08), 0 40px 80px -32px rgb(0 0 0 / 0.38), 0 8px 20px -8px rgb(0 0 0 / 0.12);
  --key-shadow: inset 0 0 0 1px var(--border-strong), inset 0 -3px 0 rgb(24 24 27 / 0.07), 0 1px 2px rgb(0 0 0 / 0.06);
  --rule: rgb(24 24 27 / 0.032);
  --rule-strong: rgb(24 24 27 / 0.07);
  --panel-bg: #0b0b0d;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --wrap: 1160px;
  --gutter: 28px;
  interpolate-size: allow-keywords;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #111112;
    --side: #0a0a0b;
    --text: #f4f4f5;
    --muted: #a8a8b0;
    --faint: #8f8f98;
    --border: rgb(255 255 255 / 0.11);
    --border-strong: rgb(255 255 255 / 0.2);
    --hover: rgb(255 255 255 / 0.07);
    --ink: #f4f4f5;
    --ink-text: #0b0b0d;
    --ink-grad: linear-gradient(180deg, #ffffff 0%, #c6cad2 100%);
    --ink-rim: inset 0 1px 0 rgb(255 255 255 / 0.6);
    --focus: #8fb0ff;
    --read: #8fb0ff;
    --mark: rgb(253 224 71 / 0.2);
    --todo-bg: #3a2c00;
    --todo-text: #ffe08a;
    --todo-border: #c99a1a;
    --shadow: 0 0 0 1px rgb(255 255 255 / 0.1);
    --shadow-lg: 0 0 0 1px rgb(255 255 255 / 0.13), 0 40px 90px -30px rgb(0 0 0 / 0.9);
    --key-shadow: inset 0 0 0 1px var(--border-strong), inset 0 -3px 0 rgb(255 255 255 / 0.06);
    --rule: rgb(255 255 255 / 0.035);
    --rule-strong: rgb(255 255 255 / 0.075);
    --panel-bg: #0e0e10;
  }
}
/* Panneau d'encre : toujours sombre, dans les deux thèmes. À l'intérieur, les jetons prennent leurs valeurs sombres,
   si bien que boutons, touches et filets s'y dessinent sans règle particulière. */
.panel {
  --surface: #17171a; --side: #0a0a0b; --text: #f4f4f5; --muted: #a8a8b0; --faint: #8f8f98;
  --border: rgb(255 255 255 / 0.11); --border-strong: rgb(255 255 255 / 0.2); --hover: rgb(255 255 255 / 0.07);
  --ink: #f4f4f5; --ink-text: #0b0b0d; --ink-grad: linear-gradient(180deg, #ffffff 0%, #c6cad2 100%);
  --ink-rim: inset 0 1px 0 rgb(255 255 255 / 0.6); --focus: #8fb0ff; --read: #8fb0ff; --mark: rgb(253 224 71 / 0.22);
  --key-shadow: inset 0 0 0 1px var(--border-strong), inset 0 -3px 0 rgb(255 255 255 / 0.06);
  background: var(--panel-bg); color: var(--text); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg);
  font-feature-settings: "cv11", "ss03", "calt"; letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ink); color: var(--ink-text); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.025em; margin: 0; font-weight: 650; text-wrap: balance; }
/* 1,23 : à cette taille, les minuscules de l'italique montent exactement à la hauteur de celles du gras (mesuré sur « n »).
   Interligne 0,84 (rapporté à cette taille agrandie) : le même que celui des titres, si bien qu'un mot en italique
   n'écarte pas les lignes et qu'un italique qui revient à la ligne ne chevauche rien. */
h1 em, h2 em { font-family: KaTeX_Main, var(--math); font-style: italic; font-weight: 400; letter-spacing: -0.02em; font-size: 1.23em; line-height: 0.84; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--ink-text); text-decoration: none; }
.skip:focus { top: 12px; }
kbd {
  font: 600 0.82em/1 var(--font); padding: 0.28em 0.5em; border-radius: 6px; white-space: nowrap;
  background: var(--hover); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong);
}

/* Emplacements à renseigner avant la mise en ligne : faits pour sauter aux yeux. */
.todo {
  background: var(--todo-bg); color: var(--todo-text); border: 1px dashed var(--todo-border); border-radius: 5px;
  padding: 0.05em 0.35em; font-weight: 600; font-style: normal; overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
@media (prefers-color-scheme: dark) { .brand img { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.16); } }
.wordmark { font-family: var(--math); font-style: italic; font-weight: 400; font-size: 25px; line-height: 1; letter-spacing: 0.005em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); padding: 8px 10px; border-radius: 8px; transition: color 0.12s var(--ease), background 0.12s var(--ease); }
.nav a:hover { color: var(--text); background: var(--hover); }
.nav a.btn { margin-left: 8px; }
@media (max-width: 720px) { .nav a.opt { display: none; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 20px; border-radius: 12px;
  font: 600 16px/1.2 var(--font); letter-spacing: -0.01em; text-decoration: none; text-align: center; cursor: pointer; border: 0;
  color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong);
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease), background 0.12s var(--ease), filter 0.12s var(--ease);
}
.btn:hover { background: color-mix(in srgb, var(--surface) 100%, transparent); box-shadow: inset 0 0 0 1px var(--faint); }
.btn:active { transform: translateY(1px); }
.btn.primary, .nav a.btn.primary { color: var(--ink-text); background: var(--ink-grad); box-shadow: var(--ink-rim), 0 1px 2px rgb(0 0 0 / 0.2), 0 8px 20px -10px rgb(0 0 0 / 0.45); }
.btn.primary:hover { filter: brightness(1.14); }
@media (prefers-color-scheme: dark) { .btn.primary:hover { filter: brightness(0.92); } }
.panel .btn.primary:hover { filter: brightness(0.92); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14.5px; border-radius: 10px; }
.btn.big { min-height: 52px; padding: 0 22px; font-size: 16.5px; border-radius: 14px; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Accueil : accroche ---------- */
.hero { position: relative; padding: 84px 0 56px; overflow: hidden; }
/* Réglure Seyès, celle des copies doubles : une ligne forte toutes les quatre fines, et les verticales du carreau. */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(var(--rule-strong) 1px, transparent 1px) 0 -1px / 100% 32px,
    linear-gradient(var(--rule) 1px, transparent 1px) 0 -1px / 100% 8px,
    linear-gradient(90deg, var(--rule-strong) 1px, transparent 1px) calc(50% - 16px) 0 / 32px 100%;
  -webkit-mask-image: radial-gradient(120% 100% at 100% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 100% at 100% 0%, #000 0%, transparent 72%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: 48px; row-gap: 28px; align-items: end; }
.eyebrow { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 550; color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px var(--hover); }
.hero h1 { font-size: clamp(40px, 5.6vw, 74px); line-height: 1.02; letter-spacing: -0.045em; }
.hero-side { display: grid; gap: 26px; padding-bottom: 8px; }
.lede { font-size: clamp(17.5px, 1.5vw, 19px); line-height: 1.55; color: var(--muted); }
.lede kbd { font-size: 0.78em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-note { margin-top: -10px; font-size: 14.5px; color: var(--faint); }
@media (prefers-reduced-motion: no-preference) {
  .hero-grid > *, .demo { animation: rise 0.7s var(--ease) both; }
  .hero h1 { animation-delay: 0.05s; }
  .hero-side { animation-delay: 0.14s; }
  .demo { animation-delay: 0.22s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}

/* Emplacement de la vidéo de démo. */
.demo-wrap { padding: 0 0 36px; }
.demo {
  position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg); display: grid; place-items: center; text-align: center; min-height: 240px;
}
/* Tant que la vidéo n'est pas renseignée, le cadre reste bas : il annonce la démo sans creuser un grand vide. */
.demo.is-empty { aspect-ratio: auto; min-height: 0; height: clamp(220px, 28vw, 380px); }
.demo video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.demo-empty { padding: 24px; display: grid; gap: 6px; justify-items: center; max-width: 34em; color: var(--muted); font-size: 16px; }
.demo-empty .play { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--border-strong); background: var(--hover); color: var(--text); margin-bottom: 14px; }
.demo-empty .play svg { width: 26px; height: 26px; margin-left: 4px; }
.demo-empty strong { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; color: var(--text); }

/* ---------- Sections ---------- */
section { padding: 104px 0; }
.sec-head { max-width: 40em; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.035em; line-height: 1.08; }
.sec-head p { margin-top: 16px; color: var(--muted); font-size: 18.5px; }
.band { background: var(--side); border-block: 1px solid var(--border); }

/* Friction : le détour habituel, puis le chemin dans Syllo. La longueur des deux lignes fait l'argument. */
.friction { display: grid; gap: 12px; margin-bottom: 72px; }
.lane { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 12px 16px; padding: 20px 24px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--border); color: var(--muted); }
.lane-name { font-size: 12.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--faint); }
.lane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; font-size: 15px; font-weight: 500; }
.lane li { display: inline-flex; align-items: center; white-space: nowrap; }
.lane li + li::before { content: ""; width: 16px; height: 1px; margin: 0 9px; background: var(--border-strong); }
.lane.mine {
  --surface: #17171a; --text: #f4f4f5; --muted: #a8a8b0; --faint: #a8a8b0; --border: rgb(255 255 255 / 0.11); --border-strong: rgb(255 255 255 / 0.34);
  --hover: rgb(255 255 255 / 0.07);
  background: var(--panel-bg); color: var(--text); box-shadow: var(--shadow-lg); padding-block: 26px;
}
.lane.mine li + li::before { width: 22px; margin: 0 12px; }
.lane.mine ol { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.lane.mine kbd { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px 2px; border-radius: 10px; font-size: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong), inset 0 -3px 0 rgb(255 255 255 / 0.06); }
@media (max-width: 720px) {
  .friction { margin-bottom: 48px; }
  .lane { grid-template-columns: 1fr; padding: 18px; }
  .lane ol { flex-direction: column; align-items: flex-start; gap: 0; }
  .lane li { white-space: normal; }
  .lane li + li::before { display: none; }
  .lane li + li { margin-top: 8px; }
}

/* Étapes : une touche par geste. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 28px; border-top: 1px solid var(--border-strong); display: grid; gap: 10px; align-content: start; }
.steps li::before { content: counter(step); position: absolute; top: 24px; right: 0; font-size: 14px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.keycap { display: flex; gap: 8px; margin-bottom: 14px; }
.keycap kbd {
  display: grid; place-items: center; min-width: 60px; height: 60px; padding: 0 14px 3px; border-radius: 14px;
  font-size: 19px; font-weight: 600; letter-spacing: -0.01em; background: var(--surface); box-shadow: var(--key-shadow);
}
.keycap kbd.wide { min-width: 148px; }
.steps h3 { font-size: 21px; }
.steps p { color: var(--muted); font-size: 16.5px; }

/* Formules dites à voix haute : le seul bandeau d'encre de la page. */
.oral { border-block: 1px solid var(--border); }
/* Comparatif : titre et choix de la formule en haut, puis la formule écrite, puis les trois lectures côte à côte. */
.oral-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 56px; margin-bottom: 44px; }
.oral-text { display: grid; gap: 18px; max-width: 40em; }
.oral h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.035em; line-height: 1.08; }
.oral-text p { color: var(--muted); font-size: 18px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 13px; box-shadow: inset 0 0 0 1px var(--border); justify-self: start; }
.tab { font: 550 15px/1 var(--font); letter-spacing: -0.01em; color: var(--muted); background: none; border: 0; padding: 10px 14px; border-radius: 9px; cursor: pointer; white-space: nowrap; transition: color 0.12s var(--ease), background 0.12s var(--ease); }
.tab:hover { color: var(--text); }
.tab[aria-pressed="true"] { color: var(--ink-text); background: var(--ink-grad); box-shadow: var(--ink-rim); }
.oral-stage { min-width: 0; }
.oral-ex { margin: 0; display: grid; gap: 14px; min-width: 0; }
.oral .label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--faint); }
/* Comparatif : une lecture par rangée. À gauche, l'interface de l'application telle qu'elle affiche la formule (ses
   couleurs, sa police, ses boutons) ; à droite, à part, la transcription de ce qu'on entend en cliquant sur « lire ». */
.reads { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.read { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px 20px 20px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow 0.18s var(--ease); min-width: 0; }
.read.is-active { box-shadow: inset 0 0 0 1.5px var(--border-strong), 0 0 0 4px var(--hover); }
.read.mine { background: color-mix(in srgb, var(--text) 4%, transparent); }
.read.mine.is-active { box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.6), 0 0 0 4px var(--hover); }
.read-head { display: flex; align-items: center; gap: 10px; }
.read-name { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; }
.read-verdict { font-size: 12.5px; font-weight: 600; white-space: nowrap; padding: 4px 9px; border-radius: 999px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--border-strong); }
.read.mine .read-verdict { color: var(--ink-text); background: var(--ink-grad); box-shadow: var(--ink-rim); }
.read-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px 28px; align-items: start; }

/* Interfaces, reprises des applications en thème sombre (couleurs relevées sur leurs captures). */
.app-ui { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 18px 20px 12px; border-radius: 14px; color: #ececec; }
.ui-title { font-weight: 600; font-size: 15.5px; letter-spacing: -0.005em; }
.ui-formula { justify-self: start; max-width: 100%; overflow-x: auto; overflow-y: hidden; padding: 5px; font-size: clamp(13px, 1.25vw, 16.5px); scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / 0.2) transparent; }
.ui-formula .katex-display { margin: 0; width: max-content; }
.ui-formula .katex-display > .katex { white-space: nowrap; }
.app-ui-chatgpt { background: #0e0e0e; box-shadow: 0 0 0 1px #2a2a2a; font-family: ui-sans-serif, -apple-system, system-ui, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif; }
.app-ui-claude { background: #191919; box-shadow: 0 0 0 1px #2e2e2c; color: #efeee8; font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; }
.app-ui-claude .ui-title { font-weight: 700; font-size: 16.5px; letter-spacing: 0; }
.app-ui-syllo { background: #1b1b1e; color: #f4f4f5; font-family: var(--font); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14), 0 18px 44px -18px rgb(0 0 0 / 0.9); border-radius: 16px; }
/* Syllo surligne ce qu'il est en train de lire, comme dans l'application. */
.app-ui-syllo .ui-title, .app-ui-syllo .ui-formula { border-radius: 4px; transition: background 0.25s var(--ease); }
.app-ui-syllo .ui-title { justify-self: start; padding: 0.1em 0.25em; margin: -0.1em -0.25em; }
.app-ui-syllo .speaking { background: rgb(253 224 71 / 0.17); }

/* Commandes de chaque application, sous le message. Seul le bouton de lecture est actif. */
.app-bar { display: flex; align-items: center; gap: 2px; margin: 0 -6px; }
.app-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; }
.app-ico svg { width: 18px; height: 18px; }
.app-ui-chatgpt .app-ico { color: #afafaf; }
.app-ui-claude .app-ico { color: #9c9c9c; }
.app-chatgpt .app-ico svg { width: 19px; height: 19px; }
.app-voice { border: 0; padding: 0; background: none; cursor: pointer; transition: background 0.12s var(--ease), color 0.12s var(--ease); }
.app-ui-chatgpt .app-voice:hover, .app-ui-chatgpt .app-voice.is-playing { color: #ececec; }
.app-ui-claude .app-voice:hover, .app-ui-claude .app-voice.is-playing { color: #efeee8; }
.app-voice:hover { background: rgb(255 255 255 / 0.08); }
.app-voice .v-idle { display: contents; }
.app-voice .v-on, .app-voice.is-playing .v-idle { display: none; }
.app-voice.is-playing .v-on { display: contents; }
.app-chatgpt .app-voice.is-playing svg { width: 21px; height: 21px; }
.app-ui .player { margin: 2px 0 0; padding: 6px 12px 6px 6px; gap: 10px; border-radius: 12px; background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.09); }
.app-ui .pl-play { width: 36px; height: 36px; }
.app-ui .pl-play svg { width: 16px; height: 16px; }
.app-ui .pl-speed { min-width: 48px; height: 30px; font-size: 13px; }
.app-ui .pl-time { font-size: 12.5px; }
.pl-help { margin-top: 26px; display: grid; gap: 6px; }

/* La transcription : à part, dans le style du site, comme des sous-titres. */
.caption { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 4px; }
.caption-label { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.caption-label svg { width: 14px; height: 14px; flex: none; }
.caption .spoken { font-size: 16px; line-height: 1.55; letter-spacing: -0.01em; color: var(--muted); }
.read.mine .caption .spoken { font-size: 16.5px; }
.spoken span { transition: color 0.25s var(--ease), background 0.25s var(--ease); padding: 0.14em 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.spoken span.done { color: var(--text); }
.read:not(.is-active) .spoken span.done { color: var(--muted); }
.spoken span.on { color: #fff; background: var(--mark); }

/* Lecteur : la même barre que sous une réponse dans l'application. */
.player { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 16px 10px 10px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.pl-play { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: var(--ink-text); background: var(--ink-grad); box-shadow: var(--ink-rim); transition: transform 0.12s var(--ease), filter 0.12s var(--ease); }
.pl-play:hover { filter: brightness(0.92); }
.pl-play:active { transform: scale(0.96); }
.pl-play svg { width: 20px; height: 20px; }
.pl-play .i-play { margin-left: 2px; }
.pl-play .i-pause, .pl-play.is-playing .i-play { display: none; }
.pl-play.is-playing .i-pause { display: block; }
.pl-speed { flex: none; min-width: 54px; height: 32px; padding: 0 9px; border: 0; border-radius: 9px; cursor: pointer; font: 600 13.5px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--text); background: none; box-shadow: inset 0 0 0 1px var(--border-strong); transition: background 0.12s var(--ease); }
.pl-speed:hover { background: var(--hover); }
.pl-time { flex: none; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-range { --p: 0%; flex: 1; min-width: 0; height: 24px; margin: 0; background: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.pl-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) var(--p), var(--border-strong) var(--p)); }
.pl-range::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) var(--p), var(--border-strong) var(--p)); }
.pl-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; margin-top: -5px; border: 0; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--panel-bg); }
.pl-range::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--panel-bg); }
.pl-keys { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; font-size: 14.5px; color: var(--muted); }
.pl-keys li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); min-width: 0; }
.pl-keys .k { flex: none; display: inline-flex; gap: 4px; min-width: 72px; }
.pl-keys kbd { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px 2px; border-radius: 8px; font-size: 12.5px; background: var(--surface); box-shadow: var(--key-shadow); }
.pl-note { margin-top: 14px; font-size: 13.5px; color: var(--faint); }

/* Fonctionnalités : des filets, pas des cartes. */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.feature { padding: 28px 0 34px; border-top: 1px solid var(--border); }
.feature svg { width: 24px; height: 24px; margin-bottom: 16px; color: var(--text); }
.feature h3 { font-size: 18.5px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 16px; }

/* Raccourcis */
.keys-block { margin-top: 40px; padding: 36px; border-radius: 20px; background: var(--side); box-shadow: inset 0 0 0 1px var(--border); }
.keys-block h3 { font-size: 24px; letter-spacing: -0.03em; margin-bottom: 24px; }
.keys { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; font-size: 15.5px; color: var(--muted); }
.keys li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--border); min-width: 0; }
.keys .k { flex: none; display: inline-flex; gap: 4px; min-width: 72px; }
.keys kbd { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px 2px; border-radius: 8px; font-size: 13px; background: var(--surface); box-shadow: var(--key-shadow); }

/* Téléchargement */
.dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.dl-card { display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
/* La carte de l'ordinateur du visiteur prend l'encre du logo (mêmes jetons que .panel). */
.dl-card.is-mine {
  order: -1;
  --surface: #17171a; --text: #f4f4f5; --muted: #a8a8b0; --border: rgb(255 255 255 / 0.11); --border-strong: rgb(255 255 255 / 0.2);
  --hover: rgb(255 255 255 / 0.07); --faint: #8f8f98; --ink-text: #0b0b0d; --ink-grad: linear-gradient(180deg, #ffffff 0%, #c6cad2 100%);
  --ink-rim: inset 0 1px 0 rgb(255 255 255 / 0.6); --focus: #8fb0ff;
  background: var(--panel-bg); color: var(--text); box-shadow: var(--shadow-lg);
}
.dl-card.is-mine .btn:not(.primary) { background: transparent; }
@media (prefers-color-scheme: dark) { .dl-card.is-mine { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.34), 0 40px 90px -30px rgb(0 0 0 / 0.9); } }
.dl-card.is-mine .btn.primary:hover { filter: brightness(0.92); }
.dl-card .os { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 650; letter-spacing: -0.025em; }
.dl-card .os svg { width: 22px; height: 22px; }
.dl-card .tag { font-size: 13px; font-weight: 600; color: var(--muted); min-height: 1.5em; }
.dl-card.is-mine .tag { display: inline-flex; align-items: center; gap: 8px; }
.dl-card.is-mine .tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ccf7a; box-shadow: 0 0 0 3px rgb(60 207 122 / 0.2); }
.dl-card .btn { margin-top: 12px; padding: 0 14px; font-size: 15px; white-space: nowrap; }
/* Tablettes : pas de fichier à télécharger, l'application web s'ouvre dans le navigateur (dossier app/ du site). */
.dl-tablet { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 28px; margin-top: 16px; padding: 24px 28px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.dl-tablet .os { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 650; letter-spacing: -0.025em; margin: 0; }
.dl-tablet .os svg { width: 22px; height: 22px; }
.dl-tablet-text { font-size: 14.5px; color: var(--muted); }
.dl-tablet-text p { margin: 0 0 6px; }
.dl-tablet-text ol { margin: 0; padding-left: 18px; }
.dl-tablet-text strong { color: var(--text); font-weight: 600; }
@media (max-width: 860px) { .dl-tablet { grid-template-columns: 1fr; } .dl-tablet .btn { justify-self: start; } }
.dl-card .todo { font-size: 13.5px; margin-top: 8px; align-self: flex-start; }
.dl-card .btn + .btn, .dl-card .todo + .btn { margin-top: 8px; }
.dl-card .dl-help { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.dl-card code { font-size: 0.92em; }
.dl-notes { margin: 40px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; color: var(--muted); font-size: 15px; }
.dl-notes li { padding-top: 18px; border-top: 1px solid var(--border); }
.notice { margin-top: 20px; padding: 14px 16px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border-strong); background: var(--surface); font-size: 16px; }

/* Tarifs */
.ask { font-size: clamp(22px, 3.2vw, 30px); font-weight: 650; letter-spacing: -0.025em; margin-bottom: 20px; }
.ask::before { content: "→ "; color: var(--faint); font-weight: 400; }
/* Deux rangées partagées par les deux branches : les réponses « Oui » et « Non » ont la même hauteur, les cartes s'alignent. */
.plans { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto 1fr; gap: 12px 20px; }
.branch { display: grid; grid-template-rows: subgrid; grid-row: span 2; min-width: 0; }
.answer { min-height: 76px; display: flex; align-items: baseline; align-content: center; gap: 4px 10px; flex-wrap: wrap; padding: 12px 18px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--border-strong); font-size: 16px; }
.answer b { font-size: 18px; letter-spacing: -0.02em; }
.answer span { color: var(--muted); }
.branch-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1; }
.branch.solo .branch-cards { grid-template-columns: 1fr; }
.plan { display: flex; flex-direction: column; padding: 28px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), 0 1px 2px rgb(0 0 0 / 0.03); }
.plan h3 { font-size: 21px; }
.plan .who { color: var(--muted); font-size: 15.5px; margin-top: 6px; min-height: 3.1em; }
.price { margin: 22px 0 4px; font-size: 46px; font-weight: 650; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); }
.plan .terms { font-size: 14px; color: var(--faint); }
.plan ul { list-style: none; margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid var(--border); display: grid; gap: 10px; font-size: 15.5px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.plan li.need { color: var(--muted); }
.plan li.need::before { width: 10px; height: 10px; border: 2px solid currentColor; border-radius: 50%; transform: none; top: 0.4em; left: 3px; }
.plans-foot { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; color: var(--muted); font-size: 14.5px; }
.plans-foot p { padding-top: 18px; border-top: 1px solid var(--border); }
.plans-foot strong { color: var(--text); font-weight: 600; }

/* FAQ : titre à gauche, questions à droite. */
#faq > .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
#faq .sec-head { position: sticky; top: 100px; margin-bottom: 0; }
#faq .sec-head p { font-size: 16.5px; }
.faq { border-top: 1px solid var(--border-strong); min-width: 0; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 16px; padding: 21px 2px; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; transition: color 0.12s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
/* Un plus qui devient un moins. */
.faq summary::after {
  content: ""; flex: none; margin-left: auto; width: 14px; height: 14px; color: var(--muted);
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform 0.2s var(--ease), background-size 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); background-size: 100% 2px, 2px 0; }
.faq summary:hover { color: var(--read); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size 0.28s var(--ease), content-visibility 0.28s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq .a { padding: 0 2px 24px; color: var(--muted); display: grid; gap: 12px; max-width: 44em; font-size: 16.5px; }
.faq .a strong { color: var(--text); font-weight: 600; }
.faq .a ol { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; }

/* Bandeau final */
.closing { padding: 128px 0; }
.closing h2 { font-size: clamp(36px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -0.045em; max-width: 12em; }
.closing p { color: var(--muted); margin-top: 26px; font-size: 19px; max-width: 36em; }
.closing .cta { margin-top: 32px; }

/* ---------- Pied de page ---------- */
.foot { border-top: 1px solid var(--border); padding: 56px 0 64px; font-size: 15px; color: var(--muted); background: var(--side); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
/* Une colonne étroite ne doit jamais élargir la page : l'adresse e-mail, d'un seul tenant, peut se couper. */
.foot-grid > * { min-width: 0; }
.foot li { overflow-wrap: anywhere; }
.foot h2 { font-size: 12.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; transition: color 0.12s var(--ease); }
.foot a:hover { color: var(--text); text-decoration: underline; }
.foot .brand { margin-bottom: 12px; color: var(--text); }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--faint); display: grid; gap: 6px; }

/* ---------- Pages simples (merci, annulé) ---------- */
.simple { min-height: calc(100vh - 61px); display: grid; place-items: center; padding: 56px 0; text-align: center; }
.simple .card { max-width: 34em; margin: 0 auto; display: grid; gap: 16px; justify-items: center; }
.simple .badge { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-text); background: var(--ink-grad); box-shadow: var(--ink-rim); }
.simple .badge.soft { color: var(--text); background: none; box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.simple .badge svg { width: 30px; height: 30px; }
.simple h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.035em; }
.simple p { color: var(--muted); font-size: 18px; }
.simple .cta { margin-top: 8px; }

/* ---------- Textes légaux ---------- */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(30px, 4.6vw, 42px); letter-spacing: -0.035em; }
.legal .updated { margin-top: 12px; color: var(--muted); font-size: 15.5px; }
.legal .intro { margin-top: 22px; font-size: 18px; color: var(--muted); }
.legal h2 { font-size: 24px; margin: 48px 0 14px; padding-top: 4px; }
.legal h3 { font-size: 18.5px; letter-spacing: -0.015em; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 16.5px; }
.legal p + p, .legal p + ul, .legal ul + p, .legal ol + p, .legal p + ol, .legal .box + p, .legal p + .box, .legal table + p, .legal .scroll + p { margin-top: 12px; }
.legal ul, .legal ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.legal a { color: var(--read); text-decoration-color: color-mix(in srgb, var(--read) 40%, transparent); }
.toc { margin-top: 28px; padding: 18px 20px; border-radius: 14px; background: var(--side); box-shadow: inset 0 0 0 1px var(--border); }
.toc h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.02em; color: var(--faint); margin: 0 0 10px; padding: 0; }
.toc ol { columns: 2; column-gap: 28px; display: block; padding-left: 22px; }
.toc li { font-size: 15px; margin-bottom: 5px; break-inside: avoid; }
.toc a { color: inherit; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.box { margin-top: 14px; padding: 18px 20px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.box > :first-child { margin-top: 0; }
.box h3 { margin-top: 0; }
.box.form p { font-size: 16px; }
.scroll { overflow-x: auto; margin-top: 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border); }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.legal th { font-weight: 650; background: var(--side); }
.legal tbody th { white-space: nowrap; }
.legal tbody th:has(.todo) { white-space: normal; }
.legal tr:last-child td { border-bottom: 0; }

/* Formulaire de rétractation en ligne */
.field { display: grid; gap: 6px; margin-top: 16px; }
.field label { font-weight: 600; font-size: 15.5px; }
.field .hint { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 0; border-radius: 10px; padding: 11px 13px; width: 100%;
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.form-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.field textarea { min-height: 96px; resize: vertical; font-family: var(--font); }
.form-error { margin-top: 16px; font-weight: 600; }
.btn[disabled] { opacity: .6; cursor: progress; }
.result { margin-top: 20px; }
.result pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 15px/1.55 var(--font); margin: 10px 0 0; padding: 14px 16px; border-radius: 10px; background: var(--side); box-shadow: inset 0 0 0 1px var(--border); }
[hidden] { display: none !important; }

/* ---------- Les trois arguments ---------- */
.pillars { padding-bottom: 56px; }
.pillar-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pillar-list a {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; height: 100%; padding: 24px; border-radius: 20px; text-decoration: none;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow 0.15s var(--ease), transform 0.15s var(--ease);
}
.pillar-list a:hover { box-shadow: inset 0 0 0 1px var(--border-strong), var(--shadow); transform: translateY(-2px); }
.pillar-no { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink-text); background: var(--ink-grad); box-shadow: var(--ink-rim); }
.pillar-name { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; align-self: end; }
.pillar-desc { font-size: 15.5px; color: var(--muted); }
.pillar-desc s { text-decoration-thickness: 1.5px; text-decoration-color: color-mix(in srgb, var(--text) 55%, transparent); }
.maker-text strong { color: var(--text); font-weight: 650; }
/* Numéro de l'argument au-dessus du titre de chaque section. */
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.kicker span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--ink-text); background: var(--ink-grad); box-shadow: var(--ink-rim); }
.oral-text .kicker { margin-bottom: 0; }
.pillar-foot { margin-top: 28px; max-width: 46em; color: var(--muted); font-size: 16px; }
.pillar-foot kbd { font-size: 0.8em; }

/* ---------- Questions imbriquées ---------- */
.nest-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.nest-text h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.035em; line-height: 1.08; }
.nest-text > p:not(.kicker):not(.pillar-foot) { margin-top: 18px; color: var(--muted); font-size: 18px; }
.nest-text .pillar-foot { font-size: 15px; margin-top: 22px; }
.nest-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 8px; }
.nest-steps button {
  display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-radius: 14px; cursor: pointer; text-align: left;
  font: inherit; font-size: 15.5px; line-height: 1.45; color: var(--muted); background: none; box-shadow: inset 0 0 0 1px var(--border);
  transition: background 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s var(--ease);
}
.nest-steps button:hover { color: var(--text); }
.nest-steps button[aria-pressed="true"] { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border-strong), var(--shadow); }
.nest-steps b { color: var(--text); font-weight: 600; }
.ns-key { flex: none; min-width: 58px; }
.ns-key kbd { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px 2px; border-radius: 8px; font-size: 13px; background: var(--surface); box-shadow: var(--key-shadow); }

/* La démonstration reprend l'apparence de l'application : barre, page du PDF, réponses en bas de l'écran. */
.nest-demo { min-width: 0; border-radius: 18px; overflow: hidden; background: var(--side); box-shadow: var(--shadow-lg); font-size: 14px; line-height: 1.5; }
.nd-bar { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; background: var(--bg); border-bottom: 1px solid var(--border); font-size: 13px; }
.nd-dots { display: inline-flex; gap: 6px; }
.nd-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.nd-title { flex: 1; min-width: 0; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-pill { padding: 3px 9px; border-radius: 7px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); font-variant-numeric: tabular-nums; }
.nd-canvas { position: relative; height: 470px; padding: 24px 24px 0; overflow: hidden; }
.nd-page { width: min(440px, 86%); margin: 0 auto; height: 100%; padding: 30px 34px; border-radius: 3px 3px 0 0; background: var(--surface); box-shadow: 0 0 0 1px var(--border); display: flex; flex-direction: column; gap: 11px; }
.nd-h { font-weight: 650; font-size: 15px; margin-bottom: 4px; }
.nd-line { display: block; height: 7px; border-radius: 4px; background: var(--hover); box-shadow: inset 0 0 0 1px var(--border); }
.nd-line.short { width: 62%; }
.nd-math { font-family: var(--math); font-size: 17px; text-align: center; padding: 8px 0; }
.nd-math i, .nest-demo .nd-text i { font-family: var(--math); }
.nd-dock { position: absolute; left: 0; right: 0; bottom: 16px; padding: 0 16px; display: flex; align-items: flex-end; justify-content: center; gap: 10px; }
.nd-card {
  position: relative; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 10px; border-radius: 14px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--border-strong), 0 18px 44px -14px rgb(0 0 0 / 0.38);
  transition: flex 0.45s var(--ease), max-height 0.45s var(--ease), padding 0.45s var(--ease), opacity 0.35s var(--ease), transform 0.45s var(--ease), color 0.35s var(--ease);
}
.nd-main { flex: 1 1 0; max-width: 560px; }
.nd-side { flex: 0 0 0; max-height: 0; opacity: 0; transform: translateY(14px); padding-inline: 0; padding-block: 0; overflow: hidden; }
.nd-q { font-size: 12.5px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; min-width: 0; }
.nd-q > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-nested { color: var(--text); }
.nd-tag { display: none; flex: none; white-space: nowrap; padding: 1px 7px; border-radius: 999px; font-size: 11px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--border-strong); }
.nd-text { color: var(--text); }
.nd-text > span { padding: 0.12em 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.nd-ctl { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.nd-play { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(currentColor, currentColor) 8px 6px / 2px 10px no-repeat, linear-gradient(currentColor, currentColor) 12px 6px / 2px 10px no-repeat; }
.nd-speed { padding: 2px 6px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--border); color: var(--text); font-weight: 550; }
.nd-prog { flex: 1; height: 3px; border-radius: 2px; background: var(--border); overflow: hidden; }
.nd-prog i { display: block; height: 100%; width: 38%; background: var(--ink); transition: width 0.45s var(--ease); }
.nd-hint { white-space: nowrap; }
.nd-hint kbd { font-size: 10.5px; }

/* Étape 1 : la réponse est lue, première phrase surlignée. */
.nest-demo[data-step="1"] .nd-s1 { background: var(--mark); }
/* Étape 2 : la réponse passe derrière, en pause, avec la trace de l'endroit où la voix s'est arrêtée ; la petite question s'ouvre devant. */
.nest-demo[data-step="2"] .nd-main { flex: 0.8 1 0; color: var(--muted); }
.nest-demo[data-step="2"] .nd-main .nd-text { color: var(--muted); max-height: 9.2em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.nest-demo[data-step="2"] .nd-main .nd-s2 { box-shadow: inset 0 -1.5px 0 var(--border-strong); }
.nest-demo[data-step="2"] .nd-main .nd-tag { display: inline-block; }
.nest-demo[data-step="2"] .nd-main .nd-ctl { opacity: 0; }
.nest-demo[data-step="2"] .nd-side { flex: 1 1 0; max-height: 22em; opacity: 1; transform: none; padding: 14px 16px 10px; }
.nest-demo[data-step="2"] .nd-side .nd-on { background: var(--mark); }
/* Étape 3 : la petite question a disparu ; la réponse reprend à la phrase interrompue. */
.nest-demo[data-step="3"] .nd-s2 { background: var(--mark); }
.nest-demo[data-step="3"] .nd-main .nd-prog i { width: 52%; }

/* ---------- Fait par un étudiant ---------- */
.maker { padding: 112px 0; }
.maker-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.maker h2 { font-size: clamp(36px, 4.8vw, 64px); line-height: 1.02; letter-spacing: -0.045em; }
.maker h2 em { display: block; }
.maker-text { display: grid; gap: 18px; font-size: 19px; line-height: 1.6; color: var(--muted); padding-top: 8px; }
.maker-text p:first-child { color: var(--text); }
.maker-sign { margin-top: 6px; font-size: 15.5px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 12px; }
.maker-sign::before { content: ""; width: 28px; height: 1px; background: var(--border-strong); }

/* Fonctions secondaires : en plus petit. */
.features.compact .feature { padding: 22px 0 26px; }
.features.compact .feature svg { width: 20px; height: 20px; margin-bottom: 12px; color: var(--muted); }
.features.compact .feature h3 { font-size: 16.5px; }
.features.compact .feature p { font-size: 15px; }

/* ---------- Téléphone et tablette ---------- */
@media (max-width: 980px) {
  section { padding: 76px 0; }
  .hero { padding: 60px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { max-width: 36em; }
  .oral-head { grid-template-columns: 1fr; margin-bottom: 32px; }
  .nest-grid, .maker-grid { grid-template-columns: 1fr; gap: 36px; }
  .pillar-list { grid-template-columns: 1fr; }
  .maker { padding: 80px 0; }
  .read-row { grid-template-columns: 1fr; }
  .pl-keys { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .dl, .dl-notes, .plans-foot { grid-template-columns: 1fr; }
  .dl-notes li, .plans-foot p { padding: 16px 0; }
  .features, .keys { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; grid-template-rows: none; }
  .branch { grid-template-rows: none; grid-row: auto; gap: 12px; }
  .plan .who { min-height: 0; }
  #faq > .wrap { grid-template-columns: 1fr; gap: 32px; }
  #faq .sec-head { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .answer { min-height: 0; }
  .closing { padding: 88px 0; }
}
@media (max-width: 600px) {
  :root { --gutter: 18px; }
  body { font-size: 16.5px; }
  section { padding: 60px 0; }
  .hero { padding: 44px 0 36px; }
  .sec-head { margin-bottom: 32px; }
  .features, .keys { grid-template-columns: 1fr; }
  .feature { padding: 22px 0 26px; }
  .keys-block { padding: 24px 20px; border-radius: 16px; }
  .branch-cards { grid-template-columns: 1fr; }
  .cta .btn { width: 100%; }
  .toc ol { columns: 1; }
  .demo, .demo.is-empty { border-radius: 14px; aspect-ratio: auto; }
  .demo video { aspect-ratio: 16 / 9; height: auto; }
  .top .wrap { gap: 8px; }
  .dl-card, .plan { padding: 22px; border-radius: 16px; }
  .spoken { min-height: 0; }
  .nd-canvas { height: 520px; padding: 14px 10px 0; }
  .nd-page { width: 100%; padding: 20px; }
  .nd-dock { flex-direction: column; justify-content: flex-end; align-items: stretch; padding: 0 10px; gap: 8px; }
  .nd-main { flex: none; max-width: none; }
  .nd-side { flex: none; max-height: 0; padding-block: 0; }
  .nest-demo[data-step="2"] .nd-main { flex: none; }
  .nest-demo[data-step="2"] .nd-main .nd-text, .nest-demo[data-step="2"] .nd-main .nd-ctl { display: none; }
  .nest-demo[data-step="2"] .nd-main { padding-block: 12px; }
  .nest-demo[data-step="2"] .nd-side { flex: none; max-height: 20em; padding-block: 14px 10px; }
  .nd-hint { display: none; }
  .maker-text { font-size: 17.5px; }
  .pl-keys { grid-template-columns: 1fr; }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1 1 0; font-size: 14px; padding: 10px 6px; }
  .player { gap: 10px; padding-right: 12px; }
}
/* Téléphones les plus étroits : les onglets des formules l'un au-dessus de l'autre, chacun sur une ligne. */
@media (max-width: 380px) {
  .tabs { flex-direction: column; }
}
@media print {
  .top, .foot, .skip { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .legal { padding: 0; }
}
