/* =========================================================================
   COMPRENDRE LE CANCER — Système de design de la collection
   Socle v1.0
   Signature : la lecture en profondeur. Les trois strates (¹ ² ³) sont
   rendues comme une profondeur croissante dans la teinte du tome courant.
   Familles : Spectral (lecture) · IBM Plex Sans (chrome) · IBM Plex Mono (data)
   ========================================================================= */

/* ---- 1. Tokens globaux ------------------------------------------------- */
:root {
  /* Surfaces */
  --paper:      #FCFCFC;
  --panel:      #F3F4F2;
  --recess:     #ECEEEB;
  --line:       #E2E4E1;
  --line-soft:  #EDEEEB;

  /* Encre */
  --ink:        #1A2327;
  --ink-soft:   #46535A;
  --ink-faint:  #76828A;

  /* Teinte de tome par défaut (Tome I) — surchargée par .tome-N */
  --tome:       #0F6E63;
  --tome-deep:  #0A4F47;
  --tome-tint:  #E8F1EF;
  --tome-tint2: #D6E7E3;

  /* Code des degrés de certitude */
  --c-etabli:       #2E7D55;
  --c-etabli-bg:    #E7F2EC;
  --c-probable:     #B7791F;
  --c-probable-bg:  #F6EEDD;
  --c-explo:        #6B5B95;
  --c-explo-bg:     #EDEAF3;

  /* Typographie */
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Échelle */
  --measure: 46rem;       /* largeur de lecture confortable */
  --gap-margin: 15rem;    /* colonne de marge pour clés de lecture */
  --radius: 4px;
  --shadow: 0 1px 2px rgba(26,35,39,.05), 0 8px 28px -12px rgba(26,35,39,.12);
}

/* ---- 2. Teintes des sept tomes ---------------------------------------- */
.tome-1 { --tome:#0F6E63; --tome-deep:#0A4F47; --tome-tint:#E8F1EF; --tome-tint2:#D3E6E2; }
.tome-2 { --tome:#1F6699; --tome-deep:#154A70; --tome-tint:#E7F0F7; --tome-tint2:#D0E2EF; }
.tome-3 { --tome:#A6483A; --tome-deep:#7E3329; --tome-tint:#F6E9E6; --tome-tint2:#EDD3CD; }
.tome-4 { --tome:#6E4A87; --tome-deep:#503466; --tome-tint:#EFEAF4; --tome-tint2:#E0D5EB; }
.tome-5 { --tome:#9C3D6A; --tome-deep:#742B4E; --tome-tint:#F6E8EF; --tome-tint2:#EDD2E0; }
.tome-6 { --tome:#3B4DA0; --tome-deep:#283877; --tome-tint:#E9EBF7; --tome-tint2:#D5D9EF; }
.tome-7 { --tome:#3E7D54; --tome-deep:#2C5C3D; --tome-tint:#E8F2EB; --tome-tint2:#D3E7D9; }

/* ---- 3. Reset & base --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.7;
  font-feature-settings: "liga" 1, "kern" 1, "onum" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--tome); text-underline-offset: .15em; text-decoration-thickness: .06em; }
a:hover { color: var(--tome-deep); }
::selection { background: var(--tome-tint2); }

/* ---- 4. En-tête de site (chrome) -------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.25rem;
  padding: .65rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(252,252,252,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
}
.site-head .brand {
  font-weight: 600; font-size: .92rem; letter-spacing: .01em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  display: flex; align-items: center; gap: .55rem;
}
.site-head .brand .mark { width: 16px; height: 22px; flex: none; }
.site-head .crumb {
  font-size: .82rem; color: var(--ink-faint); display: flex; gap: .4rem;
  align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.site-head .crumb a { color: var(--ink-soft); text-decoration: none; }
.site-head .crumb a:hover { color: var(--tome); }
.site-head .crumb .sep { color: var(--line); }
.site-head .spacer { flex: 1; }
.site-head .tome-pill {
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--tome-deep); background: var(--tome-tint);
  padding: .28rem .6rem; border-radius: 100px; white-space: nowrap;
}

/* Barre de progression de lecture */
.read-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--tome); z-index: 60; transition: width .1s linear;
}

/* ---- 5. Mise en page de lecture --------------------------------------- */
.page { max-width: 88rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }

.reader {
  display: grid;
  grid-template-columns: minmax(0, var(--measure)) var(--gap-margin);
  gap: 0 2.5rem;
  margin: 0 auto;
  max-width: calc(var(--measure) + var(--gap-margin) + 2.5rem);
  padding: 2.5rem 0 6rem;
}
.reader > * { grid-column: 1; }
.reader .aside { grid-column: 2; }

/* Colonne de marge : clés de lecture, certitudes, notes */
.margin-note {
  grid-column: 2;
  font-family: var(--sans);
  font-size: .8rem; line-height: 1.5; color: var(--ink-soft);
  border-top: 2px solid var(--tome);
  padding-top: .45rem; margin-top: .2rem;
  align-self: start;
}
.margin-note .lbl {
  display: block; font-size: .68rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--tome-deep); margin-bottom: .25rem;
}

/* ---- 6. Typographie du contenu ---------------------------------------- */
.eyebrow {
  font-family: var(--sans); font-size: .76rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--tome);
  margin: 0 0 .7rem;
}
h1.chapter-title {
  font-weight: 500; font-size: clamp(2.1rem, 5vw, 3.1rem); line-height: 1.08;
  letter-spacing: -.015em; margin: .2rem 0 .6rem;
}
.chapter-lede {
  font-size: 1.28rem; line-height: 1.5; color: var(--ink-soft);
  font-style: italic; margin: 0 0 2rem; max-width: 34rem;
}
h2 {
  font-weight: 600; font-size: 1.7rem; line-height: 1.2; letter-spacing: -.01em;
  margin: 3rem 0 .4rem; scroll-margin-top: 5rem;
}
h2 .num {
  font-family: var(--mono); font-size: .9rem; font-weight: 500;
  color: var(--tome); margin-right: .6rem; letter-spacing: 0;
}
h3 { font-weight: 600; font-size: 1.22rem; margin: 1.8rem 0 .3rem; }
p { margin: 0 0 1.15rem; }
.lead { font-size: 1.16rem; line-height: 1.62; color: var(--ink); }
strong { font-weight: 600; }
em { font-style: italic; }
.term { /* terme défini, lié au glossaire */
  border-bottom: 1px dotted var(--tome); cursor: help; color: inherit;
  text-decoration: none;
}
.term:hover { background: var(--tome-tint); }

/* ---- 7. Le dispositif des strates (signature) ------------------------- */
.strata-legend {
  font-family: var(--sans); font-size: .82rem;
  display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem;
}
.strata-legend .s {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem; border-radius: 100px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink-soft);
}
.strata-legend .dot { width: 8px; height: 8px; border-radius: 50%; }
.s1 .dot, .lvl-mark.l1 { background: var(--tome); }
.s2 .dot, .lvl-mark.l2 { background: var(--tome); }
.s3 .dot, .lvl-mark.l3 { background: var(--tome-deep); }

/* Bloc de strate dépliable */
.strata {
  margin: 1.4rem 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.strata > .strata-head {
  width: 100%; text-align: left; cursor: pointer;
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  letter-spacing: .02em;
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem .9rem; border: 0; background: var(--tome-tint);
  color: var(--tome-deep);
}
.strata > .strata-head:hover { background: var(--tome-tint2); }
.strata > .strata-head .chev { margin-left: auto; transition: transform .2s ease; }
.strata[open] > .strata-head .chev { transform: rotate(90deg); }
.strata .lvl-tag {
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  padding: .12rem .4rem; border-radius: 3px; background: var(--paper);
  color: var(--tome-deep); border: 1px solid var(--tome-tint2);
}
.strata .strata-body { padding: 1rem .9rem .3rem; }

/* Profondeur : niveau 2 légèrement creusé, niveau 3 davantage */
.strata.lvl2 .strata-body { background: var(--paper); }
.strata.lvl2 { border-left: 3px solid var(--tome); }
.strata.lvl3 { border-left: 5px solid var(--tome-deep); }
.strata.lvl3 > .strata-head { background: var(--tome-tint2); }
.strata.lvl3 .strata-body {
  background: var(--recess);
  font-size: 1rem;
}
.strata.lvl3 .strata-body p { color: var(--ink); }

/* details/summary natifs */
details.strata > summary { list-style: none; }
details.strata > summary::-webkit-details-marker { display: none; }

/* ---- 8. Étiquettes de certitude --------------------------------------- */
.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .02em; text-transform: uppercase;
  padding: .14rem .5rem; border-radius: 3px; vertical-align: middle;
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.tag.etabli    { color: var(--c-etabli);   background: var(--c-etabli-bg); }
.tag.etabli::before    { background: var(--c-etabli); }
.tag.probable  { color: var(--c-probable); background: var(--c-probable-bg); }
.tag.probable::before  { background: var(--c-probable); }
.tag.explo,
.tag.exploratoire     { color: var(--c-explo);    background: var(--c-explo-bg); }
.tag.explo::before,
.tag.exploratoire::before     { background: var(--c-explo); }

/* ---- 9. Encadrés ------------------------------------------------------- */
.box {
  margin: 1.8rem 0; padding: 1.2rem 1.3rem; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
}
.box .box-lbl {
  font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--tome-deep);
  display: flex; align-items: center; gap: .5rem; margin-bottom: .55rem;
}
.box p:last-child { margin-bottom: 0; }
.box.know { background: var(--tome-tint); border-color: var(--tome-tint2); }
.box.warn { background: var(--c-probable-bg); border-color: #ECDCBB; }

/* Renvoi inter-tomes */
.xref {
  font-family: var(--sans); font-size: .85rem; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--panel); padding: .15rem .55rem; border-radius: 3px;
  text-decoration: none; border: 1px solid var(--line);
}
.xref:hover { border-color: var(--tome); color: var(--tome-deep); }
.xref .arrow { color: var(--tome); }

/* ---- 10. Figures / schémas -------------------------------------------- */
figure.schema {
  margin: 2rem 0; padding: 1.4rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
figure.schema.wide { grid-column: 1 / -1; }
figure.schema svg { width: 100%; height: auto; }
figure.schema figcaption {
  font-family: var(--sans); font-size: .82rem; color: var(--ink-soft);
  margin-top: .9rem; line-height: 1.5;
}
figure.schema figcaption .fig-num {
  font-weight: 600; color: var(--tome-deep); margin-right: .4rem;
}
/* jeton réutilisable pour les libellés internes des schémas */
.svg-label { font-family: var(--sans); font-size: 13px; fill: var(--ink); }
.svg-sub   { font-family: var(--sans); font-size: 11px; fill: var(--ink-faint); }
.svg-mono  { font-family: var(--mono); font-size: 11px; fill: var(--tome-deep); }
/* Palette fonctionnelle des schémas (commune à toute la collection).
   La couleur encode un sens, elle ne décore pas. Règle de contraste :
   texte clair sur aplat foncé, texte foncé sur aplat clair — jamais l'inverse. */
.svg-on-dark   { fill: #FFFFFF; }            /* texte sur aplat foncé        */
.svg-on-light  { fill: var(--ink); }         /* texte sur fond clair/papier  */
:root {
  --dia-ok:      #2E7D55;  --dia-ok-bg:   #E7F2EC;   /* normal, sous contrôle */
  --dia-bad:     #B0473A;  --dia-bad-bg:  #F7E8E5;   /* emballé, danger       */
  --dia-signal:  #B7791F;  --dia-signal-bg:#F6EEDD;  /* signaux, messages     */
  --dia-vessel:  #A6483A;                            /* vaisseaux, sang       */
  --dia-immune:  #6B5B95;                            /* éléments immunitaires */
  --dia-neutral: #8A949A;  --dia-neutral-bg:#EEF0EF; /* structures neutres    */
}

/* ---- 11. Sommaire de chapitre (TOC latéral) --------------------------- */
.chapter-toc {
  position: sticky; top: 5rem; align-self: start;
  font-family: var(--sans); font-size: .85rem; line-height: 1.5;
  border-left: 1px solid var(--line); padding-left: 1rem;
}
.chapter-toc .toc-lbl {
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: .6rem;
}
.chapter-toc a {
  display: block; color: var(--ink-soft); text-decoration: none;
  border-left: 2px solid transparent; margin-left: -1rem;
  padding: .28rem 0 .28rem 2rem; text-indent: -1rem;
}
.chapter-toc a:hover, .chapter-toc a.active {
  color: var(--tome-deep); border-left-color: var(--tome);
}

/* ---- 12. Pied de chapitre : navigation séquentielle ------------------- */
.chapter-nav {
  display: flex; gap: 1rem; margin: 4rem auto 0;
  max-width: calc(var(--measure) + var(--gap-margin) + 2.5rem);
}
.chapter-nav a {
  flex: 1; text-decoration: none; padding: 1rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--sans); transition: border-color .15s;
}
.chapter-nav a:hover { border-color: var(--tome); }
.chapter-nav .dir { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.chapter-nav .ttl { font-size: .95rem; color: var(--ink); margin-top: .2rem; }
.chapter-nav .next { text-align: right; }
.chapter-nav .disabled {
  flex: 1; padding: 1rem 1.1rem; border: 1px dashed var(--line); border-radius: var(--radius);
  font-family: var(--sans); background: var(--panel); opacity: .7;
}

/* ---- 13. Sources ------------------------------------------------------- */
.sources { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.sources h2 { font-size: 1.1rem; margin-top: 0; }
.sources ol { font-family: var(--sans); font-size: .82rem; color: var(--ink-soft); line-height: 1.5; padding-left: 1.2rem; }
.sources li { margin-bottom: .5rem; }

/* ===========================================================================
   PAGE D'ACCUEIL
   =========================================================================== */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(1rem, 2.5vw, 2rem); }
.hero-grid { display: grid; gap: clamp(1.8rem, 4vw, 4rem); align-items: center; }
@media (min-width: 64rem) { .hero-grid { grid-template-columns: 1.25fr 1fr; } }
.hero .eyebrow { color: var(--ink-faint); }
.hero h1 {
  font-weight: 500; font-size: clamp(2.4rem, 6.5vw, 4.4rem); line-height: 1.02;
  letter-spacing: -.02em; margin: .4rem 0 1.2rem;
}
.hero h1 em { font-style: italic; color: var(--tome); }
.hero p.thesis { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.5; color: var(--ink-soft); }
.hero p.hero-note { font-family: var(--sans); font-size: .86rem; color: var(--ink-faint); margin-top: 1.1rem; }

/* Légende des strates, version accueil */
.depth-demo {
  margin: 0; border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; box-shadow: var(--shadow);
}
.depth-demo .row {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.3rem;
  font-family: var(--sans); border-bottom: 1px solid var(--line-soft);
}
.depth-demo .row:last-child { border-bottom: 0; }
.depth-demo .row .lv { font-family: var(--mono); font-size: .82rem; font-weight: 600; flex: none; width: 2rem; }
.depth-demo .row .nm { font-weight: 600; font-size: .92rem; flex: none; width: 8.5rem; }
.depth-demo .row .ds { font-size: .86rem; color: var(--ink-soft); font-family: var(--serif); }
.depth-demo .r1 { background: var(--paper); }
.depth-demo .r1 .lv { color: var(--tome); }
.depth-demo .r2 { background: var(--tome-tint); }
.depth-demo .r2 .lv { color: var(--tome-deep); }
.depth-demo .r3 { background: var(--tome-tint2); }
.depth-demo .r3 .lv { color: var(--tome-deep); }

/* Architecture : la colonne des sept tomes */
.tomes { margin: .5rem 0 2.5rem; }
.tome-grid { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 60rem) { .tome-grid { grid-template-columns: 1fr 1fr; } }
.tomes h2.section-title {
  font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint); margin: 0 0 1.4rem;
}
.tome-row {
  display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: center;
  gap: 1.2rem; padding: 1.3rem 1.4rem; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.tome-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--tome); }
.tome-row .tnum {
  font-family: var(--mono); font-size: 1.05rem; font-weight: 600;
  color: #fff; background: var(--tome); width: 3.2rem; height: 3.2rem;
  border-radius: 6px; display: grid; place-items: center; letter-spacing: 0;
}
.tome-row .tbody .tkick {
  display: block;
  font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--tome); margin-bottom: .15rem;
}
.tome-row .tbody .ttitle { display: block; font-size: 1.3rem; font-weight: 500; line-height: 1.18; }
.tome-row .tbody .tdesc { display: block; font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); margin-top: .35rem; line-height: 1.45; }
.tome-row .tmeta {
  font-family: var(--sans); font-size: .76rem; color: var(--ink-faint); text-align: right; white-space: nowrap;
}
.tome-row .tmeta .freshness { display: inline-block; margin-top: .3rem; }

/* Tome cover (page de tome) */
.tome-cover { padding: clamp(2.5rem, 7vw, 5rem) 0 2rem; max-width: 48rem; }
.tome-cover .tbig {
  font-family: var(--mono); font-size: .85rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--tome);
}
.tome-cover h1 { font-weight: 500; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.05; letter-spacing: -.02em; margin: .5rem 0 1rem; }
.tome-cover p { font-size: 1.2rem; color: var(--ink-soft); line-height: 1.55; }

.chapter-list {
  margin: 1.5rem 0 4rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem;
}
.chapter-list a {
  display: grid; grid-template-columns: 2.8rem 1fr; column-gap: 1rem; align-items: start;
  text-decoration: none; color: inherit; padding: 1.15rem 1.3rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.chapter-list a:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--tome); }
.chapter-list .soon {
  display: grid; grid-template-columns: 2.8rem 1fr; column-gap: 1rem; align-items: start;
  padding: 1.15rem 1.3rem; border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--panel); opacity: .72;
}
.chapter-list .soon .cl-num { background: var(--ink-faint); }
.chapter-list .soon .cl-flag {
  display: inline-block; margin-top: .4rem; font-family: var(--sans); font-size: .68rem;
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint);
}
.chapter-list .cl-num {
  font-family: var(--mono); font-size: 1rem; font-weight: 600;
  color: #fff; background: var(--tome); width: 2.8rem; height: 2.8rem;
  border-radius: 6px; display: grid; place-items: center;
}
.chapter-list .cl-title { display: block; font-size: 1.15rem; font-weight: 500; line-height: 1.22; }
.chapter-list .cl-sub { display: block; font-family: var(--sans); font-size: .84rem; color: var(--ink-soft); margin-top: .35rem; }
/* Indication des niveaux de lecture disponibles : claire et explicite */
.chapter-list .cl-strata {
  align-self: center; white-space: nowrap;
  font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--tome-deep);
  background: var(--tome-tint); border: 1px solid var(--tome-tint2);
  padding: .25rem .6rem; border-radius: 100px;
}

/* Méthode : code des certitudes en cartes */
.method-intro { font-size: 1.1rem; line-height: 1.55; color: var(--ink-soft); max-width: 70rem; margin: 0 0 1.4rem; }
.certitude-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .certitude-grid { grid-template-columns: repeat(3, 1fr); } }
.cert-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; background: var(--paper); }
.cert-card p { margin: .8rem 0 0; color: var(--ink-soft); font-size: .98rem; line-height: 1.5; }

.strata-body .src-note { font-family: var(--sans); font-size: .8rem; color: var(--ink-faint); margin-top: .6rem; }

/* Pied de page */
.site-foot {
  border-top: 1px solid var(--line); margin-top: 4rem;
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem); background: var(--panel);
  font-family: var(--sans); font-size: .85rem; color: var(--ink-soft);
}
.site-foot .foot-grid { max-width: 76rem; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 2rem 3rem; justify-content: space-between; }
.site-foot a { color: var(--ink-soft); }
.site-foot .disclaimer { max-width: 32rem; line-height: 1.5; }
.site-foot .ver { font-family: var(--mono); font-size: .76rem; color: var(--ink-faint); }

/* ---- 14. Responsive ---------------------------------------------------- */
@media (max-width: 60rem) {
  :root { --gap-margin: 0px; }
  .reader { grid-template-columns: minmax(0, 1fr); max-width: var(--measure); }
  .reader .aside, .margin-note { grid-column: 1; }
  .margin-note { border-top: 0; border-left: 2px solid var(--tome); padding: .2rem 0 .2rem .9rem; margin: 1rem 0 1.4rem; }
  figure.schema.wide { grid-column: 1; }
  .chapter-toc { display: none; }
  .reader.with-toc { grid-template-columns: minmax(0,1fr); }
}
@media (min-width: 60rem) {
  /* Variante chapitre avec sommaire latéral à gauche */
  .reader.with-toc {
    grid-template-columns: 15rem minmax(0, var(--measure)) var(--gap-margin);
    max-width: calc(15rem + var(--measure) + var(--gap-margin) + 5rem);
    gap: 0 2.5rem;
  }
  .reader.with-toc > * { grid-column: 2; }
  .reader.with-toc .chapter-toc { grid-column: 1; grid-row: 1 / span 100; }
  .reader.with-toc .aside, .reader.with-toc .margin-note { grid-column: 3; }
  .reader.with-toc figure.schema.wide { grid-column: 2 / 4; }
}
@media (max-width: 52rem) { .chapter-list { grid-template-columns: 1fr; } }
@media (max-width: 38rem) {
  .tome-row { grid-template-columns: 2.6rem 1fr; }
  .tome-row .tmeta { grid-column: 2; text-align: left; margin-top: .3rem; }
  .depth-demo .row { flex-wrap: wrap; gap: .4rem 1rem; }
  .depth-demo .row .nm { width: auto; }
  .chapter-nav { flex-direction: column; }
}
