/* Catalogue « Health Software Common Practices » : feuille unique (briefs 184, 193). Identité propre au catalogue,
   sans emprunt à celle de l'espace qui l'héberge. Polices auto-hébergées (SIL OFL, woff2 latin, font-display: swap) :
   les adresses POLICE:… sont remplacées à la construction par les fichiers à empreinte (generer.py). Aucun dégradé,
   aucune image, aucune animation hors rotation du chevron. Contrastes AA vérifiés par axe-core à la construction. */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("space-grotesk-latin-600-normal-685bbbf6.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("space-grotesk-latin-700-normal-35f8aec5.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("inter-latin-400-normal-8909904a.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("inter-latin-500-normal-f3779f1e.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("inter-latin-600-normal-f9a06e79.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("ibm-plex-mono-latin-400-normal-08949f72.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("ibm-plex-mono-latin-500-normal-01d28544.woff2") format("woff2"); }

:root {
  --fond: #F6F7F9; --surface: #FFFFFF; --surface-ouverte: #FAFBFD;
  --encre: #111827; --encre-douce: #374151; --discret: #4B5563;
  --trait: #E3E6EC; --trait-fort: #C9CEDA;
  --nuit: #101935; --nuit-carte: #17224A; --nuit-bord: #3A4675; --nuit-texte: #A9B3D6; --nuit-texte-2: #D5DAEA;
  --accent: #FFB454;
  --lien: #2B3FBF; --lien-survol: #1B2A8A;
  --redigee: #1B2A8A; --redigee-fond: #E9ECFC; --redigee-bord: #C4CBF5;
  --ebauche: #7A3B06; --ebauche-fond: #FDEBD0; --ebauche-carte: #FFFDF8; --ebauche-bord: #D9A45B;
  --tension-titre: #7A3B06; --tension-texte: #3F2A12; --tension-fond: #FFF8EC; --tension-bord: #F0D5A8;
  --titres: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --texte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r-champ: 8px; --r-carte: 12px; --r-objectif: 14px; --r-pilule: 999px;
  --largeur: 1200px; --marge: 32px;
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body { margin: 0; font: 400 1rem/1.55 var(--texte); color: var(--encre); background: var(--fond); }
a { color: var(--lien); text-underline-offset: .15em; }
a:hover { color: var(--lien-survol); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lien); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--titres); font-weight: 700; letter-spacing: -.015em; color: var(--encre); }
h1 { font-size: 2.5rem; line-height: 1.15; margin: .2rem 0 .8rem; }
h2 { font-size: 1.75rem; line-height: 1.25; margin: 2.5rem 0 .8rem; scroll-margin-top: 1rem; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; margin: 1.5rem 0 .5rem; scroll-margin-top: 1rem; }
p, li { color: var(--encre-douce); }
code { font: 400 .875em/1.4 var(--mono); overflow-wrap: anywhere; }
.evitement { position: absolute; left: -9999px; top: .5rem; background: var(--surface); padding: .7rem 1rem; z-index: 10; }
.evitement:focus { left: .5rem; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono, .identifiant, .compteur, .sur-titre { font-family: var(--mono); }

/* En-tête : marque, navigation, langue. */
.entete { background: var(--surface); border-bottom: 1px solid var(--trait); }
.entete-dedans { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; max-width: var(--largeur);
                 margin: 0 auto; padding: .5rem var(--marge); }
.marque { margin: 0; flex: 1 1 auto; }
.marque a { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; text-decoration: none; color: var(--encre); }
.marque svg { flex: none; }
.marque .nom { font: 600 1.05rem/1.2 var(--titres); letter-spacing: -.01em; }
.principale ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; }
.principale a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .5rem; border-radius: var(--r-champ);
                color: var(--encre); font-weight: 500; text-decoration: none; }
.principale a:hover { color: var(--lien-survol); text-decoration: underline; }
.principale a[aria-current] { color: var(--lien); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.principale details { position: relative; }
.principale summary { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; padding: 0 .5rem; border-radius: var(--r-champ);
                      color: var(--encre); font-weight: 500; cursor: pointer; list-style: none; }
.principale summary::-webkit-details-marker { display: none; }
.principale summary:hover { color: var(--lien-survol); text-decoration: underline; }
.principale summary.courant { color: var(--lien); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.principale details ul { position: absolute; z-index: 10; top: 100%; left: 0; display: block; min-width: 13rem; padding: .35rem;
                         background: var(--surface); border: 1px solid var(--trait-fort); border-radius: var(--r-champ); }
.principale details a { display: flex; }
.langues ul { list-style: none; display: inline-flex; margin: 0; padding: 0; border: 1px solid var(--trait-fort);
              border-radius: var(--r-champ); overflow: hidden; }
.langues a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .7rem;
             font: 500 .875rem/1 var(--mono); color: var(--encre); text-decoration: none; background: var(--surface); }
.langues li + li a { border-left: 1px solid var(--trait-fort); }
.langues a:hover { color: var(--lien-survol); text-decoration: underline; }
.langues a[aria-current] { background: var(--nuit); color: #FFFFFF; }
.bandeau { margin: 0; padding: .55rem var(--marge); background: var(--surface); border-bottom: 1px solid var(--trait);
           color: var(--discret); font-size: .875rem; text-align: center; }

/* Cadre : colonne latérale à gauche, contenu à droite ; l'accueil est en pleine largeur. */
.cadre { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 2.5rem; max-width: var(--largeur);
         margin: 0 auto; padding: 2rem var(--marge) 1rem; }
main { min-width: 0; }
main:focus { outline: none; }
.fiche-largeur { max-width: 52rem; }
.plein { padding: 0; }
.dedans { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--marge); }

/* Colonne latérale. */
.lateral { font-size: .9375rem; }
.lateral h2 { font: 500 .8125rem/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--discret);
              margin: 1.5rem 0 .5rem; }
.lateral .recherche label { display: block; font: 500 .8125rem/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase;
                            color: var(--discret); margin-bottom: .4rem; }
.recherche .champ { display: flex; gap: .4rem; }
.lateral .recherche { margin-bottom: .75rem; }
input[type=search] { font: inherit; flex: 1 1 auto; min-width: 0; min-height: 44px; padding: .4rem .7rem; border: 1px solid var(--trait-fort);
                     border-radius: var(--r-champ); background: var(--surface); color: var(--encre); }
button, .bouton { font: 600 1rem/1.2 var(--texte); display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
                  padding: .55rem 1.1rem; border-radius: var(--r-champ); cursor: pointer; text-decoration: none; }
button { border: 1px solid var(--lien); background: var(--lien); color: #FFFFFF; }
button:hover { background: var(--lien-survol); border-color: var(--lien-survol); }
.lateral ul { list-style: none; margin: 0; padding: 0; }
.lateral li a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .45rem; min-height: 44px; padding: .5rem .6rem;
                border-radius: var(--r-champ); color: var(--encre); text-decoration: none; line-height: 1.35; }
.lateral li a:hover { background: var(--surface); color: var(--lien-survol); text-decoration: underline; }
.lateral li a[aria-current] { background: var(--surface); color: var(--lien); box-shadow: inset 3px 0 0 var(--lien); font-weight: 600; }
.lateral .id { font: 400 .8125rem/1.35 var(--mono); color: var(--discret); }
.lateral details { border-top: 1px solid var(--trait); }
.lateral details details { border-top: 0; margin-left: .5rem; }
.lateral summary { display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: .25rem .2rem; cursor: pointer;
                   font-weight: 600; color: var(--encre); list-style: none; }
.lateral details details summary { font-weight: 500; }
.lateral .tout a { color: var(--lien); }
.lateral-autre a { display: inline-flex; align-items: center; min-height: 44px; }

/* Chevron des repliés : seule animation du site (rotation), coupée si le lecteur réduit les mouvements. */
summary::-webkit-details-marker { display: none; }
summary::before { content: ""; flex: none; width: .5rem; height: .5rem; border-right: 2px solid currentColor;
                  border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin: 0 .25rem; }
details[open] > summary::before { transform: rotate(45deg); }

/* Compteurs et étiquettes. */
.compteur { display: inline-block; margin-left: auto; font-size: .8125rem; font-weight: 400; color: var(--discret); }
.etat { display: inline-block; padding: .05rem .6rem; border-radius: var(--r-pilule); border: 1px solid var(--trait-fort);
        font: 500 .75rem/1.5 var(--texte); white-space: nowrap; }
.etat.redigee { color: var(--redigee); background: var(--redigee-fond); border-color: var(--redigee-bord); }
.etat.ebauche { color: var(--ebauche); background: var(--ebauche-fond); border-color: var(--ebauche-bord); border-style: dashed; }
/* Étiquettes compactes (brief 197) : 28 px visibles, 13 px de texte ; la cible tactile de 44 px vient d'une zone
   transparente de 8 px au-dessus et au-dessous (::before), dans les 16 px laissés entre deux rangées. */
.etiquettes { list-style: none; display: flex; flex-wrap: wrap; gap: 16px .375rem; margin: 0 0 .25rem; padding: 8px 3px; }
.etiquettes li { flex: none; }
.etiquettes a { position: relative; display: inline-flex; align-items: center; gap: .35rem; min-height: 28px; padding: 0 .65rem;
                border: 1px solid var(--trait-fort); border-radius: var(--r-pilule); background: var(--surface); color: var(--encre);
                font-size: .8125rem; font-weight: 500; line-height: 1.2; white-space: nowrap; text-decoration: none; }
.etiquettes a::before { content: ""; position: absolute; inset: -8px -3px; }
.etiquettes .compteur { font-size: .75rem; }
.etiquettes a:hover { border-color: var(--lien); color: var(--lien-survol); }
.etiquettes a[aria-current] { background: var(--nuit); border-color: var(--nuit); color: #FFFFFF; }
.etiquettes a[aria-current] .compteur { color: var(--nuit-texte-2); }
.filtre { margin: .5rem 0 .75rem; }
.filtre-titre { font: 500 .75rem/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--discret); margin: .25rem 0 0; }

/* Fil d'Ariane, identifiant, méta. */
.fil ol { list-style: none; display: flex; flex-wrap: wrap; margin: 0 0 1.25rem; padding: 0; font-size: .875rem; }
.fil li { color: var(--discret); }
.fil li + li::before { content: "/"; margin: 0 .5rem; color: var(--trait-fort); }
.identifiant { margin: 0; font-size: .875rem; font-weight: 500; color: var(--discret); letter-spacing: .02em; }
.meta, .discret { color: var(--discret); }
.discret { font-size: .9375rem; }
.chapeau { font-size: 1.15rem; color: var(--encre-douce); }
.vide { color: var(--discret); font-style: italic; }

/* Bandeau d'état (brief 192) : l'état est écrit en toutes lettres ; la couleur et le pointillé ne font que le doubler. */
.etat-fiche { margin: 0 0 1.5rem; padding: .8rem 1rem; border: 1px solid var(--trait-fort); border-radius: var(--r-carte); }
.etat-fiche.redigee { color: var(--redigee); background: var(--redigee-fond); border-color: var(--redigee-bord); }
.etat-fiche.ebauche { color: var(--ebauche); background: var(--ebauche-fond); border: 1px dashed var(--ebauche-bord); }
.etat-fiche a { color: inherit; font-weight: 600; }

/* Fiche : objectif sur fond nuit, volets en cartes numérotées, tension connue, recettes en lignes. */
.objectif { margin: 0 0 2rem; padding: 1.5rem 1.75rem; border-radius: var(--r-objectif); background: var(--nuit); color: #FFFFFF; }
.objectif h2 { margin: 0 0 .6rem; font: 500 .8125rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.objectif p, .objectif li { color: #FFFFFF; font-size: 1.125rem; line-height: 1.55; }
.objectif p:last-child { margin-bottom: 0; }
.objectif a { color: var(--accent); }
.objectif :focus-visible { outline-color: var(--accent); }
.definition { color: var(--discret); margin-top: -.3rem; }
ol.volets { list-style: none; counter-reset: volet; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
            gap: .75rem; margin: 1rem 0 2rem; padding: 0; }
ol.volets li { counter-increment: volet; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--trait);
               border-radius: var(--r-carte); color: var(--encre-douce); }
ol.volets li::before { content: counter(volet, decimal-leading-zero); display: block; margin-bottom: .35rem;
                       font: 500 .875rem/1 var(--mono); color: var(--lien); }
.tension { margin: 2rem 0; padding: 1.1rem 1.4rem; background: var(--tension-fond); border: 1px solid var(--tension-bord);
           border-radius: var(--r-carte); }
.tension h2 { margin: 0 0 .4rem; font-size: 1.125rem; color: var(--tension-titre); }
.tension p, .tension li { color: var(--tension-texte); }
.tension p:last-child { margin-bottom: 0; }
.tension a { color: var(--tension-titre); }
ul.lignes { list-style: none; margin: .5rem 0 1rem; padding: 0; background: var(--surface); border: 1px solid var(--trait);
            border-radius: var(--r-carte); overflow: hidden; }
ul.lignes li + li { border-top: 1px solid var(--trait); }
ul.lignes a { display: flex; align-items: baseline; gap: .75rem; min-height: 44px; padding: .8rem 1.1rem; color: var(--encre);
              text-decoration: none; font-weight: 500; }
ul.lignes a::after { content: "→"; margin-left: auto; color: var(--lien); }
ul.lignes a:hover { background: var(--surface-ouverte); color: var(--lien-survol); text-decoration: underline; }
ul.lignes .id { font: 400 .8125rem/1.4 var(--mono); color: var(--discret); white-space: nowrap; }
ul.lignes li > span { display: flex; gap: .75rem; padding: .8rem 1.1rem; }

/* Brief 203 : pièces de preuve d'une recette, une ligne par pièce (type en gras, intitulé, périodicité dessous). */
ul.pieces { list-style: none; margin: .5rem 0 1rem; padding: 0; background: var(--surface); border: 1px solid var(--trait);
            border-radius: var(--r-carte); overflow: hidden; }
ul.pieces li { padding: .7rem 1.1rem; }
ul.pieces li + li { border-top: 1px solid var(--trait); }
ul.pieces .piece { font-weight: 600; }
ul.pieces .piece::after { content: " ·"; font-weight: 400; color: var(--discret); }
ul.pieces .meta { display: block; font-size: .875rem; }

/* Correspondances : un bloc blanc, une ligne par référentiel, dépliée au clic (details natifs, sans script). */
.total { margin: 0 0 .3rem; }
.referentiels { margin: 1rem 0; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-carte); overflow: hidden; }
.referentiels details + details { border-top: 1px solid var(--trait); }
.referentiels summary { display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: .6rem 1.1rem; cursor: pointer;
                        list-style: none; color: var(--encre); }
.referentiels summary:hover { background: var(--surface-ouverte); }
.referentiels .ref-nom { font-weight: 600; }
.referentiels .ref-n { margin-left: auto; padding-left: .75rem; font: 400 .8125rem/1.3 var(--mono); color: var(--discret); white-space: nowrap; }
.referentiels details[open] { background: var(--surface-ouverte); }
.referentiels details[open] > summary { border-bottom: 1px solid var(--trait); }
ul.exigences { list-style: none; margin: 0; padding: 0 1.1rem 0 2.6rem; }
ul.exigences li { padding: .65rem 0; }
ul.exigences li + li { border-top: 1px solid var(--trait); }
ul.exigences .ids { display: block; font-family: var(--mono); font-size: .8125rem; color: var(--discret); overflow-wrap: anywhere; }
ul.exigences .ids a { color: var(--lien); }
ul.exigences .intitule { color: var(--encre); overflow-wrap: anywhere; }
ul.exigences .source { margin-left: .4rem; white-space: nowrap; }
.ref-lien { margin: 0; padding: .4rem 1.1rem .9rem 2.6rem; font-size: .9375rem; }
/* Brief 204 : mention « en cours de relecture » au pied des correspondances d'une fiche non relue. */
.relecture { margin: .25rem 0 0; font-size: .9375rem; color: var(--discret); }

/* Cartes de geste (listes). L'ébauche a son fond et son contour pointillé, en plus de son étiquette. */
ul.cartes { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .75rem; margin: 1rem 0 2rem; padding: 0; }
.carte { position: relative; display: flex; flex-direction: column; gap: .4rem; padding: 1rem 1.1rem; background: var(--surface);
         border: 1px solid var(--trait); border-radius: var(--r-carte); }
.carte.ebauche { background: var(--ebauche-carte); border: 1px dashed var(--ebauche-bord); }
.carte:hover { border-color: var(--lien); }
.carte .haut { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.carte .id { font: 500 .8125rem/1.3 var(--mono); color: var(--discret); }
.carte h3, .carte .titre { margin: 0; font: 600 1.0625rem/1.35 var(--titres); letter-spacing: -.01em; }
/* Brief 204 : le titre d'une carte n'est plus coupé ; il affiche le titre court (72 caractères au plus) s'il existe,
   le titre entier reste dans l'attribut title du lien. */
.carte a { color: var(--encre); text-decoration: none; }
.carte a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-carte); }
.carte a:hover { color: var(--lien-survol); text-decoration: underline; }
.carte .chiffres { margin: auto 0 0; font: 400 .8125rem/1.4 var(--mono); color: var(--discret); }
/* Brief 208 : dernières fiches rédigées ou mises à jour de l'accueil, trois par ligne à l'écran large, type en
   texte à côté de l'identifiant, lien vers la liste entière dessous. */
ul.cartes.derniers { grid-template-columns: repeat(3, 1fr); }
.carte .type { font: 500 .8125rem/1.3 var(--mono); color: var(--discret); }
.tout-voir { margin: -1rem 0 2rem; }
/* Brief 212 : liens de téléchargement des tests, seuls dans leur paragraphe (pas l'exception « dans une phrase ») :
   cible d'au moins 24 px de haut (WCAG 2.5.8, axe target-size). */
p.telecharger a { display: inline-block; min-height: 1.5rem; line-height: 1.5rem; }
/* Listes en lignes pleine largeur, à hauteur fixe (brief 197) : gestes, recettes, référentiels. Identifiant en mono,
   titre coupé à deux lignes, état et compteur à droite ; un trait entre les lignes, l'ébauche garde son fond. Toute la
   ligne est cliquable (lien du titre étendu) ; la coupe porte sur le lien, dont le contour de focus reste entier. */
ul.rangs { list-style: none; margin: .75rem 0 2rem; padding: 0; background: var(--surface); border: 1px solid var(--trait);
           border-radius: var(--r-carte); overflow: hidden; }
.rang { position: relative; display: grid; grid-template-columns: 7.25rem minmax(0, 1fr) auto; align-items: center; gap: 0 1rem;
        height: 3.5rem; padding: 0 1.1rem; }
.rang.sans-id { grid-template-columns: minmax(0, 1fr) auto; }
.rang + .rang { border-top: 1px solid var(--trait); }
.rang.ebauche { background: var(--ebauche-carte); }
.rang:hover { background: var(--surface-ouverte); }
.rang .id { font: 500 .8125rem/1.3 var(--mono); color: var(--discret); white-space: nowrap; }
.rang .titre { font: 500 .9375rem/1.3 var(--texte); color: var(--encre); min-width: 0; }
/* Brief 204 : plus de coupe à deux lignes ; un geste affiche son titre court (72 caractères au plus), une recette ou
   un référentiel son titre entier, sur trois lignes au plus sur téléphone. */
.rang .titre a { color: var(--encre); text-decoration: none; }
.rang .titre a::after { content: ""; position: absolute; inset: 0; }
.rang .titre a:hover { color: var(--lien-survol); text-decoration: underline; }
.rang .droite { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; white-space: nowrap; }
.rang .compteur { margin: 0; font-size: .75rem; }
.rang .discret { font-size: .8125rem; }

/* Logo d'une organisation contributrice (brief 195) : même hauteur pour toutes, sur fond blanc, sans recoloration. */
.carte .logo { display: flex; align-items: center; margin: 0 0 .35rem; padding: .75rem; background: #FFFFFF;
               border: 1px solid var(--trait); border-radius: var(--r-champ); }
.carte .logo img { display: block; height: 48px; width: auto; max-width: 100%; object-fit: contain; }

/* Accueil : bandeau sur fond nuit, usages, entrées. */
.accueil-haut { background: var(--nuit); color: #FFFFFF; }
.accueil-haut .dedans { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: center;
                        padding-top: 4rem; padding-bottom: 4rem; }
.accueil-haut :focus-visible { outline-color: var(--accent); }
.sur-titre { margin: 0 0 1rem; font-size: .875rem; font-weight: 500; letter-spacing: .04em; color: var(--accent); }
.accueil-haut h1 { margin: 0 0 1rem; font-size: 3.25rem; line-height: 1.08; letter-spacing: -.025em; color: #FFFFFF; }
.accueil-haut .phrase { margin: 0 0 1.75rem; font-size: 1.15rem; color: var(--nuit-texte-2); max-width: 34rem; }
.boutons { display: flex; flex-wrap: wrap; gap: .75rem; }
.bouton.principal { background: var(--accent); color: var(--nuit); border: 1px solid var(--accent); }
.bouton.principal:hover { background: #FFC678; color: var(--nuit); }
.bouton.secondaire { background: transparent; color: #FFFFFF; border: 1px solid var(--nuit-texte-2); }
.bouton.secondaire:hover { border-color: #FFFFFF; color: #FFFFFF; text-decoration: underline; }
.schema-geste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 .75rem; margin: 0; }
.schema-geste .noeud { padding: .7rem .8rem; background: var(--nuit-carte); border: 1px solid var(--nuit-bord); border-radius: 10px;
                       color: #FFFFFF; font-size: .9375rem; line-height: 1.3; }
.schema-geste .noeud small { display: block; margin-bottom: .2rem; font: 400 .75rem/1.3 var(--mono); color: var(--nuit-texte); }
.schema-geste .traits { grid-column: 1 / -1; display: block; width: 100%; height: 56px; }
.schema-geste .centre { grid-column: 2; text-align: center; }
.schema-geste .geste { background: var(--accent); border-color: var(--accent); color: var(--nuit); font-weight: 600; }
.schema-geste .geste small { color: var(--nuit); }
.schema-geste .trait { grid-column: 2; justify-self: center; width: 2px; height: 28px; background: var(--accent); }
.accueil-corps { padding-top: 1rem; padding-bottom: 2rem; }
.accueil-corps h2 { font-size: 1.875rem; }
.usages { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0 0; padding: 0; }
.usages li { padding: 1.4rem 1.4rem 1.2rem; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-carte); }
.usages svg { display: block; margin-bottom: .9rem; }
.usages h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.usages p { margin: 0; }
.entrees { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0; padding: 0; }
.entrees li { position: relative; display: flex; flex-direction: column; gap: .4rem; padding: 1.3rem 1.4rem; background: var(--surface);
              border: 1px solid var(--trait); border-radius: var(--r-carte); }
.entrees li:hover { border-color: var(--lien); }
.entrees .sur-titre { margin: 0; font-size: .8125rem; color: var(--discret); }
.entrees h3 { margin: 0; font-size: 1.25rem; }
.entrees h3 a { color: var(--encre); text-decoration: none; }
.entrees h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-carte); }
.entrees p { margin: 0; }
.entrees .vers { margin-top: auto; padding-top: .4rem; color: var(--lien); font-weight: 600; }
.entrees .parcours { position: relative; z-index: 1; font-size: .9375rem; }
/* Page « Pour qui » (brief 198) : un profil par carte, étapes numérotées, exemple en encart. */
.profil { margin: 2rem 0; padding: 1.4rem 1.6rem; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-carte); }
.profil h2 { margin-top: 0; }
.profil .situation strong { color: var(--encre); }
ol.etapes { list-style: none; counter-reset: etape; margin: .5rem 0 1.25rem; padding: 0; }
ol.etapes li { counter-increment: etape; position: relative; margin: 0 0 .55rem; padding: .2rem 0 0 2.6rem; min-height: 1.9rem; }
ol.etapes li::before { content: counter(etape); position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--redigee-fond); border: 1px solid var(--redigee-bord); color: var(--redigee); font: 600 .9rem/1.8rem var(--titres); text-align: center; }
.exemple { margin: 1.25rem 0; padding: 1rem 1.25rem; background: var(--tension-fond); border: 1px solid var(--tension-bord); border-radius: var(--r-carte); }
.exemple .exemple-titre { margin: 0 0 .3rem; font: 600 .8125rem/1.4 var(--texte); letter-spacing: .04em; text-transform: uppercase; color: var(--tension-titre); }
.exemple p { color: var(--tension-texte); }
.exemple p:last-child, .profil .retire { margin-bottom: 0; }
.domaines { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .6rem; padding: 0; }
.domaines a { display: flex; align-items: center; gap: .5rem; min-height: 48px; padding: .6rem 1rem; background: var(--surface);
              border: 1px solid var(--trait); border-radius: 10px; color: var(--encre); font-weight: 500; text-decoration: none; }
.domaines a:hover { border-color: var(--lien); color: var(--lien-survol); text-decoration: underline; }
.schema { margin: 1.5rem 0; }
.schema img { display: block; max-width: 100%; height: auto; padding: 1rem; background: var(--surface); border: 1px solid var(--trait);
              border-radius: var(--r-carte); }
.schema figcaption { color: var(--discret); font-size: .9375rem; margin-top: .5rem; }

/* Textes et tableaux. */
.tableau { overflow-x: auto; margin: 1rem 0; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-carte); }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
caption { text-align: left; color: var(--discret); padding: .6rem 1rem; }
th, td { text-align: left; vertical-align: top; padding: .6rem 1rem; border-top: 1px solid var(--trait); color: var(--encre-douce); }
th { color: var(--encre); font-weight: 600; }
td.n { text-align: right; font-family: var(--mono); font-size: .875rem; }
blockquote { margin: 1rem 0; padding: .8rem 1.1rem; border-left: 3px solid var(--lien); background: var(--surface); border-radius: 0 var(--r-champ) var(--r-champ) 0; }
.avertissement { color: var(--ebauche); background: var(--ebauche-fond); padding: .7rem 1rem; border-radius: var(--r-champ); }
/* Contributeurs (brief 194) : organisations en cartes, personnes en lignes, rôle en texte discret. */
.carte.organisation .role, ul.personnes .role { color: var(--discret); }
.carte.organisation p { margin: 0; }
.carte.organisation .adresse { margin-top: auto; font: 400 .8125rem/1.4 var(--mono); color: var(--discret); }
ul.personnes li > span { flex-wrap: wrap; align-items: baseline; }
.contribuer { margin: 2.5rem 0 1rem; padding: 1.1rem 1.4rem; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-carte); }
.contribuer h2 { margin-top: 0; font-size: 1.25rem; }
.contribuer p:last-child { margin-bottom: 0; }
.liste { padding-left: 1.2rem; }
.liste li { margin: .35rem 0; }
.colonnes { columns: 2 22rem; }
.formulaire label { display: block; font-weight: 600; margin-bottom: .4rem; }
.formulaire .champ { display: flex; gap: .4rem; max-width: 36rem; }
#resultats ul { padding-left: 1.2rem; }
pre { overflow-x: auto; background: var(--surface); border: 1px solid var(--trait); padding: .8rem 1rem; border-radius: var(--r-champ); }

/* Pied : trois colonnes. */
.pied { margin-top: 3rem; background: var(--surface); border-top: 1px solid var(--trait); }
.pied .dedans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding-top: 2rem; padding-bottom: 2.5rem; }
.pied h2 { margin: 0 0 .5rem; font: 500 .8125rem/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--discret); }
.pied p { margin: 0 0 .6rem; font-size: .875rem; color: var(--encre-douce); }

/* Adaptatif : à largeur de téléphone, la navigation passe à la ligne, les grilles tombent en une colonne, la colonne
   latérale passe au-dessus du contenu. */
@media (max-width: 60rem) {
  ul.cartes.derniers { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
  .cadre { grid-template-columns: 1fr; gap: 1.5rem; }
  .accueil-haut .dedans { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .usages, .entrees, .pied .dedans { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  :root { --marge: 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .accueil-haut h1 { font-size: 2.25rem; }
  .entete-dedans { gap: 0 .5rem; }
  .marque { flex-basis: 100%; }
  .principale a { padding: 0 .45rem; }
  .schema-geste .noeud { padding: .5rem; font-size: .8125rem; }
  ul.exigences { padding-left: 1.1rem; }
  .ref-lien { padding-left: 1.1rem; }
  /* Brief 197 : chaque rangée d'étiquettes défile horizontalement ; la ligne passe sur deux étages de hauteur fixe. */
  .etiquettes.rangee { flex-wrap: nowrap; overflow-x: auto; }
  .rang { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "id droite" "titre titre"; align-content: center;
          gap: .25rem .75rem; height: 5.5rem; padding: 0 1rem; }
  .rang.sans-id { grid-template-columns: minmax(0, 1fr); grid-template-areas: "titre" "droite"; }
  .rang .id { grid-area: id; }
  .rang .titre { grid-area: titre; }
  .rang .droite { grid-area: droite; }
  .rang.sans-id .droite { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .lateral, .principale, .langues, .contribuer, .evitement { display: none; } .cadre { display: block; } }

/* Brief 200 : ligne « Comment citer » au pied d'une fiche. */
.citer { margin-top: 2rem; font-size: .9rem; color: var(--encre-douce); }

/* Brief 205 : code des tests ouverts. Le bloc défile seul (jamais la page, zoom et 320 px), se prend au clavier
   (tabindex posé par le générateur) ; le code garde ses retraits. */
pre { overflow-x: auto; max-width: 100%; margin: 1rem 0; padding: .75rem 1rem; background: var(--surface);
      border: 1px solid var(--trait); border-radius: var(--r-carte); }
pre code { white-space: pre; overflow-wrap: normal; }
ul.fichiers { padding-left: 1.25rem; }
ul.fichiers code { overflow-wrap: anywhere; }

/* Bloc « En bref » d'une recette (brief 220) : tableau à deux colonnes, portée en encart, gestes couverts repliés. */
.en-bref { margin: 1.5rem 0 2rem; }
.en-bref h2 { margin-top: 0; }
.en-bref th[scope="row"] { width: 9.5rem; }
.en-bref tbody tr:first-child > * { border-top: 0; }
.en-bref td .id, .en-bref th .id { font: 500 .8125rem/1.3 var(--mono); color: var(--discret); white-space: nowrap; }
.en-bref ul.supports { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.25rem; }
.en-bref ul.supports .non { color: var(--discret); }
.en-bref .portee { margin: 1rem 0; padding: .8rem 1.1rem; border-left: 3px solid var(--tension-bord); background: var(--tension-fond);
                   color: var(--tension-texte); border-radius: 0 var(--r-champ) var(--r-champ) 0; }
.en-bref .portee strong { color: var(--tension-titre); }
.en-bref details.couverts { margin: 1rem 0; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-carte); }
.en-bref details.couverts > summary { display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: .6rem 1.1rem;
                                      cursor: pointer; list-style: none; color: var(--encre); font-weight: 600; }
.en-bref details.couverts > summary:hover { background: var(--surface-ouverte); }
.en-bref details.couverts[open] > summary { border-bottom: 1px solid var(--trait); }
.en-bref details.couverts .tableau { margin: 0; border: 0; border-radius: 0 0 var(--r-carte) var(--r-carte); }
.en-bref details.couverts th[scope="row"] { width: auto; min-width: 12rem; font-weight: 500; }
.en-bref details.couverts thead th { border-top: 0; }
