@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Public+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --ink: #0c1220;
  --navy: #0c1220;
  --text: #1c2433;
  --secondary: #545f75;
  --muted: #6b7486;
  --caption: #8a93a6;
  --rule: #e4e6ec;
  --rule-strong: #cfd3dd;
  --bg: #fcfcfd;
  --page: #fcfcfd;
  --paper: #ffffff;
  --surface: #f4f5f8;
  --accent: #004E8C;
  --accent-tint: rgba(0, 78, 140, .08);
  --accent-border: rgba(0, 78, 140, .22);
  --reserved: #6D28D9;
  --stale: #B45309;
  --fresh: #0e700e;

  /* LA HAUTEUR DE L'EN-TETE COLLANT, ECRITE UNE FOIS. Trois choses s'y accrochent :
     les colonnes collantes de l'article, le titre collant d'un chapitre, et la
     marge de defilement des ancres. */
  --header: 72px;

  /* LA GOUTTIERE. Le conteneur n'a pas de largeur maximale : la page prend toute la
     largeur, et seule cette marge la tient a distance du bord. */
  --gutter: 28px;

  --sans: "Public Sans", "Segoe UI", -apple-system, sans-serif;
  --title: Manrope, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
input, button { font-family: inherit; }
input:focus { outline: none; }

.mono  { font-family: var(--mono); }
.serif { font-family: var(--title); font-weight: 700; letter-spacing: -.02em; }

/* L'EYEBROW : le titre de section de la charte. */
.lbl {
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--caption);
}

/* Le conteneur de la crea : 1 240 px au plus, centre, deux gouttieres. */
.wrap { width: min(1240px, calc(100% - 2 * var(--gutter))); margin: 0 auto; }
/* Les pages d'ARTICLE sont plus larges (1 440 px) : trois colonnes dans 1 240 px laissaient
   environ 630 px au texte. Le corps porte la classe ; en-tete, grille et pied s'alignent. */
body.article .wrap { width: min(1440px, calc(100% - 2 * var(--gutter))); }

/* ---------------------------------------------------------------- les boutons */
.btn {
  display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 24px;
  border-radius: 3px; font-size: 14.5px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.btn svg { flex: 0 0 auto; }
.btn-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ink:hover { background: #000; color: #fff; }
.btn-tonal { background: transparent; color: var(--accent); border-color: var(--accent-border); }
.btn-tonal:hover { background: var(--accent-tint); border-color: var(--accent); color: var(--accent); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 14px; }

/* ---------------------------------------------------------------- l'en-tete */
header.portal {
  position: sticky; top: 0; z-index: 40;
  background: rgba(252, 252, 253, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
header.portal .bar { height: var(--header); display: flex; align-items: center; gap: 14px; }
header.portal .brand { display: flex; align-items: center; gap: 14px; height: 100%; flex: 0 0 auto; }
header.portal .brand img { display: block; height: 24px; width: auto; }
header.portal .brand .sep { width: 1px; height: 18px; background: var(--rule-strong); }
header.portal .brand .lbl { font-size: 10.5px; white-space: nowrap; }

header.portal nav.desktop-nav { display: flex; align-items: center; gap: 16px; height: 100%; margin-left: 28px; }
header.portal nav.desktop-nav a {
  display: flex; align-items: center; height: 100%; font-size: 14px; font-weight: 500;
  color: var(--secondary); white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent; transition: color .15s;
}
header.portal nav.desktop-nav a:hover { color: var(--ink); }
header.portal nav.desktop-nav a.on { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); }

header.portal .actions { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; }
/* LE BOUTON DE RECHERCHE : largeur fixe, il ne cede jamais (flex: none). Le champ,
   lui, etait le seul element elastique de la barre et finissait ecrase. */
header.portal a.find-trigger {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 14px 0 12px;
  border: 1px solid var(--rule-strong); border-radius: 3px; background: var(--paper);
  font-size: 13.5px; font-weight: 500; color: var(--muted); white-space: nowrap;
  transition: border-color .15s, color .15s;
}
header.portal a.find-trigger:hover { border-color: var(--ink); color: var(--ink); }
header.portal a.find-trigger svg { flex: 0 0 auto; }
header.portal a.app {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px;
  border: 1px solid var(--rule-strong); border-radius: 3px; font-size: 13.5px; font-weight: 600;
  color: var(--ink); white-space: nowrap; transition: border-color .15s;
}
header.portal a.app:hover { border-color: var(--ink); }
header.portal .badge-reserved { flex: 0 0 auto; }

/* LE SELECTEUR DE LANGUE : un menu deroulant. Le bouton porte la langue courante
   (nom + code), le menu les autres, chacune vers la meme page. Des noms, pas des
   drapeaux — un drapeau est un pays, pas une langue. Pliage natif (details). */
header.portal nav.langs { flex: 0 0 auto; }
header.portal details.lang-menu { position: relative; }
header.portal details.lang-menu > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 11px 0 12px; border: 1px solid var(--rule-strong); border-radius: 3px;
  font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; user-select: none;
  transition: border-color .15s, background .15s;
}
header.portal details.lang-menu > summary::-webkit-details-marker { display: none; }
header.portal details.lang-menu > summary:hover,
header.portal details.lang-menu[open] > summary { border-color: var(--ink); }
header.portal details.lang-menu > summary:focus { outline: none; }
header.portal details.lang-menu > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
header.portal details.lang-menu > summary > svg:first-child { color: var(--muted); }
header.portal details.lang-menu > summary .code {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; color: var(--muted);
}
header.portal details.lang-menu > summary .chev { color: var(--muted); transition: transform .18s ease; }
header.portal details.lang-menu[open] > summary .chev { transform: rotate(180deg); }
header.portal details.lang-menu > ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 208px; margin: 0; padding: 6px;
  list-style: none; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px;
  box-shadow: 0 16px 40px rgba(12, 18, 32, .12), 0 2px 6px rgba(12, 18, 32, .06);
  animation: lang-menu-in .14s ease;
}
@keyframes lang-menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
header.portal details.lang-menu > ul a {
  display: grid; grid-template-columns: 1fr auto 14px; align-items: center; gap: 12px;
  padding: 9px 10px 9px 12px; border-radius: 3px; font-size: 14px; color: var(--ink); transition: background .12s;
}
header.portal details.lang-menu > ul a:hover,
header.portal details.lang-menu > ul a:focus-visible { background: var(--surface); outline: none; }
header.portal details.lang-menu > ul a .code {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; color: var(--muted);
}
header.portal details.lang-menu > ul a .check { color: var(--ink); }
header.portal details.lang-menu > ul a.on { font-weight: 600; }

/* Le menu natif n'existe pas en large : la navigation large a son propre nav. */
header.portal details.global-nav { display: none; }
header.portal details.global-nav > summary { display: none; }

/* ---------------------------------------------------------------- les etats */

/* Une pastille informe ; elle ne verrouille rien et ne remplace jamais le
   contenu. Jamais de cadenas. */
.badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 3px; white-space: nowrap;
  border: 1px solid currentColor; line-height: 1.4;
}
.badge-fresh    { color: var(--fresh); }
.badge-stale    { color: var(--stale); }
.badge-reserved { color: var(--reserved); }
.badge-fallback { color: var(--accent); }

/* Le type d'une page, en etiquette : l'accent pour un guide, le gris sinon. */
.kind {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); border: 1px solid var(--rule-strong);
  border-radius: 3px; padding: 3px 8px; white-space: nowrap; align-self: start; line-height: 1.4;
}
.kind-guide { color: var(--accent); border-color: rgba(0, 78, 140, .3); }
.kind-start { color: var(--fresh); border-color: rgba(14, 112, 14, .3); }

/* L'etat d'une ligne : un point et un mot. */
.st { display: inline-flex; align-items: center; gap: 6px; color: var(--caption); white-space: nowrap; }
.st i { width: 6px; height: 6px; border-radius: 50%; background: var(--rule-strong); flex: 0 0 auto; }
.st-fresh { color: var(--fresh); } .st-fresh i { background: var(--fresh); }
.st-stale { color: var(--stale); } .st-stale i { background: var(--stale); }
.st-reserved { color: var(--reserved); } .st-reserved i { background: var(--reserved); }

/* ---------------------------------------------------------------- l'accueil */

/* LES BANDEAUX SUR UN NID D'ABEILLE — le meme partout : l'accueil, les rubriques,
   les parcours, l'historique. Deux calques d'alveoles a l'encre, tres pales, qui
   naissent en haut a droite et s'eteignent avant le texte (masque radial) ; une
   lueur d'accent, a peine. Rien de violet ni d'ambre : ces couleurs ont un sens.
   Le decor est un element (.banner-art) au fond du bandeau ; le texte passe dessus. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 88px 0 72px; border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--paper) 0%, var(--bg) 100%);
}
main.chapter { position: relative; isolation: isolate; }
.banner-art {
  position: absolute; top: 0; left: 0; right: 0; height: 100%; z-index: 0; pointer-events: none; overflow: hidden;
  background: radial-gradient(ellipse 52% 70% at 88% 18%, rgba(0, 78, 140, .07) 0%, transparent 70%);
}
main.chapter > .banner-art { height: 320px; }
.banner-art::before, .banner-art::after { content: ""; position: absolute; inset: 0; background-repeat: repeat; }
.banner-art::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 0v34' fill='none' stroke='%230c1220' stroke-opacity='.10' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 100px; background-position: right -14px top -30px;
  -webkit-mask-image: radial-gradient(ellipse 58% 95% at 92% 22%, #000 0%, rgba(0, 0, 0, .55) 42%, transparent 78%);
  mask-image: radial-gradient(ellipse 58% 95% at 92% 22%, #000 0%, rgba(0, 0, 0, .55) 42%, transparent 78%);
}
.banner-art::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='168' height='300' viewBox='0 0 168 300'%3E%3Cg fill='%230c1220'%3E%3Cpath fill-opacity='.045' d='M84 66L56 50V16L84 0l28 16v34z'/%3E%3Cpath fill-opacity='.03' d='M28 166L0 150v-34l28-16 28 16v34z'/%3E%3Cpath fill-opacity='.055' d='M140 216l-28-16v-34l28-16 28 16v34z'/%3E%3Cpath fill-opacity='.035' d='M84 266l-28-16v-34l28-16 28 16v34z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 168px 300px; background-position: right -14px top -30px;
  -webkit-mask-image: radial-gradient(ellipse 46% 85% at 94% 20%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 46% 85% at 94% 20%, #000 0%, transparent 72%);
}
.hero > .wrap, main.chapter > .band > .wrap { position: relative; z-index: 1; }

/* LE GRAND CHAMP DE L'ACCUEIL : il ouvre la palette. */
.hero-find {
  display: flex; align-items: center; gap: 14px; max-width: 560px; height: 58px; padding: 0 16px 0 20px;
  border: 1px solid var(--rule-strong); border-radius: 4px; background: var(--paper);
  box-shadow: 0 1px 2px rgba(12, 18, 32, .04), 0 8px 24px rgba(12, 18, 32, .06);
  font-size: 16px; color: var(--muted); transition: border-color .15s, box-shadow .15s;
}
.hero-find:hover { border-color: var(--ink); color: var(--secondary); box-shadow: 0 1px 2px rgba(12, 18, 32, .05), 0 10px 28px rgba(12, 18, 32, .09); }
.hero-find svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--ink); }
.hero-find span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Une touche de clavier, partout ou le portail en montre une. */
kbd {
  font-family: var(--mono); font-size: 11px; color: var(--caption); background: var(--paper);
  border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 4px; padding: 0 6px; line-height: 18px;
}

/* ---------------------------------------------------------------- la palette */
dialog.palette {
  padding: 0; border: 0; background: transparent; color: inherit; overflow: visible;
  width: min(680px, calc(100vw - 32px)); max-width: none; max-height: none; margin: 11vh auto auto;
}
dialog.palette::backdrop { background: rgba(12, 18, 32, .40); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.pal-box {
  display: flex; flex-direction: column; max-height: min(640px, 78vh); overflow: hidden;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 8px;
  box-shadow: 0 28px 72px rgba(12, 18, 32, .24), 0 2px 8px rgba(12, 18, 32, .08);
  animation: pal-in .16s ease;
}
@keyframes pal-in { from { opacity: 0; transform: translateY(-6px) scale(.99); } to { opacity: 1; transform: none; } }
.pal-field { display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 18px; border-bottom: 1px solid var(--rule); color: var(--ink); }
.pal-field svg { width: 18px; height: 18px; flex: 0 0 auto; }
.pal-field input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0;
  font: inherit; font-size: 17px; color: var(--ink);
}
.pal-field input::placeholder { color: var(--muted); }
.pal-field input::-webkit-search-cancel-button { display: none; }
.pal-list { flex: 1; overflow-y: auto; padding: 6px 8px 10px; overscroll-behavior: contain; }
.pal-group {
  padding: 14px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--caption);
}
.pal-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 3px;
  padding: 10px 12px; border-radius: 6px; color: var(--ink); scroll-margin: 8px;
}
.pal-item .t { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.pal-item .d { grid-column: 1; font-size: 13px; line-height: 1.45; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-item .m { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: flex; align-items: center; gap: 8px; }
.pal-item .m kbd.go { visibility: hidden; }
.pal-item[aria-selected="true"] { background: var(--surface); }
.pal-item[aria-selected="true"] .m kbd.go { visibility: visible; }
.pal-item mark { background: rgba(0, 78, 140, .11); color: inherit; border-radius: 2px; padding: 0 1px; }
.pal-empty { margin: 0; padding: 30px 16px; text-align: center; font-size: 14px; color: var(--muted); }
.pal-foot {
  display: flex; align-items: center; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--rule);
  background: var(--surface); font-size: 12px; color: var(--muted);
}
.pal-foot kbd { margin-right: 3px; }
.pal-foot a { margin-left: auto; font-weight: 600; color: var(--accent); }
.pal-foot a:hover { box-shadow: inset 0 -1px 0 var(--accent); }


/* RITA SUR L'ACCUEIL — la crea « Docs Portail - accueil RITA » (12/10/2026), haute fidelite : une barre de 56 px,
   un panneau borne sous elle (bordure, radius 4, ombre longue), cinq etats, des filets, aucune carte. */
.rita-home { display: flex; flex-direction: column; gap: 14px; }
.rita-ask[hidden], .rita-panel[hidden], .rita-state[hidden], .rita-home.is-on .hero-find { display: none; }
.rita-ask {
  display: flex; align-items: center; gap: 12px; margin: 0; height: 56px; padding: 0 8px 0 18px; max-width: 720px;
  border: 1px solid var(--rule-strong); border-radius: 4px; background: #fff; cursor: text; transition: border-color .15s, box-shadow .15s;
}
.rita-ask:hover { border-color: var(--caption); }
.rita-ask:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(12, 18, 32, .06); }
.rita-ask > .spark { width: 18px; height: 18px; flex: 0 0 auto; color: var(--accent); }
.rita-ask input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0; font: inherit; font-size: 16px; color: var(--text); }
.rita-ask input::placeholder { color: var(--caption); }
.rita-hint { font-size: 12px; color: var(--caption); white-space: nowrap; }
.rita-hint kbd { margin-right: 2px; }
.rita-go { flex: 0 0 auto; width: 40px; height: 40px; border: 0; border-radius: 3px; padding: 0; display: grid; place-items: center; background: var(--ink); color: #fff; cursor: pointer; }
.rita-go:hover { background: #000; }
.rita-go[disabled] { opacity: .5; cursor: default; }
.rita-go svg { width: 15px; height: 15px; }
.rita-panel {
  max-width: 720px; border: 1px solid var(--rule); border-radius: 4px; background: #fff; overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(12, 18, 32, .25); animation: rita-in .22s ease both;
}
@keyframes rita-in { from { opacity: 0; transform: translateY(-6px) scale(.995); } to { opacity: 1; transform: none; } }
.rita-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--caption); }
.rita-idle { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.rita-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rita-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 999px;
  background: #fff; font: inherit; font-size: 13.5px; color: var(--secondary); cursor: pointer; transition: border-color .15s, color .15s;
}
.rita-chip:hover { border-color: var(--ink); color: var(--ink); }
.rita-typing { padding: 16px 20px; display: flex; flex-direction: column; }
.rita-typing-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 4px; }
.rita-count { font-size: 12px; color: var(--caption); }
.rita-hit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--rule); color: inherit; }
.rita-hit .c { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rita-hit .t { font-size: 14.5px; font-weight: 600; color: var(--ink); transition: color .15s; }
.rita-hit:hover .t { color: var(--accent); }
.rita-hit .x { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rita-hit .k { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--caption); }
.rita-askline {
  display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 3px;
  background: var(--surface); text-align: left; cursor: pointer; font: inherit; font-size: 14px; color: var(--text);
}
.rita-askline:hover { border-color: var(--ink); }
.rita-askline .spark { width: 16px; height: 16px; flex: 0 0 auto; color: var(--accent); }
.rita-askline > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rita-askline strong { font-weight: 600; }
.rita-thinking { padding: 20px; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--secondary); }
.rita-dots { display: inline-flex; gap: 4px; }
.rita-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: rita-dot 1.2s infinite; }
.rita-dots span:nth-child(2) { animation-delay: .2s; }
.rita-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes rita-dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.rita-answer { display: grid; grid-template-columns: minmax(0, 1fr) 240px; }
.rita-answer-main { padding: 20px 22px 20px 20px; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--rule); min-width: 0; }
.rita-who { display: flex; align-items: center; gap: 10px; }
.rita-who .spark { width: 16px; height: 16px; color: var(--accent); }
.rita-name { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
.rita-from { font-size: 12px; color: var(--caption); }
.rita-prose p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.65; color: var(--text); text-wrap: pretty; }
.rita-prose p:last-child { margin: 0; }
.rita-prose strong { font-weight: 600; color: var(--ink); }
.rita-prose ul { margin: 0 0 12px; padding-left: 20px; font-size: 15.5px; line-height: 1.65; color: var(--text); }
.rita-prose li { margin: 0 0 4px; }
.rita-near-answer { margin: 14px 0 10px; }
.rita-near-answer:empty { display: none; }
#rita-panel.is-uncited .rita-sources { display: none; }
#rita-panel.is-uncited .rita-answer { grid-template-columns: 1fr; }
.rita-prose sup { font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--accent); margin-left: 2px; cursor: pointer; line-height: 0; }
.rita-answer-foot { display: flex; align-items: center; gap: 14px; padding-top: 4px; border-top: 1px solid var(--rule); margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.rita-link { border: 0; background: transparent; padding: 0; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--accent); cursor: pointer; }
.rita-new { margin-left: auto; font-weight: 400; color: var(--secondary); }
.rita-new:hover { color: var(--ink); }
#rita-helpful.is-done .rita-link { display: none; }
.rita-sources { padding: 20px 20px 20px 18px; background: var(--bg); display: flex; flex-direction: column; }
.rita-sources .rita-eyebrow { padding-bottom: 6px; }
.rita-src { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); color: inherit; }
.rita-src .n { min-width: 22px; white-space: nowrap; font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--accent); padding-top: 3px; } /* « 3 · 4 · 5 » tient sur une ligne (14/10/2026) */
.rita-src .c { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rita-src .t { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--ink); transition: color .15s; }
.rita-src:hover .t, .rita-src.is-lit .t { color: var(--accent); }
.rita-src .d { font-size: 12px; color: var(--caption); }
.rita-empty { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.rita-empty-body { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.rita-exits { display: flex; gap: 18px; padding-top: 6px; border-top: 1px solid var(--rule); font-size: 13.5px; font-weight: 600; }
.rita-exits a { color: var(--accent); }
.rita-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--rule); background: var(--surface); font-size: 12px; color: var(--caption); }
.rita-close { border: 0; background: transparent; padding: 0; font: inherit; font-size: 12px; color: var(--caption); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.rita-close:hover { color: var(--ink); }
@media (max-width: 980px) { .rita-answer { grid-template-columns: minmax(0, 1fr); } .rita-answer-main { border-right: 0; border-bottom: 1px solid var(--rule); } }
@media (max-width: 560px) { .rita-hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .rita-dots span { animation: none; opacity: .6; } .rita-panel { animation: none; } }


.hero .inner { max-width: 880px; display: flex; flex-direction: column; gap: 26px; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.hero h1 {
  margin: 0; font-family: var(--title); font-size: clamp(40px, 4.8vw, 64px); line-height: 1.02;
  font-weight: 700; letter-spacing: -.045em; color: var(--ink); text-wrap: balance;
}
.lede { margin: 0; font-size: 19px; line-height: 1.6; color: var(--secondary); max-width: 60ch; text-wrap: pretty; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 6px; }

.browse { padding: 24px 0 88px; }
.browse .wrap { display: flex; flex-direction: column; gap: 40px; }

/* Les six rubriques : des colonnes separees par des filets, numerotees. */
.sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sec { display: flex; flex-direction: column; gap: 12px; min-height: 200px; border-top: 1px solid var(--rule); padding: 30px 34px 34px 0; }
.sec:not(:nth-child(3n)) { border-right: 1px solid var(--rule); }
.sec:nth-child(3n) { padding-right: 0; padding-left: 34px; }
.sec:nth-child(3n+2) { padding-left: 34px; }
/* UN SEUL FILET : le bas du heros separe deja ; la premiere rangee n'en redouble pas. */
.hero + .browse .sec:nth-child(-n+3) { border-top: 0; }
.sec .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sec .num { font-family: var(--mono); font-size: 12px; color: var(--caption); letter-spacing: .04em; }
.sec .count { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.sec h3 {
  margin: 4px 0 0; font-family: var(--title); font-size: 21px; line-height: 1.25; font-weight: 700;
  letter-spacing: -.02em; color: var(--ink); transition: color .15s;
}
.sec p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--secondary); text-wrap: pretty; flex: 1; }
.arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--accent); transition: transform .18s, color .18s; }
.sec:hover h3 { color: var(--accent); }
.sec:hover .arrow { transform: translateX(4px); color: var(--ink); }

/* La section grise : les mises a jour a gauche, les profils et la sante a droite. */
.grey { padding: 80px 0 104px; border-top: 1px solid var(--rule); background: var(--surface); }
.two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 80px; align-items: start; }
.two > aside { display: flex; flex-direction: column; gap: 40px; position: sticky; top: calc(var(--header) + 24px); }

.updates { display: flex; flex-direction: column; gap: 28px; }
.updates .head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.updates .head h2 {
  margin: 0; font-family: var(--title); font-size: clamp(26px, 3vw, 36px); line-height: 1.08;
  font-weight: 700; letter-spacing: -.04em; color: var(--ink);
}
.updates .more { font-size: 14px; font-weight: 600; color: var(--accent); box-shadow: inset 0 -1px 0 var(--accent-border); }
.updates .more:hover { box-shadow: inset 0 -1px 0 var(--accent); color: var(--accent); }
.updates ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--rule); }
.updates li {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 24px; align-items: baseline;
  padding: 22px 0; border-top: 1px solid var(--rule);
}
.updates .when { font-family: var(--mono); font-size: 12.5px; color: var(--caption); white-space: nowrap; }
.updates .what { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.updates .what a {
  font-family: var(--title); font-size: 17px; font-weight: 700; letter-spacing: -.015em;
  color: var(--ink); line-height: 1.3; transition: color .15s;
}
.updates li:hover .what a { color: var(--accent); }
.updates .where { font-size: 14px; line-height: 1.55; color: var(--secondary); text-wrap: pretty; }
.updates .tail { display: flex; gap: 8px; align-items: center; }
.updates .note { font-size: 14px; color: var(--secondary); }

.roles-list { display: flex; flex-direction: column; gap: 14px; }
.roles-list .lbl { padding-top: 6px; }
.roles-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.roles-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--rule); font-size: 15px; font-weight: 600; color: var(--ink);
}
.roles-list a:hover { color: var(--accent); }
.roles-list a span:last-child { font-size: 12.5px; font-weight: 400; color: var(--muted); }

/* ---------------------------------------------------------------- le pied */
footer.portal { border-top: 1px solid var(--rule); padding: 28px 0; margin-top: auto; }
footer.portal .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
footer.portal nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer.portal a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- le chapitre */

.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { color: var(--rule-strong); }
.crumbs em { font-style: normal; color: var(--ink); font-weight: 600; }

.band { background: var(--paper); }
.band-top .wrap { padding-top: 56px; }

/* LE TITRE DU CHAPITRE RESTE LE REPERE DE LECTURE. Le bandeau defile ; seule la
   ligne du titre se fixe sous l'en-tete, sur un voile qui laisse percevoir le
   mouvement. Elle est un enfant direct de « main », parce qu'un element collant
   ne colle qu'a l'interieur de son parent. */
.chapter-heading {
  position: sticky; top: var(--header); z-index: 8;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(16px) saturate(1.08); backdrop-filter: blur(16px) saturate(1.08);
}
.chapter-heading { transition: background-color .2s ease; }
.chapter-heading.at-rest { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.chapter-heading .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 14px; }
.chapter-heading h1 {
  margin: 0; font-family: var(--title); font-size: clamp(36px, 4vw, 52px); line-height: 1.04;
  font-weight: 700; letter-spacing: -.045em; color: var(--ink);
}
.cat-health-compact { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.cat-health-compact .health-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fresh); }
.cat-health-compact strong { color: var(--fresh); font-weight: 600; }

.band-bottom .wrap { display: flex; flex-direction: column; gap: 18px; padding-top: 6px; padding-bottom: 44px; }
.band-bottom { border-bottom: 1px solid var(--rule); }
.facts { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.facts .sep { width: 1px; height: 14px; background: var(--rule-strong); }
.facts .st { font-weight: 600; font-size: 13.5px; }

.body { padding: 56px 0 104px; }
.two-list { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 72px; align-items: start; }

/* La colonne de gauche : un repere de lecture, pas un plan du site. */
.side { position: sticky; top: calc(var(--header) + 24px); display: flex; flex-direction: column; gap: 28px; }
.side .group { display: flex; flex-direction: column; gap: 12px; }
.side .group + .group { padding-top: 24px; border-top: 1px solid var(--rule); }
.side .group .list { display: flex; flex-direction: column; }
.side .group .list a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 0 9px 14px; margin-left: -16px; border-left: 2px solid transparent;
  font-size: 14px; font-weight: 500; color: var(--secondary);
}
.side .group .list a:hover { color: var(--ink); }
.side .group .list a.on { color: var(--ink); font-weight: 600; border-left-color: var(--ink); }
.side .group .list a .n { font-size: 12px; font-weight: 400; color: var(--caption); }

.list { display: flex; flex-direction: column; min-width: 0; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.list-head .title { font-family: var(--title); font-size: 22px; font-weight: 700; letter-spacing: -.025em; color: var(--ink); }
.filter {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px;
  border: 1px solid var(--rule-strong); border-radius: 3px; background: var(--paper);
  color: var(--muted); cursor: text; flex: 0 1 340px; min-width: 200px; transition: border-color .15s;
}
.filter:focus-within { border-color: var(--ink); }
.filter svg { flex-shrink: 0; }
.filter input { border: none; background: transparent; font-size: 14px; color: var(--text); width: 100%; min-width: 0; padding: 0; }
.filter button {
  width: 22px; height: 22px; border: none; background: transparent; color: var(--caption);
  font-size: 16px; line-height: 1; cursor: pointer; padding: 0; display: none;
}
.filter button:hover { color: var(--ink); }
.filter.has button { display: block; }
.list-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 12px; font-size: 13px; color: var(--caption); }
.list .empty {
  display: none; padding: 48px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  flex-direction: column; gap: 8px;
}
.list .empty b { font-family: var(--title); font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.list .empty span { font-size: 14.5px; color: var(--secondary); }
.list .empty a { color: var(--accent); font-weight: 600; }
.list.none .empty { display: flex; }

/* Les groupes de la liste : la chaine fondatrice, puis les autres. */
.cards { display: flex; flex-direction: column; }
.cards .head { display: flex; align-items: baseline; gap: 14px; padding: 28px 0 10px; }
.cards .head h2 { margin: 0; font-family: var(--title); font-size: 22px; font-weight: 700; letter-spacing: -.025em; color: var(--ink); }
.cards .why { margin: 0; padding: 0 0 12px; font-size: 14px; color: var(--secondary); }
.cards.chain .why { padding-top: 0; }
.cards + .cards { margin-top: 24px; }
.cards ol.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--rule); }
.cards ol.rows li.hide { display: none; }
.cards.hide { display: none; }

.card a {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 170px; gap: 28px; align-items: baseline;
  padding: 24px 0; border-top: 1px solid var(--rule); color: var(--ink);
}
.card .num { font-family: var(--mono); font-size: 12.5px; color: var(--caption); }
.card .main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card h3 {
  margin: 0; font-family: var(--title); font-size: 19px; font-weight: 700; letter-spacing: -.02em;
  line-height: 1.3; color: var(--ink); transition: color .15s;
}
.card a:hover h3 { color: var(--accent); }
.card .promise { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--secondary); text-wrap: pretty; }
.card .flags { display: flex; gap: 8px; flex-wrap: wrap; }
.card .meta { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; text-align: right; font-size: 12.5px; color: var(--caption); white-space: nowrap; }
.card .when { font-family: var(--mono); font-size: 12.5px; }

/* Le tutoriel : quatre profils en colonnes, puis chaque parcours sur fond gris. */
.roles { padding: 56px 0 72px; }
.roles .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.role {
  border-top: 1px solid var(--rule); padding: 28px 30px 32px 0; display: flex; flex-direction: column;
  gap: 14px; min-height: 240px; color: inherit;
}
.role:not(:last-child) { border-right: 1px solid var(--rule); }
.band-bottom + .roles { padding-top: 24px; }
.band-bottom + .roles .role:nth-child(-n+4) { border-top: 0; }
.role + .role { padding-left: 30px; }
.role:last-child { padding-right: 0; }
.role .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.role .surface { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--caption); }
.role .count { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.role h3 { margin: 0; font-family: var(--title); font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -.025em; color: var(--ink); transition: color .15s; }
.role p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--secondary); text-wrap: pretty; flex: 1; }
.role:hover h3 { color: var(--accent); }
.role:hover .arrow { transform: translateX(4px); }

.paths { border-top: 1px solid var(--rule); background: var(--surface); }
.path { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; padding: 64px 0; scroll-margin-top: var(--header); }
.path + .path { border-top: 1px solid var(--rule); }
.path .summary { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--header) + 24px); }
.path .summary h2 { margin: 0; font-family: var(--title); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; font-weight: 700; letter-spacing: -.04em; color: var(--ink); }
.path .summary p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--secondary); text-wrap: pretty; }
.path .summary .ctas { padding-top: 8px; }
.path .steps-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 12px; }
.path .steps-head span:last-child { font-size: 13px; color: var(--caption); }
.path ol.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--rule); }
.path .step {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 20px; align-items: baseline;
  padding: 18px 0; border-top: 1px solid var(--rule); color: var(--ink);
}
.path .step .num { font-family: var(--mono); font-size: 13px; color: var(--caption); }
.path .step .main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.path .step .t { font-family: var(--title); font-size: 17.5px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; transition: color .15s; }
.path .step:hover .t { color: var(--accent); }
.path .step .d { font-size: 12.5px; color: var(--caption); font-family: var(--mono); }
.path .step .tail { display: flex; gap: 8px; }
.path .note { font-size: 14.5px; color: var(--secondary); }

/* ---------------------------------------------------------------- l'article */

/* TROIS COLONNES SUR TOUTE LA LARGEUR : la navigation du chapitre, le corps, la
   fiche et le sommaire. Les deux colonnes de rive ont une largeur fixe ; le corps
   prend tout le reste. */
main.doc { padding: 48px 0 104px; }
main.doc > .wrap { display: grid; grid-template-columns: 248px minmax(0, 1fr) 248px; gap: 56px; align-items: start; }

aside.nav .pin {
  position: sticky; top: calc(var(--header) + 24px); display: flex; flex-direction: column; gap: 14px;
  max-height: calc(100vh - var(--header) - 48px); overflow: auto; scrollbar-width: none;
}
aside.nav .pin::-webkit-scrollbar { display: none; }
aside.nav a.back { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--secondary); }
aside.nav a.back:hover { color: var(--ink); }
aside.nav a.back svg { flex: 0 0 auto; }
aside.nav ul.pages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
aside.nav ul.pages a {
  display: block; padding: 6px 0 6px 12px; margin-left: -13px; border-left: 2px solid transparent;
  font-size: 13.5px; line-height: 1.4; color: var(--secondary);
}
aside.nav ul.pages a:hover { color: var(--ink); }
aside.nav ul.pages a.here { color: var(--ink); font-weight: 600; border-left-color: var(--ink); }

/* Le chapitre de reference : deux temps, puis des ressources. Le titre de groupe
   est un REPERE, pas un lien. */
aside.nav .nav-group { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 4px; }
aside.nav .nav-group .gen { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-tint); border-radius: 3px; padding: 2px 5px; }
aside.nav .nav-sub { margin: 12px 0 2px; font-size: 10px; }
aside.nav ul.calls a { display: flex; align-items: baseline; gap: 8px; }
aside.nav ul.calls .verb {
  flex: 0 0 46px; font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .04em;
  text-align: center; border-radius: 3px; padding: 2px 0; color: #1b2536; background: #dde3ec;
}
/* Ce qui LIT et ce qui ECRIT se distinguent avant qu'on ait lu le chemin. */
aside.nav ul.calls .verb-GET    { background: #cdedd9; }
aside.nav ul.calls .verb-POST   { background: #d5e4f8; }
aside.nav ul.calls .verb-PATCH  { background: #f6e9c4; }
aside.nav ul.calls .verb-PUT    { background: #f6e9c4; }
aside.nav ul.calls .verb-DELETE { background: #f7d8d2; }
aside.nav ul.calls .p { font-size: 11.5px; word-break: break-all; }

/* Le second rang de navigation : les parcours. Un RANG, pas une page. */
aside.nav .nav-path {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 0; font-size: 13.5px; font-weight: 500; color: var(--secondary);
}
aside.nav .nav-path:hover { color: var(--ink); }
aside.nav .nav-path.on { color: var(--ink); font-weight: 600; }
aside.nav .nav-path .n { font-size: 12px; font-weight: 400; color: var(--caption); }
aside.nav .nav-path + ul.pages { margin: 2px 0 10px 12px; }

article.portal { min-width: 0; }
article.portal .crumbs { margin-bottom: 28px; }

/* La ligne d'etat au-dessus du titre : le type, puis la fraicheur — deux faits,
   jamais fondus en un seul. */
.pills { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pills .sep { width: 1px; height: 12px; background: var(--rule-strong); }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-type { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--caption); }
.pill-type i { display: none; }
.pill-fresh    { color: var(--fresh); }
.pill-stale    { color: var(--stale); }
.pill-reserved { color: var(--reserved); }

article.portal h1 {
  margin: 0 0 32px; font-family: var(--title); font-size: 32px; line-height: 1.04;
  font-weight: 700; letter-spacing: -.045em; color: var(--ink); text-wrap: balance;
}

/* La prose : 17 px, interligne 1,7. */
article.portal .prose { font-size: 17px; line-height: 1.7; color: var(--text); }
article.portal h2 {
  font-family: var(--title); font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.03em;
  color: var(--ink); margin: 56px 0 18px; display: flex; gap: 16px; align-items: baseline;
}
article.portal section:first-of-type h2 { margin-top: 0; }
article.portal h2 .n { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--caption); flex-shrink: 0; }
article.portal h3 { font-family: var(--title); font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin: 28px 0 10px; }
article.portal p { margin: 0 0 18px; text-wrap: pretty; }
article.portal ul, article.portal ol { margin: 0 0 18px; padding-left: 22px; }
article.portal li { margin: 6px 0; padding-left: 4px; }
article.portal li::marker { color: var(--caption); font-family: var(--mono); font-size: 13px; }
article.portal em { font-style: normal; background: linear-gradient(transparent 62%, rgba(0, 78, 140, .12) 62%); }
article.portal img { max-width: 100%; height: auto; display: block; margin: 18px 0; border: 1px solid var(--rule); }

/* SUIVRE UNE ANCRE POSAIT LE TITRE SOUS L'EN-TETE COLLANT. */
article.portal section[id] { scroll-margin-top: calc(var(--header) + 24px); }

/* L'ANCRE EST MASQUEE, PAS RETIREE. Elle est l'IDENTITE de la section — jamais
   derivee du titre (INV-2). Elle apparait au survol du titre, et au clavier des
   qu'elle prend le focus. « max-width: 0 » : masquee, elle ne reserve AUCUNE largeur. */
article.portal h2 .anchor {
  display: inline-block; vertical-align: baseline; overflow: hidden;
  font-family: var(--mono); font-size: 11.5px; font-weight: 400; color: var(--caption); white-space: nowrap;
  max-width: 0; opacity: 0; letter-spacing: 0;
  transition: max-width .14s ease, opacity .14s ease;
}
article.portal h2:hover .anchor,
article.portal h2 .anchor:focus-visible { max-width: 220px; opacity: 1; }
article.portal h2 .anchor:hover { color: var(--accent); }

/* Un tableau est un bloc : il se lit comme un bloc, sur ses filets. */
article.portal table { border-collapse: collapse; width: 100%; font-size: 14.5px; margin: 18px 0 24px; background: var(--paper); }
article.portal th {
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--caption);
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule-strong);
}
article.portal td { padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
article.portal pre {
  background: var(--ink); color: #e7eaf2; padding: 14px 16px; border-radius: 3px; overflow-x: auto;
  font-family: var(--mono); font-size: 13px; line-height: 1.6; margin: 0 0 18px;
}
article.portal code { font-family: var(--mono); font-size: .92em; }

/* Trois faits distincts, enonces distinctement — jamais fondus en un seul. */
.notice { border: 1px solid; border-radius: 3px; padding: 16px 18px; margin: 0 0 24px; font-size: 14.5px; line-height: 1.6; }
.notice-stale     { background: #fef6ec; border-color: #f0d9b5; color: #6b3f08; }
.notice-fallback  { background: var(--accent-tint); border-color: var(--accent-border); color: #1b3e8f; }
.notice-reserved  { background: #f4effe; border-color: #ddd0fa; color: #4b1fa0; }
.notice-generated { background: var(--accent-tint); border-color: var(--accent-border); color: #1b3e8f; }
/* Deux faits de traduction, deux bandeaux : automatique (accent, comme le repli),
   en retard sur la source (ambre, comme la peremption — c'est de la meme famille). */
.notice-machine   { background: var(--accent-tint); border-color: var(--accent-border); color: #1b3e8f; }
.notice-divergent { background: #fef6ec; border-color: #f0d9b5; color: #6b3f08; }
.notice a { color: inherit; font-weight: 600; box-shadow: inset 0 -1px 0 currentColor; }
.notice b { display: block; font-family: var(--title); font-size: 15.5px; letter-spacing: -.01em; margin-bottom: 4px; }
.notice-generated .src { display: block; text-align: right; font-size: 10.5px; letter-spacing: .06em; color: #5b78be; margin-top: 8px; }

/* La carte du point d'appel — SOMBRE, PARCE QU'ELLE N'EST PAS DU TEXTE. Elle
   enonce un fait de machine au milieu d'une page de prose. */
.endpoint { background: var(--ink); border-radius: 3px; padding: 20px 22px; margin: 0 0 32px; }
.endpoint .call { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid #1d2a3d; }
.endpoint .verb {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  padding: 4px 9px; border-radius: 3px; color: var(--ink); background: #8fa0b8;
}
.endpoint .verb-GET    { background: #7fd1a0; }
.endpoint .verb-POST   { background: #8fb8f0; }
.endpoint .verb-PATCH  { background: #e0c05e; }
.endpoint .verb-PUT    { background: #e0c05e; }
.endpoint .verb-DELETE { background: #e89a8e; }
.endpoint .path { font-size: 16px; color: #fff; font-weight: 500; word-break: break-all; }
.endpoint .facts { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 16px; }
.endpoint .fact .k { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #8fa0b8; font-weight: 700; }
.endpoint .fact .v { font-size: 12.5px; color: #e7eaf2; margin-top: 5px; }

/* Les marqueurs de compatibilite : des etiquettes mono au fil du texte. */
.markers { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 18px 0; margin: 32px 0 0; }
.markers .pair { display: inline-block; margin: 8px 24px 0 0; }
.markers .pair .v { font-family: var(--mono); font-size: 13px; font-weight: 700; margin-left: 8px; }
.markers .disclaimer { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* La carte de telechargement d'une piece jointe (AMD A-20) : le nom, la version,
   la langue servie, la taille, et l'empreinte que l'auditeur compare. Un bloc du fil
   du texte, sans lisere, au bord de carte du portail. */
.attachment { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: start; margin: 24px 0; padding: 18px 20px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); }
.attachment .kind { grid-column: 1 / -1; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--caption); }
.attachment .kind .ext { font-family: var(--mono); letter-spacing: 0; text-transform: none; margin-left: 10px; color: var(--accent); }
.attachment .title { margin: 0; font-family: var(--title); font-size: 17px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.attachment .facts { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 12.5px; color: var(--muted); }
.attachment .facts .v { color: var(--ink); font-family: var(--mono); margin-left: 6px; }
.attachment a.get { grid-row: 2 / span 2; align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 8px; background: var(--accent-tint); border: 1px solid var(--accent-border); color: var(--accent); font-weight: 700; font-size: 14px; white-space: nowrap; }
.attachment a.get:hover { background: var(--accent); color: #fff; }
.attachment .digest { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.attachment .digest code { display: block; margin-top: 4px; font-family: var(--mono); font-size: 11.5px; color: var(--ink); word-break: break-all; }
.attachment .fallback { grid-column: 1 / -1; font-size: 13px; color: var(--stale); }
.attachment.empty .title { color: var(--muted); }
@media (max-width: 720px) { .attachment { grid-template-columns: minmax(0, 1fr); } .attachment a.get { grid-row: auto; justify-self: start; } }

/* La page « Ressources » : les cartes de telechargement, une par fichier cite, avec la
   page d'origine et les autres langues en dessous. */
.resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.resources .attachment { margin: 0; height: 100%; }
.resource { display: flex; flex-direction: column; gap: 10px; }
.resource .from { font-size: 13.5px; color: var(--muted); padding: 0 4px; }
.resource .from a { color: var(--ink); font-weight: 600; }
.resource .from a:hover { color: var(--accent); }
@media (max-width: 980px) { .resources { grid-template-columns: minmax(0, 1fr); } }

/* Le pied d'article : la page d'avant, la page d'apres. */
.pager { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pager a { display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.pager a:hover { color: var(--accent); }
.pager a.next { text-align: right; align-items: flex-end; }
.pager .k { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--caption); }
.pager .t { font-family: var(--title); font-size: 16px; font-weight: 700; letter-spacing: -.015em; }

/* La colonne de droite : la fiche PUIS le sommaire. L'ordre est le choix
   structurant du portail — savoir si l'on peut croire la page passe avant savoir
   comment la parcourir. Elle reste visible pendant que l'article defile. */
aside.state {
  position: sticky; top: calc(var(--header) + 24px); display: flex; flex-direction: column; gap: 28px;
  max-height: calc(100vh - var(--header) - 48px); overflow: auto; scrollbar-width: none;
}
aside.state::-webkit-scrollbar { display: none; }
aside.state section[data-card] { display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
aside.state .head .lbl { display: block; }
aside.state .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; }
aside.state .row .lbl { font-size: 12.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
aside.state .val { color: var(--ink); display: inline-flex; align-items: center; gap: 7px; text-align: right; }
aside.state .val.mono { font-family: var(--mono); }
aside.state .dot { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; }
.dot-type     { background: var(--accent); }
.dot-public   { background: var(--accent); }
.dot-reserved { background: var(--reserved); }
.dot-fresh    { background: var(--fresh); }
.dot-stale    { background: var(--stale); }
aside.state .note { flex-basis: 100%; font-size: 11.5px; color: var(--caption); line-height: 1.45; }
aside.state .badge { font-size: 10px; padding: 2px 6px; }
aside.state .anchor-box { font-family: var(--mono); color: var(--ink); font-size: 12px; word-break: break-all; text-align: right; }

nav.toc { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 1px solid var(--rule); }
nav.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-left: 1px solid var(--rule); }
nav.toc a {
  display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent;
  font-size: 13.5px; line-height: 1.4; color: var(--secondary); transition: color .15s;
}
nav.toc a:hover { color: var(--ink); }
nav.toc a.on { color: var(--ink); border-left-color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- l'espace reserve (4.5) */
main.reserved { padding: 56px 0 104px; }
main.reserved h1 { margin: 0 0 22px; font-family: var(--title); font-size: clamp(38px, 4.4vw, 54px); line-height: 1.04; font-weight: 700; letter-spacing: -.045em; color: var(--ink); }
table.reserved { border-collapse: collapse; width: 100%; font-size: 14.5px; margin-top: 18px; }
table.reserved th { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule-strong); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--caption); font-weight: 700; }
table.reserved td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.reserved td a { font-family: var(--title); font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
table.reserved td a:hover { color: var(--accent); }
.rule { border-top: 1px solid var(--rule); padding-top: 18px; margin: 32px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 72ch; }
.rule b { color: var(--ink); }
.dim { color: var(--caption); font-size: 12px; }
.note { font-size: 14.5px; line-height: 1.6; color: var(--secondary); }

/* ---------------------------------------------------------------- la recherche (4.7) */
main.search { padding: 56px 0 104px; }
main.search > .wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 72px; align-items: start; }
aside.facets { position: sticky; top: calc(var(--header) + 24px); }
aside.facets input[type="search"] {
  width: 100%; height: 40px; padding: 0 12px; font-size: 14px; color: var(--text);
  border: 1px solid var(--rule-strong); border-radius: 3px; background: var(--paper);
}
aside.facets input[type="search"]:focus { border-color: var(--ink); }
aside.facets section { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); }
aside.facets label { display: block; font-size: 13.5px; margin-top: 10px; color: var(--secondary); }
aside.facets .hint { font-size: 12px; color: var(--caption); line-height: 1.5; margin: 6px 0 0; }
.chip {
  font-size: 12px; font-weight: 600; cursor: pointer; background: var(--paper); color: var(--secondary);
  border: 1px solid var(--rule-strong); border-radius: 3px; padding: 4px 10px; margin: 8px 6px 0 0;
}
.chip.on { border-color: var(--ink); color: var(--ink); }

.results { min-width: 0; }
.results .count { margin-bottom: 14px; }
.results ol { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.results li { padding: 22px 0; border-top: 1px solid var(--rule); }
.results .kind { margin-bottom: 8px; }
.results a.hit { font-family: var(--title); font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.results a.hit:hover { color: var(--accent); }
.results .meta { margin: 8px 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.results .ex { font-size: 14.5px; line-height: 1.6; color: var(--secondary); margin: 6px 0; }

/* ---------------------------------------------------------------- les versions (4.10) */

/* DEUX ONGLETS, DEUX QUESTIONS. Le rail de gauche EST le filtre. */
.shell.releases { padding: 48px 0 104px; }
.shell.releases > .wrap { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 56px; align-items: start; }
.shell.releases aside.nav .pin { gap: 4px; }
.shell.releases h1 { margin: 0 0 22px; font-family: var(--title); font-size: clamp(38px, 4.4vw, 54px); line-height: 1.04; font-weight: 700; letter-spacing: -.045em; color: var(--ink); }
.shell.releases .lede { font-size: 17px; }

aside.nav .rail-note { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin: 12px 0 0; }
aside.nav .rail-note b { color: var(--ink); }
aside.nav dl.precisions { margin: 8px 0 0; }
aside.nav dl.precisions dt { font-size: 12.5px; font-weight: 600; margin-top: 9px; color: var(--ink); }
aside.nav dl.precisions dd { margin: 2px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
aside.nav .toggle {
  display: block; margin-top: 16px; padding: 8px 10px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--rule-strong); border-radius: 3px; color: var(--secondary); background: var(--paper);
}
aside.nav .toggle:hover { color: var(--ink); border-color: var(--ink); }
aside.nav .toggle.on { border-color: var(--ink); color: var(--ink); }

.tabs { display: flex; align-items: center; gap: 4px; margin: 26px 0 0; border-bottom: 1px solid var(--rule); }
.tabs .tab {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 14px 12px; font-size: 14.5px; font-weight: 500;
  color: var(--secondary); box-shadow: inset 0 -2px 0 transparent; margin-bottom: -1px;
}
.tabs .tab:hover { color: var(--ink); }
.tabs .tab .n { font-family: var(--mono); font-size: 11.5px; color: var(--caption); }
.tabs .tab.on { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); }
.tabs .tab.on .n { color: var(--ink); }
.tabs .feed { margin-left: auto; font-size: 12.5px; color: var(--muted); }

.head-count { display: flex; align-items: baseline; gap: 14px; margin: 30px 0 0; }
.head-count .n { font-family: var(--title); font-size: 24px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }

.bucket { margin: 32px 0 0; }
.bucket-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 14px; }
.bucket-head .when { font-size: 24px; }

.intent { display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 24px; align-items: start; border-top: 1px solid var(--rule); padding: 18px 0; margin: 10px 0 0; }
.intent .dom { grid-column: 1; }
.intent h2 { grid-column: 1; font-family: var(--title); font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 5px 0 0; color: var(--ink); }
.intent p { grid-column: 1; font-size: 14.5px; line-height: 1.6; color: var(--secondary); margin: 7px 0 0; }
.intent .stamp { grid-column: 2; grid-row: 1 / span 3; text-align: right; }
.intent .stamp .d { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.intent .stamp .lbl { display: block; margin-top: 3px; }

/* RIEN NE S'EFFACE EN SILENCE DE CETTE LISTE. */
.pledge { border-top: 1px solid var(--rule); padding-top: 18px; margin: 38px 0 0; }
.pledge h2 { font-family: var(--title); font-size: 16px; font-weight: 700; letter-spacing: -.01em; margin: 0; color: var(--ink); }
.pledge p { font-size: 14px; line-height: 1.65; color: var(--secondary); margin: 7px 0 0; }

.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 14px 0; margin: 28px 0 0; }
.banner .b { display: inline-flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.banner .v { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.banner .d { font-size: 13px; color: var(--muted); }
.banner .deadlines { margin-left: auto; }
.banner .dl { font-size: 13px; color: var(--muted); margin-left: 10px; }
.banner .dl .d { color: var(--ink); font-weight: 600; }
.banner-note { font-size: 12.5px; color: var(--caption); margin: 8px 0 0; }

.release { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 32px; align-items: start; border-top: 1px solid var(--rule); padding: 30px 0 0; margin: 30px 0 0; }
.release .gutter { position: sticky; top: calc(var(--header) + 24px); }
.release .gutter .v { font-size: 28px; line-height: 1; color: var(--ink); }
.release .gutter .d { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.release .gutter .badge { margin-top: 10px; }
.release .gutter .c { font-size: 12.5px; color: var(--muted); margin-top: 7px; }
.release .gutter .c b { color: var(--ink); }
.release .gutter .c-break b { color: var(--stale); }
.release .group { display: flex; align-items: baseline; gap: 12px; margin: 20px 0 0; }
.release .group .why { font-size: 12px; color: var(--caption); }
.release .group.breaking .lbl { color: var(--stale); }

/* LES RUPTURES EN ENTIER A TOUT AGE : une action necessaire le reste. Le cadre
   est ambre sur tout son pourtour — jamais un lisere a gauche. */
.release .break { border: 1px solid #f0d9b5; background: #fffaf3; border-radius: 3px; padding: 15px 18px; margin: 10px 0 0; }
.release .break h2 { font-family: var(--title); font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; margin: 5px 0 0; color: var(--ink); }
.release .break p { font-size: 14px; line-height: 1.6; color: var(--secondary); margin: 6px 0 0; }
.release .break .todo { color: var(--ink); }
.release .break .todo.missing { color: var(--stale); font-style: italic; }
.release ul.feats { list-style: none; margin: 8px 0 0; padding: 0; }
.release ul.feats li { font-size: 14.5px; line-height: 1.6; padding: 6px 0; border-top: 1px solid var(--rule); }
.release ul.feats .det { color: var(--muted); }
.release .fixes { margin: 22px 0 0; }
.release .fixes summary { cursor: pointer; display: flex; align-items: baseline; gap: 12px; }
.release .fixes .note { margin: 8px 0 0; font-size: 13.5px; }
.release.lean .gutter .v { font-size: 21px; }

.older { margin: 34px 0 0; border-top: 1px solid var(--rule); padding-top: 18px; }
.older > summary { cursor: pointer; display: flex; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 600; color: var(--ink); }

.boundary { border-top: 1px solid var(--rule); padding-top: 18px; margin: 44px 0 0; font-size: 13.5px; line-height: 1.65; color: var(--muted); max-width: 72ch; }

/* ================================================================ RESPONSIVE */

/* SOUS 1180 px, LES SIX CHAPITRES ENTRENT DANS UN MENU NATIF, et le sommaire de
   l'article disparait (la fiche avec lui). Le champ de recherche ne disparait
   jamais : il se contracte, mais reste le geste permanent de l'en-tete. */
@media (max-width: 1320px) {
  header.portal a.find-trigger { padding: 0 11px; }
  header.portal a.find-trigger .label { display: none; }
}

@media (max-width: 1180px) {
  header.portal .bar { gap: 12px; }
  header.portal nav.desktop-nav { display: none; }
  header.portal a.find-trigger { padding: 0 14px 0 12px; }
  header.portal a.find-trigger .label { display: inline; }
  header.portal a.app { display: none; }
  header.portal details.global-nav { display: block; position: relative; flex: 0 0 auto; }
  header.portal details.global-nav > summary {
    display: inline-flex; align-items: center; gap: 8px; list-style: none; height: 38px; padding: 0 12px;
    cursor: pointer; user-select: none; border: 1px solid var(--rule-strong); border-radius: 3px;
    background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 600; transition: border-color .15s;
  }
  header.portal details.global-nav > summary::-webkit-details-marker { display: none; }
  header.portal details.global-nav > summary:focus { outline: none; }
  header.portal details.global-nav > summary:focus-visible { border-color: var(--ink); }
  header.portal details.global-nav[open] > summary { border-color: var(--ink); }
  header.portal .menu-icon { position: relative; width: 15px; height: 2px; background: currentColor; transition: background .16s ease; }
  header.portal .menu-icon::before, header.portal .menu-icon::after {
    content: ""; position: absolute; left: 0; width: 15px; height: 2px; background: currentColor;
    transition: top .16s ease, transform .16s ease;
  }
  header.portal .menu-icon::before { top: -5px; }
  header.portal .menu-icon::after { top: 5px; }
  header.portal details.global-nav[open] .menu-icon { background: transparent; }
  header.portal details.global-nav[open] .menu-icon::before { top: 0; transform: rotate(45deg); }
  header.portal details.global-nav[open] .menu-icon::after { top: 0; transform: rotate(-45deg); }
  header.portal details.global-nav > nav {
    display: none; position: absolute; top: calc(100% + 8px); right: 0; width: min(300px, calc(100vw - 32px));
    padding: 8px; flex-direction: column; align-items: stretch; border: 1px solid var(--rule-strong);
    border-radius: 3px; background: var(--paper); box-shadow: 0 16px 40px rgba(12, 18, 32, .10);
  }
  header.portal details.global-nav[open] > nav { display: flex; }
  header.portal details.global-nav > nav a {
    display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 12px;
    color: var(--secondary); font-size: 14px; font-weight: 500; line-height: 1.2; border-radius: 3px;
  }
  header.portal details.global-nav > nav a:hover { background: var(--surface); color: var(--ink); }
  header.portal details.global-nav > nav a.on { color: var(--ink); font-weight: 600; background: var(--surface); }
  header.portal details.global-nav > nav a.on::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); flex: 0 0 auto; margin-left: 14px; }

  main.doc > .wrap { grid-template-columns: 248px minmax(0, 1fr); }
  main.doc aside.state { display: none; }
}

@media (max-width: 1100px) {
  .roles .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-bottom + .roles .role:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .role:not(:last-child) { border-right: 0; }
  .role:nth-child(odd) { border-right: 1px solid var(--rule); padding-left: 0; padding-right: 28px; }
  .role:nth-child(even) { padding-left: 28px; padding-right: 0; }
}

@media (max-width: 980px) {
  .two { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .two > aside { position: static; }
  .sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero + .browse .sec:nth-child(3) { border-top: 1px solid var(--rule); }
  .sec:not(:nth-child(3n)) { border-right: 0; }
  .sec:nth-child(odd) { border-right: 1px solid var(--rule); padding-left: 0; padding-right: 28px; }
  .sec:nth-child(even) { padding-left: 28px; padding-right: 0; }
  .two-list { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .side { position: static; }
  .path { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .path .summary { position: static; }
  main.search > .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  aside.facets { position: static; }
}

/* SOUS 900 px, LA COLONNE DE NAVIGATION DISPARAIT AUSSI — sauf sur l'ecran des
   versions, ou le rail est le filtre : il passe au-dessus du contenu, en bandeau. */
@media (max-width: 900px) {
  main.doc > .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  main.doc aside.nav { display: none; }
  .shell.releases > .wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .shell.releases aside.nav .pin { position: static; max-height: none; border-bottom: 1px solid var(--rule); padding-bottom: 18px; }
  .shell.releases aside.nav .nav-group { display: inline-block; margin-right: 12px; }
  .shell.releases aside.nav .nav-path { display: inline-flex; width: auto; margin-right: 14px; }
  .shell.releases aside.nav dl.precisions { display: none; }
  .shell.releases aside.nav .toggle { display: inline-block; margin-top: 10px; }
  .release { grid-template-columns: 1fr; gap: 14px; }
  .release .gutter { position: static; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
  .intent { grid-template-columns: 1fr; }
  .intent .stamp { grid-column: 1; grid-row: auto; text-align: left; }
}

@media (max-width: 640px) {
  header.portal details.lang-menu > summary { padding: 0 10px; gap: 7px; }
  header.portal details.lang-menu > summary .cur { display: none; }
  header.portal a.find-trigger { padding: 0 11px; }
  header.portal a.find-trigger .label { display: none; }
  :root { --gutter: 16px; }
  .hero { padding: 56px 0 48px; }
  .sections { grid-template-columns: minmax(0, 1fr); }
  .hero + .browse .sec:nth-child(2) { border-top: 1px solid var(--rule); }
  .pal-foot span { display: none; }
  dialog.palette { margin-top: 12px; }
  .hero-find { height: 52px; font-size: 15px; }
  .hero-find kbd { display: none; }
  .sec, .sec:nth-child(odd), .sec:nth-child(even) { border-right: 0; padding-left: 0; padding-right: 0; min-height: 0; }
  .updates li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .roles .wrap { grid-template-columns: minmax(0, 1fr); }
  .band-bottom + .roles .role:nth-child(n+2) { border-top: 1px solid var(--rule); }
  .role, .role:nth-child(odd), .role:nth-child(even) { border-right: 0; padding-left: 0; padding-right: 0; min-height: 0; }
  .path .step { grid-template-columns: 44px minmax(0, 1fr); }
  .path .step .tail { display: none; }
  .card a { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .card .num, .card .meta { display: none; }
  .chapter-heading .wrap { padding-top: 12px; padding-bottom: 10px; }
  article.portal .prose { font-size: 16px; }
  article.portal h2 { font-size: 23px; }
  header.portal .brand img { height: 20px; }
  header.portal .brand .sep, header.portal .brand .lbl { display: none; }
}

@media (max-width: 560px) {
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}