/* AgeVoice — landing page. Charte v3.1 « Onde & Seuil » (jetons repris de 05_Tokens/tokens.css).
   Règles de marque : couleur + icône + mot pour tout état ; jamais de rouge ; « indéterminé » = brume hachurée. */

/* ---------- Polices (SIL OFL 1.1) ---------- */
@font-face { font-family: 'Caladea'; src: url('/assets/fonts/Caladea-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Caladea'; src: url('/assets/fonts/Caladea-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Caladea'; src: url('/assets/fonts/Caladea-Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Carlito'; src: url('/assets/fonts/Carlito-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Carlito'; src: url('/assets/fonts/Carlito-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Carlito'; src: url('/assets/fonts/Carlito-Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Liberation Mono'; src: url('/assets/fonts/LiberationMono-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Liberation Mono'; src: url('/assets/fonts/LiberationMono-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Jetons ---------- */
:root {
  --av-nuit-900: #090D22; --av-nuit-800: #0E1330; --av-nuit: #141A3B; --av-nuit-600: #1E2650;
  --av-ambre: #E8A33D; --av-ambre-300: #F2C471; --av-ambre-100: #FBEAD2; --av-ambre-texte: #976200;
  --av-seuil: #6B7280; --av-seuil-clair: #A6ABC4; --av-texte-2: #5B6180;
  --av-brume-200: #D1D5E2; --av-brume-100: #E8EAF4; --av-brume-50: #F4F5FA; --av-blanc: #FFFFFF;
  --av-font-titres: 'Caladea', Georgia, serif;
  --av-font-texte: 'Carlito', 'Segoe UI', Calibri, sans-serif;
  --av-font-code: 'Liberation Mono', 'Courier New', monospace;
  --av-radius-sm: 6px; --av-radius-md: 10px; --av-radius-lg: 16px; --av-radius-pill: 9999px;
  --av-shadow-lg: 0 12px 32px rgba(20,26,59,.14);
  --av-duration-fast: 120ms; --av-duration-base: 200ms; --av-duration-slow: 320ms;
  --av-ease-standard: cubic-bezier(.2,0,0,1);

  --bg: var(--av-blanc); --surface: var(--av-brume-50); --surface-2: var(--av-brume-100);
  --border: var(--av-brume-200); --text: var(--av-nuit); --text-2: var(--av-texte-2);
  --accent-text: var(--av-ambre-texte); --threshold: var(--av-seuil);
  --motif-ink: var(--av-nuit); --motif-opacity: .085;
  --wrap: 1160px; --gutter: clamp(20px, 5vw, 48px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--av-nuit-800); --surface: var(--av-nuit); --surface-2: var(--av-nuit-600);
    --border: var(--av-nuit-600); --text: var(--av-brume-50); --text-2: var(--av-seuil-clair);
    --accent-text: var(--av-ambre-300); --threshold: var(--av-seuil-clair);
    --motif-ink: var(--av-ambre); --motif-opacity: .09;
    color-scheme: dark;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root { --av-duration-fast: 0ms; --av-duration-base: 0ms; --av-duration-slow: 0ms; }
  html { scroll-behavior: auto !important; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--av-font-texte); text-rendering: optimizeLegibility; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--av-font-titres); font-weight: 700; margin: 0; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
code, pre, .mono { font-family: var(--av-font-code); }
:focus-visible { outline: 2px solid var(--av-ambre); outline-offset: 3px; border-radius: var(--av-radius-sm); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--av-ambre); color: var(--av-nuit); padding: 10px 16px; border-radius: var(--av-radius-md); font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  font: 700 1rem/1 var(--av-font-texte); border-radius: var(--av-radius-md); border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: background var(--av-duration-fast) var(--av-ease-standard), border-color var(--av-duration-fast) var(--av-ease-standard), color var(--av-duration-fast); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn--primary { background: var(--av-nuit); color: var(--av-blanc); }
.btn--primary:hover { background: var(--av-nuit-600); }
.btn--amber { background: var(--av-ambre); color: var(--av-nuit); }
.btn--amber:hover { background: var(--av-ambre-300); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--text-2); }
.on-dark .btn--ghost { color: var(--av-blanc); border-color: rgba(255,255,255,.28); }
.on-dark .btn--ghost:hover { border-color: rgba(255,255,255,.6); }
@media (prefers-color-scheme: dark) { .btn--primary { background: var(--av-ambre); color: var(--av-nuit); } .btn--primary:hover { background: var(--av-ambre-300); } }

/* ---------- Étiquettes et verdicts (charte) ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; font: 700 .8125rem/1 var(--av-font-texte); padding: 7px 11px; border-radius: var(--av-radius-pill); border: 1px solid transparent; white-space: nowrap; }
.tag svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tag--done { background: var(--av-nuit); color: var(--av-blanc); }
.tag--proto { background: var(--bg); color: var(--text); border-color: var(--av-nuit); }
.tag--doing { background: var(--bg); color: var(--accent-text); border-color: var(--av-ambre); }
.tag--todo { background: var(--bg); color: var(--text-2); border-color: var(--border); }
@media (prefers-color-scheme: dark) { .tag--done { background: var(--av-brume-50); color: var(--av-nuit); } .tag--proto { border-color: var(--av-brume-50); } }

.verdict { display: inline-flex; align-items: center; gap: 9px; font: 700 1rem/1.2 var(--av-font-texte); padding: 10px 14px; border-radius: var(--av-radius-sm); border: 1.5px solid transparent; }
.verdict svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.verdict--pass { background: var(--av-nuit); color: var(--av-blanc); }
.verdict--fail { background: var(--av-ambre-100); color: var(--av-nuit); border-color: var(--av-ambre); }
.verdict--fail svg { color: var(--av-ambre-texte); }
.verdict--undetermined { color: var(--av-texte-2); border: 1.5px dashed var(--av-seuil); background: repeating-linear-gradient(45deg, var(--av-brume-50) 0 4px, var(--av-brume-100) 4px 7px); }
@media (prefers-color-scheme: dark) { .verdict--pass { background: var(--av-brume-50); color: var(--av-nuit); } }

/* ---------- Ligne de seuil (séparateur de marque) ---------- */
.threshold { height: 8px; background:
  linear-gradient(var(--av-ambre), var(--av-ambre)) left center / 40px 2.4px no-repeat,
  radial-gradient(circle, var(--threshold) 1px, transparent 1.2px) left center / 7px 8px repeat-x; }

/* ---------- En-tête du site ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--av-nuit) 94%, transparent); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); color: var(--av-blanc); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: rgba(255,255,255,.82); text-decoration: none; font-size: .975rem; padding: 8px 10px; border-radius: var(--av-radius-sm); }
.nav a:hover { color: var(--av-blanc); background: rgba(255,255,255,.06); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1px solid rgba(255,255,255,.22); border-radius: var(--av-radius-pill); padding: 3px; }
.lang a { color: rgba(255,255,255,.75); text-decoration: none; font: 700 .8125rem/1 var(--av-font-texte); padding: 6px 9px; border-radius: var(--av-radius-pill); }
.lang a[aria-current="true"] { background: rgba(255,255,255,.12); color: var(--av-blanc); }
.site-header .btn { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.menu-btn { display: none; background: none; border: 1px solid rgba(255,255,255,.22); color: var(--av-blanc); border-radius: var(--av-radius-md); width: 44px; height: 44px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; margin: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 1020px) {
  .site-header .wrap { flex-wrap: wrap; gap: 12px; }
  .menu-btn { display: inline-grid; margin-left: auto; }
  .header-actions .btn { display: none; }
  .nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 4px 0 16px; margin: 0; }
  .nav a { padding: 12px 10px; font-size: 1.0625rem; }
  .site-header.is-open .nav { display: flex; }
}

/* ---------- Héros ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--av-nuit); color: var(--av-blanc); padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 8vw, 104px); }
.hero .motif { --motif-ink: var(--av-brume-50); --motif-opacity: .06; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1.04; letter-spacing: -.015em; max-width: 15ch; }
.hero__lead { margin-top: 24px; font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: rgba(255,255,255,.84); max-width: 54ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 34px; font-size: .9375rem; color: rgba(255,255,255,.7); }
.hero__meta strong { color: var(--av-ambre-300); font-weight: 700; }
.hero__meta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hero__meta span { display: inline-flex; gap: 8px; align-items: center; }
.hero__waves { position: absolute; inset: auto 0 0 0; height: 46%; z-index: -1; opacity: .5; pointer-events: none; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } .hero h1 { max-width: 16ch; } }

/* ---------- Widget de démonstration ---------- */
.widget { width: min(100%, 400px); justify-self: end; background: var(--av-blanc); color: var(--av-nuit); border-radius: var(--av-radius-lg); box-shadow: 0 30px 60px rgba(0,0,0,.35); padding: 24px; }
.widget__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.widget__title { font: 700 1.125rem/1.4 var(--av-font-texte); margin: 0; }
.widget__brand { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--av-texte-2); white-space: nowrap; }
.widget__brand img { height: 12px; width: auto; }
.widget__text { font-size: .875rem; color: var(--av-texte-2); margin-bottom: 12px; }
.widget__phrase { font: 700 1.375rem/1.35 var(--av-font-titres); background: var(--av-brume-50); border-radius: var(--av-radius-md); padding: 18px 16px; text-align: center; min-height: 3.6em; display: grid; place-items: center; }
.widget__wave { width: 100%; height: 104px; margin-top: 14px; }
.widget__timer { height: 6px; border-radius: 3px; background: var(--av-brume-100); overflow: hidden; margin: 10px 0 8px; }
.widget__timer > i { display: block; height: 100%; width: 0; background: var(--av-ambre); transition: width 100ms linear; }
.widget__status { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--av-texte-2); min-height: 20px; }
.widget__status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--av-seuil-clair); flex: none; }
.widget[data-state="live"] .widget__status::before { background: var(--av-ambre); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.widget__actions { display: grid; gap: 8px; margin-top: 16px; }
.widget__actions .btn { width: 100%; }
.widget .btn--ghost { color: var(--av-nuit); border-color: var(--av-brume-200); }
.widget .btn--ghost:hover { border-color: var(--av-texte-2); }
.widget .btn--primary { background: var(--av-nuit); color: var(--av-blanc); }
.widget .btn--primary:hover { background: var(--av-nuit-600); }
.widget__foot { font-size: .75rem; color: var(--av-texte-2); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--av-brume-100); }
@media (prefers-reduced-motion: reduce) { .widget[data-state="live"] .widget__status::before { animation: none; } }
@media (max-width: 900px) { .widget { justify-self: start; } }

/* ---------- Sections et en-têtes à motif ---------- */
.section { padding: 0 0 clamp(64px, 8vw, 104px); }
.section--alt { background: var(--surface); }
.sec-head { position: relative; isolation: isolate; padding: clamp(56px, 7vw, 88px) 0 clamp(28px, 4vw, 40px); }
.sec-head h2 { font-size: clamp(1.95rem, 3.4vw, 2.75rem); line-height: 1.12; max-width: 26ch; }
.sec-head__lead { margin-top: 16px; font-size: 1.1875rem; line-height: 1.6; color: var(--text-2); max-width: 62ch; }
.sec-head .threshold { margin-top: 28px; max-width: 260px; }
.motif { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.55) 42%, #000 78%);
          mask-image: linear-gradient(90deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.55) 42%, #000 78%); }
.motif > span { position: absolute; inset: 0; background: var(--motif-ink); opacity: var(--motif-opacity);
  -webkit-mask-repeat: repeat; mask-repeat: repeat; -webkit-mask-position: center top; mask-position: center top; }
.motif::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to bottom, transparent, var(--section-bg, var(--bg))); }
.section--alt .motif::after { --section-bg: var(--surface); }
.hero .motif::after, .dark .motif::after { --section-bg: var(--av-nuit); }
.motif-legend { position: absolute; right: var(--gutter); bottom: 14px; font-size: .75rem; color: var(--text-2); font-style: italic; }
.hero .motif-legend { color: rgba(255,255,255,.5); bottom: 18px; }
.dark .motif-legend { color: rgba(255,255,255,.55); }
@media (max-width: 640px) { .sec-head { padding-bottom: 44px; } .motif-legend { bottom: 12px; font-size: .6875rem; } .hero .motif-legend { bottom: 10px; } }

.m-ndop > span { -webkit-mask-image: url('/assets/motifs/ndop.svg'); mask-image: url('/assets/motifs/ndop.svg'); -webkit-mask-size: 96px; mask-size: 96px; }
.m-bogolan > span { -webkit-mask-image: url('/assets/motifs/bogolan.svg'); mask-image: url('/assets/motifs/bogolan.svg'); -webkit-mask-size: 80px; mask-size: 80px; }
.m-kente > span { -webkit-mask-image: url('/assets/motifs/kente.svg'); mask-image: url('/assets/motifs/kente.svg'); -webkit-mask-size: 120px; mask-size: 120px; }
.m-kuba > span { -webkit-mask-image: url('/assets/motifs/kuba.svg'); mask-image: url('/assets/motifs/kuba.svg'); -webkit-mask-size: 64px; mask-size: 64px; }
.m-amazigh > span { -webkit-mask-image: url('/assets/motifs/amazigh.svg'); mask-image: url('/assets/motifs/amazigh.svg'); -webkit-mask-size: 60px; mask-size: 60px; }
.m-peul > span { -webkit-mask-image: url('/assets/motifs/peul.svg'); mask-image: url('/assets/motifs/peul.svg'); -webkit-mask-size: 48px; mask-size: 48px; }
.m-ndebele { --motif-opacity: .05; }
.m-ndebele > span { -webkit-mask-image: url('/assets/motifs/ndebele.svg'); mask-image: url('/assets/motifs/ndebele.svg'); -webkit-mask-size: 80px; mask-size: 80px; }
.m-adire > span { -webkit-mask-image: url('/assets/motifs/adire.svg'); mask-image: url('/assets/motifs/adire.svg'); -webkit-mask-size: 60px; mask-size: 60px; }
.m-toghu > span { -webkit-mask-image: url('/assets/motifs/toghu.svg'); mask-image: url('/assets/motifs/toghu.svg'); -webkit-mask-size: 80px; mask-size: 80px; }

/* ---------- Problème ---------- */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); }
.tool { padding: 28px 28px 8px 0; }
.tool + .tool { padding-left: 28px; border-left: 1px dashed var(--border); }
.tool h3 { font-size: 1.375rem; line-height: 1.3; margin-bottom: 10px; }
.tool p { color: var(--text-2); }
.tool__limit { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; color: var(--accent-text); font-size: .9375rem; }
.tool__limit svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 820px) { .tools { grid-template-columns: minmax(0, 1fr); } .tool, .tool + .tool { padding: 24px 0; border-left: 0; border-bottom: 1px dashed var(--border); } }

.voice-way { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); margin-top: clamp(40px, 6vw, 64px); align-items: start; }
.voice-way h3 { font-size: 1.625rem; line-height: 1.25; margin-bottom: 12px; }
.voice-way p + p { margin-top: 12px; }
.voice-way p { color: var(--text-2); }
.fact { border-left: 4px solid var(--av-ambre); padding: 4px 0 4px 20px; }
.fact strong { display: block; font: 700 2.25rem/1.1 var(--av-font-titres); color: var(--text); }
.fact + .fact { margin-top: 22px; }
.fact span { color: var(--text-2); }
.source { font-size: .8125rem; color: var(--text-2); margin-top: 16px; }
@media (max-width: 820px) { .voice-way { grid-template-columns: minmax(0, 1fr); } }

.laws { margin-top: clamp(40px, 6vw, 64px); }
.laws h3 { font-size: 1.375rem; margin-bottom: 18px; }
.laws ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--border); }
.laws li { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--border); }
.laws li .when { font: 700 .875rem/1 var(--av-font-texte); color: var(--accent-text); }
.laws li .where { display: block; font: 700 1.0625rem/1.3 var(--av-font-titres); margin: 8px 0 4px; }
.laws li p { color: var(--text-2); font-size: .9375rem; line-height: 1.5; }
@media (max-width: 900px) { .laws ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .laws ol { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Chaîne de traitement ---------- */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); counter-reset: step; position: relative; }
.pipeline::before { content: ''; position: absolute; left: 0; right: 0; top: 19px; height: 8px; background: radial-gradient(circle, var(--threshold) 1px, transparent 1.2px) left center / 7px 8px repeat-x; }
.pipeline li { counter-increment: step; position: relative; padding-right: 16px; }
.pipeline li::before { content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--text); font: 700 1.125rem/1 var(--av-font-titres); position: relative; margin-bottom: 18px; }
.section--alt .pipeline li::before { background: var(--surface); }
.pipeline li.is-model::before { background: var(--av-nuit); color: var(--av-blanc); border-color: var(--av-nuit); }
.pipeline li.is-key::before { background: var(--av-ambre); color: var(--av-nuit); border-color: var(--av-ambre); }
.pipeline h3 { font-size: 1.125rem; line-height: 1.3; }
.pipeline p { font-size: .9375rem; color: var(--text-2); margin-top: 6px; line-height: 1.5; }
@media (max-width: 980px) { .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; } .pipeline::before { display: none; } }
@media (max-width: 560px) { .pipeline { grid-template-columns: minmax(0, 1fr); } }

.callout { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin-top: clamp(36px, 5vw, 52px); padding: 22px 24px; border-radius: var(--av-radius-md); background: var(--bg); border-left: 6px solid var(--av-ambre); }
.section--alt .callout { background: var(--bg); }
.callout svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.callout p + p { margin-top: 6px; color: var(--text-2); }
.callout strong { font-weight: 700; }

/* ---------- Explorateur du seuil ---------- */
.explorer { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 4vw, 48px); align-items: start; }
.explorer__stage { background: var(--surface); border: 1px solid var(--border); border-radius: var(--av-radius-lg); padding: clamp(20px, 3vw, 32px); }
.explorer__controls { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--av-radius-md); padding: 3px; background: var(--bg); }
.seg button { font: 700 .9375rem/1 var(--av-font-texte); color: var(--text-2); background: none; border: 0; padding: 10px 14px; border-radius: 7px; cursor: pointer; min-height: 40px; }
.seg button[aria-pressed="true"] { background: var(--av-nuit); color: var(--av-blanc); }
@media (prefers-color-scheme: dark) { .seg button[aria-pressed="true"] { background: var(--av-brume-50); color: var(--av-nuit); } }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: .9375rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--av-nuit); }
.axis { position: relative; height: 112px; margin: 6px 4px 0; }
.axis__zone { position: absolute; top: 34px; height: 44px; }
.axis__zone--minor { left: 0; background: var(--av-ambre-100); border-radius: 8px 0 0 8px; }
.axis__zone--adult { right: 0; background: var(--av-nuit); border-radius: 0 8px 8px 0; }
.axis__zone--undet { background: repeating-linear-gradient(45deg, var(--av-brume-50) 0 4px, var(--av-brume-100) 4px 7px); border-block: 1.5px dashed var(--av-seuil); transition: left var(--av-duration-slow) var(--av-ease-standard), width var(--av-duration-slow) var(--av-ease-standard); }
.axis__zone--minor, .axis__zone--adult { transition: width var(--av-duration-slow) var(--av-ease-standard); }
.axis__line { position: absolute; top: 22px; bottom: 22px; width: 0; border-left: 2px dotted var(--threshold); }
.axis__line::before, .axis__line::after { content: ''; position: absolute; left: -7px; width: 12px; height: 2px; background: var(--threshold); }
.axis__line::before { top: 0; } .axis__line::after { bottom: 0; }
.axis__label { position: absolute; top: 0; transform: translateX(-50%); font: 700 .8125rem/1 var(--av-font-texte); color: var(--text-2); white-space: nowrap; }
.axis__ticks { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; font-size: .8125rem; color: var(--text-2); }
.axis__pin { position: absolute; top: 26px; width: 4px; height: 60px; margin-left: -2px; background: var(--av-ambre); border-radius: 2px; transition: left 80ms linear; }
.axis__pin::before { content: ''; position: absolute; left: 50%; top: -8px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--av-ambre); box-shadow: 0 0 0 4px var(--bg); }
.axis input[type=range] { position: absolute; inset: 20px 0 20px 0; width: 100%; height: 72px; margin: 0; opacity: 0; cursor: ew-resize; }
.axis input[type=range]:focus-visible + .axis__pin::before { outline: 2px solid var(--av-ambre); outline-offset: 4px; }
.explorer__hint { font-size: .875rem; color: var(--text-2); margin-top: 14px; }
.explorer__out { display: grid; gap: 16px; }
.explorer__out h3 { font-size: 1.25rem; }
.explorer__out .muted { font-size: .9375rem; color: var(--text-2); }
.json { margin: 0; padding: 18px 20px; border-radius: var(--av-radius-md); background: var(--av-nuit); color: #DDE1F0; font: 400 .875rem/1.7 var(--av-font-code); overflow-x: auto; }
.json .k { color: var(--av-seuil-clair); } .json .s { color: var(--av-ambre-300); } .json .c { color: #8A90AE; font-style: italic; }
.small-print { font-size: .8125rem; color: var(--text-2); margin-top: 18px; }
@media (max-width: 900px) { .explorer { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Intégration ---------- */
.integrate { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.flow { list-style: none; margin: 0; padding: 0; counter-reset: flow; }
.flow li { counter-increment: flow; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.flow li::before { content: counter(flow); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 .9375rem/1 var(--av-font-titres); border: 1.5px solid var(--text); }
.flow strong { display: block; }
.flow span { color: var(--text-2); font-size: .9375rem; }
.code-card { border-radius: var(--av-radius-lg); overflow: hidden; background: var(--av-nuit); border: 1px solid var(--av-nuit-600); }
.code-card__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--av-nuit-600); color: var(--av-seuil-clair); font-size: .8125rem; }
.code-card__bar code { color: var(--av-blanc); font-size: .875rem; }
.code-card pre { margin: 0; padding: 18px 20px 22px; color: #DDE1F0; font: 400 .875rem/1.7 var(--av-font-code); overflow-x: auto; }
.endpoints { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.endpoints li { display: grid; grid-template-columns: 64px minmax(0, 190px) 1fr; gap: 12px; align-items: baseline; font-size: .9375rem; }
.endpoints .verb { font: 700 .75rem/1 var(--av-font-code); color: var(--accent-text); }
.endpoints code { font-size: .875rem; }
.endpoints span:last-child { color: var(--text-2); }
@media (max-width: 900px) { .integrate { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .endpoints li { grid-template-columns: 52px 1fr; } .endpoints span:last-child { grid-column: 2; } }

/* ---------- Usages ---------- */
.uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--border); }
.use { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--border); }
.use:nth-child(even) { padding-left: 28px; border-left: 1px dashed var(--border); }
.use__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.use h3 { font-size: 1.375rem; line-height: 1.3; }
.use p { color: var(--text-2); }
.use p + p { margin-top: 8px; }
.use p strong { color: var(--text); }
@media (max-width: 820px) { .uses { grid-template-columns: minmax(0, 1fr); } .use, .use:nth-child(even) { padding: 24px 0; border-left: 0; } }

/* ---------- Tarifs ---------- */
.pricing { width: 100%; border-collapse: separate; border-spacing: 0; }
.pricing th, .pricing td { text-align: left; padding: 20px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.pricing thead th { font: 700 .8125rem/1.2 var(--av-font-texte); color: var(--text-2); padding-top: 0; }
.pricing tbody th { font: 700 1.25rem/1.25 var(--av-font-titres); }
.pricing tbody th small { display: block; font: 400 .9375rem/1.4 var(--av-font-texte); color: var(--text-2); margin-top: 4px; }
.pricing .price { font: 700 1.375rem/1.2 var(--av-font-titres); white-space: nowrap; }
.pricing .price small { font: 400 .875rem/1 var(--av-font-texte); color: var(--text-2); }
.pricing .num { white-space: nowrap; }
.pricing tr.is-ref th, .pricing tr.is-ref td { background: var(--av-nuit); color: var(--av-blanc); border-bottom-color: var(--av-nuit); }
.pricing tr.is-ref th small, .pricing tr.is-ref td small, .pricing tr.is-ref .per { color: var(--av-seuil-clair); }
.pricing tr.is-ref th:first-child { border-radius: var(--av-radius-md) 0 0 var(--av-radius-md); }
.pricing tr.is-ref td:last-child { border-radius: 0 var(--av-radius-md) var(--av-radius-md) 0; }
.ref-badge { display: inline-block; margin-left: 8px; vertical-align: middle; font: 700 .75rem/1 var(--av-font-texte); background: var(--av-ambre); color: var(--av-nuit); padding: 5px 8px; border-radius: var(--av-radius-pill); }
.pricing .per { color: var(--text-2); }
.pricing-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.pricing-notes div { font-size: .9375rem; color: var(--text-2); }
.pricing-notes strong { display: block; color: var(--text); margin-bottom: 4px; }
@media (max-width: 820px) {
  .pricing thead { display: none; }
  .pricing, .pricing tbody, .pricing tr, .pricing th, .pricing td { display: block; }
  .pricing tr { border: 1px solid var(--border); border-radius: var(--av-radius-md); margin-bottom: 12px; padding: 6px 0; }
  .pricing th, .pricing td { border: 0; padding: 8px 18px; }
  .pricing td[data-label]::before { content: attr(data-label); display: block; font-size: .75rem; color: var(--text-2); }
  .pricing tr.is-ref { background: var(--av-nuit); border-color: var(--av-nuit); }
  .pricing tr.is-ref th, .pricing tr.is-ref td { border-radius: 0 !important; }
  .pricing tr.is-ref td[data-label]::before { color: var(--av-seuil-clair); }
  .pricing-notes { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Confiance ---------- */
.flows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.flowbox { padding: 26px; border-radius: var(--av-radius-lg); border: 1px solid var(--border); background: var(--bg); }
.flowbox h3 { font-size: 1.375rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.flowbox h3 svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flowbox ul { margin: 0; padding-left: 18px; color: var(--text-2); }
.flowbox li + li { margin-top: 6px; }
.words { margin-top: clamp(36px, 5vw, 56px); width: 100%; border-collapse: collapse; }
.words caption { text-align: left; font: 700 1.375rem/1.3 var(--av-font-titres); margin-bottom: 16px; }
.words th { text-align: left; font: 700 .875rem/1.2 var(--av-font-texte); padding: 0 16px 12px 0; }
.words th svg { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; margin-right: 6px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.words td { padding: 14px 16px 14px 0; border-top: 1px solid var(--border); vertical-align: top; width: 50%; }
.words td:last-child { color: var(--text-2); text-decoration: line-through; text-decoration-color: var(--av-ambre); text-decoration-thickness: 2px; }
.legal { margin-top: clamp(28px, 4vw, 40px); }
@media (max-width: 760px) { .flows { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Avancement ---------- */
.status { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.status__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.status__list li { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: center; }
.status__list strong { font-weight: 700; }
.status__list span.note { grid-column: 1; color: var(--text-2); font-size: .9375rem; }
.status__list .tag { grid-row: 1 / span 2; grid-column: 2; }
.horizons { list-style: none; margin: 0; padding: 0; position: relative; }
.horizons::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; border-left: 2px dotted var(--threshold); }
.horizons li { position: relative; padding: 0 0 26px 34px; }
.horizons li::before { content: ''; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--text); }
.horizons li:first-child::before { background: var(--av-ambre); border-color: var(--av-ambre); }
.horizons h3 { font-size: 1.1875rem; }
.horizons p { color: var(--text-2); font-size: .9375rem; margin-top: 4px; }
.status__aside h3.title { font-size: 1.375rem; margin-bottom: 18px; }
@media (max-width: 900px) { .status { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Équipe ---------- */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.member__mono { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 700 1.375rem/1 var(--av-font-titres); background: var(--av-nuit); color: var(--av-ambre-300); margin-bottom: 16px; }
.member--advisor .member__mono { background: transparent; color: var(--text); border: 1.5px dashed var(--threshold); }
.member h3 { font-size: 1.1875rem; line-height: 1.3; }
.member .role { font-weight: 700; color: var(--accent-text); margin-top: 4px; }
.member p { color: var(--text-2); font-size: .9375rem; margin-top: 8px; }
.affiliation { margin-top: 40px; color: var(--text-2); }
.affiliation strong { color: var(--text); }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .team { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq__list { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; padding: 20px 0; font: 700 1.1875rem/1.35 var(--av-font-titres); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 12px; height: 12px; margin-top: 6px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg); transition: transform var(--av-duration-base) var(--av-ease-standard); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 10px; }
.faq details p { padding: 0 0 22px; color: var(--text-2); max-width: 70ch; }

/* ---------- Bloc sombre de contact ---------- */
.dark { background: var(--av-nuit); color: var(--av-blanc); }
.dark .motif { --motif-ink: var(--av-ambre); --motif-opacity: .08; }
.dark .sec-head__lead { color: rgba(255,255,255,.8); }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.contact__who { margin-top: 22px; color: rgba(255,255,255,.75); font-size: .9375rem; }
.contact__who a { color: var(--av-ambre-300); }
.asks-title { font-size: 1.25rem; margin-bottom: 14px; color: var(--av-ambre-300); }
.asks { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.14); }
.asks li { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.asks strong { display: block; font: 700 1.125rem/1.3 var(--av-font-titres); }
.asks span { color: rgba(255,255,255,.72); font-size: .9375rem; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--av-nuit-900); color: rgba(255,255,255,.72); padding: 56px 0 40px; font-size: .9375rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.site-footer img { height: 30px; width: auto; margin-bottom: 14px; }
.site-footer .promise { font: 700 1.25rem/1.3 var(--av-font-titres); color: var(--av-blanc); }
.site-footer h2 { font: 700 .9375rem/1.3 var(--av-font-texte); color: var(--av-blanc); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: var(--av-blanc); }
.footer__legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 8px; font-size: .8125rem; color: rgba(255,255,255,.58); }
@media (max-width: 820px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: left; }
.notfound h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.notfound p { color: rgba(255,255,255,.8); margin-bottom: 24px; }
.nf-logo { height: 30px; width: auto; margin-bottom: 40px; }

/* ---------- Ajustements du thème sombre ---------- */
@media (prefers-color-scheme: dark) {
  .pipeline li.is-model::before { background: var(--av-brume-50); color: var(--av-nuit); border-color: var(--av-brume-50); }
  .pipeline li::before { border-color: var(--av-seuil-clair); }
  .axis__zone--adult { background: var(--av-brume-50); }
  .axis__zone--undet { background: repeating-linear-gradient(45deg, var(--av-nuit-600) 0 4px, var(--av-nuit) 4px 7px); border-color: var(--av-seuil-clair); }
  .axis__zone--minor { background: var(--av-ambre-100); }
  .json, .code-card { border: 1px solid var(--av-nuit-600); background: var(--av-nuit-900); }
  .pricing tr.is-ref th, .pricing tr.is-ref td { background: var(--av-nuit-600); border-bottom-color: var(--av-nuit-600); }
  .pricing tr.is-ref { background: var(--av-nuit-600); border-color: var(--av-ambre); }
  .member__mono { background: var(--av-nuit-600); }
  .flow li::before { border-color: var(--av-seuil-clair); }
  .horizons li::before { border-color: var(--av-seuil-clair); }
  .callout, .section--alt .callout { background: var(--av-nuit); }
  .check input { accent-color: var(--av-ambre); }
}
