/* linkavista-test.fr : feuille de style unique. Concept : protocole de laboratoire.
   Mode clair uniquement. Aucune dependance hors Google Fonts. */

/* 1. Variables : couleurs, texte, accents, statuts, bordures, rayons, ombres,
   espacements, transitions, grille et polices */
:root {
  --bg: #FFFFFF;
  --bg-alt: #F6FAFC;
  --surface: #FFFFFF;
  --surface-sunk: #F1F7FA;
  --text: #12222B;
  --text-soft: #4E6672;
  --text-faint: #6B818C;
  --accent: #0891B2;
  --accent-dark: #06748F;
  --accent-soft: #E4F4F9;
  --accent-line: #B6E0EC;
  --slate: #334155;
  --slate-soft: #E7EBF0;
  --ok: #16A34A;
  --ok-soft: #E6F6EC;
  --warn: #CA8A04;
  --warn-soft: #FBF3DE;
  --line: #D5E5EC;
  --line-strong: #B9D3DE;
  --r-xs: 2px;
  --r: 4px;
  --r-md: 6px;
  --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(18, 34, 43, .06);
  --sh-2: 0 2px 10px rgba(18, 34, 43, .07);
  --sh-3: 0 12px 34px rgba(18, 34, 43, .10);
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 88px;
  --t-fast: 160ms cubic-bezier(.4, 0, .2, 1);
  --t: 260ms cubic-bezier(.4, 0, .2, 1);
  --t-slow: 420ms cubic-bezier(.22, .61, .36, 1);
  --wrap: 1180px;
  --wrap-narrow: 880px;
  --header-h: 68px;
  --phase-h: 44px;
  --f-title: "Chivo", "Segoe UI", Tahoma, sans-serif;
  --f-body: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --f-mono: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
}

/* 2. Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--phase-h) + 12px);
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
ul, ol { padding-left: 1.15rem; }
li { margin-bottom: .35rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--r-xs); }
::selection { background: var(--accent-soft); color: var(--text); }

/* 3. Typographie */
h1, h2, h3, h4, h5 {
  font-family: var(--f-title);
  color: var(--text);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.2rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1.02rem + .55vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.03rem; font-weight: 600; letter-spacing: 0; }
p { margin-bottom: 1.05rem; max-width: 74ch; }
strong { font-weight: 600; color: var(--text); }
code, kbd, samp {
  font-family: var(--f-mono);
  font-size: .88em;
  background: var(--surface-sunk);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  padding: .08em .38em;
}
.lead {
  font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem);
  color: var(--text-soft);
  line-height: 1.62;
  max-width: 68ch;
}
.mono { font-family: var(--f-mono); font-variant-ligatures: none; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  display: block;
  margin-bottom: var(--sp-3);
}
.eyebrow--slate { color: var(--slate); }
.section-note {
  font-size: .92rem;
  color: var(--text-faint);
  font-style: normal;
  border-left: 2px solid var(--accent-line);
  padding-left: var(--sp-4);
  margin: var(--sp-5) 0;
  max-width: 70ch;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 4. Structure */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.wrap--narrow { max-width: var(--wrap-narrow); }
.section {
  padding-block: clamp(var(--sp-7), 4.5vw, var(--sp-9));
  border-top: 1px solid var(--line);
}
.section--alt { background: var(--bg-alt); }
.section--flush { border-top: 0; }
.section__head { margin-bottom: var(--sp-6); max-width: 76ch; }
.section__head h2 { margin-bottom: var(--sp-4); }
.section__index {
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .12em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-xs);
  padding: 3px 8px;
  display: inline-block;
  margin-bottom: var(--sp-3);
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  z-index: 999;
  border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; }

/* 5. Header et navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t), padding var(--t);
}
.site-header.is-compact { box-shadow: var(--sh-2); }
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  transition: height var(--t);
}
.site-header.is-compact .header-inner { height: 58px; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--f-title);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand__mark {
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r);
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: .68rem;
  font-weight: 500;
  color: var(--accent-dark);
  letter-spacing: -.02em;
}
.brand__sub {
  font-family: var(--f-mono);
  font-size: .64rem;
  letter-spacing: .1em;
  color: var(--text-faint);
  text-transform: uppercase;
  font-weight: 400;
  display: block;
  margin-top: -3px;
}
.nav { display: flex; align-items: center; gap: var(--sp-1); }
.nav a {
  font-size: .89rem;
  color: var(--text-soft);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: var(--r);
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
.nav a:hover, .nav a.is-active { color: var(--accent-dark); background: var(--accent-soft); }
.header-cta { white-space: nowrap; }
.brand__name { display: block; }

/* Ancres complementaires : presentes dans le menu burger, masquees en desktop */
.nav__more { display: none; }

/* Le bouton d appel a l action du menu deroulant ne sert qu en version mobile */
.nav > .btn { display: none; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--surface);
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--slate);
  transition: transform var(--t), opacity var(--t-fast);
}
.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 18px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 6. Bandeau de phase du protocole */
.phasebar {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: var(--slate);
  color: #E8EEF3;
  border-bottom: 1px solid #22303F;
  transition: top var(--t);
}
.site-header.is-compact ~ .phasebar, body.is-scrolled .phasebar { top: 58px; }
.phasebar__inner {
  height: var(--phase-h);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-family: var(--f-mono);
  font-size: .76rem;
  letter-spacing: .04em;
}
.phasebar__label {
  color: #9FB4C4;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .68rem;
  white-space: nowrap;
}
.phasebar__value {
  color: #FFFFFF;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.phasebar__track {
  width: 190px;
  height: 5px;
  background: rgba(255, 255, 255, .16);
  border-radius: var(--r-pill);
  overflow: hidden;
  flex-shrink: 0;
}
.phasebar__fill {
  display: block;
  height: 100%;
  width: 0%;
  background: #38BDF8;
  border-radius: var(--r-pill);
  transition: width var(--t-slow);
}
.phasebar__pct {
  font-variant-numeric: tabular-nums;
  color: #BFE9F7;
  width: 44px;
  text-align: right;
  flex-shrink: 0;
}

/* 7. Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: .93rem;
  font-weight: 600;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--r);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn--primary {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
  box-shadow: var(--sh-1);
}
.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: var(--sh-2);
}
.btn--outline { background: transparent; color: var(--slate); border-color: var(--slate); }
.btn--outline:hover { background: var(--slate); color: #FFFFFF; }
.btn--ghost {
  background: var(--surface);
  color: var(--accent-dark);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn--sm { padding: 9px 15px; font-size: .84rem; }
.btn--block { width: 100%; }
.btn__arrow { font-family: var(--f-mono); font-weight: 400; transition: transform var(--t-fast); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  margin-top: var(--sp-5);
}
.cta-hint {
  font-family: var(--f-mono);
  font-size: .74rem;
  color: var(--text-faint);
  letter-spacing: .02em;
}

/* 8. Hero */
.hero {
  padding-block: clamp(var(--sp-7), 5vw, 80px);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-alt) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .35;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 90% 70% at 70% 0%, #000 10%, transparent 75%);
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(var(--sp-6), 4vw, 56px);
  align-items: start;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--surface);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  margin-bottom: var(--sp-4);
}
.hero__badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .16);
}
.hero h1 { margin-bottom: var(--sp-4); }
.hero__lead { margin-bottom: var(--sp-5); }
.hero__figure {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--sh-3);
}
.hero__figure img { width: 100%; height: auto; object-fit: cover; }
.hero__figcaption {
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--text-faint);
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface-sunk);
  letter-spacing: .02em;
}

/* Encadre duree et materiel */
.kit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  margin-bottom: var(--sp-5);
  box-shadow: var(--sh-1);
}
.kit__cell { padding: var(--sp-4) var(--sp-5); border-right: 1px solid var(--line); }
.kit__cell:last-child { border-right: 0; }
.kit__label {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-bottom: 6px;
}
.kit__value {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.35;
}
.kit__list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  font-size: .88rem;
  color: var(--text-soft);
}
.kit__list li { position: relative; padding-left: 16px; margin-bottom: 2px; }
.kit__list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-size: .82rem;
}

/* Note globale */
.score-card {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  border: 1px solid var(--accent-line);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--sh-1);
}
.score-card__value {
  font-family: var(--f-title);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-dark);
  line-height: 1;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.score-card__value sup {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-faint);
  top: -1.05em;
  font-family: var(--f-mono);
}
.score-card__body { min-width: 0; }
.score-card__title {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: .98rem;
  margin-bottom: 2px;
}
.score-card__meta { font-size: .84rem; color: var(--text-soft); margin: 0; }
.stars {
  color: var(--warn);
  letter-spacing: 2px;
  font-size: .95rem;
  line-height: 1;
  margin-bottom: 4px;
}

/* Signature auteur courte */
.byline {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  width: fit-content;
  max-width: 100%;
}
.byline img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  object-fit: cover;
  flex-shrink: 0;
}
.byline__text { font-size: .84rem; color: var(--text-soft); line-height: 1.4; }
.byline__text b { color: var(--text); font-weight: 600; display: block; }
.byline__date { font-family: var(--f-mono); font-size: .72rem; color: var(--text-faint); }

/* 9. Statistiques et compteurs */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  margin-top: var(--sp-6);
  box-shadow: var(--sh-1);
}
.stat { padding: var(--sp-5); border-right: 1px solid var(--line); text-align: left; }
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--f-title);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 700;
  color: var(--accent-dark);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: .84rem;
  color: var(--text-soft);
  margin-top: 4px;
  line-height: 1.4;
}
.stat__src {
  font-family: var(--f-mono);
  font-size: .68rem;
  color: var(--text-faint);
  margin-top: 6px;
  display: block;
}

/* 10. Phases du protocole (schema) */
.phase-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  counter-reset: phase;
}
.phase-node {
  position: relative;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--r);
  background: var(--surface);
  padding: var(--sp-4);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.phase-node:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: var(--line-strong);
}
.phase-node__ref {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--accent-dark);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.phase-node h3 { font-size: 1.02rem; margin-bottom: 6px; line-height: 1.28; }
.phase-node p {
  font-size: .87rem;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.55;
}
.phase-node__count {
  font-family: var(--f-mono);
  font-size: .7rem;
  color: var(--text-faint);
  border-top: 1px dashed var(--line);
  margin-top: var(--sp-3);
  padding-top: 8px;
  display: block;
}

/* 11. Fiches d observation (point de controle) */
.pc-list { display: grid; gap: var(--sp-4); margin-top: var(--sp-5); }
.pc {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: border-color var(--t), box-shadow var(--t);
}
.pc:hover { border-color: var(--line-strong); box-shadow: var(--sh-2); }
.pc__head {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #FFFFFF, var(--surface-sunk));
}
.pc__ref {
  font-family: var(--f-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: #FFFFFF;
  background: var(--accent);
  border-radius: var(--r-xs);
  padding: 4px 9px;
  flex-shrink: 0;
  line-height: 1.3;
}
.pc__ref--slate { background: var(--slate); }
.pc__title {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: 1.04rem;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}
.pc__status {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--r-xs);
  flex-shrink: 0;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pc__status--ok { color: #0F7A38; background: var(--ok-soft); border-color: #BCE6CB; }
.pc__status--warn { color: #8A6100; background: var(--warn-soft); border-color: #EBD9A6; }
.pc__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pc__cell { padding: var(--sp-4) var(--sp-5); border-right: 1px solid var(--line); }
.pc__cell:last-child { border-right: 0; background: var(--surface-sunk); }
.pc__cell-label {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-bottom: 8px;
}
.pc__cell p {
  font-size: .93rem;
  margin-bottom: 0;
  color: var(--text-soft);
  max-width: none;
}
.pc__cell p + p { margin-top: 8px; }
.pc__source {
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--text-faint);
  padding: 9px var(--sp-5);
  border-top: 1px solid var(--line);
  background: var(--surface);
  letter-spacing: .01em;
}

/* 12. Accordeon (fiches detaillees et FAQ) */
.accordion {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  margin-top: var(--sp-5);
}
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  text-align: left;
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--f-title);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.4;
  transition: background var(--t-fast), color var(--t-fast);
}
.acc-trigger:hover { background: var(--accent-soft); color: var(--accent-dark); }
.acc-trigger__ref {
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 500;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-xs);
  padding: 3px 7px;
  flex-shrink: 0;
  margin-top: 2px;
}
.acc-trigger__text { flex: 1; min-width: 0; }
.acc-trigger__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  display: grid;
  place-items: center;
  color: var(--accent-dark);
  font-family: var(--f-mono);
  font-size: .9rem;
  line-height: 1;
  margin-top: 2px;
  transition: transform var(--t), background var(--t-fast);
}
.acc-trigger[aria-expanded="true"] .acc-trigger__icon {
  transform: rotate(45deg);
  background: var(--accent-soft);
}
.acc-panel { overflow: hidden; height: 0; transition: height var(--t); }
.acc-panel__inner { padding: 0 var(--sp-5) var(--sp-5); color: var(--text-soft); font-size: .95rem; }
.acc-panel__inner p:last-child, .acc-panel__inner ul:last-child { margin-bottom: 0; }

/* 13. Tableaux */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  margin-top: var(--sp-5);
  box-shadow: var(--sh-1);
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .91rem;
  min-width: 620px;
}
caption {
  text-align: left;
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
  background: var(--surface-sunk);
}
thead th {
  background: var(--accent-soft);
  color: #0A5F76;
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--accent-line);
  border-right: 1px solid var(--accent-line);
  white-space: nowrap;
}
thead th:last-child { border-right: 0; }
tbody th, tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  color: var(--text-soft);
}
tbody th {
  color: var(--text);
  font-weight: 600;
  font-family: var(--f-body);
  white-space: nowrap;
}
tbody th.mono, tbody td.mono { font-family: var(--f-mono); font-size: .84rem; }
tbody td:last-child, tbody th:last-child { border-right: 0; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:nth-child(even) { background: #FBFDFE; }
tbody tr:hover { background: var(--accent-soft); }
.tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .04em;
  padding: 3px 8px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-strong);
  background: var(--surface-sunk);
  color: var(--text-soft);
  white-space: nowrap;
}
.tag--ok { color: #0F7A38; background: var(--ok-soft); border-color: #BCE6CB; }
.tag--warn { color: #8A6100; background: var(--warn-soft); border-color: #EBD9A6; }
.tag--info {
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
.table-sort th[aria-sort] button {
  font: inherit;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-transform: inherit;
  letter-spacing: inherit;
}
.table-sort th[aria-sort] button::after { content: "\2195"; opacity: .45; font-size: .9em; }
.table-sort th[aria-sort="ascending"] button::after { content: "\2191"; opacity: 1; }
.table-sort th[aria-sort="descending"] button::after { content: "\2193"; opacity: 1; }

/* 14. Checklist persistante */
.checklab {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  margin-top: var(--sp-5);
  box-shadow: var(--sh-1);
}
.checklab__head {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
  background: var(--surface-sunk);
}
.checklab__meter { flex: 1; min-width: 180px; }
.checklab__count {
  font-family: var(--f-mono);
  font-size: .78rem;
  color: var(--text-soft);
  margin-bottom: 6px;
  display: block;
  letter-spacing: .03em;
}
.checklab__count b {
  color: var(--accent-dark);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.checklab__bar {
  height: 8px;
  background: var(--slate-soft);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.checklab__fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #22C3E6);
  border-radius: var(--r-pill);
  transition: width var(--t-slow);
}
.checklab__list { list-style: none; padding: 0; margin: 0; }
.checklab__list li { margin: 0; border-bottom: 1px solid var(--line); }
.checklab__list li:last-child { border-bottom: 0; }
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  cursor: pointer;
  transition: background var(--t-fast);
}
.check:hover { background: var(--accent-soft); }
.check input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  background: var(--surface);
  flex-shrink: 0;
  margin-top: 3px;
  position: relative;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.check input:checked { background: var(--ok); border-color: var(--ok); }
.check input:checked::after {
  content: "\2713";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #FFFFFF;
  font-size: .78rem;
  line-height: 1;
}
.check input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.check__text {
  font-size: .94rem;
  line-height: 1.5;
  color: var(--text);
  transition: color var(--t-fast), text-decoration var(--t-fast);
}
.check__ref {
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--accent-dark);
  margin-right: 7px;
}
.check input:checked ~ .check__text {
  color: var(--text-faint);
  text-decoration: line-through;
  text-decoration-color: var(--line-strong);
}
.checklab__foot {
  padding: var(--sp-3) var(--sp-5);
  border-top: 1px solid var(--line);
  background: var(--surface-sunk);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.checklab__hint { font-family: var(--f-mono); font-size: .72rem; color: var(--text-faint); }

/* 15. Cartes generiques et grilles */
.grid { display: grid; gap: var(--sp-4); margin-top: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: var(--sp-5);
  box-shadow: var(--sh-1);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
  border-color: var(--line-strong);
}
.card h3 { margin-bottom: var(--sp-3); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card__ref {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--text-faint);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.card--accent { border-left: 3px solid var(--accent); }
.card--ok { border-left: 3px solid var(--ok); }
.card--warn { border-left: 3px solid var(--warn); }
.card--slate { border-left: 3px solid var(--slate); }

/* Carte objet du test */
.subject-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: var(--sp-5);
  align-items: center;
  border: 1px solid var(--line);
  border-left: 3px solid var(--slate);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: var(--sp-4) var(--sp-5);
  margin-top: var(--sp-5);
  box-shadow: var(--sh-1);
}
.subject-card img { width: 132px; height: auto; border-radius: var(--r); }
.subject-card p { margin-bottom: 0; font-size: .93rem; color: var(--text-soft); }
@media (max-width: 520px) {
  .subject-card { grid-template-columns: 1fr; gap: var(--sp-3); }
}

/* Encadre methodologie */
.method {
  border: 1px solid var(--accent-line);
  border-radius: var(--r-md);
  background: var(--accent-soft);
  padding: var(--sp-5) var(--sp-6);
  margin-top: var(--sp-5);
}
.method h3 { color: #0A5F76; margin-bottom: var(--sp-3); }
.method p { color: #16404E; }
.method ol { color: #16404E; font-size: .94rem; }
.method p:last-child, .method ol:last-child { margin-bottom: 0; }

/* Note de vigilance */
.notice {
  border: 1px solid #EBD9A6;
  border-left: 3px solid var(--warn);
  background: var(--warn-soft);
  border-radius: var(--r);
  padding: var(--sp-4) var(--sp-5);
  margin-top: var(--sp-5);
  font-size: .94rem;
  color: #6B4C02;
}
.notice strong { color: #543C02; }
.notice p:last-child { margin-bottom: 0; }

/* Liste de controle simple */
.checklist {
  list-style: none;
  padding: 0;
  margin-top: var(--sp-4);
  display: grid;
  gap: 10px;
}
.checklist li {
  position: relative;
  padding-left: 30px;
  font-size: .95rem;
  color: var(--text-soft);
  margin: 0;
}
.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: var(--r-xs);
  background: var(--ok-soft);
  border: 1px solid #BCE6CB;
  color: var(--ok);
  font-size: .74rem;
  display: grid;
  place-items: center;
  line-height: 1;
}
.checklist li b { color: var(--text); }

/* Liste numerotee protocole */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin-top: var(--sp-5);
  display: grid;
  gap: var(--sp-4);
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 54px;
  margin: 0;
}
.steps > li::before {
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--r);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: var(--f-mono);
  font-size: .8rem;
  font-weight: 500;
  display: grid;
  place-items: center;
}
.steps h3 { margin-bottom: 5px; font-size: 1.05rem; }
.steps p { margin-bottom: 0; font-size: .95rem; color: var(--text-soft); }

/* Glossaire */
.glossary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: var(--sp-5);
  background: var(--surface);
}
.glossary__item {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.glossary__item:nth-child(2n) { border-right: 0; }
.glossary__item dt {
  font-family: var(--f-mono);
  font-size: .84rem;
  font-weight: 500;
  color: var(--accent-dark);
  margin-bottom: 5px;
  letter-spacing: .01em;
}
.glossary__item dd {
  margin: 0;
  font-size: .91rem;
  color: var(--text-soft);
  line-height: 1.55;
}

/* Matrice de decision */
.matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}
.matrix__cell {
  border: 1px solid var(--line);
  border-top: 3px solid var(--slate);
  border-radius: var(--r);
  padding: var(--sp-5);
  background: var(--surface);
}
.matrix__cell h3 { font-size: 1rem; margin-bottom: 8px; }
.matrix__weight {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-bottom: 8px;
}
.matrix__cell p { font-size: .9rem; color: var(--text-soft); margin-bottom: 10px; }
.matrix__cell p:last-child { margin-bottom: 0; }
.gauge {
  height: 6px;
  background: var(--slate-soft);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-bottom: 10px;
}
.gauge span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: var(--r-pill);
  width: 0;
  transition: width 700ms cubic-bezier(.22, .61, .36, 1);
}

/* Score par phase */
.scorelist { display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }
.scoreline {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 150px 62px;
  align-items: center;
  gap: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: var(--sp-3) var(--sp-4);
}
.scoreline__ref {
  font-family: var(--f-mono);
  font-size: .74rem;
  color: var(--accent-dark);
  letter-spacing: .04em;
}
.scoreline__name { font-weight: 600; font-size: .95rem; color: var(--text); }
.scoreline__val {
  font-family: var(--f-mono);
  font-size: .9rem;
  color: var(--text);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Figure illustrative */
.figure {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--sh-1);
  margin-top: var(--sp-5);
}
.figure img { width: 100%; }
.figure figcaption {
  font-family: var(--f-mono);
  font-size: .74rem;
  color: var(--text-faint);
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface-sunk);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(var(--sp-5), 3vw, 44px);
  align-items: start;
  margin-top: var(--sp-5);
}
.split--reverse .split__media { order: -1; }

/* 16. Bandeau CTA */
.cta-band {
  border: 1px solid var(--accent-line);
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent-soft), #F4FBFD);
  padding: clamp(var(--sp-5), 3.5vw, var(--sp-7));
  margin-top: var(--sp-6);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  opacity: .55;
  pointer-events: none;
}
.cta-band h2, .cta-band h3 { color: #0A5F76; margin-bottom: var(--sp-3); }
.cta-band p { color: #16404E; max-width: 62ch; }
.cta-final {
  background: var(--slate);
  color: #E3EAF1;
  border-radius: var(--r-md);
  padding: clamp(var(--sp-6), 4vw, var(--sp-8));
  margin-top: var(--sp-6);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.cta-final > * { position: relative; }
.cta-final h2 { color: #FFFFFF; margin-bottom: var(--sp-4); }
.cta-final p { color: #C3D0DC; }
.cta-final .btn--outline { color: #FFFFFF; border-color: rgba(255, 255, 255, .55); }
.cta-final .btn--outline:hover { background: #FFFFFF; color: var(--slate); border-color: #FFFFFF; }
.cta-final .cta-hint { color: #93A6B6; }

/* 17. Bloc auteur */
.author {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: clamp(var(--sp-5), 3vw, var(--sp-6));
  margin-top: var(--sp-5);
  box-shadow: var(--sh-1);
}
.author__photo {
  width: 168px;
  height: 168px;
  border-radius: var(--r-md);
  object-fit: cover;
  border: 1px solid var(--line-strong);
}
.author__name {
  font-family: var(--f-title);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.author__role {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: var(--sp-4);
  display: block;
}
.author__bio { font-size: .96rem; color: var(--text-soft); }
.author__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.author__links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .85rem;
  text-decoration: none;
  color: var(--slate);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 7px 13px;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.author__links a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.author__updated {
  font-family: var(--f-mono);
  font-size: .74rem;
  color: var(--text-faint);
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--line);
}

/* 18. Sources */
.sources {
  list-style: none;
  padding: 0;
  margin-top: var(--sp-5);
  display: grid;
  gap: var(--sp-3);
}
.sources li {
  border: 1px solid var(--line);
  border-left: 3px solid var(--slate);
  border-radius: var(--r);
  background: var(--surface);
  padding: var(--sp-4) var(--sp-5);
  margin: 0;
}
.sources__ref {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-bottom: 5px;
}
.sources__title {
  font-weight: 600;
  font-size: .96rem;
  color: var(--text);
  display: block;
  margin-bottom: 3px;
}
.sources p { font-size: .9rem; color: var(--text-soft); margin: 0; }

/* 19. Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-block: var(--sp-7) var(--sp-5);
  font-size: .92rem;
  color: var(--text-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-6);
}
.footer-col h3 {
  font-size: .8rem;
  font-family: var(--f-mono);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--sp-4);
}
.footer-col p { font-size: .91rem; margin-bottom: .8rem; }
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}
.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: .9rem;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  transition: color var(--t-fast);
}
.footer-links a::before { content: "\203A"; color: var(--accent); font-family: var(--f-mono); }
.footer-links a:hover { color: var(--accent-dark); text-decoration: underline; }
.footer-disclosure {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--text-faint);
}
.footer-disclosure p { max-width: none; margin-bottom: .6rem; }
.footer-bottom {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: .74rem;
  color: var(--text-faint);
  letter-spacing: .02em;
}

/* 20. Retour en haut */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: var(--r);
  background: var(--slate);
  color: #FFFFFF;
  border: 1px solid var(--slate);
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 1rem;
  box-shadow: var(--sh-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--t), transform var(--t), visibility var(--t), background var(--t-fast);
  z-index: 70;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent); border-color: var(--accent); }

/* 21. Animations de reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 460ms ease, transform 460ms cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 60ms; }
.reveal-d2 { transition-delay: 120ms; }
.reveal-d3 { transition-delay: 180ms; }
.reveal-d4 { transition-delay: 240ms; }
.no-js .reveal { opacity: 1; transform: none; }

/* 22. Page 404 */
.err {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: left;
  padding-block: var(--sp-8);
}
.err__panel {
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: clamp(var(--sp-5), 4vw, var(--sp-7));
  max-width: 640px;
  box-shadow: var(--sh-2);
}
.err__code {
  font-family: var(--f-mono);
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  display: block;
  margin-bottom: var(--sp-3);
}

/* 23. Responsive */
/* Au-dessus de la bascule burger, la ligne d en-tete ne se replie jamais */
@media (min-width: 1121px) {
  .header-inner { flex-wrap: nowrap; }
  .nav { flex-wrap: nowrap; }
  .brand,
  .brand__name,
  .nav a,
  .nav > .btn,
  .header-cta { white-space: nowrap; }
}
@media (max-width: 1200px) {
  .phase-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav a { padding: 7px 8px; font-size: .85rem; }
  .scoreline { grid-template-columns: 88px minmax(0, 1fr) 120px 58px; }
}
@media (max-width: 980px) {
  body { font-size: 16.5px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { max-width: 620px; }
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Bascule du menu burger : en-tete et navigation uniquement.
   Au-dessus de 1120px la navigation desktop reste sur une seule ligne. */
@media (max-width: 1120px) {
  .nav {
    position: fixed;
    inset: calc(var(--header-h) + var(--phase-h)) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-3);
    padding: var(--sp-3) var(--sp-5) var(--sp-5);
    max-height: calc(100vh - var(--header-h) - var(--phase-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t), transform var(--t), visibility var(--t);
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a {
    padding: 12px 6px;
    font-size: .96rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    white-space: normal;
  }
  .nav a:last-of-type { border-bottom: 0; }
  .nav__more { display: flex; flex-direction: column; }
  .nav > .btn { display: inline-flex; margin-top: var(--sp-3); }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 60px; --phase-h: 40px; }
  .section { padding-block: var(--sp-7); }
  .pc__body { grid-template-columns: 1fr; }
  .pc__cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .pc__cell:last-child { border-bottom: 0; }
  .phase-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glossary { grid-template-columns: 1fr; }
  .glossary__item { border-right: 0; }
  .author { grid-template-columns: 1fr; gap: var(--sp-4); }
  .author__photo { width: 132px; height: 132px; }
  .kit { grid-template-columns: 1fr; }
  .kit__cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .kit__cell:last-child { border-bottom: 0; }
  .scoreline { grid-template-columns: 76px minmax(0, 1fr) 54px; row-gap: 8px; }
  .scoreline .gauge { grid-column: 1 / -1; margin-bottom: 0; }
  .phasebar__track { width: 92px; }
  .site-footer { padding-bottom: 78px; }
  .phasebar__label { display: none; }
  .brand__sub { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding-inline: var(--sp-4); }
  .grid--2, .grid--3, .grid--4, .matrix, .stat-strip, .phase-flow { grid-template-columns: 1fr; }
  .stat, .phase-node { border-right: 0; }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .pc__head { flex-wrap: wrap; padding: var(--sp-4); }
  .pc__cell, .pc__source { padding-inline: var(--sp-4); }
  .acc-trigger, .acc-panel__inner { padding-inline: var(--sp-4); }
  .check { padding-inline: var(--sp-4); }
  .checklab__head, .checklab__foot { padding-inline: var(--sp-4); }
  .score-card { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .btn { width: 100%; }
  .cta-row .btn { width: 100%; }
  .to-top { right: 12px; bottom: 12px; }
  table { min-width: 540px; font-size: .86rem; }
}

/* 24. Mouvement reduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* 25. Impression */
@media print {
  .site-header, .phasebar, .to-top, .nav-toggle, .cta-band, .cta-final, .checklab__foot {
    display: none !important;
  }
  body { font-size: 11pt; color: #000; background: #fff; }
  .section { padding-block: 14pt; break-inside: avoid; }
  .pc, .card, .table-wrap { break-inside: avoid; box-shadow: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #444; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Corrections de contraste
   Le cyan #0891B2 ne donnait que 3,68:1 avec du texte blanc. */
.btn--primary,
.btn--primary:focus-visible { background: #0E7490; border-color: #0E7490; }
.btn--primary:hover { background: #0A5F77; border-color: #0A5F77; }
