/* --- css/000-jetons.css --- */
/* Charte d'Atelier (AT66) : jetons. Seule source des couleurs, espacements, rayons, polices et
   durées ; aucun autre fichier n'écrit une couleur en dur. Contrastes mesurés par
   internal/web/contrastes_test.go (WCAG AA : 4,5:1 texte, 3:1 composants), dans les deux thèmes.

   Rôles uniques :
   --action    cuivre : SEULEMENT l'action principale d'un écran (fusionner, approuver, créer)
   --verifie   vert : vérifié, succès          --attente  ambre : en attente, en cours
   --bloquant  rouge : bloquant, échec          --agent    bleu acier : acteur agent
   --braise    étincelle de fusion (décor, jamais un état)
   Une couleur d'état n'est jamais seule porteuse du sens : icône ou mot à côté. */

:root,
[data-theme="ardoise"] {
  color-scheme: dark;
  --fond: #1b1f24;
  --surface: #232930;
  --surface-2: #2c333b;
  --surface-survol: #333b44;
  --bord: #3a424c;
  --bord-champ: #78828e;
  --texte: #e6e8ea;
  --texte-doux: #a7afb8;
  --texte-inverse: #16191d;

  --action: #c8743a;
  --action-survol: #d6844a;
  --action-texte: #16191d;

  --verifie: #5cb87a;
  --attente: #d6a33a;
  --bloquant: #ef7671;
  --agent: #86a9cd;
  --braise: #f09a4a;

  --verifie-fond: #22362a;
  --attente-fond: #3a321f;
  --bloquant-fond: #402628;
  --agent-fond: #24313f;

  --diff-ajout: #1f3527;
  --diff-ajout-mot: #2f5c3d;
  --diff-retrait: #3d2427;
  --diff-retrait-mot: #6b3337;
  --diff-entete: #262d35;

  --focus: #e6e8ea;
  --ombre: 0 8px 24px rgb(0 0 0 / 0.45);
}

[data-theme="clair"] {
  color-scheme: light;
  --fond: #f7f6f3;
  --surface: #ffffff;
  --surface-2: #efede8;
  --surface-survol: #e7e4dd;
  --bord: #dedad2;
  --bord-champ: #7e858d;
  --texte: #1d2126;
  --texte-doux: #5a636d;
  --texte-inverse: #ffffff;

  --action: #a85a24;
  --action-survol: #94501f;
  --action-texte: #ffffff;

  --verifie: #2a7343;
  --attente: #83600f;
  --bloquant: #b3261e;
  --agent: #3a628b;
  --braise: #d97a2b;

  --verifie-fond: #e3f1e7;
  --attente-fond: #f6ecd5;
  --bloquant-fond: #f9e1df;
  --agent-fond: #e2eaf3;

  --diff-ajout: #e6f4ea;
  --diff-ajout-mot: #b9e2c4;
  --diff-retrait: #fbe9e7;
  --diff-retrait-mot: #f2bcb6;
  --diff-entete: #eceae4;

  --focus: #1d2126;
  --ombre: 0 8px 24px rgb(29 33 38 / 0.16);
}

/* Thème « système » : ardoise sauf si le système demande le clair (mêmes valeurs que ci-dessus). */
@media (prefers-color-scheme: light) {
  [data-theme="systeme"] {
    color-scheme: light;
    --fond: #f7f6f3;
    --surface: #ffffff;
    --surface-2: #efede8;
    --surface-survol: #e7e4dd;
    --bord: #dedad2;
    --bord-champ: #7e858d;
    --texte: #1d2126;
    --texte-doux: #5a636d;
    --texte-inverse: #ffffff;
    --action: #a85a24;
    --action-survol: #94501f;
    --action-texte: #ffffff;
    --verifie: #2a7343;
    --attente: #83600f;
    --bloquant: #b3261e;
    --agent: #3a628b;
    --braise: #d97a2b;
    --verifie-fond: #e3f1e7;
    --attente-fond: #f6ecd5;
    --bloquant-fond: #f9e1df;
    --agent-fond: #e2eaf3;
    --diff-ajout: #e6f4ea;
    --diff-ajout-mot: #b9e2c4;
    --diff-retrait: #fbe9e7;
    --diff-retrait-mot: #f2bcb6;
    --diff-entete: #eceae4;
    --focus: #1d2126;
    --ombre: 0 8px 24px rgb(29 33 38 / 0.16);
  }
}

:root {
  /* Grille de 4 px. */
  --e1: 4px;
  --e2: 8px;
  --e3: 12px;
  --e4: 16px;
  --e5: 20px;
  --e6: 24px;
  --e7: 28px;
  --e8: 32px;
  --e12: 48px;
  --espace: var(--e4);

  --rayon-petit: 4px;
  --rayon: 8px;
  --bordure: 1px;

  /* Typographie : échelle 12/14/16/20/24/32. */
  --police: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --t12: 0.75rem;
  --t14: 0.875rem;
  --t16: 1rem;
  --t20: 1.25rem;
  --t24: 1.5rem;
  --t32: 2rem;
  --interligne: 1.5;

  /* Mouvement : 120 à 200 ms ; coupé sous prefers-reduced-motion ou la préférence. */
  --duree-courte: 120ms;
  --duree: 160ms;
  --duree-longue: 200ms;
  --courbe: cubic-bezier(0.2, 0, 0, 1);

  --largeur-nav: 232px;
  --largeur-contenu: 1180px;
}

/* --- css/001-polices.css --- */
/* Polices auto-hébergées (OFL, voir polices/LICENCES-POLICES) : 4 fichiers woff2, ~77 Ko. */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("polices/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("polices/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("polices/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("polices/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
}

/* --- css/010-base.css --- */
/* Base : éléments HTML, typographie, focus, lien d'évitement, utilitaires. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html,
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: var(--t16);
  line-height: var(--interligne);
}
body {
  min-height: 100vh;
  overflow-wrap: break-word;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 var(--e3);
  font-weight: 600;
  line-height: 1.25;
}
h1 {
  font-size: var(--t24);
}
h2 {
  font-size: var(--t20);
}
h3 {
  font-size: var(--t16);
}
p {
  margin: 0 0 var(--e3);
}
small,
.petit {
  font-size: var(--t12);
}
/* Liens : couleur du texte, soulignés (le cuivre est réservé à l'action principale, le bleu acier
   aux agents). */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--texte-doux);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}
code,
kbd,
samp,
pre,
.mono {
  font-family: var(--mono);
  font-size: 0.9em;
}
code {
  padding: 0 var(--e1);
  border-radius: var(--rayon-petit);
  background: var(--surface-2);
}
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 var(--e1);
  border: var(--bordure) solid var(--bord-champ);
  border-bottom-width: 2px;
  border-radius: var(--rayon-petit);
  background: var(--surface);
  font-size: var(--t12);
  line-height: 1.6;
  text-align: center;
}
hr {
  border: 0;
  border-top: var(--bordure) solid var(--bord);
  margin: var(--e6) 0;
}
img,
svg {
  max-width: 100%;
}
.icone {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -3px;
}
.icone-pleine {
  fill: currentColor;
  stroke: none;
}

/* Focus visible partout, au clavier : anneau de la couleur du texte, jamais retiré. */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--rayon-petit);
}
:focus:not(:focus-visible) {
  outline: none;
}

.evitement {
  position: absolute;
  left: var(--e2);
  top: -100px;
  z-index: 100;
  padding: var(--e2) var(--e3);
  background: var(--surface);
  color: var(--texte);
  border: var(--bordure) solid var(--bord-champ);
  border-radius: var(--rayon);
}
.evitement:focus {
  top: var(--e2);
}
.visuellement-cache {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.texte-doux {
  color: var(--texte-doux);
}
.sans-retour {
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}

/* --- css/020-coquille.css --- */
/* Coquille commune : en-tête, navigation, contenu, pied. Les écrans des lots se rendent dans
   <main id="contenu"> ; ils n'ajoutent rien ici. */
.coquille-entete {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: var(--e4);
  height: 56px;
  padding: 0 var(--e4);
  background: var(--surface);
  border-bottom: var(--bordure) solid var(--bord);
}
.marque {
  display: inline-flex;
  align-items: center;
  gap: var(--e2);
  color: var(--texte);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.marque:hover {
  text-decoration: none;
}
.marque-logo {
  width: 28px;
  height: 28px;
}
.marque-logo .enclume {
  fill: var(--texte);
}
.marque-logo .etincelle-logo {
  fill: var(--braise);
}
.marque-nom {
  font-size: var(--t16);
  letter-spacing: 0.01em;
}
.marque-nom span {
  color: var(--texte-doux);
  font-weight: 400;
}
.recherche {
  flex: 0 1 420px;
  margin-left: var(--e4);
  position: relative;
}
.recherche .icone {
  position: absolute;
  left: var(--e3);
  top: 50%;
  margin-top: -8px;
  color: var(--texte-doux);
  pointer-events: none;
}
.recherche input {
  width: 100%;
  height: 36px;
  padding: 0 var(--e8) 0 36px;
  border: var(--bordure) solid var(--bord-champ);
  border-radius: var(--rayon);
  background: var(--fond);
  color: var(--texte);
  font: inherit;
  font-size: var(--t14);
}
.recherche input::placeholder {
  color: var(--texte-doux);
}
.recherche kbd {
  position: absolute;
  right: var(--e2);
  top: 50%;
  margin-top: -10px;
}
.entete-outils {
  display: flex;
  align-items: center;
  gap: var(--e2);
  margin-left: auto;
}
.entete-acteur {
  display: inline-flex;
  align-items: center;
  gap: var(--e2);
  padding: var(--e1) var(--e2);
  border-radius: var(--rayon);
  color: var(--texte);
  text-decoration: none;
  font-size: var(--t14);
}
.entete-acteur:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  border: var(--bordure) solid var(--bord-champ);
  font-size: var(--t12);
  font-weight: 600;
  text-transform: uppercase;
}
.avatar-agent {
  background: var(--agent-fond);
  border-color: var(--agent);
  color: var(--agent);
}

.coquille {
  display: grid;
  grid-template-columns: var(--largeur-nav) minmax(0, 1fr);
  min-height: calc(100vh - 56px);
}
.coquille-nav {
  position: sticky;
  top: 56px;
  align-self: start;
  height: calc(100vh - 56px);
  overflow-y: auto;
  padding: var(--e4) var(--e3);
  border-right: var(--bordure) solid var(--bord);
  background: var(--surface);
}
.nav-section {
  margin: 0 0 var(--e5);
  padding: 0;
  list-style: none;
}
.nav-titre {
  margin: 0 0 var(--e1);
  padding: 0 var(--e3);
  color: var(--texte-doux);
  font-size: var(--t12);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-lien {
  display: flex;
  align-items: center;
  gap: var(--e3);
  min-height: 36px;
  padding: var(--e2) var(--e3);
  border-radius: var(--rayon);
  color: var(--texte-doux);
  text-decoration: none;
  font-size: var(--t14);
}
.nav-lien:hover {
  background: var(--surface-2);
  color: var(--texte);
  text-decoration: none;
}
.nav-lien[aria-current="page"] {
  position: relative;
  background: var(--surface-2);
  color: var(--texte);
  font-weight: 600;
}
.nav-lien[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--e3));
  top: var(--e2);
  bottom: var(--e2);
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--texte);
}
.nav-lien .compte {
  margin-left: auto;
  min-width: 20px;
  padding: 0 var(--e1);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--texte-doux);
  font-size: var(--t12);
  text-align: center;
}
.nav-lien kbd {
  margin-left: auto;
  opacity: 0.8;
}

.coquille-contenu {
  min-width: 0;
  padding: var(--e6) var(--e8) var(--e12);
  outline: none;
}
.contenu-largeur {
  max-width: var(--largeur-contenu);
}
.fil {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e1) var(--e2);
  margin: 0 0 var(--e2);
  padding: 0;
  list-style: none;
  color: var(--texte-doux);
  font-size: var(--t14);
}
.fil li + li::before {
  content: "/";
  margin-right: var(--e2);
  color: var(--bord-champ);
}
.entete-page {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--e3) var(--e4);
  margin-bottom: var(--e6);
}
.entete-page h1 {
  margin: 0;
}
.entete-page p {
  margin: var(--e1) 0 0;
  color: var(--texte-doux);
}
.entete-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e2);
}
.coquille-pied {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e2) var(--e4);
  margin-top: var(--e12);
  padding-top: var(--e4);
  border-top: var(--bordure) solid var(--bord);
  color: var(--texte-doux);
  font-size: var(--t12);
}
.bandeau {
  display: flex;
  align-items: center;
  gap: var(--e2);
  padding: var(--e2) var(--e4);
  border-bottom: var(--bordure) solid var(--bord);
  font-size: var(--t14);
}
.bandeau-attente {
  background: var(--attente-fond);
}
.bandeau-attente .icone {
  color: var(--attente);
}

/* Densité compacte (préférence). */
[data-densite="compacte"] .coquille-contenu {
  padding-top: var(--e4);
}
[data-densite="compacte"] .tableau td,
[data-densite="compacte"] .tableau th {
  padding-top: var(--e1);
  padding-bottom: var(--e1);
}
[data-densite="compacte"] .carte {
  padding: var(--e3);
}

/* Téléphone (390 px) : la navigation passe sous l'en-tête et défile seule, horizontalement. */
@media (max-width: 760px) {
  .coquille-entete {
    gap: var(--e2);
    padding: 0 var(--e3);
  }
  .marque-nom span,
  .recherche kbd,
  .entete-acteur .nom {
    display: none;
  }
  .recherche {
    margin-left: 0;
    flex: 1 1 auto;
  }
  .recherche input {
    padding-right: var(--e3);
  }
  .coquille {
    grid-template-columns: minmax(0, 1fr);
  }
  .coquille-nav {
    position: sticky;
    top: 56px;
    z-index: 10;
    display: flex;
    gap: var(--e1);
    height: auto;
    padding: var(--e2) var(--e3);
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: var(--bordure) solid var(--bord);
    scrollbar-width: none;
  }
  .nav-section {
    display: flex;
    gap: var(--e1);
    margin: 0;
  }
  .nav-titre,
  .nav-lien kbd {
    display: none;
  }
  .nav-lien {
    white-space: nowrap;
    min-height: 40px;
  }
  .nav-lien[aria-current="page"]::before {
    left: var(--e3);
    right: var(--e3);
    top: auto;
    bottom: 0;
    width: auto;
    height: 2px;
    border-radius: 2px;
  }
  .coquille-contenu {
    padding: var(--e4) var(--e4) var(--e8);
  }
}

/* --- css/030-composants.css --- */
/* Composants : boutons, badges d'état, pastille agent, acteur, cartes, tableaux, formulaires,
   onglets, toasts, états vides et erreurs, pagination, dialogue. Gabarits :
   internal/web/gabarits/composants.gohtml. */

/* --- Boutons ---------------------------------------------------------------------------------
   .bouton seul = secondaire. .bouton-principal (cuivre) : UNE fois par écran au plus. */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--e2);
  min-height: 36px;
  padding: var(--e2) var(--e4);
  border: var(--bordure) solid var(--bord-champ);
  border-radius: var(--rayon);
  background: var(--surface-2);
  color: var(--texte);
  font: inherit;
  font-size: var(--t14);
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duree-courte) var(--courbe), border-color var(--duree-courte) var(--courbe);
}
.bouton:hover {
  background: var(--surface-survol);
  text-decoration: none;
}
.bouton.bouton-principal {
  position: relative;
  border-color: var(--action);
  background: var(--action);
  color: var(--action-texte);
}
.bouton.bouton-principal:hover {
  border-color: var(--action-survol);
  background: var(--action-survol);
}
.bouton.bouton-discret {
  border-color: transparent;
  background: transparent;
  color: var(--texte);
}
.bouton.bouton-discret:hover {
  background: var(--surface-2);
}
.bouton.bouton-danger {
  border-color: var(--bloquant);
  background: transparent;
  color: var(--bloquant);
}
.bouton.bouton-danger:hover {
  background: var(--bloquant-fond);
}
.bouton.bouton-petit {
  min-height: 28px;
  padding: var(--e1) var(--e3);
  font-size: var(--t12);
}
.bouton.bouton-icone {
  width: 36px;
  padding: 0;
}
.bouton[disabled],
.bouton[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}
.groupe-boutons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e2);
  align-items: center;
}

/* --- Badges d'état : icône + mot, jamais la couleur seule. ------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--e1);
  min-height: 24px;
  padding: 0 var(--e2);
  border: var(--bordure) solid var(--bord-champ);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--texte);
  font-size: var(--t12);
  font-weight: 600;
  line-height: 22px;
  white-space: nowrap;
}
.badge .icone {
  width: 14px;
  height: 14px;
  vertical-align: 0;
}
.badge-verifie {
  border-color: var(--verifie);
  background: var(--verifie-fond);
  color: var(--verifie);
}
.badge-attente {
  border-color: var(--attente);
  background: var(--attente-fond);
  color: var(--attente);
}
.badge-bloquant {
  border-color: var(--bloquant);
  background: var(--bloquant-fond);
  color: var(--bloquant);
}
.badge-neutre {
  color: var(--texte-doux);
}

/* Chaîne fusionné → en préprod → en prod (détail signature). */
.chaine {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e1);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--t12);
}
.chaine li {
  display: inline-flex;
  align-items: center;
  gap: var(--e1);
  color: var(--texte-doux);
}
.chaine li + li::before {
  content: "→";
  margin-right: var(--e1);
  color: var(--bord-champ);
}
.chaine .fait {
  color: var(--verifie);
  font-weight: 600;
}
.chaine .en-cours {
  color: var(--attente);
  font-weight: 600;
}

/* --- Pastille agent et acteur ---------------------------------------------------------------- */
.pastille-agent {
  display: inline-flex;
  align-items: center;
  gap: var(--e1);
  min-height: 20px;
  padding: 0 var(--e2) 0 var(--e1);
  border: var(--bordure) solid var(--agent);
  border-radius: 10px;
  background: var(--agent-fond);
  color: var(--agent);
  font-size: var(--t12);
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}
.pastille-agent .icone {
  width: 12px;
  height: 12px;
  vertical-align: 0;
}
.acteur {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e1) var(--e2);
}
.acteur-agent .acteur-nom {
  color: var(--agent);
  font-weight: 600;
}
.acteur-pour {
  color: var(--texte-doux);
}
.horodatage {
  color: var(--texte-doux);
  white-space: nowrap;
}

/* --- Cartes et sections ----------------------------------------------------------------------- */
.carte {
  margin-bottom: var(--e4);
  padding: var(--e4) var(--e5);
  border: var(--bordure) solid var(--bord);
  border-radius: var(--rayon);
  background: var(--surface);
}
.carte > :last-child {
  margin-bottom: 0;
}
.carte-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--e2);
  margin-bottom: var(--e3);
}
.carte-entete h2 {
  display: flex;
  align-items: center;
  gap: var(--e2);
  margin: 0;
  font-size: var(--t16);
}
.compteur {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 var(--e2);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--texte-doux);
  font-size: var(--t12);
  font-weight: 600;
}
.grille-cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: var(--e4);
}
.grille-cartes > .carte {
  margin-bottom: 0;
}
.proprietes {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--e2) var(--e6);
  margin: 0;
  font-size: var(--t14);
}
.proprietes dt {
  color: var(--texte-doux);
}
.proprietes dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* --- Listes d'éléments (navigables au clavier : j / k) --------------------------------------- */
.liste {
  margin: 0;
  padding: 0;
  list-style: none;
}
.element {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--e1) var(--e3);
  align-items: start;
  padding: var(--e3) var(--e2);
  border-top: var(--bordure) solid var(--bord);
  border-radius: var(--rayon-petit);
}
.element:first-child {
  border-top: 0;
}
.element.est-courant {
  background: var(--surface-2);
  box-shadow: inset 3px 0 0 var(--texte);
}
.element-icone {
  margin-top: 3px;
}
.element-titre {
  font-weight: 600;
  text-decoration: none;
}
.element-titre:hover {
  text-decoration: underline;
}
.element-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e1) var(--e3);
  margin-top: var(--e1);
  color: var(--texte-doux);
  font-size: var(--t12);
}
.element-droite {
  font-size: var(--t12);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--e1);
}
.numero {
  color: var(--texte-doux);
  font-family: var(--mono);
  font-weight: 400;
}

/* --- Tableaux --------------------------------------------------------------------------------- */
.tableau-conteneur {
  overflow-x: auto;
  border: var(--bordure) solid var(--bord);
  border-radius: var(--rayon);
  background: var(--surface);
}
.tableau {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t14);
}
.tableau caption {
  padding: var(--e3) var(--e4);
  text-align: left;
  font-weight: 600;
  caption-side: top;
}
.tableau th,
.tableau td {
  padding: var(--e2) var(--e4);
  border-top: var(--bordure) solid var(--bord);
  text-align: left;
  vertical-align: middle;
}
.tableau thead th {
  border-top: 0;
  background: var(--surface-2);
  color: var(--texte-doux);
  font-size: var(--t12);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tableau tbody tr:hover {
  background: var(--surface-2);
}
.tableau .nombre {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* --- Formulaires ------------------------------------------------------------------------------ */
.formulaire {
  display: grid;
  gap: var(--e5);
  max-width: 640px;
}
.champ {
  display: grid;
  gap: var(--e1);
}
.champ > label,
.champ legend,
.etiquette {
  font-size: var(--t14);
  font-weight: 600;
}
.champ .aide {
  color: var(--texte-doux);
  font-size: var(--t12);
}
fieldset.champ {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
fieldset.champ legend {
  padding: 0;
  margin-bottom: var(--e2);
}
.saisie,
select.saisie,
textarea.saisie {
  width: 100%;
  min-height: 36px;
  padding: var(--e2) var(--e3);
  border: var(--bordure) solid var(--bord-champ);
  border-radius: var(--rayon);
  background: var(--fond);
  color: var(--texte);
  font: inherit;
  font-size: var(--t14);
}
textarea.saisie {
  min-height: 96px;
  resize: vertical;
}
.saisie[aria-invalid="true"] {
  border-color: var(--bloquant);
}
.champ .message-erreur {
  display: flex;
  align-items: center;
  gap: var(--e1);
  color: var(--bloquant);
  font-size: var(--t12);
  font-weight: 600;
}
.choix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: var(--e2);
}
.choix label {
  display: flex;
  align-items: flex-start;
  gap: var(--e2);
  padding: var(--e3);
  border: var(--bordure) solid var(--bord-champ);
  border-radius: var(--rayon);
  background: var(--fond);
  font-size: var(--t14);
  cursor: pointer;
}
.choix label:has(input:checked) {
  border-color: var(--texte);
  box-shadow: inset 0 0 0 1px var(--texte);
}
.choix small {
  display: block;
  color: var(--texte-doux);
}
.case {
  display: flex;
  align-items: flex-start;
  gap: var(--e2);
  font-size: var(--t14);
}
input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: var(--texte);
  flex: none;
}
.actions-formulaire {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e2);
  padding-top: var(--e2);
}

/* --- Onglets (liens : fonctionnent sans JS) --------------------------------------------------- */
.onglets {
  display: flex;
  gap: var(--e1);
  margin: 0 0 var(--e5);
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: var(--bordure) solid var(--bord);
  list-style: none;
  scrollbar-width: thin;
}
.onglet {
  display: inline-flex;
  align-items: center;
  gap: var(--e2);
  min-height: 40px;
  padding: var(--e2) var(--e3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--texte-doux);
  font-size: var(--t14);
  text-decoration: none;
  white-space: nowrap;
}
.onglet:hover {
  color: var(--texte);
  text-decoration: none;
  border-bottom-color: var(--bord-champ);
}
.onglet[aria-current="page"] {
  color: var(--texte);
  font-weight: 600;
  border-bottom-color: var(--texte);
}

/* --- Toasts ----------------------------------------------------------------------------------- */
.toasts {
  position: fixed;
  right: var(--e4);
  bottom: var(--e4);
  z-index: 50;
  display: grid;
  gap: var(--e2);
  width: min(380px, calc(100vw - 2 * var(--e4)));
  margin: 0;
  padding: 0;
  list-style: none;
}
.toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--e3);
  align-items: start;
  padding: var(--e3) var(--e4);
  border: var(--bordure) solid var(--bord-champ);
  border-left-width: 4px;
  border-radius: var(--rayon);
  background: var(--surface);
  box-shadow: var(--ombre);
  font-size: var(--t14);
  animation: toast-entree var(--duree-longue) var(--courbe);
}
.toast .icone {
  margin-top: 3px;
}
.toast-verifie {
  border-left-color: var(--verifie);
}
.toast-verifie > .icone {
  color: var(--verifie);
}
.toast-attente {
  border-left-color: var(--attente);
}
.toast-attente > .icone {
  color: var(--attente);
}
.toast-bloquant {
  border-left-color: var(--bloquant);
}
.toast-bloquant > .icone {
  color: var(--bloquant);
}
.toast-fermer {
  padding: 0;
  border: 0;
  background: none;
  color: var(--texte-doux);
  cursor: pointer;
}
.toast.sortie {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--duree) var(--courbe), transform var(--duree) var(--courbe);
}
@keyframes toast-entree {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* --- États vides, erreurs ---------------------------------------------------------------------- */
.vide {
  display: grid;
  justify-items: center;
  gap: var(--e2);
  padding: var(--e8) var(--e4);
  text-align: center;
}
.vide-icone {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--texte-doux);
}
.vide-icone .icone {
  width: 24px;
  height: 24px;
}
.vide h2,
.vide h3 {
  margin: var(--e2) 0 0;
  font-size: var(--t16);
}
.vide p {
  max-width: 52ch;
  margin: 0;
  color: var(--texte-doux);
  font-size: var(--t14);
}
.commande {
  display: flex;
  align-items: center;
  gap: var(--e2);
  max-width: 100%;
  margin-top: var(--e2);
  padding: var(--e2) var(--e3);
  border: var(--bordure) solid var(--bord);
  border-radius: var(--rayon);
  background: var(--fond);
  font-family: var(--mono);
  font-size: var(--t14);
  text-align: left;
  overflow-x: auto;
}
.commande::before {
  content: "$";
  color: var(--texte-doux);
}
.erreur-page {
  display: grid;
  gap: var(--e3);
  max-width: 640px;
  margin: var(--e12) auto;
  padding: var(--e8);
  border: var(--bordure) solid var(--bord);
  border-radius: var(--rayon);
  background: var(--surface);
}
.erreur-code {
  margin: 0;
  color: var(--texte-doux);
  font-family: var(--mono);
  font-size: var(--t14);
}
.erreur-page h1,
.erreur-page h2 {
  margin: 0;
}
.erreur-page .proprietes {
  padding: var(--e3) var(--e4);
  border-radius: var(--rayon);
  background: var(--surface-2);
}

/* --- Pagination ------------------------------------------------------------------------------- */
.pagination {
  display: flex;
  justify-content: space-between;
  gap: var(--e2);
  margin-top: var(--e4);
}

/* --- Dialogue (aide des raccourcis, confirmations) -------------------------------------------- */
.dialogue {
  width: min(560px, calc(100vw - 2 * var(--e4)));
  max-height: calc(100vh - 2 * var(--e8));
  padding: var(--e6);
  border: var(--bordure) solid var(--bord-champ);
  border-radius: var(--rayon);
  background: var(--surface);
  color: var(--texte);
  box-shadow: var(--ombre);
}
.dialogue::backdrop {
  background: color-mix(in srgb, var(--fond) 75%, transparent);
}
.dialogue-entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e3);
  margin-bottom: var(--e4);
}
.dialogue-entete h2 {
  margin: 0;
}
.liste-raccourcis {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--e2) var(--e4);
  margin: 0 0 var(--e4);
  font-size: var(--t14);
}
.liste-raccourcis dt {
  white-space: nowrap;
}
.liste-raccourcis dd {
  margin: 0;
  color: var(--texte-doux);
}
.liste-raccourcis h3 {
  grid-column: 1 / -1;
  margin: var(--e2) 0 0;
  font-size: var(--t12);
  color: var(--texte-doux);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.champ > label.case {
  font-weight: 400;
}

/* --- css/040-code.css --- */
/* Code : bloc avec numéros de ligne, diff unifié et côte à côte (différences au mot), arbre de
   fichiers. Les numéros sont dans des attributs data-n (affichés par ::before) : ils ne partent
   pas dans une copie du code. */

.fichier {
  margin-bottom: var(--e4);
  border: var(--bordure) solid var(--bord);
  border-radius: var(--rayon);
  background: var(--surface);
  overflow: hidden;
}
.fichier-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e2) var(--e3);
  padding: var(--e2) var(--e3);
  border-bottom: var(--bordure) solid var(--bord);
  background: var(--diff-entete);
  font-size: var(--t14);
}
.fichier-chemin {
  min-width: 0;
  font-family: var(--mono);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.fichier-stats {
  font-family: var(--mono);
  font-size: var(--t12);
}
.fichier-stats .plus {
  color: var(--verifie);
}
.fichier-stats .moins {
  color: var(--bloquant);
}
.fichier-entete .vu {
  display: inline-flex;
  align-items: center;
  gap: var(--e1);
  margin-left: auto;
  font-size: var(--t12);
}
.fichier-corps {
  overflow-x: auto;
}

.code {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 20px;
  tab-size: 4;
}
.code td {
  padding: 0;
  vertical-align: top;
}
.code .n {
  width: 1%;
  min-width: 48px;
  padding: 0 var(--e3) 0 var(--e2);
  color: var(--texte-doux);
  text-align: right;
  user-select: none;
  white-space: nowrap;
}
.code .n::before {
  content: attr(data-n);
}
.code .n a {
  color: inherit;
  text-decoration: none;
}
.code .l {
  padding: 0 var(--e4) 0 var(--e2);
  white-space: pre;
}
.code tr:target {
  background: var(--attente-fond);
}
.code tr:target .n {
  color: var(--texte);
  box-shadow: inset 3px 0 0 var(--attente);
}

/* Diff */
.diff .signe {
  width: 1%;
  padding: 0 var(--e1);
  color: var(--texte-doux);
  user-select: none;
}
.diff .signe::before {
  content: attr(data-s);
}
.diff .ajout {
  background: var(--diff-ajout);
}
.diff .ajout .signe {
  color: var(--verifie);
}
.diff .retrait {
  background: var(--diff-retrait);
}
.diff .retrait .signe {
  color: var(--bloquant);
}
.diff .bloc td {
  padding: var(--e1) var(--e3);
  background: var(--diff-entete);
  color: var(--texte-doux);
}
.diff ins,
.diff del {
  border-radius: 2px;
  text-decoration: none;
}
.diff ins {
  background: var(--diff-ajout-mot);
}
.diff del {
  background: var(--diff-retrait-mot);
}
.diff .vide-cote {
  background: var(--surface-2);
}
.diff-cote .l {
  width: 49%;
  white-space: pre-wrap;
  word-break: break-all;
}
.diff-cote .n + .signe + .l {
  border-right: var(--bordure) solid var(--bord);
}

/* Arbre de fichiers : <details> pour les dossiers (s'ouvre sans JS). */
.arbre {
  margin: 0;
  padding: var(--e2) 0;
  font-size: var(--t14);
  list-style: none;
}
.arbre ul {
  margin: 0;
  padding: 0 0 0 var(--e4);
  list-style: none;
  border-left: var(--bordure) solid var(--bord);
  margin-left: var(--e3);
}
.arbre summary,
.arbre a {
  display: flex;
  align-items: center;
  gap: var(--e2);
  min-height: 28px;
  padding: var(--e1) var(--e2);
  border-radius: var(--rayon-petit);
  color: var(--texte);
  text-decoration: none;
  cursor: pointer;
}
.arbre summary {
  list-style: none;
}
.arbre summary::-webkit-details-marker {
  display: none;
}
.arbre summary::before {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 2px;
  border-right: 1.5px solid var(--texte-doux);
  border-bottom: 1.5px solid var(--texte-doux);
  transform: rotate(-45deg);
  transition: transform var(--duree-courte) var(--courbe);
}
.arbre details[open] > summary::before {
  transform: rotate(45deg);
}
.arbre a {
  padding-left: calc(var(--e2) + 14px);
}
.arbre summary:hover,
.arbre a:hover {
  background: var(--surface-2);
}
.arbre a[aria-current="page"] {
  background: var(--surface-2);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--texte);
}
.arbre .icone {
  color: var(--texte-doux);
}
.arbre .modifie {
  margin-left: auto;
  font-family: var(--mono);
  font-size: var(--t12);
}
.diff td.signe.ajout {
  color: var(--verifie);
}
.diff td.signe.retrait {
  color: var(--bloquant);
}
.modif-A {
  color: var(--verifie);
}
.modif-M {
  color: var(--attente);
}
.modif-D {
  color: var(--bloquant);
}

/* --- css/045-code.css --- */
/* Écrans de code (AT45) : en-tête de dépôt, arbre, fichier coloré, historique, commit,
   comparaison, blame, branches. Jetons seulement (aucune couleur en dur). Les couleurs des jetons
   de coloration et le Markdown sont dans 045-markdown.css. */

.code-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--e3);
  margin-bottom: var(--e4);
}
.code-titre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e2) var(--e3);
  min-width: 0;
}
.code-titre h1 {
  display: flex;
  align-items: center;
  gap: var(--e2);
  margin: 0;
  font-size: var(--t20);
  overflow-wrap: anywhere;
}
.code-titre h1 a {
  color: inherit;
  text-decoration: none;
}
.code-titre h1 a:hover {
  text-decoration: underline;
}
.code-ref {
  display: inline-flex;
  align-items: center;
  gap: var(--e1);
  max-width: 100%;
  padding: 2px var(--e2);
  border: var(--bordure) solid var(--bord);
  border-radius: var(--rayon-petit);
  background: var(--surface-2);
  font-size: var(--t12);
  overflow-wrap: anywhere;
}
.code-outils {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--e2);
}
.code-clone {
  position: relative;
}
.code-clone > summary {
  list-style: none;
  cursor: pointer;
}
.code-clone > summary::-webkit-details-marker {
  display: none;
}
.code-clone-corps {
  position: absolute;
  right: 0;
  z-index: 5;
  display: grid;
  gap: var(--e2);
  width: min(420px, calc(100vw - 32px));
  margin-top: var(--e1);
  padding: var(--e3);
  border: var(--bordure) solid var(--bord);
  border-radius: var(--rayon);
  background: var(--surface);
  box-shadow: var(--ombre);
}
.code-clone-corps .saisie {
  width: 100%;
}
.code-clone-corps .commande {
  overflow-wrap: anywhere;
}

.code-fil ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e1);
  margin: 0 0 var(--e3);
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: var(--t14);
}
.code-fil li {
  overflow-wrap: anywhere;
}
.code-fil li + li::before {
  content: "/";
  margin-right: var(--e1);
  color: var(--texte-doux);
}

.code-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: var(--e4);
  align-items: start;
}
.code-principal {
  min-width: 0;
}
.code-dernier {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e1) var(--e2);
  padding: var(--e3) var(--e4);
  font-size: var(--t14);
}
.code-dernier > a:not(.code-sha) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.code-sha {
  color: var(--texte-doux);
  font-size: var(--t12);
}
.code-arbre td {
  padding-top: var(--e2);
  padding-bottom: var(--e2);
}
.code-entree {
  display: inline-flex;
  align-items: center;
  gap: var(--e2);
  min-width: 0;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.code-entree:hover span {
  text-decoration: underline;
}
.code-dossier .icone {
  color: var(--agent);
}
.code-note {
  margin: var(--e2) 0 0;
}
.code-lisezmoi .carte-entete h2 a {
  color: inherit;
}

.code-langages ul {
  display: grid;
  gap: var(--e1);
  margin: var(--e2) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--t14);
}
.code-langages li {
  display: flex;
  align-items: center;
  gap: var(--e2);
}
.code-part {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--texte-doux);
}
.code-part.rang-1 {
  background: var(--braise);
}
.code-part.rang-2 {
  background: var(--agent);
}
.code-part.rang-3 {
  background: var(--verifie);
}
.code-part.rang-4 {
  background: var(--attente);
}
.code-part.rang-5 {
  background: var(--bloquant);
}

.code-actions {
  margin-left: auto;
}
.code-actions .bouton {
  min-height: 28px;
  padding: 2px var(--e2);
  font-size: var(--t12);
}
.code-rendu {
  padding: var(--e4) var(--e5);
}
.code-image {
  padding: var(--e4);
  text-align: center;
}
.code-image img {
  max-width: 100%;
  height: auto;
}
.code-fichier .vide {
  padding: var(--e6) var(--e4);
}
.code tr.surligne td {
  background: var(--attente-fond);
}
.code tr:target td {
  background: var(--attente-fond);
}

.code-message h2 {
  margin: 0 0 var(--e2);
  font-size: var(--t16);
  overflow-wrap: anywhere;
}
.code-corps {
  margin: 0 0 var(--e3);
  font-family: var(--mono);
  font-size: var(--t14);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.code-sha-long {
  overflow-wrap: anywhere;
}
.fichier-stats.petit .plus,
.code-resume .plus {
  color: var(--verifie);
}
.fichier-stats.petit .moins,
.code-resume .moins {
  color: var(--bloquant);
}

.code-comparer-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--e3);
  margin-bottom: var(--e4);
}
.code-comparer-form .champ {
  flex: 1 1 200px;
  margin: 0;
}
.code-comparer-form .saisie {
  width: 100%;
}
.code-resume p {
  margin: 0 0 var(--e1);
  overflow-wrap: anywhere;
}

.code-blame .blame-commit {
  width: 1%;
  min-width: 220px;
  max-width: 280px;
  padding: 0 var(--e2);
  border-right: var(--bordure) solid var(--bord);
  font-family: var(--police);
  font-size: var(--t12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.code-blame .blame-commit a {
  display: block;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.code-blame .blame-meta {
  display: block;
  color: var(--texte-doux);
}
.code-blame .blame-avant {
  float: right;
  color: var(--texte-doux);
}
.code-blame tr.debut-bloc td {
  border-top: var(--bordure) solid var(--bord);
}

.code-branches td {
  overflow-wrap: anywhere;
}

@media (max-width: 1000px) {
  .code-grille {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .code-blame .blame-commit {
    min-width: 120px;
    max-width: 140px;
  }
  .code-blame .blame-commit a {
    max-width: 120px;
  }
  .code-blame .blame-meta {
    display: none;
  }
  .code-arbre th.nombre,
  .code-arbre td.nombre {
    display: none;
  }
  .code-branches th:nth-child(2),
  .code-branches td:nth-child(2) {
    display: none;
  }
  .code-rendu {
    padding: var(--e3);
  }
}

/* --- css/045-markdown.css --- */
/* AT45 : Markdown rendu (.markdown, partiel at45-markdown) et coloration syntaxique (.j-*,
   partiel at45-jetons). Jetons de 000-jetons.css seulement ; les mélanges vers --texte gardent
   un contraste ≥ 4,5:1 sur --surface et --surface-2 dans les deux thèmes. */

.markdown {
  line-height: 1.6;
  overflow-wrap: break-word;
}
.markdown > :first-child {
  margin-top: 0;
}
.markdown > :last-child {
  margin-bottom: 0;
}
.markdown :is(p, ul, ol, blockquote, pre, hr, .markdown-tableau) {
  margin: 0 0 var(--e4);
}
.markdown :is(h1, h2, h3, h4, h5, h6) {
  margin: var(--e6) 0 var(--e3);
  font-weight: 600;
  line-height: 1.25;
  scroll-margin-top: var(--e12);
}
.markdown :is(h1, h2) {
  padding-bottom: var(--e2);
  border-bottom: var(--bordure) solid var(--bord);
}
.markdown h1 {
  font-size: var(--t32);
}
.markdown h2 {
  font-size: var(--t24);
}
.markdown h3 {
  font-size: var(--t20);
}
.markdown h4 {
  font-size: var(--t16);
}
.markdown :is(h5, h6) {
  font-size: var(--t14);
}
.markdown h6 {
  color: var(--texte-doux);
}
.markdown .ancre {
  margin-left: var(--e2);
  color: var(--texte-doux);
  text-decoration: none;
  opacity: 0;
}
.markdown .ancre::before {
  content: "#";
}
.markdown :is(h1, h2, h3, h4, h5, h6):hover .ancre,
.markdown .ancre:focus-visible {
  opacity: 1;
}
.markdown :is(ul, ol) {
  padding-left: var(--e6);
}
.markdown li + li,
.markdown li > :is(ul, ol) {
  margin-top: var(--e1);
}
.markdown li > :is(ul, ol, p:last-child) {
  margin-bottom: 0;
}
.markdown li.tache {
  list-style: none;
}
.markdown li.tache > input {
  margin: 0 var(--e1) 0 calc(-1 * var(--e5));
  vertical-align: -2px;
}
.markdown blockquote {
  padding: 0 var(--e4);
  border-left: 3px solid var(--bord);
  color: var(--texte-doux);
}
.markdown hr {
  height: 0;
  border: 0;
  border-top: 2px solid var(--bord);
}
.markdown img {
  max-width: 100%;
  height: auto;
}
.markdown code {
  padding: 0.1em 0.35em;
  border-radius: var(--rayon-petit);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 0.875em;
}
.markdown pre {
  padding: var(--e3) var(--e4);
  overflow-x: auto;
  border: var(--bordure) solid var(--bord);
  border-radius: var(--rayon);
  background: var(--surface-2);
  font-size: 13px;
  line-height: 20px;
  tab-size: 4;
}
.markdown pre code {
  padding: 0;
  background: none;
  font-size: inherit;
  white-space: pre;
}
.markdown-tableau {
  overflow-x: auto;
}
.markdown table {
  border-collapse: collapse;
}
.markdown :is(th, td) {
  padding: var(--e1) var(--e3);
  border: var(--bordure) solid var(--bord);
}
.markdown th {
  background: var(--surface-2);
  font-weight: 600;
}
.al-gauche {
  text-align: left;
}
.al-centre {
  text-align: center;
}
.al-droite {
  text-align: right;
}
.markdown-tronque {
  color: var(--texte-doux);
  font-style: italic;
}

/* Coloration : une classe par sorte de jeton (internal/rendu). */
.j-mc,
.j-ba {
  color: color-mix(in srgb, var(--braise) 60%, var(--texte));
}
.j-ty {
  color: color-mix(in srgb, var(--agent) 60%, var(--texte));
}
.j-fn,
.j-at {
  color: var(--agent);
}
.j-ch {
  color: var(--verifie);
}
.j-nb {
  color: var(--attente);
}
.j-va {
  color: color-mix(in srgb, var(--attente) 70%, var(--texte));
}
.j-pp {
  color: color-mix(in srgb, var(--bloquant) 60%, var(--texte));
}
.j-co {
  color: var(--texte-doux);
  font-style: italic;
}
.j-op {
  color: var(--texte-doux);
}
.j-ti {
  font-weight: 600;
}

/* --- css/046-changements.css --- */
/* Changements natifs (AT46) : liste, changement, fichiers (revue), protections. Jetons seulement. */

.filtres-changements {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--e3);
  margin-bottom: var(--e4);
}
.champ-filtre {
  display: flex;
  flex-direction: column;
  gap: var(--e1);
  min-width: 0;
  font-size: var(--t14);
}
.champ-filtre > span {
  color: var(--texte-doux);
  font-size: var(--t12);
}
.champs-ligne {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e3);
}
.champs-ligne .champ-filtre {
  flex: 1 1 160px;
}
.cases {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e2) var(--e4);
}

/* --- En-tête d'un changement -------------------------------------------------------------- */
.entete-changement h1 {
  overflow-wrap: anywhere;
}
.entete-changement-texte {
  min-width: 0;
}
.entete-changement-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e2) var(--e3);
  font-size: var(--t14);
}
.entete-changement-meta code,
.revue-barre code,
.carte code {
  overflow-wrap: anywhere;
}
.etiquettes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e2);
}

/* --- Changement : deux colonnes, la fusion à droite ---------------------------------------- */
.changement-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: var(--e4);
  align-items: start;
  margin-top: var(--e4);
}
.changement-principal,
.changement-cote {
  display: flex;
  flex-direction: column;
  gap: var(--e4);
  min-width: 0;
}
@media (max-width: 900px) {
  .changement-grille {
    grid-template-columns: minmax(0, 1fr);
  }
  .changement-cote {
    order: -1;
  }
}
.intention {
  margin: 0 0 var(--e3);
  font-size: var(--t16);
}
.description summary {
  cursor: pointer;
  color: var(--texte-doux);
  font-size: var(--t14);
}
.texte-brut,
.fil-extrait {
  margin: var(--e2) 0;
  padding: var(--e2) var(--e3);
  border-radius: var(--rayon-petit);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: var(--t12);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.prochaine {
  margin: 0 0 var(--e3);
  padding: var(--e2) var(--e3);
  border-left: 3px solid var(--texte-doux);
  background: var(--surface-2);
  font-size: var(--t14);
}
.exigences {
  margin: 0;
  padding: 0;
  list-style: none;
}
.exigence {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: var(--e3);
  align-items: start;
  padding: var(--e2) 0;
  border-top: var(--bordure) solid var(--bord);
}
.exigence:first-child {
  border-top: 0;
}
.exigence .badge {
  justify-self: start;
}
.exigence.est-courant {
  background: var(--surface-2);
}
.exigence-nom {
  font-weight: 600;
}
.exigence-raison,
.exigence-piste {
  margin: var(--e1) 0 0;
  font-size: var(--t14);
}
.exigence-piste {
  color: var(--texte-doux);
}
.exigence-sans_objet .exigence-raison,
.exigence-neutre .exigence-raison {
  color: var(--texte-doux);
}
@media (max-width: 600px) {
  .exigence {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--e1);
  }
}
.statuts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--e2);
}
.statuts li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e2);
}
.formulaire-fusion .bouton-principal {
  width: 100%;
}
.revue .badge {
  margin-top: 2px;
}

/* --- Conversations ancrées ---------------------------------------------------------------- */
.fil-ancre {
  margin: var(--e2) 0;
  padding: var(--e3);
  border: var(--bordure) solid var(--bord);
  border-radius: var(--rayon);
  background: var(--surface);
  font-family: var(--police);
  white-space: normal;
}
.fil-ancre.est-courant,
.fil-ancre:focus-within {
  box-shadow: inset 3px 0 0 var(--texte);
}
.fil-resolu {
  opacity: 0.75;
}
.fil-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e2);
  font-size: var(--t12);
}
.fil-position {
  min-width: 0;
  overflow-wrap: anywhere;
}
.fil-messages {
  margin: var(--e2) 0 0;
  padding: 0;
  list-style: none;
}
.fil-message + .fil-message {
  margin-top: var(--e2);
  padding-top: var(--e2);
  border-top: var(--bordure) solid var(--bord);
}
.fil-message-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e2);
  font-size: var(--t12);
  color: var(--texte-doux);
}
.fil-corps {
  margin: var(--e1) 0 0;
  font-size: var(--t14);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.fil-action {
  margin-top: var(--e2);
}

/* --- Fichiers (revue) --------------------------------------------------------------------- */
.revue-barre {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--e2) var(--e4);
  margin: var(--e3) 0;
}
.revue-barre p {
  margin: 0;
}
.fichier-revue {
  margin-bottom: var(--e4);
}
.fichier-revue.est-courant {
  box-shadow: 0 0 0 2px var(--texte);
}
.ligne-fils > td {
  padding: var(--e1) var(--e3);
  background: var(--fond);
}
.fil-hors-ligne {
  padding: 0 var(--e3);
}
.diff td.n[data-nouveau]:not([data-nouveau="0"]),
.diff td.n[data-ancien]:not([data-ancien="0"]) {
  cursor: pointer;
}
.commenter-fichier {
  border-top: var(--bordure) solid var(--bord);
  padding: var(--e2) var(--e3);
}
.commenter-fichier summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--e2);
  font-size: var(--t14);
}
.formulaire-commentaire {
  margin-top: var(--e3);
}
.carte-revue {
  margin-top: var(--e4);
}

/* --- css/048-recherche.css --- */
/* Écran « Chercher » (AT48) : barre de recherche, filtres latéraux, résultats de code avec lignes
   numérotées et surlignage, résultats d'objets. Jetons seulement (aucune couleur en dur). */

.recherche-form {
  display: grid;
  gap: var(--e4);
}
.recherche-barre {
  display: flex;
  gap: var(--e2);
  align-items: stretch;
}
.recherche-barre .saisie {
  flex: 1;
  min-width: 0;
  font-size: var(--t16);
}
.recherche-barre .bouton {
  flex: none;
}
.recherche-form > .message-erreur {
  display: flex;
  align-items: flex-start;
  gap: var(--e2);
  margin: 0;
  color: var(--bloquant);
  font-size: var(--t14);
  font-weight: 600;
}
.recherche-mise-en-page {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: var(--e5);
  align-items: start;
}
.recherche-filtres {
  display: grid;
  gap: var(--e4);
  padding: var(--e4);
}
.recherche-resultats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--e3);
  min-width: 0;
}
.recherche-bilan,
.recherche-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e1) var(--e2);
  margin: 0;
  color: var(--texte-doux);
  font-size: var(--t14);
}
.recherche-liste {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--e3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.recherche-resultat {
  display: grid;
  gap: var(--e2);
  min-width: 0;
  padding: var(--e3) var(--e4);
}
.recherche-titre {
  display: flex;
  align-items: center;
  gap: var(--e2);
  min-width: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.recherche-titre a {
  color: var(--texte);
}
.recherche-sous {
  margin: 0;
  color: var(--texte-doux);
  font-size: var(--t12);
  overflow-wrap: anywhere;
}
.recherche-code {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--t12);
}
.recherche-code td {
  padding: 1px var(--e2);
  vertical-align: top;
}
.recherche-code td code {
  tab-size: 4;
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: var(--t12);
  background: none;
  padding: 0;
}
.recherche-code .numero {
  width: 8ch;
  white-space: nowrap;
  color: var(--texte-doux);
  text-align: right;
  font-variant-numeric: tabular-nums;
  user-select: none;
}
.recherche-code .numero a {
  color: inherit;
}
.recherche-code tr.contexte td code {
  color: var(--texte-doux);
}
.recherche-resultat mark,
.recherche-extrait mark {
  border-radius: 2px;
  background: var(--attente-fond);
  color: var(--texte);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
.recherche-extrait {
  margin: 0;
  font-size: var(--t14);
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .recherche-mise-en-page {
    grid-template-columns: minmax(0, 1fr);
  }
  .recherche-filtres {
    order: 2;
  }
  .recherche-barre .bouton {
    padding-inline: var(--e3);
  }
}

/* --- css/050-ecrans.css --- */
/* Écrans transverses d'AT66 : Accueil, Compte, connexion, guide de style (/_charte). Les lots
   ajoutent css/0NN-<ecran>.css (045 code, 046 changements, 047 vérifications, 055 CI, 060 issues). */

/* Accueil */
.accueil-grille {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--e4);
  align-items: start;
}
.accueil-colonne {
  display: grid;
  gap: var(--e4);
}
.accueil-colonne > .carte {
  margin: 0;
}
.salutation {
  margin: 0;
}
.demonstration {
  display: inline-flex;
  align-items: center;
  gap: var(--e1);
}
.deploiement {
  display: grid;
  gap: var(--e1);
  padding: var(--e3) 0;
  border-top: var(--bordure) solid var(--bord);
  font-size: var(--t14);
}
.deploiement:first-child,
.carte-entete + .deploiement {
  border-top: 0;
  padding-top: 0;
}
.deploiement-titre {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--e1) var(--e3);
}
.etapes-guide {
  display: grid;
  gap: var(--e3);
  margin: var(--e4) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
  text-align: left;
  width: min(100%, 560px);
}
.etapes-guide li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: var(--e1) var(--e3);
  counter-increment: etape;
  font-size: var(--t14);
}
.etapes-guide li::before {
  content: counter(etape);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: var(--bordure) solid var(--bord-champ);
  font-weight: 600;
  font-size: var(--t12);
}
.etapes-guide .commande {
  grid-column: 2;
  margin-top: 0;
}

/* Compte */
.profil {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e4);
  margin-bottom: var(--e4);
}
.profil .avatar {
  width: 56px;
  height: 56px;
  font-size: var(--t20);
}
.profil h2 {
  margin: 0;
}

/* Connexion */
.connexion-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: var(--e4);
}
.connexion-carte {
  display: grid;
  justify-items: center;
  gap: var(--e3);
  width: min(100%, 420px);
  padding: var(--e8) var(--e6);
  border: var(--bordure) solid var(--bord);
  border-radius: var(--rayon);
  background: var(--surface);
  text-align: center;
}
.connexion-carte .marque-logo {
  width: 48px;
  height: 48px;
}
.connexion-carte p {
  margin: 0;
  color: var(--texte-doux);
}

/* Guide de style */
.charte-section {
  margin-bottom: var(--e12);
  scroll-margin-top: 72px;
}
.charte-section > h2 {
  padding-bottom: var(--e2);
  border-bottom: var(--bordure) solid var(--bord);
}
.charte-sommaire {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e2);
  margin: 0 0 var(--e8);
  padding: 0;
  list-style: none;
  font-size: var(--t14);
}
.nuancier {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
  gap: var(--e3);
}
.nuance {
  border: var(--bordure) solid var(--bord);
  border-radius: var(--rayon);
  background: var(--surface);
  overflow: hidden;
  font-size: var(--t12);
}
.nuance-echantillon {
  height: 56px;
  border-bottom: var(--bordure) solid var(--bord);
}
.nuance-texte {
  display: grid;
  gap: 2px;
  padding: var(--e2) var(--e3);
}
.nuance-texte code {
  padding: 0;
  background: none;
}
.n-fond { background: var(--fond); }
.n-surface { background: var(--surface); }
.n-surface-2 { background: var(--surface-2); }
.n-texte { background: var(--texte); }
.n-texte-doux { background: var(--texte-doux); }
.n-action { background: var(--action); }
.n-verifie { background: var(--verifie); }
.n-attente { background: var(--attente); }
.n-bloquant { background: var(--bloquant); }
.n-agent { background: var(--agent); }
.n-braise { background: var(--braise); }
.n-bord { background: var(--bord-champ); }
.echelle {
  display: grid;
  gap: var(--e2);
  margin: 0;
}
.echelle div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: baseline;
  gap: var(--e3);
}
.echelle dt {
  color: var(--texte-doux);
  font-family: var(--mono);
  font-size: var(--t12);
}
.echelle dd {
  margin: 0;
  min-width: 0;
}
.t12 { font-size: var(--t12); }
.t14 { font-size: var(--t14); }
.t16 { font-size: var(--t16); }
.t20 { font-size: var(--t20); }
.t24 { font-size: var(--t24); }
.t32 { font-size: var(--t32); line-height: 1.2; }
.gras { font-weight: 600; }
.reglettes {
  display: grid;
  gap: var(--e2);
}
.reglette {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: var(--e3);
  font-size: var(--t12);
}
.reglette span:last-child {
  display: block;
  height: 12px;
  border-radius: 2px;
  background: var(--texte-doux);
}
.r1 span:last-child { width: var(--e1); }
.r2 span:last-child { width: var(--e2); }
.r3 span:last-child { width: var(--e3); }
.r4 span:last-child { width: var(--e4); }
.r6 span:last-child { width: var(--e6); }
.r8 span:last-child { width: var(--e8); }
.r12 span:last-child { width: var(--e12); }
.demo-ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e3);
  margin-bottom: var(--e4);
}
.demo-colonnes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--e4);
  align-items: start;
}
.regle {
  margin: var(--e2) 0 var(--e4);
  padding-left: var(--e3);
  border-left: 3px solid var(--bord-champ);
  color: var(--texte-doux);
  font-size: var(--t14);
}

@media (max-width: 1000px) {
  .accueil-grille {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .element {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .element-droite {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .carte {
    padding: var(--e4);
  }
}
.toasts-demo {
  display: grid;
  gap: var(--e2);
  max-width: 420px;
  margin: 0 0 var(--e4);
  padding: 0;
  list-style: none;
}
.demo-erreurs .erreur-page {
  margin: 0;
  padding: var(--e6);
}

/* --- css/059-regles.css --- */
/* Règles de chemins (AT59) : bloc d'en-tête d'un changement. Jetons seulement. */

.regles-classes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e2);
  margin: 0 0 var(--e3);
  padding: 0;
  list-style: none;
}
.regles-rappel {
  margin: var(--e3) 0;
  padding: var(--e3);
  border: var(--bordure) solid var(--bord);
  border-left: 3px solid var(--bloquant);
  border-radius: var(--rayon);
  background: var(--bloquant-fond);
}
.regles-rappel-titre {
  display: flex;
  align-items: center;
  gap: var(--e2);
  margin: 0 0 var(--e2);
  font-weight: 600;
}
.regles-rappel ul {
  margin: 0;
  padding-left: var(--e4);
}
.regles-sous-titre {
  margin: var(--e4) 0 var(--e2);
  font-size: var(--t14);
}
.regles-zone-nom {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.regles-groupe {
  margin-top: var(--e2);
  border-top: var(--bordure) solid var(--bord);
  padding-top: var(--e2);
}
.regles-groupe > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e2);
  cursor: pointer;
}
.regles-fichiers {
  margin: var(--e2) 0 0;
  padding: 0;
  list-style: none;
}
.regles-fichiers li {
  padding: var(--e1) 0;
  overflow-wrap: anywhere;
}
.regles-fichiers code {
  overflow-wrap: anywhere;
  word-break: break-all;
}
.regles-source {
  font-size: var(--t12);
}
/* Le statut atelier/regles est une phrase : il passe à la ligne au lieu d'être coupé. */
.regles-at59 .carte-entete > .badge {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
  padding-top: 2px;
  padding-bottom: 2px;
}
/* Zones : badge au-dessus du texte au téléphone (pas de colonne vide à droite). */
.regles-zones .element {
  grid-template-columns: auto minmax(0, 1fr);
}
@media (max-width: 600px) {
  .regles-zones .element {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- css/060-mouvement.css --- */
/* Mouvement : étincelle de forge à la fusion (6 particules, 600 ms, sur le bouton) et transitions
   courtes. Tout est coupé sous prefers-reduced-motion ou la préférence « mouvement réduit ». */
.etincelles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.particule {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--braise);
  box-shadow: 0 0 6px var(--braise);
  opacity: 0;
  animation: etincelle 600ms var(--courbe) forwards;
}
.particule:nth-child(1) {
  --dx: -34px;
  --dy: -22px;
}
.particule:nth-child(2) {
  --dx: -14px;
  --dy: -34px;
  animation-delay: 30ms;
}
.particule:nth-child(3) {
  --dx: 12px;
  --dy: -36px;
  animation-delay: 15ms;
}
.particule:nth-child(4) {
  --dx: 34px;
  --dy: -20px;
  animation-delay: 45ms;
}
.particule:nth-child(5) {
  --dx: -26px;
  --dy: 18px;
  animation-delay: 60ms;
}
.particule:nth-child(6) {
  --dx: 28px;
  --dy: 20px;
  animation-delay: 20ms;
}
@keyframes etincelle {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.4);
  }
}
.bouton.braise {
  animation: braise 600ms var(--courbe);
}
@keyframes braise {
  30% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--braise) 35%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  .etincelles {
    display: none;
  }
}
[data-mouvement="reduit"] *,
[data-mouvement="reduit"] *::before,
[data-mouvement="reduit"] *::after {
  animation-duration: 1ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 1ms !important;
}
[data-mouvement="reduit"] .etincelles {
  display: none;
}

/* --- css/067-revue-cout.css --- */
/* Admin « Coût de la revue » (AT67-10). Jetons seulement. */

.cout-mois {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--e3);
  margin-bottom: var(--e4);
}
.cout-mois-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--e2);
}
.cout-chiffres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: var(--e3);
  margin-bottom: var(--e3);
}
.cout-chiffre {
  display: grid;
  gap: var(--e1);
  min-width: 0;
}
.cout-chiffre-libelle {
  color: var(--texte-doux);
  font-size: var(--t12);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cout-chiffre-valeur {
  font-size: var(--t24);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cout-jauge {
  display: block;
  width: 100%;
  height: 12px;
  margin: var(--e2) 0 var(--e1);
  border: var(--bordure) solid var(--bord);
  border-radius: var(--rayon-petit);
  background: var(--surface-2);
  color: var(--verifie);
  appearance: none;
}
.cout-jauge::-webkit-progress-bar {
  border-radius: var(--rayon-petit);
  background: var(--surface-2);
}
.cout-jauge::-webkit-progress-value {
  border-radius: var(--rayon-petit);
  background: var(--verifie);
}
.cout-jauge::-moz-progress-bar {
  border-radius: var(--rayon-petit);
  background: var(--verifie);
}
.cout-jauge-attente::-webkit-progress-value {
  background: var(--attente);
}
.cout-jauge-attente::-moz-progress-bar {
  background: var(--attente);
}
.cout-jauge-bloquant::-webkit-progress-value {
  background: var(--bloquant);
}
.cout-jauge-bloquant::-moz-progress-bar {
  background: var(--bloquant);
}
.cout-jauge-neutre::-webkit-progress-value {
  background: var(--texte-doux);
}
.cout-jauge-neutre::-moz-progress-bar {
  background: var(--texte-doux);
}
.cout-seuils {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--e2);
  margin: 0 0 var(--e4);
}
.cout-section {
  margin-bottom: var(--e5);
}
.cout-sous-titre {
  margin: 0 0 var(--e3);
  font-size: var(--t16);
}
.cout-nom {
  font-weight: 400;
  overflow-wrap: break-word;
}
.cout-section .nombre {
  white-space: nowrap;
}
.cout-regler {
  margin-top: var(--e4);
}
@media (max-width: 600px) {
  .cout-secondaire {
    display: none;
  }
  .cout-section .tableau th,
  .cout-section .tableau td {
    padding-left: var(--e3);
    padding-right: var(--e3);
  }
}
.cout-synthese .carte-entete > .badge {
  max-width: 100%;
  white-space: normal;
  line-height: 1.35;
}
.cout-synthese .commande {
  overflow-wrap: anywhere;
}

/* --- css/067-revue.css --- */
/* Revue Claude (AT67-10) : bloc de la page d'un changement et écran Admin « Coût de la revue ».
   Jetons seulement. */

.revue-avertissement {
  display: flex;
  align-items: flex-start;
  gap: var(--e2);
  margin: 0 0 var(--e3);
  padding: var(--e2) var(--e3);
  border: var(--bordure) solid var(--bord);
  border-left: 3px solid var(--agent);
  border-radius: var(--rayon);
  background: var(--agent-fond);
  font-size: var(--t14);
}
.revue-avertissement .icone {
  flex: none;
  margin-top: 2px;
}
.revue-raison {
  margin: 0 0 var(--e3);
}
.revue-at67 h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--e2);
  margin: 0 0 var(--e2);
  font-size: var(--t14);
}
.revue-source {
  color: var(--texte-doux);
  font-size: var(--t12);
  font-weight: 400;
}
.revue-intentions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--e3);
  margin: var(--e4) 0;
}
.revue-intention {
  min-width: 0;
  padding: var(--e3);
  border: var(--bordure) solid var(--bord);
  border-radius: var(--rayon);
  background: var(--surface-2);
}
.revue-intention p {
  margin: 0 0 var(--e2);
  overflow-wrap: anywhere;
}
.revue-intention > :last-child {
  margin-bottom: 0;
}
.revue-avis-texte {
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.adresse-desamorcee {
  overflow-wrap: anywhere;
  word-break: break-all;
}
.revue-classes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--e4);
  margin: var(--e4) 0;
}
.revue-classes-colonne {
  min-width: 0;
}
.revue-classes-liste {
  display: grid;
  gap: var(--e2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.revue-classes-liste li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e2);
}
.revue-montee {
  display: inline-flex;
  align-items: center;
  gap: var(--e1);
  font-size: var(--t12);
  font-weight: 600;
}
.revue-montees .element,
.revue-remarques .element {
  grid-template-columns: auto minmax(0, 1fr);
}
.revue-ecartee > .badge:first-child {
  text-decoration: line-through;
}
.revue-ecartement {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e1) var(--e2);
  margin: 0 0 var(--e2);
  font-size: var(--t14);
}
.revue-position code {
  overflow-wrap: anywhere;
}
.revue-montees .element > .badge,
.revue-remarques .element > .badge {
  justify-self: start;
}
.revue-motif-ecart {
  margin: 0 0 var(--e2);
  font-size: var(--t14);
}
.revue-remarques .revue-avis-texte,
.revue-montees .revue-avis-texte {
  margin: var(--e1) 0 0;
}
@media (max-width: 600px) {
  .revue-montees .element,
  .revue-remarques .element {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- css/070-v5console.css --- */
/* V5-CONSOLE : bouton « Copier », bandeau « Du nouveau », piste des pages d'erreur, compte
   (clés SSH, jetons), accueil (sessions, état de main). Jetons seulement. */

.bouton-copier {
  min-height: 0;
  margin-top: var(--e1);
  padding: var(--e1) var(--e2);
  font-size: var(--t12);
}
.bouton-copier[data-etat="ok"] {
  color: var(--verifie);
}
.bouton-copier[data-etat="ko"] {
  color: var(--bloquant);
}

.direct-nouveau {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--e2);
  margin-bottom: var(--e4);
  padding: var(--e2) var(--e3);
  border: var(--bordure) solid var(--attente);
  border-radius: var(--rayon);
  background: var(--surface-2);
}

.erreur-piste {
  display: flex;
  gap: var(--e2);
  align-items: flex-start;
  margin: 0;
  color: var(--texte);
}

.compte-liste {
  display: grid;
  gap: var(--e3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.compte-element {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--e2) var(--e4);
  align-items: start;
  padding: var(--e3) 0;
  border-bottom: var(--bordure) solid var(--bord);
}
.compte-element:last-child {
  border-bottom: 0;
}
.compte-element .mono {
  overflow-wrap: anywhere;
}
.compte-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e1) var(--e3);
  color: var(--texte-doux);
  font-size: var(--t14);
}
.compte-formulaire {
  margin-top: var(--e6);
}
.compte-formulaire textarea {
  width: 100%;
  min-height: 6rem;
  font-family: var(--mono);
  font-size: var(--t14);
}
.jeton-valeur {
  display: block;
  padding: var(--e2) var(--e3);
  border: var(--bordure) solid var(--attente);
  border-radius: var(--rayon);
  background: var(--fond);
  font-family: var(--mono);
  overflow-wrap: anywhere;
}

.accueil-depots {
  display: grid;
  gap: var(--e2);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 640px) {
  .compte-element {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- css/080-vitrine.css --- */
/* V5-VITRINE : pages publiques (présentation, tarifs, textes légaux), en-tête et pied publics,
   bandeau des cookies. Jetons de 000-jetons.css seulement ; aucune couleur en dur. */

.entete-public {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--e3) var(--e4);
  padding: var(--e3) var(--e4);
  background: var(--surface);
  border-bottom: var(--bordure) solid var(--bord);
}
.entete-public-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e1) var(--e4);
}

.vitrine {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--e6) var(--e4) var(--e8);
}
.vitrine-texte {
  max-width: 760px;
}
.vitrine h1 {
  font-size: var(--t32);
  line-height: 1.2;
  margin: 0 0 var(--e4);
}
.vitrine h2 {
  font-size: var(--t24);
  margin: var(--e6) 0 var(--e3);
}
.vitrine h3 {
  font-size: var(--t16);
  margin: 0 0 var(--e2);
}
.vitrine-accroche {
  font-size: var(--t20);
  color: var(--texte);
}
.vitrine-hero {
  padding: var(--e6) 0;
}
.vitrine-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e3);
  margin: var(--e4) 0 0;
}
.vitrine-section {
  margin-top: var(--e6);
}
.vitrine-grille {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--e4);
}
.vitrine-grille > .carte p {
  margin: 0;
  color: var(--texte-doux);
}
.vitrine-offre ul {
  margin: var(--e2) 0;
  padding-left: var(--e5);
}
.vitrine-prix {
  margin-top: var(--e3);
  font-weight: 600;
  color: var(--texte);
}
.vitrine-mention {
  padding: var(--e4);
  background: var(--surface);
  border: var(--bordure) solid var(--bord);
  border-left-width: 4px;
  border-radius: var(--rayon);
}
.vitrine-mention h2 {
  margin-top: 0;
}
.vitrine-meta {
  color: var(--texte-doux);
}
.vitrine-apercu {
  margin: var(--e4) 0;
  padding: var(--e3) var(--e4);
  background: var(--attente-fond);
  border: var(--bordure) solid var(--attente);
  border-radius: var(--rayon);
}
.vitrine-apercu p {
  margin: var(--e1) 0;
}
.vitrine-preferences {
  margin-top: var(--e6);
}
.vitrine-preferences fieldset {
  margin: var(--e3) 0;
  padding: var(--e3);
  border: var(--bordure) solid var(--bord);
  border-radius: var(--rayon);
}
/* Tableau d'un texte (cookies : quatre colonnes) : une carte qui défile dans sa largeur, jamais la
   page (V6-CONSOLE). La colonne de texte ne passe pas sous une largeur lisible : le tableau garde sa
   largeur et c'est la carte qui défile à 390 px. */
.vitrine,
.vitrine-texte {
  min-width: 0;
}
.vitrine .markdown-tableau {
  max-width: 100%;
  overflow-x: auto;
  border: var(--bordure) solid var(--bord);
  border-radius: var(--rayon);
  -webkit-overflow-scrolling: touch;
}
.vitrine .markdown-tableau table {
  min-width: 34rem;
  margin: 0;
}
.vitrine .markdown-tableau :is(th, td) {
  vertical-align: top;
}
.vitrine .markdown-tableau code {
  white-space: nowrap;
}

.pied-public {
  margin: 0 auto;
  max-width: 960px;
  padding: var(--e5) var(--e4) var(--e8);
  border-top: var(--bordure) solid var(--bord);
  color: var(--texte-doux);
  font-size: var(--t14);
}
.pied-public-mention {
  margin: 0 0 var(--e3);
}
.pied-liens {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e1) var(--e4);
}

.bandeau-cookies {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  max-height: 60vh;
  overflow-y: auto;
  padding: var(--e3) var(--e4);
  background: var(--surface-2);
  border-top: var(--bordure) solid var(--bord-champ);
  box-shadow: var(--ombre);
}
.bandeau-cookies h2 {
  margin: 0 0 var(--e1);
  font-size: var(--t16);
}
.bandeau-cookies p {
  margin: 0 0 var(--e3);
  max-width: 72ch;
}
.bandeau-cookies-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e3);
}

@media (max-width: 480px) {
  .vitrine {
    padding: var(--e4) var(--e4) var(--e8);
  }
  .vitrine h1 {
    font-size: var(--t24);
  }
  .vitrine h2 {
    font-size: var(--t20);
  }
}

