/* ==========================================================================
   IRIS — composants du système de design (direction C, « Classeur »)

   Se charge APRÈS iris-jetons.css. N'emploie que des variables de ce fichier :
   aucune couleur, taille de texte ou ombre écrite en dur. Seule entrée admise
   dans un attribut `style` : une variable de DONNÉE (`--part` d'une jauge,
   `--echantillon` d'une pastille de couleur).

   Ordre des groupes :
     1. Base                     8. Menus
     2. Texte                    9. Dialogue et tiroir
     3. Mise en page            10. Tableaux et grille de campagne
     4. Coquille                11. Navigation (rail, onglets, frise)
     5. Surfaces                12. Signaux
     6. Boutons                 13. Composants documentaires
     7. Champs                  14. Animations
                                15. Planche de référence (à ne pas employer
                                    dans les écrans)

   Règles de matière (revue de finition du 01/12) :
   - une seule feuille ombrée par écran, celle du point focal (.feuille) ;
   - les zones secondaires sont posées sur la planche (.zone), sans fond ni
     ombre, un filet fort sous leur titre ;
   - tableaux et grille : fond blanc, bord d'un filet, sans ombre (.cadre) ;
   - pas de boîte grise dans une feuille (seul le bloc de code a un fond).

   Les classes `.est-survol`, `.est-actif` et `.est-focus` forcent un état pour
   la planche de référence ; les écrans ne les emploient pas.
   ========================================================================== */


/* ==========================================================================
   1. BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--section-trait) transparent;
}

body {
  margin: 0;
  font-family: var(--police);
  font-size: var(--t-14);
  line-height: var(--interligne);
  color: var(--encre);
  background: var(--planche);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--section);
}

::selection { background: var(--section-trait); color: var(--encre); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--section-trait) padding-box;
  border: 2px solid transparent;
  border-radius: var(--rayon-pastille);
}
::-webkit-scrollbar-thumb:hover { background-color: var(--filet-survol); }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, pre { margin: 0; }
ul, ol { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* Focus : un anneau de 2 px à la couleur de la section, au clavier seulement. */
:focus { outline: none; }
:focus-visible, .est-focus {
  outline: var(--trait-focus) solid var(--focus);
  outline-offset: 2px;
}

a {
  color: var(--lien);
  text-decoration: underline;
  text-decoration-thickness: var(--trait);
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: var(--trait-focus); }

/* Identifiants, empreintes, numéros de ticket, valeurs de code. */
code, kbd, samp, .mono {
  font-family: var(--police-mono);
  font-size: 0.92em;          /* compense le grand œil de JetBrains Mono */
  font-weight: var(--graisse-moyenne);
  letter-spacing: -0.01em;
}

/* Icônes : le jeu commun (icones.js, tracés Lucide), <svg class="ic"><use href="#i-…"/></svg>. */
.ic {
  width: var(--icone);
  height: var(--icone);
  flex: none;
  stroke-width: 2;
  vertical-align: -3px;
}
/* L'icône d'arrêt est pleine : vide, le carré se lit comme une case à cocher. */
#i-stop { fill: currentColor; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* ==========================================================================
   2. TEXTE
   Étroit en capitales pour les titres de bande, de section et les onglets ;
   largeur normale pour tout le reste.
   ========================================================================== */

.titre-page {
  font-stretch: var(--etroit);
  font-weight: var(--graisse-forte);
  font-size: var(--t-32);
  line-height: var(--interligne-titre);
  letter-spacing: var(--approche-capitales);
  text-transform: uppercase;
}
.titre-page code {
  margin-left: var(--e-2);
  font-size: var(--t-24);
  letter-spacing: 0;
  text-transform: none;
  color: var(--sur-section-2);
}

.titre-section {
  font-stretch: var(--etroit);
  font-weight: var(--graisse-forte);
  font-size: var(--t-16);
  line-height: var(--interligne-titre);
  letter-spacing: var(--approche-capitales);
  text-transform: uppercase;
}

.titre-focal {
  font-size: var(--t-24);
  font-weight: var(--graisse-forte);
  line-height: var(--interligne-titre);
  letter-spacing: -0.01em;
}

.titre-bloc {
  font-size: var(--t-16);
  font-weight: var(--graisse-forte);
  line-height: var(--interligne-titre);
}
.titre-bloc .discret { font-weight: var(--graisse-normale); }

.titre-dialogue {
  font-size: var(--t-20);
  font-weight: var(--graisse-forte);
  line-height: var(--interligne-titre);
}

/* Le nombre qui accompagne un titre : « À TRAITER 1 ». */
.compte {
  margin-left: var(--e-2);
  font-weight: var(--graisse-moyenne);
  color: var(--encre-2);
}

.chiffre-focal {
  font-size: var(--t-32);
  font-weight: var(--graisse-titre);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--encre);
}

/* Question posée à l'auteur (porte, décision à prendre). */
.question {
  max-width: 70ch;
  font-size: var(--t-16);
  font-weight: var(--graisse-moyenne);
  line-height: var(--interligne);
}

.texte-lecture { max-width: var(--mesure-lecture); }
.meta { font-size: var(--t-13); color: var(--encre-2); }
.legende { font-size: var(--t-12); color: var(--encre-2); }
.discret { color: var(--encre-2); }

/* Lien d'action, suivi d'une flèche : « Voir la course → ». */
.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: var(--e-1);
  font-size: var(--t-13);
  font-weight: var(--graisse-forte);
  white-space: nowrap;
}
.lien-fleche .ic { width: var(--icone-petite); height: var(--icone-petite); vertical-align: 0; }


/* ==========================================================================
   3. MISE EN PAGE
   Remplace les marges écrites en ligne (`style={{ marginTop: 12 }}`).
   ========================================================================== */

.pile { display: flex; flex-direction: column; gap: var(--e-4); }
.pile-serree { gap: var(--e-2); }
.pile-large { gap: var(--e-6); }
.pile-zones { gap: var(--e-10); }
/* Dans une pile, un bouton ou un lien d'action garde sa largeur. */
.pile > :is(.btn, .lien-fleche, .segmente) { align-self: flex-start; }

.ligne { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-2); }
.ligne-large { gap: var(--e-4); }
.ligne-haut { align-items: flex-start; }
.pousse { margin-left: auto; }

/* Point focal à gauche (2/3), zone secondaire à droite (1/3). */
.rangee {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--e-8);
  align-items: start;
}
.colonnes-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-8); align-items: start; }
.colonnes-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--e-6); align-items: start; }
:is(.colonnes-2, .colonnes-3) > * { margin-top: 0; }


/* ==========================================================================
   4. COQUILLE : barre du haut, fil d'Ariane, classeur (rail + page), bande
   ========================================================================== */

/* Barre du haut ---------------------------------------------------------- */
.barre {
  position: relative;
  z-index: var(--z-barre);
  display: flex;
  align-items: center;
  gap: var(--e-8);
  height: var(--hauteur-barre);
  padding: 0 var(--e-5);
  background: var(--feuille);
  border-bottom: var(--trait) solid var(--filet);
}
.marque-iris {
  display: flex;
  align-items: center;
  gap: var(--e-2);
  color: var(--encre);
  text-decoration: none;
}
.marque-iris img { width: 31px; height: 27px; }
.marque-iris span {
  font-stretch: var(--etroit);
  font-weight: var(--graisse-forte);
  font-size: var(--t-20);
  letter-spacing: var(--approche-capitales);
  text-transform: uppercase;
}
.marque-iris b { font-weight: var(--graisse-titre); }

.nav-principale { display: flex; align-items: center; gap: var(--e-1); }
.nav-principale a {
  display: flex;
  align-items: center;
  gap: var(--e-2);
  height: var(--hauteur-controle-compact);
  padding: 0 var(--e-3);
  color: var(--encre-2);
  font-weight: var(--graisse-moyenne);
  text-decoration: none;
  border-radius: var(--rayon);
  transition: background-color var(--duree-courte) var(--sortie-douce), color var(--duree-courte) var(--sortie-douce);
}
.nav-principale a:is(:hover, .est-survol) { color: var(--encre); background: var(--voile-survol); }
.nav-principale a[aria-current="page"] {
  color: var(--encre);
  font-weight: var(--graisse-forte);
  background: var(--voile-actif);
}

.barre-droite {
  display: flex;
  align-items: center;
  gap: var(--e-5);
  margin-left: auto;
  font-size: var(--t-13);
  color: var(--encre-2);
}
.barre-droite > span { display: inline-flex; align-items: center; gap: var(--e-2); }
.utilisateur { color: var(--encre); font-weight: var(--graisse-moyenne); }

/* Fil d'Ariane ----------------------------------------------------------- */
.fil {
  display: flex;
  align-items: center;
  min-height: var(--hauteur-fil);
  padding: 0 var(--e-5);
  font-size: var(--t-13);
  color: var(--encre-2);
}
.fil ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-1); list-style: none; }
.fil li { display: flex; align-items: center; gap: var(--e-1); }
.fil .ic { width: var(--icone-petite); height: var(--icone-petite); color: var(--encre-2); }
.fil a { color: var(--encre-2); text-decoration: none; }
.fil a:hover { color: var(--encre); text-decoration: underline; }
.fil [aria-current="page"] { color: var(--encre); font-weight: var(--graisse-forte); }

/* Classeur : rail d'onglets (ou sommaire) à gauche, page à droite. --------- */
.classeur {
  position: relative;
  overflow: clip;              /* coupe le « dos » de l'onglet courant */
  display: grid;
  grid-template-columns: var(--largeur-rail) minmax(0, 1fr);
  min-height: calc(100vh - var(--hauteur-barre) - var(--hauteur-fil));
}
/* Page hors projet, sans rail : une seule colonne, même largeur partout. */
.classeur:not(:has(> .rail, > .sommaire)) { grid-template-columns: minmax(0, 1fr); }
.page { min-width: 0; }

.rail { position: relative; padding-bottom: var(--e-10); }
.rail-tete { padding: var(--e-4) var(--e-5) var(--e-5); }
.rail-projet { font-size: var(--t-16); font-weight: var(--graisse-forte); line-height: var(--interligne-titre); }
.rail-route {
  display: block;
  margin-top: var(--e-1);
  font-family: var(--police-mono);
  font-size: var(--t-12);
  color: var(--encre-2);
}
.rail-env {
  display: flex;
  align-items: center;
  gap: var(--e-2);
  margin-top: var(--e-3);
  font-size: var(--t-13);
  color: var(--encre-2);
}

/* Bande de tête : la couleur de l'onglet courant, prolongée sur la page. ---- */
.bande {
  position: relative;
  padding: var(--e-5) var(--e-6) var(--e-5) calc(var(--dos) + var(--e-6));
  color: var(--sur-section);
  background: var(--section);
}
/* Congé entre le bas de la bande et le dos de l'onglet courant. */
.bande::after {
  content: "";
  position: absolute;
  left: var(--dos);
  top: 100%;
  width: var(--rayon-onglet);
  height: var(--rayon-onglet);
  background: radial-gradient(circle at 100% 100%, transparent calc(var(--rayon-onglet) - 0.5px), var(--section) var(--rayon-onglet));
}
.classeur:not(:has(> .rail)) .bande { padding-left: var(--e-6); }
.classeur:not(:has(> .rail)) .bande::after { display: none; }

.bande-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-3) var(--e-4); min-height: var(--hauteur-controle); }
.bande-actions { display: flex; align-items: center; gap: var(--e-2); margin-left: auto; }
.bande-actions .separateur { width: var(--trait); height: var(--e-6); margin: 0 var(--e-2); background: var(--contour-sur-section); }
.bande-texte { margin-top: var(--e-2); max-width: var(--mesure-lecture); color: var(--sur-section); }
.bande-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e-1) var(--e-4);
  margin-top: var(--e-2);
  font-size: var(--t-13);
  color: var(--sur-section-2);
}
.bande-meta > * { display: inline-flex; align-items: center; gap: var(--e-1); }
.bande-meta code { color: var(--sur-section); }
.bande a { color: var(--sur-section); }
.bande :focus-visible { outline-color: var(--focus-inverse); }
/* L'état de la page se pose dans une pastille blanche : les mots de verdict y gardent leur contraste. */
.bande .pastille { border-color: transparent; }
/* Le dépliant de la bande (contrôles de l'étape, fonctionnement du pilote). */
.bande .depliant > summary { color: var(--sur-section); text-decoration: underline; text-underline-offset: 3px; }
.bande .depliant > summary .chevron { color: var(--sur-section); }
.bande .depliant[open] { flex-basis: 100%; }
.bande .depliant-corps {
  margin-top: var(--e-3);
  padding: var(--e-3) 0 0;
  border-top: var(--trait) solid var(--contour-sur-section);
  color: var(--sur-section);
}

/* Contenu de la page, posé sur la planche. */
.planche-contenu {
  display: flex;
  flex-direction: column;
  gap: var(--e-10);
  padding: var(--e-6) var(--e-6) var(--e-16) calc(var(--dos) + var(--e-6));
}
.classeur:not(:has(> .rail)) .planche-contenu { padding-left: var(--e-6); }

/* Sommaire collant d'une page longue (documentation, guideline). ---------- */
.sommaire {
  position: sticky;
  top: 0;
  z-index: var(--z-collant);
  align-self: start;
  max-height: 100vh;
  overflow-y: auto;
  padding: var(--e-5) var(--e-4) var(--e-10) var(--e-5);
}
.sommaire .titre-section { padding: 0 var(--e-3) var(--e-2); color: var(--encre-2); }
.sommaire ol { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sommaire a {
  display: block;
  padding: var(--e-1) var(--e-3);
  color: var(--encre-2);
  font-weight: var(--graisse-moyenne);
  text-decoration: none;
  border-radius: var(--rayon);
  transition: background-color var(--duree-courte) var(--sortie-douce), color var(--duree-courte) var(--sortie-douce);
}
.sommaire a:hover { color: var(--encre); background: var(--voile-survol); }
.sommaire a[aria-current="true"] { color: var(--encre); font-weight: var(--graisse-forte); background: var(--voile-actif); }


/* ==========================================================================
   5. SURFACES : la planche (fond), UNE feuille focale, des zones, des cadres
   ========================================================================== */

/* La feuille focale : la seule surface ombrée de l'écran. Son bord haut de
   3 px à la couleur de section est une exception voulue au plancher
   « bordures de 1 px » : il la raccorde à l'onglet de phase posé au-dessus. */
.feuille {
  position: relative;
  min-width: 0;
  padding: var(--e-6) var(--e-8) var(--e-8);
  background: var(--feuille);
  border-top: var(--trait-focal) solid var(--section);
  border-radius: 0 0 var(--rayon) var(--rayon);
  box-shadow: var(--ombre-feuille);
}
.feuille > * + * { margin-top: var(--e-4); }
.feuille > .feuille-tete + .meta { margin-top: var(--e-1); }
.feuille-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--e-2) var(--e-4); }
.feuille-pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e-4);
  margin-top: var(--e-6);
  padding-top: var(--e-5);
  border-top: var(--trait) solid var(--filet);
}

/* Zone secondaire : posée sur la planche, ni fond ni ombre. */
.zone { min-width: 0; }
.zone-tete {
  display: flex;
  align-items: center;
  gap: var(--e-2);
  min-height: var(--hauteur-controle-compact);
  margin-bottom: var(--e-4);
  padding-bottom: var(--e-2);
  border-bottom: var(--trait) solid var(--filet-fort);
}

/* Cadre : surface blanche bordée d'un filet, sans ombre (tableaux, grille, listes de données). */
.cadre {
  min-width: 0;
  background: var(--feuille);
  border: var(--trait) solid var(--filet);
  border-radius: var(--rayon);
}
.cadre-garni { padding: var(--e-4) var(--e-5); }

/* Dépliants repliés en bas de page : une seule liste séparée par des filets. */
.liste-depliants { list-style: none; border-top: var(--trait) solid var(--filet-fort); }
.liste-depliants > li { border-bottom: var(--trait) solid var(--filet-fort); }
.liste-depliants .depliant > summary {
  width: 100%;
  min-height: var(--e-12);
  padding: 0 var(--e-1);
}
.liste-depliants .depliant > summary .meta { margin-left: auto; font-weight: var(--graisse-normale); }
.liste-depliants .depliant-corps { padding: 0 var(--e-1) var(--e-6) var(--e-6); }


/* ==========================================================================
   6. BOUTONS
   Principal (couleur de la section) · secondaire (contour) · discret ·
   destructif (contour écart ; plein seulement dans la boîte de confirmation).
   Deux hauteurs : 40 px, 32 px (compact, dans les tableaux).
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--e-2);
  height: var(--hauteur-controle);
  padding: 0 var(--e-4);
  font-family: var(--police);
  font-size: var(--t-14);
  font-weight: var(--graisse-forte);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  color: var(--encre);
  background: var(--feuille);
  border: var(--trait) solid var(--filet-fort);
  border-radius: var(--rayon);
  cursor: pointer;
  transition:
    background-color var(--duree-courte) var(--sortie-douce),
    border-color var(--duree-courte) var(--sortie-douce),
    color var(--duree-courte) var(--sortie-douce);
}
.btn .ic { vertical-align: 0; }

.btn-compact { height: var(--hauteur-controle-compact); padding: 0 var(--e-3); font-size: var(--t-13); }

/* Principal : un seul par zone, la couleur de la section. */
.btn-principal { color: var(--sur-action); background: var(--action); border-color: var(--action); }
.btn-principal:is(:hover, .est-survol) { background: var(--action-survol); border-color: var(--action-survol); }
.btn-principal:is(:active, .est-actif) { background: var(--action-appui); border-color: var(--action-appui); }

/* Secondaire : contour, à l'encre. */
.btn-secondaire { color: var(--encre); background: var(--feuille); border-color: var(--filet-fort); }
.btn-secondaire:is(:hover, .est-survol) { background: var(--feuille-2); border-color: var(--filet-survol); }
.btn-secondaire:is(:active, .est-actif) { background: var(--fond-appui); border-color: var(--filet-survol); }

/* Discret : sans contour, pour une action de second rang ou en bout de ligne. */
.btn-discret { color: var(--encre-2); background: transparent; border-color: transparent; padding: 0 var(--e-2); }
.btn-discret:is(:hover, .est-survol) { color: var(--encre); background: var(--voile-survol); }
.btn-discret:is(:active, .est-actif) { color: var(--encre); background: var(--voile-actif); }

/* Destructif : contour écart, isolé des autres actions. */
.btn-destructif { color: var(--ecart-mot); background: var(--feuille); border-color: var(--ecart-contour); }
.btn-destructif:is(:hover, .est-survol) { background: var(--ecart-fond); border-color: var(--ecart); }
.btn-destructif:is(:active, .est-actif) { background: var(--ecart-fond); border-color: var(--ecart-mot); }

/* Destructif plein : seulement le bouton qui confirme, dans la boîte de dialogue. */
.btn-destructif-plein { color: var(--sur-section); background: var(--ecart); border-color: var(--ecart); }
.btn-destructif-plein:is(:hover, .est-survol, :active, .est-actif) { background: var(--ecart-mot); border-color: var(--ecart-mot); }

/* Posé sur la bande de tête ou la tête du tiroir (fond de section). */
.btn-sur-section { color: var(--sur-section); background: transparent; border-color: var(--contour-sur-section); }
.btn-sur-section:is(:hover, .est-survol) { background: var(--voile-sur-section); border-color: var(--sur-section); }
.btn-sur-section:is(:active, .est-actif) { background: var(--voile-sur-section); border-color: var(--sur-section); }
.btn-sur-section:is(:focus-visible, .est-focus) { outline-color: var(--focus-inverse); }

/* Icône seule : carré ; le libellé est porté par aria-label. */
.btn-icone { width: var(--hauteur-controle); padding: 0; }
.btn-icone.btn-compact { width: var(--hauteur-controle-compact); }

/* Désactivé. */
.btn:disabled,
.btn[aria-disabled="true"] {
  color: var(--desactive-texte);
  background: var(--desactive-fond);
  border-color: var(--desactive-contour);
  cursor: not-allowed;
}
.btn-discret:disabled,
.btn-discret[aria-disabled="true"] { background: transparent; border-color: transparent; }
.btn-sur-section:disabled,
.btn-sur-section[aria-disabled="true"] { color: var(--contour-sur-section); background: transparent; border-color: var(--trait-sur-section); }

/* Chargement : le libellé dit ce qui se fait (« Vérification… »), un trait
   défile au pied du bouton ; pas de toupie. */
.btn[aria-busy="true"] { cursor: progress; overflow: hidden; }
.btn[aria-busy="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40%;
  height: var(--trait-focus);
  background: currentColor;
  animation: iris-balayage 1200ms linear infinite;
}

/* Le chevron d'un bouton de menu tourne quand le menu est ouvert. */
.btn .chevron { transition: transform var(--duree) var(--sortie-douce); }
.btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }


/* ==========================================================================
   7. CHAMPS
   Libellé visible au-dessus, aide et erreur sous le champ.
   ========================================================================== */

.champ { display: grid; gap: var(--e-2); align-content: start; min-width: 0; }
.champ-libelle { font-size: var(--t-13); font-weight: var(--graisse-forte); color: var(--encre); }
.champ-libelle .facultatif { font-weight: var(--graisse-normale); color: var(--encre-2); }
.champ-aide { font-size: var(--t-13); color: var(--encre-2); }
.champ-erreur {
  display: flex;
  align-items: flex-start;
  gap: var(--e-2);
  font-size: var(--t-13);
  font-weight: var(--graisse-moyenne);
  color: var(--ecart-mot);
}
.champ-erreur .ic { margin-top: 1px; color: var(--ecart); }

.saisie {
  width: 100%;
  height: var(--hauteur-controle);
  padding: 0 var(--e-3);
  font-size: var(--t-14);
  color: var(--encre);
  background: var(--feuille);
  border: var(--trait) solid var(--contour-champ);
  border-radius: var(--rayon);
  transition: border-color var(--duree-courte) var(--sortie-douce);
}
.saisie::placeholder { color: var(--encre-3); }
.saisie:is(:hover, .est-survol):not(:disabled, [readonly]) { border-color: var(--contour-champ-survol); }
.saisie:is(:focus-visible, .est-focus) {
  outline: var(--trait-focus) solid var(--focus);
  outline-offset: -1px;
  border-color: var(--focus);
}
.saisie[aria-invalid="true"] { border-color: var(--ecart); }
.saisie:disabled {
  color: var(--desactive-texte);
  background: var(--desactive-fond);
  border-color: var(--desactive-contour);
  cursor: not-allowed;
}
/* Lecture seule (pendant un pilotage) : la valeur reste lisible et copiable. */
.saisie[readonly] { background: var(--feuille-2); border-color: var(--filet-fort); }

textarea.saisie {
  height: auto;
  min-height: calc(var(--hauteur-controle) * 2.4);
  padding: var(--e-2) var(--e-3);
  line-height: var(--interligne);
  resize: vertical;
}

/* Liste native : chevron dessiné par deux dégradés (aucune image, aucune couleur en dur). */
select.saisie {
  appearance: none;
  padding-right: var(--e-8);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--encre-2) 50%),
    linear-gradient(135deg, var(--encre-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.saisie-nombre { width: 128px; text-align: right; }
.saisie.btn-compact,
.saisie-compacte { height: var(--hauteur-controle-compact); font-size: var(--t-13); }

/* Champ et unité côte à côte : « 200 courses ». */
.champ-unite { display: flex; align-items: center; gap: var(--e-2); font-size: var(--t-13); color: var(--encre-2); }

/* Case à cocher, bouton radio : le libellé est cliquable. */
.choix {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--e-2);
  font-size: var(--t-14);
  line-height: var(--interligne);
  cursor: pointer;
}
.choix input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--action);
  cursor: pointer;
}
.choix .champ-aide { display: block; }
.choix:has(input:disabled) { color: var(--desactive-texte); cursor: not-allowed; }
.choix:has(input:disabled) input { cursor: not-allowed; }

.groupe-choix { display: grid; gap: var(--e-2); margin: 0; padding: 0; border: 0; min-width: 0; }
.groupe-choix > legend { margin-bottom: var(--e-2); padding: 0; font-size: var(--t-13); font-weight: var(--graisse-forte); }

/* Groupe segmenté (filtre) : de vrais boutons radio. */
.segmente {
  display: inline-flex;
  justify-self: start;
  margin: 0;
  padding: calc((var(--hauteur-controle) - var(--hauteur-controle-compact)) / 2 - var(--trait));
  background: var(--feuille);
  border: var(--trait) solid var(--filet-fort);
  border-radius: var(--rayon);
}
.segmente > legend {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.segmente label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--e-1);
  height: var(--hauteur-controle-compact);
  padding: 0 var(--e-3);
  font-size: var(--t-13);
  font-weight: var(--graisse-forte);
  color: var(--encre-2);
  border-radius: var(--rayon);
  cursor: pointer;
  transition: background-color var(--duree-courte) var(--sortie-douce), color var(--duree-courte) var(--sortie-douce);
}
.segmente label:is(:hover, .est-survol) { color: var(--encre); background: var(--feuille-2); }
.segmente input { position: absolute; opacity: 0; pointer-events: none; }
.segmente label:has(input:checked) { color: var(--sur-action); background: var(--action); }
.segmente label:has(input:focus-visible) { outline: var(--trait-focus) solid var(--focus); outline-offset: 2px; }
.segmente label .nb { font-weight: var(--graisse-moyenne); }


/* ==========================================================================
   8. MENUS
   Une liste `popover` ancrée à son bouton (`popovertarget`) : la fermeture à
   Échap et au clic ailleurs est celle du navigateur ; les flèches, Début et
   Fin sont à câbler (voir la planche). Sans `popover`, la même liste
   s'affiche en place (aperçu statique).
   ========================================================================== */

.menu-liste {
  inset: auto;
  margin: var(--e-1) 0 0;
  position-area: block-end span-inline-end;
  position-try-fallbacks: flip-block, flip-inline;
  min-width: 240px;
  max-width: 360px;
  padding: var(--e-1);
  color: var(--encre);
  background: var(--feuille);
  border: var(--trait) solid var(--filet-fort);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-bulle);
}
.menu-liste.vers-gauche { position-area: block-end span-inline-start; }
.menu-liste:popover-open { animation: iris-apparition var(--duree) var(--sortie-douce); }

.menu-item {
  display: flex;
  align-items: center;
  gap: var(--e-2);
  width: 100%;
  padding: var(--e-2) var(--e-3);
  font-size: var(--t-14);
  line-height: var(--interligne);
  text-align: left;
  text-decoration: none;
  color: var(--encre);
  background: transparent;
  border: 0;
  border-radius: var(--rayon);
  cursor: pointer;
}
.menu-item .ic { color: var(--encre-2); }
.menu-item:is(:hover, .est-survol) { background: var(--voile-survol); }
.menu-item:is(:focus-visible, .est-focus) { background: var(--voile-survol); outline: var(--trait-focus) solid var(--focus); outline-offset: -2px; }
.menu-item-texte { display: grid; }
.menu-item-texte small { font-size: var(--t-12); color: var(--encre-2); }

/* Action destructive : en dernier, après un séparateur. */
.menu-item-destructif, .menu-item-destructif .ic { color: var(--ecart-mot); }
.menu-item-destructif:is(:hover, .est-survol) { background: var(--ecart-fond); }

.menu-item[aria-disabled="true"] { color: var(--desactive-texte); cursor: not-allowed; }
.menu-item[aria-disabled="true"]:hover { background: transparent; }

/* Menu de choix : la coche marque l'option retenue. */
.menu-item .coche { visibility: hidden; color: var(--action); }
.menu-item[aria-checked="true"] .coche { visibility: visible; }
.menu-item[aria-checked="true"] { font-weight: var(--graisse-forte); }

.menu-separateur { height: var(--trait); margin: var(--e-1) calc(-1 * var(--e-1)); background: var(--filet); }
.menu-groupe-titre { padding: var(--e-2) var(--e-3) var(--e-1); font-size: var(--t-12); font-weight: var(--graisse-forte); color: var(--encre-2); }


/* ==========================================================================
   9. DIALOGUE ET TIROIR
   Une modale seulement pour une action destructive ou irréversible. Le détail
   d'un élément s'ouvre dans le tiroir, qui n'est pas modal.
   ========================================================================== */

.dialogue {
  display: block;
  width: min(520px, calc(100vw - 2 * var(--e-6)));
  max-height: calc(100vh - 2 * var(--e-6));
  padding: 0;
  color: var(--encre);
  background: var(--feuille);
  border: 0;
  border-radius: var(--rayon);
  box-shadow: var(--ombre-surcouche);
}
dialog.dialogue:not([open]) { display: none; }
dialog.dialogue[open] { animation: iris-apparition var(--duree-longue) var(--sortie-douce); }
.dialogue::backdrop { background: var(--fond-surcouche); }
.dialogue-corps { padding: var(--e-6); }
.dialogue-chapeau { margin-top: var(--e-2); color: var(--encre-2); }

/* Ce qui sera perdu, ce qui reste. */
.perdu-reste { display: grid; gap: var(--e-4); margin-top: var(--e-5); }
.perdu-reste dt { display: flex; align-items: center; gap: var(--e-2); font-weight: var(--graisse-forte); }
.perdu-reste dd { margin-top: 2px; padding-left: calc(var(--icone) + var(--e-2)); color: var(--encre-2); }
.perdu-reste .perdu dt .ic { color: var(--ecart); }
.perdu-reste .reste dt .ic { color: var(--conforme); }

.dialogue-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--e-2);
  margin-top: var(--e-6);
  padding-top: var(--e-4);
  border-top: var(--trait) solid var(--filet);
}

/* Tiroir latéral ----------------------------------------------------------- */
.tiroir {
  position: fixed;
  z-index: var(--z-tiroir);
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--largeur-tiroir);
  display: flex;
  flex-direction: column;
  background: var(--feuille);
  box-shadow: var(--ombre-surcouche);
}
.tiroir:not([hidden]) { animation: iris-entree-droite var(--duree-longue) var(--sortie-douce); }
.tiroir-tete {
  display: flex;
  align-items: flex-start;
  gap: var(--e-3);
  padding: var(--e-4) var(--e-4) var(--e-4) var(--e-6);
  color: var(--sur-section);
  background: var(--section);
}
.tiroir-tete h2 { font-family: var(--police-mono); font-size: var(--t-16); font-weight: var(--graisse-forte); line-height: var(--interligne); }
.tiroir-tete p { margin-top: 2px; font-size: var(--t-13); color: var(--sur-section-2); }
.tiroir-tete .btn { margin-left: auto; color: var(--sur-section); }
.tiroir-tete .btn:is(:hover, .est-survol) { background: var(--voile-sur-section); }
.tiroir-tete :focus-visible { outline-color: var(--focus-inverse); }
.tiroir-corps {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--e-8);
  overflow-y: auto;
  padding: var(--e-5) var(--e-6) var(--e-8);
}
.tiroir-corps .zone-tete { margin-bottom: var(--e-3); }
.tiroir-pied {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-2);
  padding: var(--e-3) var(--e-6);
  background: var(--feuille);
  border-top: var(--trait) solid var(--filet);
}


/* ==========================================================================
   10. TABLEAUX ET GRILLE DE CAMPAGNE
   Fond blanc et bord d'un filet (dans un .cadre), sans ombre. Nombres à
   droite, en chiffres tabulaires.
   ========================================================================== */

.tableau { width: 100%; border-collapse: collapse; font-size: var(--t-13); }
.tableau th {
  padding: var(--e-3) var(--e-3) var(--e-2);
  text-align: left;
  vertical-align: bottom;
  white-space: nowrap;
  font-size: var(--t-12);
  font-weight: var(--graisse-forte);
  color: var(--encre-2);
  border-bottom: var(--trait) solid var(--filet-fort);
}
.tableau td {
  padding: var(--e-3);
  vertical-align: top;
  border-bottom: var(--trait) solid var(--filet);
}
.tableau tbody tr:last-child td { border-bottom: 0; }
.tableau :is(th, td):first-child { padding-left: var(--e-4); }
.tableau :is(th, td):last-child { padding-right: var(--e-4); }
.tableau .num { text-align: right; white-space: nowrap; }
.tableau tbody th { font-size: var(--t-13); color: var(--encre); text-align: left; vertical-align: middle; border-bottom-color: var(--filet); }

/* Densité compacte : lignes de 36 px, boutons de 32 px. */
.tableau-compact td { padding-top: var(--e-1); padding-bottom: var(--e-1); vertical-align: middle; }

/* Tri : un bouton dans l'en-tête, l'état dans aria-sort. */
.tableau th[aria-sort] { padding: 0; }
.tri {
  display: inline-flex;
  align-items: center;
  gap: var(--e-1);
  width: 100%;
  padding: var(--e-3) var(--e-3) var(--e-2);
  font: inherit;
  color: inherit;
  text-align: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.tableau th:first-child .tri { padding-left: var(--e-4); }
.tableau th.num .tri { justify-content: flex-end; }
.tri .ic { width: var(--icone-petite); height: var(--icone-petite); opacity: 0; transition: opacity var(--duree-courte) var(--sortie-douce), transform var(--duree) var(--sortie-douce); }
.tri:is(:hover, .est-survol) { color: var(--encre); }
.tri:is(:hover, .est-survol) .ic { opacity: 1; }
.tableau th:is([aria-sort="ascending"], [aria-sort="descending"]) .tri { color: var(--encre); }
.tableau th:is([aria-sort="ascending"], [aria-sort="descending"]) .tri .ic { opacity: 1; }
.tableau th[aria-sort="ascending"] .tri .ic { transform: rotate(180deg); }

/* Ligne en écart, ligne choisie (la sélection l'emporte : elle est déclarée après). */
.tableau tr.ligne-ecart > :is(td, th) { background: var(--ecart-fond); }
.tableau tr:is([aria-selected="true"], .ligne-choisie) > :is(td, th) { background: var(--section-pale); }

/* Ligne repliable : un bouton chevron dans la première cellule, la ligne de détail suit. */
.deplier .ic { transition: transform var(--duree) var(--sortie-douce); }
.deplier[aria-expanded="true"] .ic { transform: rotate(90deg); }
.tableau tr:has(.deplier[aria-expanded="true"]) > td { border-bottom-color: transparent; }
/* Le bouton de dépli ne grandit pas la ligne. */
.tableau .deplier { width: var(--e-6); height: var(--e-6); margin: calc(-1 * var(--e-1)) 0 calc(-1 * var(--e-1)) calc(-1 * var(--e-1)); }
.tableau tr.ligne-detail > td { padding-top: 0; padding-left: calc(var(--e-4) + var(--e-6) + var(--e-1)); color: var(--encre-2); }
.tableau tr.ligne-detail b { color: var(--encre); font-weight: var(--graisse-forte); }

/* Grille de campagne -------------------------------------------------------- */
.grille { table-layout: fixed; }
.grille .c-cas { width: 148px; }
.grille .c-niveau { width: 128px; }
.grille .c-profil { width: 128px; }
.grille .c-passage { width: 76px; }
.grille .c-var { width: 96px; }
.grille td { padding-top: var(--e-1); padding-bottom: var(--e-1); vertical-align: middle; }
.grille .col-passage { padding-left: 0; padding-right: var(--e-2); }
.grille tr.premier-du-cas > td { border-top: var(--trait) solid var(--filet-fort); }
.grille tbody tr:first-child > td { border-top: 0; }
.grille tr.repete .masquable { visibility: hidden; }
/* Filtre « Hors attendu » : seules les lignes en écart restent, avec leur cas. */
.grille[data-filtre="ecart"] tbody tr:not(.ligne-ecart) { display: none; }
.grille[data-filtre="ecart"] .masquable { visibility: visible; }
.grille[data-filtre="ecart"] tr.ligne-ecart > td { border-top: 0; }

.case {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 64px;
  height: var(--hauteur-controle-compact);
  padding: 0;
  font-family: var(--police-mono);
  font-size: var(--t-13);
  font-weight: var(--graisse-moyenne);
  color: var(--encre);
  background: var(--feuille);
  border: var(--trait) solid var(--filet-fort);
  border-radius: var(--rayon);
  cursor: pointer;
  transition: background-color var(--duree-courte) var(--sortie-douce), border-color var(--duree-courte) var(--sortie-douce);
}
.case .ic { width: var(--icone-petite); height: var(--icone-petite); stroke-width: 2.4; vertical-align: 0; }
.case:is(:hover, .est-survol) { border-color: var(--section); background: var(--section-pale); }
/* Hors attendu : contour, lettre et croix à la couleur d'écart. */
.case[data-verdict="ecart"] { color: var(--ecart-mot); border-color: var(--ecart); font-weight: var(--graisse-forte); }
/* Instable : l'issue change d'un passage à l'autre. */
.case[data-verdict="a-decider"] { color: var(--a-decider-mot); border-color: var(--a-decider); font-weight: var(--graisse-forte); }
/* Case choisie : pleine, à la couleur de la section, avec un ergot ; elle garde sa croix. */
.case[aria-pressed="true"] { position: relative; color: var(--sur-action); background: var(--action); border-color: var(--action); }
.case[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: var(--e-3);
  height: 6px;
  margin-left: calc(-1 * var(--e-3) / 2);
  background: var(--action);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}


/* ==========================================================================
   11. NAVIGATION : rail d'onglets, graduation, onglets horizontaux, frise
   ========================================================================== */

/* Rail d'onglets. Chaque onglet porte son `data-section` : les variables de
   section s'y recalculent (fond, pavé du numéro, icône « en cours »). */
.onglets { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.onglets > li.debut-section { margin-top: var(--e-3); }

.onglet {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  column-gap: var(--e-3);
  row-gap: var(--e-1);
  align-items: center;
  margin-right: var(--e-3);
  padding: var(--e-3) var(--e-3) var(--e-3) var(--e-5);
  color: var(--encre);
  text-decoration: none;
  background: var(--section-onglet);
  border-radius: 0 var(--rayon-onglet) var(--rayon-onglet) 0;
  transition: background-color var(--duree-courte) var(--sortie-douce);
}
.onglet:is(:hover, .est-survol) { background: var(--section-onglet-survol); }
.onglet:focus-visible { outline-offset: -2px; }

/* Pavé du numéro : plein, couleur de la section, chiffre blanc. La section se
   lit ainsi hors de l'onglet courant, sans liseré latéral. */
.onglet-num {
  grid-row: 1 / span 3;
  align-self: start;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-stretch: var(--etroit);
  font-weight: var(--graisse-forte);
  font-size: var(--t-16);
  line-height: 1;
  color: var(--sur-section);
  background: var(--section);
  border-radius: var(--rayon);
}
.onglet-titre {
  grid-column: 2 / 4;
  display: flex;
  align-items: center;
  gap: var(--e-2);
  font-stretch: var(--etroit);
  font-weight: var(--graisse-forte);
  font-size: var(--t-16);
  line-height: var(--interligne-titre);
  letter-spacing: var(--approche-capitales);
  text-transform: uppercase;
}
.onglet-titre .verrou { margin-left: auto; color: var(--encre-2); }
.onglet-etat { grid-column: 2; min-width: 0; }
.onglet-etat .marque { font-size: var(--t-12); }
.onglet-etat .marque .ic { width: var(--icone-petite); height: var(--icone-petite); }
.onglet-compte { grid-column: 3; font-size: var(--t-12); color: var(--encre-2); text-align: right; white-space: nowrap; }
.onglet .graduation { grid-column: 2 / 4; }

/* L'onglet courant : plein, il dépasse du rail et remonte par le « dos »
   jusqu'à la bande de tête, de la même couleur. */
.onglet[aria-current="page"] {
  z-index: var(--z-onglet);
  margin-right: calc(-1 * var(--dos));
  padding-right: calc(var(--dos) + var(--e-3));
  color: var(--sur-section);
  background: var(--section);
  border-radius: 0 0 var(--rayon-onglet) 0;
}
.onglet[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  width: var(--dos);
  height: 200vh;               /* coupé par .classeur (overflow: clip) */
  background: var(--section);
}
.onglet[aria-current="page"]::before {
  content: "";
  position: absolute;
  right: var(--dos);
  bottom: 100%;
  width: var(--rayon-onglet);
  height: var(--rayon-onglet);
  background: radial-gradient(circle at 0 0, transparent calc(var(--rayon-onglet) - 0.5px), var(--section) var(--rayon-onglet));
}
.onglet[aria-current="page"] :is(.onglet-compte, .marque, .marque .ic, .verrou) { color: var(--sur-section); }
.onglet[aria-current="page"] .meta { color: var(--sur-section-2); }
.onglet[aria-current="page"] .onglet-num { color: var(--section); background: var(--sur-section); }
.onglet[aria-current="page"] .graduation i { background: var(--trait-sur-section); }
.onglet[aria-current="page"] .graduation i.plein { background: var(--sur-section); }
.onglet[aria-current="page"]:focus-visible { outline-color: var(--focus-sur-onglet); outline-offset: 2px; }

/* Graduation : un trait par contrôle (ou par course), plein quand il est validé. */
.graduation { display: flex; flex-wrap: wrap; gap: 3px; height: 8px; }
.graduation i { width: 3px; height: 100%; background: var(--section-trait); }
.graduation i.plein { background: var(--section); }

/* Grande graduation : les courses d'une campagne, groupées par cellule. */
.graduation-grande { display: flex; flex-wrap: wrap; gap: var(--e-2) 10px; }
.graduation-grande .groupe { display: flex; gap: 3px; }
.graduation-grande i { width: 10px; height: 28px; background: var(--section-trait); }
.graduation-grande i.plein { background: var(--section); }
.graduation-grande i.suivante { background: var(--section-pale); box-shadow: inset 0 0 0 var(--trait) var(--section); }

/* Onglets horizontaux (role=tablist) : posés sur la planche, au-dessus d'un
   cadre ; l'onglet choisi est blanc et se fond dans le cadre. Dans une
   feuille, employer le groupe segmenté. */
.onglets-h { display: flex; gap: var(--e-1); padding-left: var(--e-2); }
.onglet-h {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--e-2);
  height: var(--hauteur-controle);
  padding: 0 var(--e-4);
  font-stretch: var(--etroit);
  font-weight: var(--graisse-forte);
  font-size: var(--t-14);
  letter-spacing: var(--approche-capitales);
  text-transform: uppercase;
  color: var(--encre-2);
  background: var(--section-onglet);
  border: var(--trait) solid transparent;
  border-bottom: 0;
  border-radius: var(--rayon) var(--rayon) 0 0;
  cursor: pointer;
  transition: background-color var(--duree-courte) var(--sortie-douce), color var(--duree-courte) var(--sortie-douce);
}
.onglet-h:is(:hover, .est-survol) { color: var(--encre); background: var(--section-onglet-survol); }
.onglet-h[aria-selected="true"] {
  z-index: 1;
  margin-bottom: calc(-1 * var(--trait));
  color: var(--encre);
  background: var(--feuille);
  border-color: var(--filet);
}
.onglet-h:focus-visible { outline-offset: -2px; }
.onglet-h .nb { font-stretch: var(--normal); font-weight: var(--graisse-moyenne); letter-spacing: 0; }
.onglet-panneau { padding: var(--e-5); background: var(--feuille); border: var(--trait) solid var(--filet); border-radius: 0 var(--rayon) var(--rayon) var(--rayon); }

/* Frise des phases : l'ordre des phases du pilote ; une porte est une
   décision humaine. La phase courante est un onglet plein, raccordé à la
   feuille focale posée dessous (son bord haut de 3 px). */
.frise { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); list-style: none; }
.phase { position: relative; min-width: 0; padding: var(--e-3) var(--e-3) var(--e-3); }
.phase + .phase::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--e-3);
  bottom: var(--e-3);
  width: var(--trait);
  background: var(--filet-fort);
}
.phase[aria-current="step"]::before,
.phase[aria-current="step"] + .phase::before { display: none; }
.phase-tete { display: flex; align-items: center; gap: var(--e-2); font-weight: var(--graisse-forte); line-height: var(--interligne-titre); }
.phase-tete .etiquette { margin-left: auto; }
.phase-res { display: block; margin-top: 2px; padding-left: calc(var(--icone) + var(--e-2)); font-size: var(--t-12); color: var(--encre-2); }
.phase[data-etat="fait"] .phase-tete .ic { color: var(--conforme); }
.phase[data-etat="a-venir"] .phase-tete { font-weight: var(--graisse-moyenne); color: var(--encre-2); }
.phase[data-etat="a-venir"] .phase-tete .ic { color: var(--encre-2); }
.phase[aria-current="step"] { color: var(--sur-section); background: var(--section); border-radius: var(--rayon) var(--rayon) 0 0; }
.phase[aria-current="step"] .phase-tete .ic { color: var(--sur-section); }
.phase[aria-current="step"] .phase-res { color: var(--sur-section-2); }
.phase[aria-current="step"] .etiquette { color: var(--section); border-color: var(--sur-section); }
/* Sous la frise, la feuille focale prend la suite sans marge. */
.frise + .feuille { border-top-left-radius: 0; }


/* ==========================================================================
   12. SIGNAUX
   ========================================================================== */

/* Verdict : posé par `data-verdict`, lu par la marque, la pastille, l'avis,
   la case de grille, la liste de contrôles. */
[data-verdict="conforme"] { --v-marque: var(--conforme); --v-mot: var(--conforme-mot); --v-fond: var(--conforme-fond); --v-contour: var(--conforme-contour); }
[data-verdict="ecart"] { --v-marque: var(--ecart); --v-mot: var(--ecart-mot); --v-fond: var(--ecart-fond); --v-contour: var(--ecart-contour); }
[data-verdict="a-decider"] { --v-marque: var(--a-decider); --v-mot: var(--a-decider-mot); --v-fond: var(--a-decider-fond); --v-contour: var(--a-decider-contour); }
[data-verdict="en-cours"] { --v-marque: var(--en-cours); --v-mot: var(--en-cours-mot); --v-fond: var(--en-cours-fond); --v-contour: var(--en-cours-contour); }
[data-verdict="neutre"] { --v-marque: var(--neutre); --v-mot: var(--neutre-mot); --v-fond: var(--neutre-fond); --v-contour: var(--neutre-contour); }

/* Marque : icône + mot, toujours. */
.marque {
  display: inline-flex;
  align-items: center;
  gap: var(--e-1);
  font-size: var(--t-13);
  font-weight: var(--graisse-forte);
  line-height: var(--interligne-titre);
  white-space: nowrap;
  vertical-align: middle;
  color: var(--v-mot, var(--encre-2));
}
.marque .ic { stroke-width: 2.2; color: var(--v-marque, var(--encre-2)); vertical-align: 0; }
.marque b { font-weight: var(--graisse-titre); }

/* Pastille : la marque dans un contour fin, sur fond blanc (jamais un aplat). */
.pastille {
  display: inline-flex;
  align-items: center;
  gap: var(--e-1);
  height: var(--e-6);
  padding: 0 var(--e-3) 0 var(--e-2);
  vertical-align: middle;
  font-size: var(--t-13);
  font-weight: var(--graisse-forte);
  white-space: nowrap;
  color: var(--v-mot, var(--encre-2));
  background: var(--feuille);
  border: var(--trait) solid var(--v-contour, var(--filet-fort));
  border-radius: var(--rayon-pastille);
}
.pastille .ic { stroke-width: 2.2; color: var(--v-marque, var(--encre-2)); vertical-align: 0; }

/* Proposition du modèle : contour pointillé, étincelle, à l'encre. Un fait
   calculé par le code n'a pas de marque de nature. */
:is(.pastille, .marque)[data-nature="proposition"] { color: var(--encre-2); font-weight: var(--graisse-moyenne); }
.pastille[data-nature="proposition"] { border-style: dashed; border-color: var(--filet-survol); }

/* Étiquette : une catégorie, sans couleur (type, jeu, niveau d'un cas). */
.etiquette {
  display: inline-flex;
  align-items: center;
  gap: var(--e-1);
  height: 20px;
  padding: 0 var(--e-2);
  font-size: var(--t-12);
  font-weight: var(--graisse-forte);
  white-space: nowrap;
  color: var(--encre-2);
  background: var(--feuille);
  border: var(--trait) solid var(--filet-fort);
  border-radius: var(--rayon);
}
.etiquette .graduation { height: 10px; }
.etiquette .graduation i { background: var(--filet-fort); }
.etiquette .graduation i.plein { background: var(--encre-2); }
.etiquette .retirer {
  display: inline-grid;
  place-items: center;
  width: var(--icone);
  height: var(--icone);
  margin-right: calc(-1 * var(--e-1));
  padding: 0;
  color: var(--encre-2);
  background: transparent;
  border: 0;
  border-radius: var(--rayon);
  cursor: pointer;
}
.etiquette .retirer:hover { color: var(--encre); background: var(--voile-survol); }
.etiquette .retirer .ic { width: 12px; height: 12px; vertical-align: 0; }

/* Environnement : DEV, PREPROD, PROD. Ni couleur de verdict ni couleur de
   section ; le poids monte vers la production. */
.env {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 var(--e-2);
  font-family: var(--police-mono);
  font-size: var(--t-12);
  font-weight: var(--graisse-forte);
  letter-spacing: var(--approche-capitales);
  text-transform: uppercase;
  color: var(--env-dev-texte);
  background: var(--env-dev-fond);
  border: var(--trait) solid var(--env-contour);
}
.env[data-env="preprod"] { color: var(--env-preprod-texte); background: var(--env-preprod-fond); }
.env[data-env="prod"] { color: var(--env-prod-texte); background: var(--env-prod-fond); }

/* Avis : un seul par zone. Information (à l'encre), attention, erreur, succès. */
.avis {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  column-gap: var(--e-3);
  padding: var(--e-3) var(--e-4);
  color: var(--encre);
  background: var(--v-fond);
  border: var(--trait) solid var(--v-contour);
  border-radius: var(--rayon);
}
.avis > .ic { margin-top: 2px; color: var(--v-marque); }
.avis-titre { font-weight: var(--graisse-forte); }
.avis-texte { color: var(--encre); }
.avis-action { align-self: center; }
.avis[data-avis="information"] { --v-marque: var(--encre-2); --v-fond: transparent; --v-contour: var(--filet-fort); }
.avis[data-avis="attention"] { --v-marque: var(--a-decider); --v-fond: var(--a-decider-fond); --v-contour: var(--a-decider-contour); }
.avis[data-avis="erreur"] { --v-marque: var(--ecart); --v-fond: var(--ecart-fond); --v-contour: var(--ecart-contour); }
.avis[data-avis="succes"] { --v-marque: var(--conforme); --v-fond: var(--conforme-fond); --v-contour: var(--conforme-contour); }
/* Avis d'une ligne posé sur la planche (lecture seule pendant un pilotage). */
.avis-ligne { display: flex; align-items: center; gap: var(--e-2); font-size: var(--t-13); font-weight: var(--graisse-moyenne); color: var(--encre-2); }
.avis-ligne .ic { color: var(--encre); }

/* Message de retour : non bloquant, annoncé par la zone aria-live qui le contient. */
.retours {
  position: fixed;
  z-index: var(--z-retour);
  left: 50%;
  bottom: var(--e-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--e-2);
  transform: translateX(-50%);
  pointer-events: none;
}
.retour {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--e-3);
  min-width: 320px;
  max-width: 560px;
  padding: var(--e-2) var(--e-2) var(--e-2) var(--e-4);
  color: var(--encre);
  background: var(--feuille);
  border: var(--trait) solid var(--filet-fort);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-bulle);
  animation: iris-apparition var(--duree) var(--sortie-douce);
}
.retour > .ic { color: var(--v-marque, var(--encre-2)); }
.retour > span { flex: 1; }

/* État vide : ce qui manque, pourquoi, et l'action qui le comble. */
.vide { display: grid; justify-items: start; gap: var(--e-2); padding: var(--e-6); color: var(--encre-2); }
.vide > .ic { width: var(--icone-grande); height: var(--icone-grande); color: var(--encre-2); }
.vide-titre { font-weight: var(--graisse-forte); color: var(--encre); }
.vide p { max-width: 60ch; }
.vide .btn { margin-top: var(--e-2); }

/* Chargement : la forme du contenu attendu, sans toupie. */
.squelette { display: grid; gap: var(--e-3); }
.squelette-ligne {
  height: var(--e-3);
  background: linear-gradient(90deg, var(--squelette) 0%, var(--squelette-reflet) 50%, var(--squelette) 100%) 0 0 / 300% 100%;
  border-radius: var(--rayon);
  animation: iris-reflet 1600ms linear infinite;
}
.squelette-ligne.large { height: var(--e-6); width: 45%; }
.squelette-ligne.courte { width: 60%; }

/* Pastille d'aide « ? » et sa bulle (popover ancré). */
.aide { display: inline-flex; vertical-align: middle; }
.aide-pastille {
  display: inline-grid;
  place-items: center;
  width: var(--e-6);
  height: var(--e-6);
  padding: 0;
  color: var(--encre-2);
  background: transparent;
  border: 0;
  border-radius: var(--rayon-pastille);
  cursor: pointer;
  transition: background-color var(--duree-courte) var(--sortie-douce), color var(--duree-courte) var(--sortie-douce);
}
.aide-pastille .ic { vertical-align: 0; }
.aide-pastille:is(:hover, .est-survol, [aria-expanded="true"]) { color: var(--encre); background: var(--voile-survol); }
.bande .aide-pastille, .onglet[aria-current="page"] .aide-pastille { color: var(--sur-section); }
.bande .aide-pastille:is(:hover, [aria-expanded="true"]) { background: var(--voile-sur-section); }
.aide-bulle {
  inset: auto;
  margin: var(--e-1) 0 0;
  position-area: block-end span-inline-end;
  position-try-fallbacks: flip-block, flip-inline;
  width: var(--largeur-bulle);
  padding: var(--e-3) var(--e-4);
  font-family: var(--police);
  font-size: var(--t-13);
  font-weight: var(--graisse-normale);
  font-stretch: var(--normal);
  line-height: var(--interligne);
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  color: var(--encre);
  background: var(--feuille);
  border: var(--trait) solid var(--filet-fort);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-bulle);
}
.aide-bulle:popover-open { animation: iris-apparition var(--duree) var(--sortie-douce); }
.aide-bulle p + p { margin-top: var(--e-2); }
.aide-bulle dl { display: grid; grid-template-columns: auto 1fr; gap: var(--e-1) var(--e-3); margin-top: var(--e-2); }
.aide-bulle dt { font-family: var(--police-mono); font-weight: var(--graisse-forte); }

/* Dépliant : un <details> ; le résumé dit ce qu'on va lire. */
.depliant > summary {
  display: flex;
  align-items: center;
  gap: var(--e-2);
  width: fit-content;
  list-style: none;
  cursor: pointer;
  font-weight: var(--graisse-forte);
  color: var(--encre);
}
.depliant > summary::-webkit-details-marker { display: none; }
.depliant > summary .chevron { color: var(--encre-2); transition: transform var(--duree) var(--sortie-douce); }
.depliant[open] > summary .chevron { transform: rotate(90deg); }
.depliant > summary:is(:hover, .est-survol) { color: var(--lien); }
.depliant-corps { margin-top: var(--e-2); padding-left: calc(var(--icone) + var(--e-2)); }
.depliant-lien > summary { font-size: var(--t-13); color: var(--lien); }

/* Synthèse en une ligne : les nombres qui décident, séparés par des filets. */
.synthese { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-2) var(--e-5); }
.synthese .marque { font-size: var(--t-14); }
.synthese .marque span { font-weight: var(--graisse-moyenne); color: var(--encre); }
.synthese .separateur { width: var(--trait); height: var(--e-5); background: var(--filet-fort); }


/* ==========================================================================
   13. COMPOSANTS DOCUMENTAIRES
   ========================================================================== */

/* Conversation : IRIS, le demandeur, les événements du système. ------------- */
.conversation { list-style: none; display: grid; gap: var(--e-3); }
.message {
  display: grid;
  gap: var(--e-1);
  max-width: 92%;
  padding: var(--e-3);
  font-size: var(--t-13);
  line-height: var(--interligne);
  background: var(--feuille);
  border: var(--trait) solid var(--filet);
  border-radius: var(--rayon);
}
.message[data-auteur="demandeur"] { justify-self: end; border-color: var(--filet-fort); }
.message-auteur { display: flex; align-items: center; gap: var(--e-1); font-size: var(--t-12); font-weight: var(--graisse-forte); color: var(--encre-2); }
.message-auteur .ic { width: var(--icone-petite); height: var(--icone-petite); vertical-align: 0; }
.message-auteur time { margin-left: auto; font-family: var(--police-mono); font-weight: var(--graisse-normale); }
.evenement { display: flex; align-items: center; gap: var(--e-2); font-size: var(--t-12); color: var(--encre-2); }
.evenement .ic { width: var(--icone-petite); height: var(--icone-petite); vertical-align: 0; }
.evenement::after { content: ""; flex: 1; border-top: var(--trait) dashed var(--filet-fort); }

/* Comparaison avant / après, ligne à ligne : marques + et −, pas seulement la couleur. */
.diff {
  font-family: var(--police-mono);
  font-size: var(--t-13);
  line-height: 1.6;
  background: var(--feuille);
  border: var(--trait) solid var(--filet);
  border-radius: var(--rayon);
  overflow: auto;
}
.diff-tete {
  display: flex;
  gap: var(--e-2);
  padding: var(--e-2) var(--e-3);
  font-family: var(--police);
  font-size: var(--t-12);
  font-weight: var(--graisse-forte);
  color: var(--encre-2);
  border-bottom: var(--trait) solid var(--filet);
}
.diff-ligne { display: grid; grid-template-columns: var(--e-6) minmax(0, 1fr); padding-right: var(--e-3); white-space: pre-wrap; }
.diff-ligne::before { content: ""; text-align: center; font-weight: var(--graisse-forte); }
.diff-ligne[data-diff="contexte"] { color: var(--encre-2); }
.diff-ligne[data-diff="ajout"] { background: var(--conforme-fond); }
.diff-ligne[data-diff="ajout"]::before { content: "+" / "ajouté"; color: var(--conforme-mot); }
.diff-ligne[data-diff="retrait"] { background: var(--ecart-fond); }
.diff-ligne[data-diff="retrait"]::before { content: "−" / "retiré"; color: var(--ecart-mot); }

/* Avant / après d'une valeur unique. */
.avant-apres { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--e-2) var(--e-3); align-items: baseline; font-size: var(--t-13); }
.avant-apres dt { font-size: var(--t-12); font-weight: var(--graisse-forte); color: var(--encre-2); }
.avant-apres dd.avant code { color: var(--encre-2); text-decoration: line-through; text-decoration-color: var(--filet-survol); }
.avant-apres dd.apres code { color: var(--encre); font-weight: var(--graisse-forte); }

/* Bloc de code ou JSON : fond feuille-2, jamais un aplat sombre. */
.code-tete { display: flex; align-items: center; gap: var(--e-2); margin-bottom: var(--e-2); }
.code-tete .legende { font-weight: var(--graisse-forte); }
.code {
  max-height: 360px;
  padding: var(--e-3) var(--e-4);
  overflow: auto;
  font-family: var(--police-mono);
  font-size: var(--t-12);
  font-weight: var(--graisse-normale);
  line-height: 1.6;
  color: var(--encre);
  white-space: pre;
  tab-size: 2;
  background: var(--feuille-2);
  border: var(--trait) solid var(--filet);
  border-radius: var(--rayon);
}

/* Éléments cités : des liens typés (course, carte, cas), chacun avec son icône. */
.cites { display: grid; gap: var(--e-1); font-size: var(--t-13); }
.cites-titre { font-size: var(--t-12); font-weight: var(--graisse-forte); color: var(--encre-2); }
.cites ul { list-style: none; display: grid; gap: var(--e-1); }
.cite { display: inline-flex; align-items: center; gap: var(--e-2); }
.cite .ic { width: var(--icone-petite); height: var(--icone-petite); vertical-align: 0; }
.cite-type { color: var(--encre-2); }

/* Explication : un titre, deux lignes, « Lire la suite ». */
.explication { display: grid; gap: var(--e-1); max-width: var(--mesure-lecture); }
.explication-titre { font-size: var(--t-16); font-weight: var(--graisse-forte); }
.explication .depliant { margin-top: var(--e-1); }
.explication .depliant-corps { font-size: var(--t-13); color: var(--encre-2); }
.pistes { list-style: none; display: grid; gap: var(--e-2); margin-top: var(--e-2); }
.pistes li { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: var(--e-3); font-size: var(--t-13); }
.pistes li > b { font-size: var(--t-12); font-weight: var(--graisse-forte); color: var(--encre-2); }

/* Journal horodaté : l'heure (mono), le geste, le résultat. */
.journal { list-style: none; }
.journal-entree {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  column-gap: var(--e-3);
  padding: var(--e-3) 0;
  border-bottom: var(--trait) solid var(--filet-fort);
}
.journal-entree:first-child { padding-top: 0; }
.journal-entree:last-child { border-bottom: 0; }
.journal-entree time { font-family: var(--police-mono); font-size: var(--t-12); color: var(--encre-2); line-height: 20px; }
.journal-geste { display: block; font-weight: var(--graisse-forte); line-height: 20px; }
.journal-resultat { display: block; font-size: var(--t-13); color: var(--encre-2); }
.journal + .lien-fleche { margin-top: var(--e-3); }

/* Fiche clé-valeur. */
.fiche { display: grid; grid-template-columns: minmax(140px, max-content) minmax(0, 1fr); font-size: var(--t-13); }
.fiche > div { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; padding: var(--e-2) 0; border-bottom: var(--trait) solid var(--filet); }
.fiche > div:last-child { border-bottom: 0; }
.fiche dt { padding-right: var(--e-4); color: var(--encre-2); }

/* Liste de contrôles : l'icône porte le verdict, la raison suit. */
.controles { list-style: none; display: grid; gap: var(--e-2); font-size: var(--t-13); }
.controles li { display: grid; grid-template-columns: var(--icone) minmax(0, 1fr); column-gap: var(--e-2); }
.controles li > .ic { margin-top: 1px; color: var(--v-marque); vertical-align: 0; }
.controles .raison { grid-column: 2; font-size: var(--t-12); color: var(--encre-2); }
.bande .controles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-2) var(--e-8); }
.bande .controles li > .ic, .bande .controles .raison { color: var(--sur-section-2); }

/* Échelle de niveaux N0 à N5. */
.niveaux { list-style: none; }
.niveau {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: var(--e-3);
  padding: var(--e-3) 0;
  border-bottom: var(--trait) solid var(--filet-fort);
}
.niveau:last-child { border-bottom: 0; }
.niveau-id {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: var(--e-6);
  font-stretch: var(--etroit);
  font-weight: var(--graisse-forte);
  font-size: var(--t-14);
  color: var(--encre);
  background: var(--feuille);
  border: var(--trait) solid var(--filet-fort);
  border-radius: var(--rayon);
}
.niveau[data-etat="tenu"] .niveau-id { color: var(--sur-section); background: var(--encre); border-color: var(--encre); }
.niveau[data-etat="criteres"] .niveau-id { border-style: dashed; border-color: var(--encre-2); }
.niveau-ligne { display: flex; align-items: center; gap: var(--e-2); }
.niveau-nom { font-weight: var(--graisse-forte); }
.niveau-ligne .marque { margin-left: auto; font-size: var(--t-12); }
.niveau-critere { font-size: var(--t-12); color: var(--encre-2); }
.repere-atteint {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 var(--e-1);
  font-size: var(--t-12);
  font-weight: var(--graisse-forte);
  color: var(--sur-action);
  background: var(--action);
  border-radius: var(--rayon);
}

/* Décision à prendre : la question est la tête ; la catégorie va dessous, dans
   la ligne méta à l'encre 2 (jamais en surtitre, jamais en couleur de verdict). */
.decisions { list-style: none; }
.decision { padding: var(--e-5) 0; border-top: var(--trait) solid var(--filet); }
.decision:first-child { padding-top: 0; border-top: 0; }
.decision:last-child { padding-bottom: 0; }
.decision-tete { display: flex; align-items: baseline; gap: var(--e-4); }
.decision-tete .lien-fleche { margin-left: auto; }
.decision-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-1) var(--e-2); margin-top: var(--e-1); font-size: var(--t-13); color: var(--encre-2); }
.decision-meta .ic { width: var(--icone-petite); height: var(--icone-petite); vertical-align: 0; }
.decision-meta code { color: var(--encre); }
.decision-choix { display: flex; flex-wrap: wrap; gap: var(--e-2); margin-top: var(--e-3); }

/* Mesure proportionnelle : jauge (budget) et graduation. */
.jauges { display: grid; gap: var(--e-4); }
.jauge { display: grid; grid-template-columns: 1fr auto; row-gap: var(--e-2); align-items: baseline; }
.jauge dt { font-weight: var(--graisse-moyenne); }
.jauge dd { text-align: right; font-weight: var(--graisse-forte); }
.jauge dd span { font-weight: var(--graisse-normale); color: var(--encre-2); }
.jauge-piste { grid-column: 1 / -1; height: 6px; overflow: hidden; background: var(--section-trait); }
.jauge-piste i { display: block; width: var(--part, 0%); height: 100%; background: var(--section); }
.jauge[data-verdict] .jauge-piste i { background: var(--v-marque); }
.jauge .marque { grid-column: 1 / -1; font-size: var(--t-12); }
.jauge .graduation { grid-column: 1 / -1; height: var(--e-3); }


/* ==========================================================================
   14. ANIMATIONS (durées lues dans les jetons ; nulles en mouvement réduit)
   ========================================================================== */

@keyframes iris-apparition { from { opacity: 0; transform: translateY(4px); } }
@keyframes iris-entree-droite { from { opacity: 0; transform: translateX(24px); } }
@keyframes iris-balayage { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes iris-reflet { from { background-position: 100% 0; } to { background-position: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  .btn[aria-busy="true"]::after,
  .squelette-ligne { animation: none; }
}


/* ==========================================================================
   15. PLANCHE DE RÉFÉRENCE
   Classes propres à systeme/index.html : à ne pas employer dans les écrans.
   ========================================================================== */

.planche-section { scroll-margin-top: var(--e-6); }
.specimen { display: grid; gap: var(--e-3); scroll-margin-top: var(--e-6); }
:not(.colonnes-2, .colonnes-3) > .specimen + .specimen { margin-top: var(--e-8); }
.specimen-regle { max-width: var(--mesure-lecture); color: var(--encre-2); }
.etats { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--e-5) var(--e-8); padding: var(--e-5); }
.etat { display: grid; gap: var(--e-2); justify-items: start; min-width: 0; }
.etat > .legende:first-child { font-weight: var(--graisse-forte); }
.echantillon {
  display: inline-block;
  width: 40px;
  height: var(--e-6);
  vertical-align: middle;
  background: var(--echantillon);
  border-radius: var(--rayon);
  box-shadow: inset 0 0 0 var(--trait) var(--echantillon-contour);
}
.apercu { position: relative; overflow: clip; background: var(--planche); border: var(--trait) solid var(--filet); border-radius: var(--rayon); }
.apercu .classeur { min-height: 0; }
.apercu .tiroir { position: relative; z-index: auto; inset: auto; width: 100%; animation: none; }
.apercu:has(> .tiroir) { width: var(--largeur-tiroir); flex: none; }
.apercu > .barre { position: static; }
.apercu-onglet { width: var(--largeur-rail); padding: var(--e-2) var(--dos) var(--e-2) 0; background: var(--planche); }
.apercu-onglet.apercu { border: 0; border-radius: 0; }
.reglette { display: block; width: var(--part); height: var(--e-3); background: var(--action); }
.matieres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--e-6); padding: var(--e-6); background: var(--planche); border-radius: var(--rayon); }
.matiere { display: grid; align-content: end; gap: 2px; min-height: 104px; padding: var(--e-3) var(--e-4); background: var(--feuille); border-radius: var(--rayon); }
.matiere-planche { background: transparent; box-shadow: inset 0 0 0 var(--trait) var(--filet-fort); }
.matiere-feuille { box-shadow: var(--ombre-feuille); border-top: var(--trait-focal) solid var(--section); border-radius: 0 0 var(--rayon) var(--rayon); }
.matiere-bulle { box-shadow: var(--ombre-bulle); border: var(--trait) solid var(--filet-fort); }
.matiere-surcouche { box-shadow: var(--ombre-surcouche); }
.rayon-feuille { width: 96px; height: 64px; background: var(--feuille); border: var(--trait) solid var(--filet-fort); border-radius: var(--rayon); }
.trait-specimen { display: block; width: 160px; border-top: var(--trait) solid var(--filet); }
.trait-specimen.fort { border-top-color: var(--filet-fort); }
.trait-specimen.focal { border-top: var(--trait-focal) solid var(--action); }
