/* =============================================================================
   Plug'n'Dose · feuille de style
   -----------------------------------------------------------------------------
   Concept : un instrument de mesure clinique. Une typographie éditoriale
   au-dessus d'un tableau de mesure interactif, des sections en colonnes
   asymétriques, une bande nuit pour le parcours de calcul.

   Sommaire
     1. Polices auto-hébergées (aucune requête vers un tiers)
     2. Jetons de design : couleurs (clair / sombre), typographie, rythme
     3. Base, typographie
     4. Composants communs (boutons, étiquettes, puces)
     5. En-tête et navigation
     6. Héros et instrument de démonstration
     7. Section Plug'n'Dose (services, publics, équipe, réglementaire)
     8. Section Tucuxi (fiche technique, parcours, interface, modèles, preuves)
     9. Section STP (fenêtre thérapeutique, pratique, domaines)
    10. FAQ, contact, pied de page
    11. Pages secondaires (mentions légales, 404)
    12. Responsive, mouvement réduit, impression
============================================================================= */

/* --- 1. Polices ------------------------------------------------------------ */
@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/newsreader-display-normal.woff2") format("woff2");
  font-weight: 300 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/newsreader-display-italic.woff2") format("woff2");
  font-weight: 300 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../assets/fonts/atkinson-next.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Mono";
  src: url("../assets/fonts/atkinson-mono.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

/* --- 2. Jetons ------------------------------------------------------------- */
:root {
  /* Couleurs, thème clair (charte : marine #2A4A63, sarcelle #3E9B8E, or #F6B400) */
  --paper:      #F3F6F6;   /* fond général, gris froid teinté sarcelle */
  --surface:    #FFFFFF;   /* panneaux */
  --surface-2:  #EAF0F0;   /* fonds secondaires, contrôles */
  --ink:        #0E2436;   /* texte principal */
  --ink-2:      #445A6B;   /* texte secondaire */
  --ink-3:      #687C8B;   /* légendes, étiquettes */
  --line:       #D6E0E1;   /* filets */
  --line-2:     #E4EBEB;   /* filets légers */
  --navy:       #2A4A63;   /* titres, structure */
  --teal:       #3E9B8E;   /* courbes, traits, icônes */
  --teal-ink:   #1D7266;   /* sarcelle lisible en texte (AA) */
  --gold:       #F6B400;   /* prises, appel à l'action */
  --gold-ink:   #8A6200;   /* or lisible en texte */
  --measure:    #D14A2C;   /* concentration mesurée */
  --curve-a:    #2A4A63;   /* dégradé de la médiane, comme le logo */
  --curve-b:    #3E9B8E;
  --band-out:   rgba(62,155,142,.13);
  --band-in:    rgba(62,155,142,.26);
  --target:     rgba(42,74,99,.07);
  --target-line:rgba(42,74,99,.34);
  --grid:       #E3EAEA;
  --on-gold:    #1B2A33;

  --ok-bg:   #DCF1ED;  --ok-ink:   #135C51;
  --warn-bg: #FDF0CC;  --warn-ink: #735000;
  --info-bg: #E2EBF2;  --info-ink: #2A4A63;

  /* Bande nuit (parcours de calcul) et pied de page */
  --night:      #0C1F2E;
  --night-card: #12293B;
  --night-line: rgba(255,255,255,.10);
  --night-ink:  #E7EFF3;
  --night-2:    #A9BCC9;
  --night-3:    #7F95A5;

  /* Logo vectoriel : dégradés définis dans le sprite SVG de la page */
  --wm-plug: url(#wm-plug-l);
  --wm-dose: url(#wm-dose-l);
  --wm-night-plug: url(#wm-plug-d);
  --wm-night-dose: url(#wm-dose-d);

  --shadow-sm: 0 1px 2px rgba(14,36,54,.05), 0 2px 8px -4px rgba(14,36,54,.10);
  --shadow-lg: 0 1px 2px rgba(14,36,54,.04), 0 24px 60px -28px rgba(14,36,54,.30);

  /* Typographie */
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Consolas, monospace;

  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-base: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.02rem + .45vw, 1.3125rem);
  --fs-h3: clamp(1.2rem, 1.1rem + .4vw, 1.4rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --fs-h1: clamp(2.7rem, 1.4rem + 5.6vw, 6.1rem);

  /* Rythme */
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 44px);
  --sec: clamp(64px, 7vw, 108px);
  --radius: 20px;
  --radius-sm: 12px;
  --hdr: 72px;

  color-scheme: light;
}

/* Thème sombre : suit le système, sauf choix explicite (bouton) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0A1620; --surface: #0F202C; --surface-2: #152A38;
    --ink: #E6EEF2; --ink-2: #A6B8C4; --ink-3: #7F93A1;
    --line: rgba(255,255,255,.11); --line-2: rgba(255,255,255,.065);
    --navy: #C8D9E6; --teal: #57BCAB; --teal-ink: #72D3C2;
    --gold: #F6B400; --gold-ink: #F5C652; --measure: #FF7A5A;
    --curve-a: #9FC3DC; --curve-b: #5FD0BA;
    --band-out: rgba(87,188,171,.14); --band-in: rgba(87,188,171,.28);
    --target: rgba(200,217,230,.07); --target-line: rgba(200,217,230,.32);
    --grid: rgba(255,255,255,.06); --on-gold: #1B2A33;
    --ok-bg: rgba(87,188,171,.16); --ok-ink: #83DCCB;
    --warn-bg: rgba(246,180,0,.15); --warn-ink: #F6C85B;
    --info-bg: rgba(160,195,220,.14); --info-ink: #BFD4E4;
    --night: #0D2231; --night-card: #133043; --night-line: rgba(255,255,255,.10);
    --night-ink: #E7EFF3; --night-2: #A9BCC9; --night-3: #7F95A5;
    --wm-plug: url(#wm-plug-d); --wm-dose: url(#wm-dose-d);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-lg: 0 1px 2px rgba(0,0,0,.35), 0 28px 60px -30px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0A1620; --surface: #0F202C; --surface-2: #152A38;
  --ink: #E6EEF2; --ink-2: #A6B8C4; --ink-3: #7F93A1;
  --line: rgba(255,255,255,.11); --line-2: rgba(255,255,255,.065);
  --navy: #C8D9E6; --teal: #57BCAB; --teal-ink: #72D3C2;
  --gold: #F6B400; --gold-ink: #F5C652; --measure: #FF7A5A;
  --curve-a: #9FC3DC; --curve-b: #5FD0BA;
  --band-out: rgba(87,188,171,.14); --band-in: rgba(87,188,171,.28);
  --target: rgba(200,217,230,.07); --target-line: rgba(200,217,230,.32);
  --grid: rgba(255,255,255,.06); --on-gold: #1B2A33;
  --ok-bg: rgba(87,188,171,.16); --ok-ink: #83DCCB;
  --warn-bg: rgba(246,180,0,.15); --warn-ink: #F6C85B;
  --info-bg: rgba(160,195,220,.14); --info-ink: #BFD4E4;
  --night: #0D2231; --night-card: #133043; --night-line: rgba(255,255,255,.10);
  --night-ink: #E7EFF3; --night-2: #A9BCC9; --night-3: #7F95A5;
  --wm-plug: url(#wm-plug-d); --wm-dose: url(#wm-dose-d);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-lg: 0 1px 2px rgba(0,0,0,.35), 0 28px 60px -30px rgba(0,0,0,.8);
  color-scheme: dark;
}

/* --- 3. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(62,155,142,.25); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Titres */
.display, .h2, h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
}
h1.display { font-size: var(--fs-h1); line-height: .98; letter-spacing: -.028em; }
.h2 { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -.022em; }
.display em, .h2 em { font-style: italic; color: var(--teal-ink); }
h3, .h3 { font-family: var(--font-sans); font-weight: 650; font-size: var(--fs-h3); line-height: 1.25; color: var(--ink); margin: 0; letter-spacing: -.005em; text-wrap: balance; }
.h3-serif { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.1; letter-spacing: -.018em; color: var(--navy); margin: 0; text-wrap: balance; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.mono { font-family: var(--font-mono); }
.num { font-variant-numeric: tabular-nums; }

/* --- 4. Composants communs ------------------------------------------------- */
.kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-ink);
  margin: 0 0 18px;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-sans); font-weight: 650; font-size: 1rem; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--on-gold); box-shadow: 0 10px 24px -14px rgba(246,180,0,.9); }
.btn-gold:hover { background: #FFC21A; color: var(--on-gold); }
.btn-line { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--teal); color: var(--ink); background: var(--surface); }
.btn-sm { height: 40px; padding: 0 18px; font-size: .9375rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translate(2px,-2px); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .02em;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.chip[data-s="above"] { background: var(--warn-bg); color: var(--warn-ink); }
.chip[data-s="in"]    { background: var(--ok-bg);   color: var(--ok-ink); }
.chip[data-s="below"] { background: var(--info-bg); color: var(--info-ink); }
.chip.plain::before { display: none; }

.sec { padding-block: var(--sec); position: relative; }
.sec + .sec { border-top: 1px solid var(--line-2); }
.head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 6vw, 96px); align-items: end;
  margin-bottom: clamp(32px, 4.5vw, 56px);
}
.head .lead { max-width: 54ch; }
.block { margin-top: clamp(48px, 6vw, 84px); }
.block-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
.block-head p { max-width: 58ch; color: var(--ink-2); }

/* --- 5. En-tête ------------------------------------------------------------ */
.hdr {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background-color .25s;
}
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr-in { height: var(--hdr); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; padding: 6px 0; }
.wm { height: 30px; width: auto; overflow: visible; --wm-p: var(--wm-plug); --wm-d: var(--wm-dose); }

.nav { margin-left: auto; display: flex; align-items: center; }
.menu { list-style: none; display: flex; align-items: center; gap: 4px; }
.menu a {
  position: relative; display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-size: .9375rem; font-weight: 550;
  transition: color .2s, background-color .2s;
}
.menu a:hover { color: var(--ink); background: var(--surface-2); }
.menu a.is-active { color: var(--ink); }
.menu a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--gold);
}
.menu .menu-cta { display: none; }
@media (min-width: 861px) and (max-width: 1120px) { .menu { gap: 0; } .menu a { padding: 8px 8px; font-size: .875rem; } .hdr-actions { gap: 4px; } }
.hdr-actions { display: flex; align-items: center; gap: 10px; }
/* Sélecteur de langue : FR · EN, langue courante en encre pleine avec le point or du menu */
.lang { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; letter-spacing: .08em; }
.lang a {
  position: relative; display: inline-grid; place-items: center; min-width: 32px; height: 40px; padding: 0 6px;
  border-radius: 999px; color: var(--ink-3); text-decoration: none; transition: color .2s, background-color .2s;
}
.lang a:hover { color: var(--ink); background: var(--surface-2); }
.lang a[aria-current] { color: var(--ink); font-weight: 650; }
.lang a[aria-current]::after {
  content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--gold);
}
.lang-sep { color: var(--ink-3); opacity: .7; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer;
  color: var(--ink-2); transition: color .2s, border-color .2s, background-color .2s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--teal); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .i-moon { display: block; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
}
.nav-toggle { display: none; }
.nav-toggle i, .nav-toggle i::before, .nav-toggle i::after {
  display: block; width: 16px; height: 1.6px; background: currentColor; border-radius: 2px;
  transition: transform .25s, opacity .2s; content: "";
}
.nav-toggle i { position: relative; }
.nav-toggle i::before { position: absolute; top: -5px; }
.nav-toggle i::after { position: absolute; top: 5px; }
.nav-toggle[aria-expanded="true"] i { background: transparent; }
.nav-toggle[aria-expanded="true"] i::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i::after { transform: translateY(-5px) rotate(-45deg); }

/* Barre de progression de lecture (défilement) */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--curve-a), var(--curve-b)); }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { animation: progress linear both; animation-timeline: scroll(root); }
    @keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

/* --- 6. Héros -------------------------------------------------------------- */
.hero { padding-block: clamp(36px, 5vw, 72px) clamp(24px, 3vw, 40px); position: relative; }
.hero-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  column-gap: clamp(28px, 5vw, 72px); row-gap: 32px; align-items: end;
}
.hero-title { grid-column: 1 / -1; grid-row: 1; }
.hero-title .display .l { display: block; }
.hero-sub { grid-column: 1; grid-row: 2; }
.hero-sub .lead { max-width: 54ch; }
.hero-sub .lead { margin-bottom: 26px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); }
.hero-facts {
  grid-column: 2; grid-row: 2; align-self: end;
  list-style: none; display: grid; gap: 10px; padding: 18px 0 14px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .8125rem; color: var(--ink-3);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--teal); opacity: .9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Instrument */
.instrument {
  margin: clamp(28px, 4vw, 44px) 0 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.inst-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 18px 14px 20px; border-bottom: 1px solid var(--line-2);
}
.inst-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.inst-id b { font-family: var(--font-sans); font-weight: 650; font-size: .9375rem; color: var(--ink); }
.inst-id .mono { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(62,155,142,.18); flex: none; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); gap: 2px; }
.seg button {
  border: 0; background: transparent; cursor: pointer;
  padding: 7px 16px; border-radius: 999px; font-size: .875rem; font-weight: 600; color: var(--ink-2);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.inst-body { display: grid; grid-template-columns: minmax(0, 1fr) 312px; }
.plot { position: relative; padding: 18px 10px 6px 8px; min-width: 0; }
.plot svg { width: 100%; height: auto; overflow: visible; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.plot-legend {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px;
  padding: 4px 14px 16px 52px; font-size: .8125rem; color: var(--ink-3);
}
.plot-legend li { display: inline-flex; align-items: center; gap: 8px; }
.lg { display: inline-block; width: 18px; height: 10px; border-radius: 3px; flex: none; }
.lg-med { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--curve-a), var(--curve-b)); }
.lg-in { background: var(--band-in); }
.lg-out { background: var(--band-out); }
.lg-target { background: var(--target); box-shadow: inset 0 0 0 1px var(--target-line); }
.lg-dose { width: 4px; height: 12px; border-radius: 2px; background: var(--gold); }
.lg-meas { width: 10px; height: 10px; border-radius: 50%; background: var(--measure); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--measure); }
.lg-ghost { height: 0; border-top: 2px dotted var(--ink-3); border-radius: 0; }

.readouts { margin: 0; border-left: 1px solid var(--line-2); display: flex; flex-direction: column; }
.ro { padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.ro:last-child { border-bottom: 0; }
.ro dt { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.ro dd { margin: 0; }
.ro .v { font-size: 1.5rem; font-weight: 650; letter-spacing: -.01em; color: var(--ink); line-height: 1.15; }
.ro .v small { font-size: .9375rem; font-weight: 500; color: var(--ink-2); margin-left: 3px; }
.ro .s { display: block; margin-top: 4px; font-size: .875rem; color: var(--ink-3); line-height: 1.4; }
.ro .chip { margin-top: 8px; }
.ro-key { background: var(--surface-2); margin-top: auto; }
.ro-key .v { font-size: 1.9rem; }
.inst-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap;
  padding: 14px 20px; border-top: 1px solid var(--line-2); font-size: .8125rem; color: var(--ink-3);
}
.inst-foot p { max-width: 90ch; margin: 0; }
.hint { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.hint svg { width: 16px; height: 16px; color: var(--measure); }

/* Éléments SVG du graphe (dessinés par js/site.js) */
.pk-grid line { stroke: var(--grid); stroke-width: 1; }
.pk-axis { stroke: var(--line); stroke-width: 1; }
.pk-tick { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.pk-unit { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-3); letter-spacing: .04em; }
.pk-target { fill: var(--target); }
.pk-target-line { stroke: var(--target-line); stroke-width: 1; }
.pk-target-lab { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink-2); letter-spacing: .04em; }
.pk-out { fill: var(--band-out); }
.pk-in { fill: var(--band-in); }
.pk-med { fill: none; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.pk-ghost { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 1.5 4; stroke-linecap: round; opacity: .9; }
.pk-dose { fill: var(--gold); }
.pk-dose-lab { font-family: var(--font-mono); font-size: 10.5px; fill: var(--gold-ink); font-weight: 600; }
.pk-adj { stroke: var(--ink-3); stroke-width: 1; opacity: .5; }
.pk-adj-lab { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink-3); letter-spacing: .04em; }
.pk-sample { stroke: var(--measure); stroke-width: 1; opacity: .35; }
.pk-handle { cursor: grab; outline: none; }
.pk-handle:active { cursor: grabbing; }
.pk-handle .hit { fill: transparent; }
.pk-handle .halo { fill: var(--measure); opacity: .14; transition: r .2s; }
.pk-handle .dot { fill: var(--measure); stroke: var(--surface); stroke-width: 2.5; }
.pk-handle:focus-visible .halo, .pk-handle:hover .halo { opacity: .24; }
.pk-handle:focus-visible .dot { stroke: var(--ink); }
.pk-handle.is-ghost .dot { fill: var(--surface); stroke: var(--measure); stroke-width: 2; }
.pk-handle.is-ghost .halo { opacity: 0; }
.pk-val { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; fill: var(--ink); font-variant-numeric: tabular-nums; }
.pk-val-bg { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.pk-cross { stroke: var(--ink-3); stroke-width: 1; opacity: .45; pointer-events: none; }
.pk-tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm);
  padding: 8px 10px; font-size: .8125rem; line-height: 1.35; color: var(--ink-2); min-width: 150px;
  opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s;
}
.pk-tip.is-on { opacity: 1; transform: none; }
.pk-tip b { color: var(--ink); font-variant-numeric: tabular-nums; font-size: .9375rem; }
.pk-tip .t { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; display: block; margin-bottom: 2px; }
.pk-tip .row { display: flex; align-items: center; gap: 8px; }
.pk-tip .key { width: 12px; height: 2px; border-radius: 2px; background: var(--teal); flex: none; }

/* --- 7. Section Plug'n'Dose ------------------------------------------------ */
.services { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.services li { padding: 30px 26px 6px 0; }
.services li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.svc-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--teal-ink); margin-bottom: 22px; }
.svc-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.services h3 { margin-bottom: 10px; }
.services p { color: var(--ink-2); font-size: 1rem; }

.audiences { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.aud {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s, transform .2s;
}
.aud:hover { border-color: color-mix(in srgb, var(--teal) 55%, var(--line)); }
.aud .tag { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; }
.aud h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; line-height: 1.1; letter-spacing: -.015em; color: var(--navy); }
.aud p { color: var(--ink-2); font-size: 1rem; }

.team { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.person { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: start; padding-top: 24px; border-top: 1px solid var(--line); }
.mono-avatar {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.5rem; color: var(--navy);
  background: var(--surface); border: 1px solid var(--line); position: relative;
}
.mono-avatar::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--gold); clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%); opacity: .9; }
.person h3 { font-size: 1.125rem; }
.person .role { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-ink); margin: 4px 0 10px; }
.person p { color: var(--ink-2); font-size: .96875rem; }

.reg {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 52px);
}
.reg p { color: var(--ink-2); }
#equipe .block { margin-top: 0; }
#certification { margin-top: clamp(56px, 7vw, 96px); align-items: center; }
#certification > p { margin: 0; max-width: 58ch; }
.norms { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; align-content: start; }
.norms div { padding: 14px 0 16px; border-top: 1px solid var(--line-2); }
.norms dt { font-family: var(--font-mono); font-size: .8125rem; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.norms dd { margin: 0; color: var(--ink-2); font-size: .9375rem; }

/* --- 8. Section Tucuxi ----------------------------------------------------- */
.tux-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.tux-prose p { color: var(--ink-2); max-width: 62ch; }
.tux-prose p.lead { color: var(--ink); }
.in-use {
  margin: 28px 0 0; padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start;
}
.in-use svg { width: 22px; height: 22px; color: var(--teal-ink); margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.in-use p { color: var(--ink); margin: 0; }
.in-use small { display: block; margin-top: 4px; color: var(--ink-3); font-size: .8125rem; }
.resources { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.res {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem;
  transition: border-color .2s, background-color .2s;
}
.res:hover { border-color: var(--teal); background: var(--surface); color: var(--ink); }
.res svg { width: 16px; height: 16px; color: var(--teal-ink); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.res .mono { font-size: .75rem; color: var(--ink-3); font-weight: 500; }

.spec { margin: 0; border-top: 1px solid var(--ink); }
.spec div { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.spec dd { margin: 0; color: var(--ink); font-size: .96875rem; }
.spec-cap { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }

/* Parcours de calcul (bande nuit) */
.night {
  background: var(--night); color: var(--night-ink);
  margin-block: 0; padding-block: clamp(72px, 9vw, 120px) clamp(56px, 7vw, 96px);
  position: relative; overflow: clip;
}
.night::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 60% at 80% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(70% 60% at 80% 30%, #000 0%, transparent 70%);
}
.night .wrap { position: relative; }
.night .kicker { color: #7FD6C6; }
.night .h2 { color: var(--night-ink); }
.night .h2 em { color: #7FD6C6; }
.night .lead { color: var(--night-2); }
.pipe { margin-top: clamp(28px, 4vw, 48px); }
.pipe-stage { display: flex; flex-direction: column; }
.pipe-text, .pipe-vis { display: contents; }
.pipe-prog { display: none; }
.step[data-step="1"] { order: 1; } .vis[data-vis="1"] { order: 2; }
.step[data-step="2"] { order: 3; } .vis[data-vis="2"] { order: 4; }
.step[data-step="3"] { order: 5; } .vis[data-vis="3"] { order: 6; }
.step[data-step="4"] { order: 7; } .vis[data-vis="4"] { order: 8; }
.step { min-height: 0; display: flex; flex-direction: column; justify-content: center; padding-block: 20px; transition: opacity .35s; }
.step-n { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--night-3); display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-n b { color: var(--gold); font-weight: 600; }
.step-n::after { content: ""; flex: 1; max-width: 120px; height: 1px; background: var(--night-line); }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.08; letter-spacing: -.018em; color: var(--night-ink); margin-bottom: 14px; }
.step p { color: var(--night-2); max-width: 46ch; font-size: 1.0625rem; }
.vis { transition: opacity .45s, transform .45s; }
/* Scène de défilement : le décor reste en place, la progression du défilement fait avancer les étapes */
@media (min-width: 861px) and (min-height: 600px) {
  .js .pipe { height: calc(100vh - var(--hdr) + 240vh); height: calc(100svh - var(--hdr) + 240vh); margin-top: 0; }
  .js .pipe-stage { position: sticky; top: var(--hdr); height: calc(100vh - var(--hdr)); height: calc(100svh - var(--hdr)); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(28px, 4vw, 64px); align-items: center; }
  .js .pipe-text { display: grid; align-content: center; position: relative; }
  .js .pipe-vis { display: grid; align-items: center; }
  .js .pipe-text .step { grid-area: 1 / 1; min-height: 0; padding-block: 0; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .4s, transform .4s, visibility 0s .4s; }
  .js .pipe-text .step.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .4s .1s, transform .4s .1s, visibility 0s; }
  .js .pipe-vis .vis { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px); pointer-events: none; transition: opacity .4s, transform .4s, visibility 0s .4s; }
  .js .pipe-vis .vis.is-active { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .4s .1s, transform .4s .1s, visibility 0s; }
  .js .pipe-prog { grid-area: 2 / 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; list-style: none; margin: clamp(28px, 5vh, 56px) 0 0; padding: 0; max-width: 460px; }
  .js .pipe-prog button { width: 100%; text-align: left; background: none; border: 0; border-top: 2px solid var(--night-line); padding: 12px 0 0; cursor: pointer; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--night-3); transition: color .25s, border-color .25s; }
  .js .pipe-prog button b { font-weight: 600; margin-right: 4px; }
  .js .pipe-prog button:hover { color: var(--night-ink); }
  .js .pipe-prog button[aria-current="true"] { color: var(--night-ink); border-top-color: var(--gold); }
  .js .pipe-prog button[aria-current="true"] b { color: var(--gold); }
  .js .pipe-prog button:focus-visible { outline: 2px solid #7FD6C6; outline-offset: 4px; border-radius: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .pipe-text .step, .js .pipe-vis .vis { transition: none !important; transform: none !important; }
}
.vcard { background: var(--night-card); border: 1px solid var(--night-line); border-radius: var(--radius); padding: 26px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.vcard-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.vcard-h b { font-weight: 650; font-size: 1rem; color: var(--night-ink); }
.vtags { display: flex; gap: 6px; }
.vtag { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--night-line); color: var(--night-2); }
.vtag.on { color: #0C1F2E; background: #7FD6C6; border-color: transparent; }
.vrows { margin: 0; }
.vrows div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--night-line); font-size: .9375rem; }
.vrows dt { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; color: var(--night-3); text-transform: uppercase; padding-top: 2px; }
.vrows dd { margin: 0; color: var(--night-ink); font-variant-numeric: tabular-nums; }
.vrows dd .hl { color: #FFB59E; font-weight: 650; }
.vrows dd .ok { color: #7FD6C6; font-weight: 650; }
.vnote { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .06em; color: var(--night-3); margin-top: 14px; text-transform: uppercase; }
.vcard svg text { font-family: var(--font-mono); }
.dens-prior { fill: rgba(169,188,201,.10); stroke: var(--night-2); stroke-width: 1.5; stroke-dasharray: 2 4; }
.dens-post { fill: rgba(127,214,198,.22); stroke: #7FD6C6; stroke-width: 2; }
.dens-axis { stroke: var(--night-line); }
.dens-tick { fill: var(--night-3); font-size: 11px; }
.dens-lab { fill: var(--night-ink); font-size: 12px; font-weight: 600; }
.dens-lab.dim { fill: var(--night-2); font-weight: 500; }
.dens-mark { stroke: #7FD6C6; stroke-width: 1; stroke-dasharray: 2 3; }
.dens-mark.dim { stroke: var(--night-3); }

/* Interface annotée */
.ui-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.shot { position: relative; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(10px, 2vw, 22px); box-shadow: var(--shadow-lg); }
.shot img { width: 100%; border-radius: 8px; }
.shot-inner { position: relative; }
.hot {
  position: absolute; transform: translate(-50%, -50%);
  width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 700;
  background: #0E2436; color: #fff; box-shadow: 0 0 0 3px #fff, 0 4px 14px -4px rgba(0,0,0,.4);
  transition: transform .2s, background-color .2s;
}
.hot::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid #0E2436; opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s; }
.hot.is-on, .hot:hover, .hot:focus-visible { background: #1D7266; transform: translate(-50%, -50%) scale(1.12); }
.hot.is-on::before { opacity: .6; transform: scale(1); border-color: #1D7266; }
@media (prefers-reduced-motion: no-preference) {
  .hot.pulse::before { animation: ping 2.4s ease-out infinite; }
  @keyframes ping { 0% { opacity: .55; transform: scale(.85); } 80%, 100% { opacity: 0; transform: scale(1.6); } }
}
.shot figcaption { margin-top: 12px; font-size: .8125rem; color: #5A6E7C; }
.keys { list-style: none; display: grid; gap: 4px; counter-reset: k; }
.keys li button {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 14px 12px; border-radius: 14px;
  transition: background-color .2s;
}
.keys li button:hover, .keys li button.is-on { background: var(--surface); }
.keys .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: .75rem; font-weight: 700; background: var(--surface-2); color: var(--ink); }
.keys li button.is-on .n { background: var(--teal-ink); color: #fff; }
.keys b { display: block; font-weight: 650; color: var(--ink); }
.keys span.d { display: block; color: var(--ink-2); font-size: .9375rem; line-height: 1.45; margin-top: 2px; }

/* Bibliothèque de modèles */
.lib-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; font-size: .875rem; font-weight: 600; color: var(--ink-2);
  transition: background-color .2s, border-color .2s, color .2s;
}
.filters button:hover { border-color: var(--teal); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.lib-count { font-family: var(--font-mono); font-size: .8125rem; color: var(--ink-3); }
.lib { list-style: none; border-top: 1px solid var(--ink); }
.mol { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 10px 32px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.mol[hidden] { display: none; }
.mol-h { display: block; }
.mol-h h4 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.625rem; line-height: 1.1; letter-spacing: -.012em; color: var(--navy); }
.mol .cls { font-size: .875rem; color: var(--ink-3); margin: 6px 0 0; }
.mol .count { font-family: var(--font-mono); font-size: .75rem; color: var(--ink-3); white-space: nowrap; }
.models { list-style: none; }
.models li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto; gap: 4px 20px; padding: 9px 0; align-items: baseline; }
.models li + li { border-top: 1px solid var(--line-2); }
.models .ref { font-family: var(--font-mono); font-size: .8125rem; font-weight: 600; color: var(--ink); }
.models .pop { font-size: .9375rem; color: var(--ink-2); line-height: 1.45; }
.models .tgt { justify-self: end; }
.models li.is-dim { opacity: .38; }
.lib-note { margin-top: 18px; font-size: .875rem; color: var(--ink-3); max-width: 90ch; }

/* Preuves et publications */
.evid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.chart-card h4 { margin: 0 0 4px; font-weight: 650; font-size: 1.125rem; color: var(--ink); }
.chart-card .sub { font-size: .9375rem; color: var(--ink-3); margin-bottom: 22px; }
.bars { list-style: none; display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 16px; align-items: center; position: relative; }
.bar .lab { font-size: .9375rem; color: var(--ink-2); line-height: 1.3; }
.bar .lab b { color: var(--ink); font-weight: 650; }
.bar .track { position: relative; height: 22px; display: flex; align-items: center; }
.bar .fill { height: 22px; width: var(--w); border-radius: 0 4px 4px 0; background: color-mix(in srgb, var(--ink-3) 38%, transparent); transform-origin: 0 50%; }
.bar.hl .fill { background: var(--teal); }
.bar .val { margin-left: 10px; font-weight: 650; font-size: .9375rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.bar:hover .fill, .bar:focus-within .fill { filter: brightness(1.08); }
.bar-axis { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 16px; margin-top: 6px; }
.bar-axis div { position: relative; height: 18px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: .6875rem; color: var(--ink-3); }
.bar-axis span { position: absolute; top: 4px; transform: translateX(-50%); }
.bar-axis span:first-child { transform: none; }
.chart-key { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: .8125rem; color: var(--ink-3); }
.chart-key span { display: inline-flex; align-items: center; gap: 8px; }
.chart-key i { width: 14px; height: 10px; border-radius: 0 3px 3px 0; display: inline-block; }
.chart-src { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: .8125rem; color: var(--ink-3); }
.pubs { list-style: none; }
.pubs li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 11px 0; line-height: 1.35; border-top: 1px solid var(--line-2); }
.pubs li:first-child { border-top: 1px solid var(--ink); }
.pubs .y { font-family: var(--font-mono); font-size: .8125rem; color: var(--ink-3); padding-top: 2px; }
.pubs .t { display: block; color: var(--ink); font-weight: 600; font-size: .96875rem; line-height: 1.35; }
.pubs a.t { text-decoration: none; }
.pubs a.t:hover { color: var(--teal-ink); text-decoration: underline; }
.pubs .m { display: block; font-size: .8125rem; color: var(--ink-3); margin-top: 3px; }
.pubs-more { margin-top: 14px; }

/* --- 9. Section STP -------------------------------------------------------- */
.stp-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.window { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px 14px; }
.window svg { width: 100%; height: auto; overflow: visible; }
.window figcaption { font-size: .8125rem; color: var(--ink-3); padding: 8px 6px 0; }
.win-tox { fill: color-mix(in srgb, var(--gold) 11%, transparent); }
.win-ok { fill: color-mix(in srgb, var(--teal) 14%, transparent); }
.win-sub { fill: color-mix(in srgb, var(--navy) 6%, transparent); }
.win-line { stroke: var(--line); stroke-width: 1; }
.win-curve { fill: none; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.win-lab { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; paint-order: stroke; stroke: var(--surface); stroke-width: 5px; stroke-linejoin: round; }
.win-lab.tox { fill: var(--gold-ink); }
.win-lab.ok { fill: var(--teal-ink); font-weight: 700; }
.win-lab.sub { fill: var(--ink-3); }
.win-axis { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-3); }
.win-dose { fill: var(--gold); }

.versus { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.versus > div { padding: 22px 22px 6px 0; }
.versus > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.versus .tag { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.versus h3 { margin-bottom: 10px; }
.versus p { color: var(--ink-2); font-size: 1rem; }
.versus > div:last-child .tag { color: var(--teal-ink); }

.facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.facts li { padding: 26px 26px 8px 0; }
.facts li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.facts .fig { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; color: var(--navy); margin-bottom: 12px; letter-spacing: -.02em; }
.facts p { color: var(--ink-2); font-size: 1rem; }
.facts sup a, .ref-mark { font-family: var(--font-mono); font-size: .6875rem; font-weight: 600; text-decoration: none; color: var(--teal-ink); padding: 0 2px; }
.refs { list-style: none; counter-reset: r; margin-top: 26px; display: grid; gap: 6px; font-size: .8125rem; color: var(--ink-3); }
.refs li { counter-increment: r; display: grid; grid-template-columns: 28px minmax(0, 1fr); }
.refs li::before { content: "[" counter(r) "]"; font-family: var(--font-mono); color: var(--ink-3); }
.refs a { color: var(--ink-2); }

.domains { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.domains li { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line-2); }
.domains li:nth-child(3n+2), .domains li:nth-child(3n+3) { padding-left: 24px; border-left: 1px solid var(--line-2); }
.domains b { display: block; font-weight: 650; color: var(--ink); margin-bottom: 6px; }
.domains span { color: var(--ink-2); font-size: .9375rem; line-height: 1.5; }
.pop-note { margin-top: 26px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; color: var(--ink-2); max-width: 92ch; }
.pop-note .mono { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-top: 4px; }

/* --- 10. FAQ, contact, pied de page ---------------------------------------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.faq-grid .head-side { position: sticky; top: calc(var(--hdr) + 32px); }
.faq-aside { margin-top: 24px; color: var(--ink-2); max-width: 30ch; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 16px; align-items: center;
  padding: 22px 0; font-weight: 650; font-size: 1.125rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .25s, border-color .2s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; margin: -.8px 0 0 -5.5px; background: var(--ink-2); border-radius: 2px; transition: transform .25s; }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm { border-color: var(--teal); }
.faq details[open] summary .pm::after { transform: rotate(0deg); }
.faq summary:hover .pm { border-color: var(--teal); }
.faq .ans { padding: 0 44px 24px 0; color: var(--ink-2); max-width: 70ch; }

.contact { position: relative; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.mail-big {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px;
}
.mail-big a { font-family: var(--font-display); font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); color: var(--navy); text-decoration: none; letter-spacing: -.015em; background-image: linear-gradient(var(--gold), var(--gold)); background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 2px; }
.mail-big a:hover { color: var(--teal-ink); }
.copy { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: .8125rem; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.copy:hover { border-color: var(--teal); color: var(--ink); }
.copy svg { width: 14px; height: 14px; }
.who { margin-top: 36px; display: grid; gap: 4px; font-size: .9375rem; color: var(--ink-2); }
.who b { color: var(--ink); }
.who a { font-weight: 600; }
.entity { margin-top: 28px; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .04em; color: var(--ink-3); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-lg); }
.form h3 { margin-bottom: 20px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: .875rem; font-weight: 650; color: var(--ink); }
.field label .opt { font-weight: 500; color: var(--ink-3); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(62,155,142,.16); }
.field [aria-invalid="true"] { border-color: var(--measure); }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { margin-top: 12px; font-size: .8125rem; color: var(--ink-3); }
.form-status { margin-top: 10px; font-size: .875rem; font-weight: 600; color: var(--teal-ink); min-height: 1.4em; }
.form-status.err { color: var(--measure); }

.ftr { background: var(--night); color: var(--night-2); padding-block: clamp(56px, 7vw, 88px) 28px; }
.ftr .wm { height: 34px; --wm-p: var(--wm-night-plug); --wm-d: var(--wm-night-dose); }
.ftr-top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 32px; }
.ftr-brand p { margin-top: 18px; max-width: 34ch; font-size: .9375rem; }
.ftr h4 { margin: 0 0 14px; font-family: var(--font-mono); font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--night-3); }
.ftr ul { list-style: none; display: grid; gap: 8px; }
.ftr a { color: var(--night-ink); text-decoration: none; font-size: .9375rem; }
.ftr a:hover { color: #7FD6C6; text-decoration: underline; }
.ftr-bot { margin-top: clamp(40px, 6vw, 72px); padding-top: 22px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .8125rem; color: var(--night-3); }
.ftr-bot a { font-size: .8125rem; color: var(--night-2); }
.ftr :focus-visible { outline-color: #7FD6C6; }

/* --- 11. Pages secondaires -------------------------------------------------- */
.page { padding-block: clamp(48px, 8vw, 112px); }
.legal { max-width: 760px; }
.legal h1 { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -.022em; margin-bottom: 18px; }
.legal h2 { font-family: var(--font-sans); font-weight: 650; font-size: 1.25rem; color: var(--ink); margin: 44px 0 12px; letter-spacing: 0; }
.legal p, .legal address { color: var(--ink-2); font-style: normal; }
.legal address { line-height: 1.8; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 36px; font-weight: 600; text-decoration: none; }
.back svg { width: 16px; height: 16px; }
.nf { min-height: 60vh; display: grid; align-content: center; gap: 24px; }
.nf .code { font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .12em; color: var(--ink-3); }

/* --- 12. Responsive -------------------------------------------------------- */
@media (max-width: 1100px) {
  .inst-body { grid-template-columns: minmax(0, 1fr); }
  .readouts { border-left: 0; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ro { border-bottom: 1px solid var(--line-2); }
  .ro:nth-child(odd) { border-right: 1px solid var(--line-2); }
  .ro:nth-last-child(-n+2) { border-bottom: 0; }
  .ro-key { margin-top: 0; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services li:nth-child(3) { padding-left: 0; border-left: 0; }
  .services li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ftr-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ftr-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .mol { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .head, .block-head, .hero-head, .tux-grid, .ui-grid, .evid, .stp-grid, .faq-grid, .contact-grid, .reg { grid-template-columns: minmax(0, 1fr); }
  .hero-title, .hero-sub, .hero-facts { grid-column: 1; grid-row: auto; }
  .hero-title .display .l { display: inline; }
  .hero-facts { order: 3; padding-top: 18px; border-top: 1px solid var(--line); }
  .audiences, .team { grid-template-columns: minmax(0, 1fr); }
  .faq-grid .head-side { position: static; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .domains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .domains li:nth-child(3n+2), .domains li:nth-child(3n+3) { padding-left: 0; border-left: 0; }
  .domains li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line-2); }
  /* Parcours : chaque visuel suit son étape */
  .step { padding-block: 36px 14px; }
}
@media (max-width: 860px) {
  :root { --hdr: 64px; }
  .wm { height: 26px; }
  .nav-toggle { display: inline-grid; }
  .menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 10px var(--gutter) 18px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .menu a { padding: 13px 12px; font-size: 1.0625rem; border-radius: 12px; }
  .menu a.is-active::after { left: auto; right: 14px; top: 50%; bottom: auto; margin: -2px 0 0; }
  .menu .menu-cta { display: block; margin-top: 8px; }
  .menu .menu-cta .btn { display: flex; width: 100%; height: 50px; padding: 0 20px; justify-content: center; }
  .menu .menu-cta .btn-gold, .menu .menu-cta .btn-gold:hover { color: var(--on-gold); }
  .menu .menu-cta .btn-gold:hover { background: #FFC21A; }
  .hdr-actions .btn { display: none; }
  .hdr-actions .lang a { min-width: 36px; height: 44px; }
  .hdr-in { gap: 10px; }
  .nav { margin-left: 0; order: 3; }
  .hdr-actions { margin-left: auto; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .services, .versus { grid-template-columns: minmax(0, 1fr); }
  .services li, .services li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-right: 0; }
  .services li:first-child { border-top: 0; }
  .versus > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .domains { grid-template-columns: minmax(0, 1fr); }
  .domains li:nth-child(even) { padding-left: 0; border-left: 0; }
  .norms { grid-template-columns: minmax(0, 1fr); }
  .readouts { grid-template-columns: minmax(0, 1fr); }
  .ro:nth-child(odd) { border-right: 0; }
  .ro:nth-last-child(2) { border-bottom: 1px solid var(--line-2); }
  .ro { padding: 14px 18px; }
  .plot-legend { padding-left: 14px; }
  .inst-bar { padding: 12px 14px; }
  .seg button { padding: 7px 12px; }
  .bar, .bar-axis { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .bar-axis div:first-child { display: none; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .spec div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .mol { grid-template-columns: minmax(0, 1fr); }
  .models li { grid-template-columns: minmax(0, 1fr) auto; }
  .models .pop { grid-column: 1 / -1; grid-row: 2; }
  .models .tgt { grid-column: 2; grid-row: 1; }
  .vrows div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ftr-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .person { grid-template-columns: 52px minmax(0, 1fr); }
  .mono-avatar { width: 52px; height: 52px; font-size: 1.25rem; }
  .hot { width: 24px; height: 24px; font-size: .6875rem; }
  .faq .ans { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Transitions entre pages (navigateurs compatibles) */
@view-transition { navigation: auto; }

@media print {
  .hdr, .skip, .instrument .inst-bar .seg, .form, .theme-toggle, .lang { display: none !important; }
  body { background: #fff; color: #000; }
  .night { background: #fff; color: #000; }
}

/* Compact catalogue, shared with the application domains. */
.domain-status { font-family: var(--font-mono); font-size: .6875rem; color: var(--ink-3); letter-spacing: .025em; margin-block: 8px; }
.model-catalog { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.model-catalog > summary { cursor: pointer; color: var(--teal-ink); font-weight: 600; }
.model-references { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 20px 0 0; }
.model-references > div { border-bottom: 1px solid var(--line-2); padding-block: 12px; }
.model-references dt { font-weight: 650; margin-bottom: 4px; }
.model-references dd { margin: 0; color: var(--ink-2); font-size: .875rem; }
.contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form button[disabled] { opacity: .65; cursor: wait; }
@media (max-width: 640px) { .model-references { grid-template-columns: minmax(0, 1fr); } }
/* Domaines : mention de statut sur sa propre ligne */
.domains .domain-status { display: block; }
.demo-sec .head { margin-bottom: clamp(28px, 4vw, 48px); }
.inst-foot p a { color: var(--teal-ink); font-weight: 600; }


/* =============================================================================
   Sections sous le démonstrateur : pourquoi un modèle, Tucuxi, Plug'n'Dose
============================================================================= */
.sec.tint { background: var(--surface-2); }
.sec.tint .chart-card, .sec.tint .window { background: var(--surface); }
.sec.tint .facts, .sec.tint .domains.tiles { border-color: var(--line); }

.stp-why { color: var(--ink-2); margin: 0 0 24px; }
.versus { border-top: 0; gap: 14px; }
.versus > div, .versus > div + div { padding: 22px 22px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.versus > div:last-child { border-color: color-mix(in srgb, var(--teal) 55%, var(--line)); background: color-mix(in srgb, var(--teal) 7%, var(--surface)); }

.facts.f4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts.f4 .fig { font-size: clamp(1.9rem, 1.2rem + 1.6vw, 2.5rem); }
.facts.f4 p:not(.fig) { font-size: .9375rem; }

.domains.tiles { border-top: 0; gap: 14px; }
.domains.tiles li, .domains.tiles li:nth-child(n) { padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); display: flex; flex-direction: column; }
.domains.tiles .n { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--teal-ink); margin-bottom: 12px; }
.domains.tiles li.is-open, .domains.tiles li.is-open:nth-child(n) { border-style: dashed; background: transparent; }
.domains.tiles li.is-open .n { color: var(--ink-3); }
.sec.tint .domains.tiles li.is-open { background: transparent; }

.tux-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); }
.tux-foot .resources { margin-top: 0; }
.tux-status { margin: 0; font-size: .875rem; color: var(--ink-3); }
.tux-status a { color: var(--ink-2); }

.go { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: none; }
.go li { position: relative; padding-top: 22px; border-top: 2px solid var(--line); }
.go li::before { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 2px; background: var(--gold); }
.go-n { display: block; font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 10px; }
.go h3 { margin-bottom: 8px; }
.go p { color: var(--ink-2); font-size: 1rem; max-width: 38ch; }

@media (max-width: 980px) {
  .facts.f4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts.f4 li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts.f4 li:nth-child(n+3) { border-top: 1px solid var(--line-2); margin-top: 8px; }
}
@media (max-width: 860px) {
  .go { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .facts.f4 { grid-template-columns: minmax(0, 1fr); }
  .facts.f4 li + li, .facts.f4 li:nth-child(odd) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .facts.f4 li:nth-child(n+2) { margin-top: 0; }
  .versus > div, .versus > div + div { padding-left: 20px; border-top: 1px solid var(--line); }
}

.domains.tiles .domain-status { font-size: .6875rem; letter-spacing: .04em; margin-block: 0 8px; }
.domains.tiles li { min-height: 0; }
