/* Backoffice Oasis-8 — feuille de style écrite à la main, sans dépendance.

   RIEN N'EST IMPORTÉ : ni police distante, ni bibliothèque. Ce backoffice est servi par un binaire
   Go sur la boucle locale ; une ressource distante y serait une dépendance réseau pour une page
   dont l'intérêt est de s'afficher quand rien ne va. La police est celle du système.

   LE MOUVEMENT SERT À COMPRENDRE, PAS À DÉCORER : une page entre (on a changé d'écran), une
   fenêtre grandit depuis le centre (elle est au-dessus du reste), un message glisse du bord (il
   va repartir), un chiffre défile (il vient d'être calculé). Tout est court — 150 à 400 ms — et
   tout s'arrête si le système demande moins de mouvement (fin de fichier). */

:root {
  color-scheme: light dark;
  --fond: #f4f5f9;
  --fond-carte: #ffffff;
  --fond-creux: #f0f2f7;
  --fond-verre: rgba(255, 255, 255, .78);
  --bord: #e3e6ee;
  --bord-fort: #cdd2de;
  --texte: #13151b;
  --texte-doux: #5f6779;
  --accent: #4f46e5;
  --accent-2: #8b5cf6;
  --accent-doux: #eef0ff;
  --accent-texte: #4338ca;
  --succes: #0f8a4a;
  --succes-doux: #e5f6ec;
  --alerte: #b45309;
  --alerte-doux: #fdf3e2;
  --erreur: #d1293d;
  --erreur-doux: #fdebed;
  --neutre-doux: #eceef3;
  --rayon: 9px;
  --rayon-grand: 14px;
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
  --ombre: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --ombre-haute: 0 2px 4px rgba(16, 24, 40, .04), 0 12px 32px -8px rgba(16, 24, 40, .14);
  --ombre-fenetre: 0 24px 64px -12px rgba(16, 24, 40, .35), 0 0 0 1px rgba(16, 24, 40, .06);
  --degrade: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --sortie: cubic-bezier(.2, .8, .2, 1);
  --ressort: cubic-bezier(.34, 1.4, .64, 1);
}

/* Le thème sombre a ses propres valeurs — pas une inversion — posées deux fois : pour le choix du
   système (« auto »), et pour le choix explicite du bouton du bandeau. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #0c0e13;
    --fond-carte: #14171f;
    --fond-creux: #1a1e28;
    --fond-verre: rgba(16, 19, 26, .78);
    --bord: #252a36;
    --bord-fort: #363d4d;
    --texte: #e9ebf1;
    --texte-doux: #9aa2b5;
    --accent: #8b8cf9;
    --accent-2: #c084fc;
    --accent-doux: #1f2147;
    --accent-texte: #a5a6fb;
    --degrade: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --succes: #4ade80;
    --succes-doux: #122a1c;
    --alerte: #fbbf5f;
    --alerte-doux: #2d2314;
    --erreur: #fb7185;
    --erreur-doux: #331920;
    --neutre-doux: #232835;
    --ombre: 0 1px 2px rgba(0, 0, 0, .4);
    --ombre-haute: 0 2px 4px rgba(0, 0, 0, .3), 0 16px 40px -10px rgba(0, 0, 0, .6);
    --ombre-fenetre: 0 24px 80px -12px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .06);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --fond: #0c0e13;
  --fond-carte: #14171f;
  --fond-creux: #1a1e28;
  --fond-verre: rgba(16, 19, 26, .78);
  --bord: #252a36;
  --bord-fort: #363d4d;
  --texte: #e9ebf1;
  --texte-doux: #9aa2b5;
  --accent: #8b8cf9;
  --accent-2: #c084fc;
  --accent-doux: #1f2147;
  --accent-texte: #a5a6fb;
  --degrade: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --succes: #4ade80;
  --succes-doux: #122a1c;
  --alerte: #fbbf5f;
  --alerte-doux: #2d2314;
  --erreur: #fb7185;
  --erreur-doux: #331920;
  --neutre-doux: #232835;
  --ombre: 0 1px 2px rgba(0, 0, 0, .4);
  --ombre-haute: 0 2px 4px rgba(0, 0, 0, .3), 0 16px 40px -10px rgba(0, 0, 0, .6);
  --ombre-fenetre: 0 24px 80px -12px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .06);
}
:root[data-theme="light"] { color-scheme: light; }

/* Le changement de thème fond les couleurs au lieu de clignoter. */
:root.changement-theme *, :root.changement-theme *::before, :root.changement-theme *::after {
  transition: background-color .35s ease, border-color .35s ease, color .35s ease, fill .35s ease !important;
}

* { box-sizing: border-box; }
/* « hidden » gagne toujours : sans cela, « button { display:inline-flex } » le contredisait. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}

::selection { background: var(--accent-doux); color: var(--accent-texte); }

code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }

.icone { flex: none; display: block; }

kbd {
  font: 600 10.5px/1 var(--mono);
  padding: 3px 5px; border-radius: 5px; min-width: 18px; text-align: center;
  background: var(--fond-carte); color: var(--texte-doux);
  border: 1px solid var(--bord); border-bottom-width: 2px;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* --------------------------------------------------------- barre de chargement */

#barre-chargement {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100;
  overflow: hidden; pointer-events: none; opacity: 0;
  transition: opacity .3s ease;
}
#barre-chargement::before {
  content: ""; position: absolute; inset: 0; width: 40%;
  background: var(--degrade); border-radius: 2px;
  animation: balayage 1.1s var(--sortie) infinite;
}
/* Un délai avant d'apparaître : un appel de 80 ms ne doit pas faire clignoter la page. */
body.en-chargement #barre-chargement { opacity: 1; transition-delay: .15s; }
@keyframes balayage { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ------------------------------------------------------------------ bandeau */

header {
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px; height: 56px;
  background: var(--fond-verre);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--bord);
  position: sticky; top: 0; z-index: 30;
}

.marque {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; letter-spacing: -.015em; white-space: nowrap;
  color: var(--texte); text-decoration: none; font-size: 15px;
}
.marque > span:not(.logo) { color: var(--texte-doux); font-weight: 450; }

/* Le logo : un carré au dégradé de la marque, avec un éclat qui tourne lentement. */
.logo {
  width: 26px; height: 26px; border-radius: 8px; flex: none; position: relative; overflow: hidden;
  background: var(--degrade);
  box-shadow: 0 4px 12px -2px color-mix(in srgb, var(--accent) 55%, transparent);
}
.logo::before {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .92); border-right-color: transparent;
  animation: rotation 6s linear infinite;
}
.logo::after {
  content: ""; position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(255, 255, 255, .35) 80%, transparent 90%);
  animation: rotation 4s linear infinite;
}
.logo.grand { width: 40px; height: 40px; border-radius: 12px; }
.logo.grand::before { inset: 11px; border-width: 3.5px; }
@keyframes rotation { to { transform: rotate(360deg); } }

header .pousse, .pousse { margin-left: auto; }

.declencheur-palette {
  display: inline-flex; align-items: center; gap: 9px;
  margin-left: 10px; min-width: 260px; padding: 7px 8px 7px 11px;
  background: var(--fond-creux); border: 1px solid var(--bord); color: var(--texte-doux);
  border-radius: 10px; font-size: 13px; text-align: left;
}
.declencheur-palette .texte { flex: 1; }
.declencheur-palette:hover:not(:disabled) { border-color: var(--bord-fort); color: var(--texte); background: var(--fond-carte); }
body.sans-session .declencheur-palette { display: none; }

#identite { display: flex; align-items: center; gap: 8px; font-size: 13px; }
#identite select { width: auto; padding: 5px 8px; font-size: 12.5px; background: transparent; border-color: var(--bord); }
#identite .qui { display: inline-flex; align-items: center; gap: 8px; color: var(--texte-doux); }
#identite .qui-nom { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center;
  background: var(--degrade); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 0 0 2px var(--fond-carte), 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}
.avatar.petit {
  width: 32px; height: 32px; font-size: 13px; box-shadow: none;
  background: var(--accent-doux); color: var(--accent-texte);
}

/* -------------------------------------------------------------------- corps */

.corps { display: flex; align-items: flex-start; }

nav#menu {
  width: 248px; flex: 0 0 248px;
  padding: 10px 10px 40px;
  position: sticky; top: 56px;
  max-height: calc(100vh - 56px);
  overflow-y: auto; scrollbar-width: thin;
  border-right: 1px solid var(--bord);
}

nav#menu a {
  display: flex; align-items: center; gap: 10px; position: relative;
  padding: 7px 10px; border-radius: var(--rayon); margin: 1px 0;
  color: var(--texte-doux); text-decoration: none; font-size: 13.5px; font-weight: 500;
  transition: background-color .15s ease, color .15s ease;
}
nav#menu a .icone { transition: transform .25s var(--ressort), color .15s; opacity: .85; }
nav#menu a:hover { background: var(--fond-creux); color: var(--texte); }
nav#menu a:hover .icone { transform: scale(1.12) rotate(-4deg); }
nav#menu a.actif { background: var(--accent-doux); color: var(--accent-texte); font-weight: 600; }
nav#menu a.actif .icone { color: var(--accent); opacity: 1; }
/* Le trait de l'entrée active pousse depuis le centre : on voit où l'on vient d'arriver. */
nav#menu a.actif::before {
  content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--degrade);
}
/* Le trait ne pousse QUE sur une entrée qui vient de devenir active (« vient », app.js) : le menu
   est redessiné à chaque rendu, et rejouer le trait à chaque enregistrement le ferait clignoter. */
nav#menu a.actif.vient::before { animation: pousseTrait .3s var(--ressort); }
@keyframes pousseTrait { from { transform: scaleY(0); } }
nav#menu a .compte {
  margin-left: auto; font-size: 11px; color: var(--texte-doux);
  background: var(--neutre-doux); border-radius: 10px; padding: 1px 7px;
}
nav#menu a.actif .compte { background: var(--fond-carte); color: var(--accent); }

main#vue { flex: 1; min-width: 0; padding: 26px 32px 90px; max-width: 1360px; }

/* L'ENTRÉE DE PAGE, quand le navigateur n'a pas de View Transitions : chaque bloc de premier
   niveau monte d'un cran, l'un après l'autre — 250 ms en tout, au plus (BO-11). */
main#vue.entree > * { animation: monte .2s var(--sortie) both; }
main#vue.entree > *:nth-child(2) { animation-delay: .02s; }
main#vue.entree > *:nth-child(3) { animation-delay: .035s; }
main#vue.entree > *:nth-child(n+4) { animation-delay: .05s; }

/* LA TRANSITION D'ÉCRAN (View Transitions, app.js « rendreEnTransition ») : seule la vue est
   nommée, donc seule elle s'anime ; la racine — bandeau, menu — passe sans fondu. Le groupe ne
   s'anime pas non plus : sa taille saute à la nouvelle, ce sont les deux images qui se fondent,
   ce qui évite la page qui s'étire ou se tasse pendant 200 ms. */
main#vue { view-transition-name: vue; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-group(vue) { animation: none; }
::view-transition-old(vue) { animation: vt-sort .1s ease-in both; }
::view-transition-new(vue) { animation: vt-entre .2s var(--sortie) .03s both; }
@keyframes vt-sort { to { opacity: 0; } }
@keyframes vt-entre { from { opacity: 0; transform: translateY(6px); } }
@keyframes monte { from { opacity: 0; transform: translateY(10px); } }
@keyframes apparait { from { opacity: 0; } }

/* Le contenu qui arrive après un chargement se fond à la place du squelette — seulement si le
   squelette a été vu (ui.js « charger ») : ce que sert la mémoire de lecture ne se fond pas. */
.apparait { animation: apparait .2s ease both; }
.apparait > * { animation: monte .22s var(--sortie) both; }
.apparait > *:nth-child(2) { animation-delay: .02s; }
.apparait > *:nth-child(n+3) { animation-delay: .04s; }

/* LES RUBRIQUES (BO-10) : repliables, une seule ouverte — celle de l'écran courant. Le menu tient
   ainsi dans la fenêtre sans défiler ; les entrées sont en retrait sous leur rubrique. */
nav#menu details.rubrique { margin-top: 2px; }
nav#menu details.rubrique:first-of-type { margin-top: 6px; padding-top: 5px; border-top: 1px solid var(--bord); }

/* LA RECHERCHE DE RUBRIQUE (BO-19) : un champ discret en tête ; pendant la frappe, seules les entrées
   qui répondent restent, leurs rubriques ouvertes, et la première est marquée — Entrée l'ouvre. */
nav#menu .champ-menu {
  display: flex; align-items: center; gap: 7px; margin: 0 0 4px; padding: 0 9px;
  border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--fond-carte);
  color: var(--texte-doux); transition: border-color .15s, box-shadow .15s;
}
nav#menu .champ-menu:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-doux); }
nav#menu .champ-menu .icone { flex: none; }
nav#menu .champ-menu input {
  border: 0; outline: 0; box-shadow: none; background: transparent; padding: 6px 0; font-size: 13px;
  width: 100%; min-width: 0;
}
nav#menu [hidden] { display: none !important; }
nav#menu.en-recherche details.rubrique:first-of-type { border-top: 0; }
nav#menu.en-recherche a.premier:not(.actif) { background: var(--fond-creux); color: var(--texte); }
nav#menu .menu-aucun { font-size: 12.5px; color: var(--texte-doux); padding: 8px 10px; }
nav#menu .menu-aucun button { font-size: 12.5px; padding: 2px 4px; color: var(--accent-texte); }
nav#menu details.rubrique > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: var(--rayon);
  color: var(--texte); font-size: 13.5px; font-weight: 600;
  transition: background-color .15s ease, color .15s ease;
}
nav#menu details.rubrique > summary::-webkit-details-marker { display: none; }
nav#menu details.rubrique > summary .icone { color: var(--texte-doux); opacity: .85; }
nav#menu details.rubrique > summary::after {
  content: "›"; margin-left: auto; font-size: 15px; line-height: 1; color: var(--texte-doux);
  transition: transform .2s var(--sortie);
}
nav#menu details.rubrique[open] > summary::after { transform: rotate(90deg); }
nav#menu details.rubrique > summary:hover { background: var(--fond-creux); }
nav#menu details.rubrique > summary:active { background: var(--neutre-doux); }
nav#menu details.rubrique > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* Repliée, la rubrique de l'écran courant garde sa couleur : on sait toujours où l'on est. */
nav#menu details.rubrique.contient-actif > summary,
nav#menu details.rubrique.contient-actif > summary .icone { color: var(--accent-texte); }
nav#menu details.rubrique > .entrees {
  margin: 1px 0 6px 18px; padding-left: 8px; border-left: 1px solid var(--bord);
}
nav#menu details.rubrique > .entrees a { padding: 5px 10px; font-size: 13px; }
nav#menu details.rubrique > .entrees a.actif::before { left: -9px; }
/* Le dépliage s'anime en JavaScript, au clic seulement (app.js « basculerRubrique ») : la hauteur
   d'un contenu « auto » ne s'interpole pas en CSS hors de Chrome. Le chevron suit, lui, en CSS. */

/* ------------------------------------------------------------------- titres */

h1 { font-size: 25px; margin: 0 0 4px; letter-spacing: -.025em; font-weight: 720; line-height: 1.2; }
h2 { font-size: 15px; margin: 28px 0 12px; letter-spacing: -.01em; font-weight: 650; }
h3 { font-size: 13.5px; margin: 0 0 8px; color: var(--texte-doux); }
.sous-titre { color: var(--texte-doux); margin: 0 0 20px; }

/* ------------------------------------------------- fil d'Ariane et onglets */

.fil { display: flex; align-items: center; gap: 6px; font-size: 12.5px; margin-bottom: 8px; flex-wrap: wrap; }
.fil a { color: var(--texte-doux); text-decoration: none; transition: color .15s; }
.fil a:hover { color: var(--accent); }
.fil .separateur { color: var(--texte-doux); opacity: .5; }
.fil .courant { color: var(--texte); font-weight: 500; }

.onglets {
  display: flex; gap: 2px; flex-wrap: wrap; position: relative;
  border-bottom: 1px solid var(--bord); margin: 18px 0 20px;
}
.onglets a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 13px; text-decoration: none; color: var(--texte-doux);
  font-size: 13.5px; font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  border-radius: var(--rayon) var(--rayon) 0 0;
  transition: color .15s, background-color .15s;
}
.onglets a:hover { color: var(--texte); background: var(--fond-creux); }
.onglets a:active { background: var(--neutre-doux); }
.onglets a.actif { color: var(--accent-texte); border-bottom-color: var(--accent); font-weight: 600; }
/* Le trait glissant prend le relais du soulignement dès que le script l'a placé. */
.onglets .indicateur {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--degrade); border-radius: 2px; opacity: 0;
  transition: transform .38s var(--sortie), width .38s var(--sortie);
}
.onglets.avec-indicateur .indicateur { opacity: 1; }
.onglets.avec-indicateur a.actif { border-bottom-color: transparent; }
.onglets a .compte {
  font-size: 11px; background: var(--neutre-doux); color: var(--texte-doux);
  border-radius: 10px; padding: 1px 6px;
}
.onglets a.actif .compte { background: var(--accent-doux); color: var(--accent); }
.contenu-onglet { animation: monte .32s var(--sortie) both; }

/* Un lien vers une autre rubrique : discret mais reconnaissable. */
a.lien-interne { color: var(--accent-texte); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s; font-weight: 500; }
a.lien-interne:hover { border-bottom-color: currentColor; }
td a.lien-interne { font-family: var(--mono); font-size: 12.5px; }

/* ------------------------------------------------------------------- cartes */

.carte {
  background: var(--fond-carte); border: 1px solid var(--bord);
  border-radius: var(--rayon-grand); box-shadow: var(--ombre);
  margin-bottom: 18px;
}
.carte > .tete {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 13px 18px; border-bottom: 1px solid var(--bord);
}
.carte > .tete h2 { margin: 0; font-size: 14px; }
.carte > .corps-carte { padding: 18px; }
.carte > .corps-carte.serre { padding: 0; overflow: hidden; border-radius: 0 0 var(--rayon-grand) var(--rayon-grand); }

.grille { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }

/* Une série de tuiles chiffrées tient sur une ligne : plus étroit que la grille de cartes. */
.grille.tuiles { grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 14px; }

.carte.cliquable {
  cursor: pointer;
  transition: border-color .2s ease, transform .25s var(--sortie), box-shadow .25s var(--sortie);
}
.carte.cliquable:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--bord)); transform: translateY(-3px); box-shadow: var(--ombre-haute); }
.carte.cliquable:active { transform: translateY(-1px) scale(.99); }

/* ------------------------------------------------------------------- tuiles */

.carte.tuile { position: relative; overflow: hidden; margin-bottom: 0; }
.carte.tuile > .corps-carte { padding: 16px 18px; }
.tuile-valeur {
  font-size: 28px; font-weight: 720; letter-spacing: -.03em; line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.tuile-titre { font-weight: 600; margin-top: 3px; font-size: 13px; }
.tuile-note { color: var(--texte-doux); font-size: 12px; margin-top: 2px; }
.carte.tuile:has(.tuile-icone) > .corps-carte { padding-right: 60px; }
.tuile-icone {
  display: grid; place-items: center; position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent-doux); color: var(--accent);
  transition: transform .3s var(--ressort);
}
.carte.tuile:hover .tuile-icone { transform: scale(1.08) rotate(-6deg); }
.carte.tuile.succes .tuile-icone { background: var(--succes-doux); color: var(--succes); }
.carte.tuile.alerte .tuile-icone { background: var(--alerte-doux); color: var(--alerte); }
.carte.tuile.erreur .tuile-icone { background: var(--erreur-doux); color: var(--erreur); }
.carte.tuile.alerte .tuile-valeur { color: var(--alerte); }
.carte.tuile.erreur .tuile-valeur { color: var(--erreur); }
/* Un halo dans le coin, à la couleur de la tuile : il se devine plus qu'il ne se voit. */
.carte.tuile::after {
  content: ""; position: absolute; width: 140px; height: 140px; right: -60px; top: -70px;
  border-radius: 50%; pointer-events: none; opacity: .5;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  transition: opacity .3s ease, transform .5s var(--sortie);
}
.carte.tuile.succes::after { background: radial-gradient(circle, color-mix(in srgb, var(--succes) 22%, transparent), transparent 70%); }
.carte.tuile.alerte::after { background: radial-gradient(circle, color-mix(in srgb, var(--alerte) 24%, transparent), transparent 70%); }
.carte.tuile.erreur::after { background: radial-gradient(circle, color-mix(in srgb, var(--erreur) 24%, transparent), transparent 70%); }
.carte.tuile:hover::after { opacity: 1; transform: scale(1.3); }

/* ----------------------------------------------------------------- étiquettes */

.pastille {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
  padding: 2px 9px; border-radius: 20px;
  background: var(--neutre-doux); color: var(--texte-doux);
  white-space: nowrap; line-height: 1.6;
}
/* Une pastille colorée porte un point : l'état se lit aussi sans la couleur du fond. */
.pastille.accent, .pastille.succes, .pastille.alerte, .pastille.erreur { padding-left: 8px; }
.pastille.accent::before, .pastille.succes::before, .pastille.alerte::before, .pastille.erreur::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none;
}
.pastille.accent { background: var(--accent-doux); color: var(--accent-texte); }
.pastille.succes { background: var(--succes-doux); color: var(--succes); }
.pastille.alerte { background: var(--alerte-doux); color: var(--alerte); }
.pastille.erreur { background: var(--erreur-doux); color: var(--erreur); }
#etat-socle.succes::before { animation: pouls 2.4s ease-in-out infinite; }
@keyframes pouls {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); }
  50% { box-shadow: 0 0 0 4px transparent; }
}

.methode {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px; letter-spacing: .03em;
}
.methode.GET { background: var(--accent-doux); color: var(--accent); }
.methode.POST { background: var(--succes-doux); color: var(--succes); }
.methode.PUT, .methode.PATCH { background: var(--alerte-doux); color: var(--alerte); }
.methode.DELETE { background: var(--erreur-doux); color: var(--erreur); }

.chemin { font-family: var(--mono); font-size: 12px; color: var(--texte-doux); }

/* ---------------------------------------------------------------- commandes */

button, .bouton {
  font: inherit; font-size: 13px; font-weight: 550;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 7px 13px; border-radius: var(--rayon);
  border: 1px solid var(--bord-fort); background: var(--fond-carte); color: var(--texte);
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 1px rgba(16, 24, 40, .04);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease,
    transform .12s ease, box-shadow .2s ease, filter .15s ease;
}
button:hover:not(:disabled) { background: var(--fond-creux); border-color: var(--bord-fort); }
/* L'appui se sent : le bouton s'enfonce d'un rien. */
button:active:not(:disabled), .bouton:active { transform: scale(.97); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.primaire {
  background: var(--degrade); border-color: transparent; color: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .1), 0 4px 14px -4px color-mix(in srgb, var(--accent) 60%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .18);
}
button.primaire:hover:not(:disabled) {
  background: var(--degrade); filter: brightness(1.08) saturate(1.05);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .1), 0 8px 22px -6px color-mix(in srgb, var(--accent) 70%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .18);
}
/* Un bouton qui travaille (désactivé pendant l'envoi) le montre par un reflet qui passe. */
button.primaire:disabled { opacity: .75; background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%), var(--degrade); background-size: 220% 100%, 100% 100%; animation: reflet 1s linear infinite; }
@keyframes reflet { from { background-position: 120% 0, 0 0; } to { background-position: -120% 0, 0 0; } }
button.danger { color: var(--erreur); border-color: color-mix(in srgb, var(--erreur) 55%, var(--bord)); }
button.danger:hover:not(:disabled) { background: var(--erreur-doux); border-color: var(--erreur); }
button.discret { border-color: transparent; background: transparent; color: var(--texte-doux); box-shadow: none; }
button.discret:hover:not(:disabled) { background: var(--fond-creux); color: var(--texte); }
button.icone-seule { padding: 7px; }
button.menu { font-size: 12.5px; }

.rangee-boutons { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------- formulaires */

label.champ { display: block; margin-bottom: 14px; }
label.champ > .nom { display: block; font-weight: 600; margin-bottom: 5px; font-size: 13px; }
label.champ > .nom .requis { color: var(--erreur); margin-left: 2px; }
label.champ > .aide { display: block; color: var(--texte-doux); font-size: 12px; margin-top: 4px; }

input[type=text], input[type=password], input[type=number], input[type=search],
input[type=email], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; font-size: 13.5px;
  padding: 8px 11px; border-radius: var(--rayon);
  border: 1px solid var(--bord-fort); background: var(--fond-carte); color: var(--texte);
  transition: border-color .15s ease, box-shadow .2s ease, background-color .15s ease;
}
input:hover:not(:focus):not(:disabled), select:hover:not(:focus):not(:disabled), textarea:hover:not(:focus) { border-color: color-mix(in srgb, var(--texte-doux) 55%, var(--bord-fort)); }
textarea { font-family: var(--mono); font-size: 12.5px; min-height: 76px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--accent) 22%, transparent);
}
input.fautif, select.fautif, textarea.fautif {
  border-color: var(--erreur); background: var(--erreur-doux);
  animation: secousse .35s ease;
}
@keyframes secousse { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.message-champ { color: var(--erreur); font-size: 12px; margin-top: 4px; font-weight: 500; animation: monte .25s var(--sortie); }

label.bascule { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; cursor: pointer; }
label.bascule input { width: auto; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; }

.groupe-monnaie { display: flex; align-items: center; gap: 6px; }
.groupe-monnaie input { flex: 1; }
.groupe-monnaie .unite { color: var(--texte-doux); font-size: 12px; white-space: nowrap; }

fieldset.objet {
  border: 1px solid var(--bord); border-radius: var(--rayon);
  padding: 14px 14px 4px; margin: 0 0 14px;
}
fieldset.objet > legend { font-size: 12px; font-weight: 650; padding: 0 6px; color: var(--texte-doux); }

details.optionnels { margin: 4px 0 12px; }
details.optionnels > summary {
  cursor: pointer; font-size: 12.5px; color: var(--texte-doux);
  padding: 5px 0; user-select: none; font-weight: 500;
}
details.optionnels > summary:hover { color: var(--accent); }
details.optionnels[open] > summary { margin-bottom: 8px; }
details.optionnels[open] > :not(summary) { animation: monte .3s var(--sortie) both; }

.barre-filtres { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.barre-filtres label.champ { margin-bottom: 0; min-width: 140px; }
.barre-filtres label.bascule { margin-bottom: 6px; }

/* -------------------------------------------------------------------- tables */

.enveloppe-table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--bord); }
tbody tr:last-child td { border-bottom: 0; }
th {
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--texte-doux); font-weight: 650; white-space: nowrap;
  background: var(--fond-creux); position: sticky; top: 0; z-index: 1;
}
tbody tr { transition: background-color .12s ease; }
tbody tr:hover { background: color-mix(in srgb, var(--accent-doux) 55%, transparent); }
tbody tr.cliquable { cursor: pointer; }
/* L'appui sur une ligne qui ouvre une fiche se voit avant que la fiche n'arrive. */
tbody tr.cliquable:active { background: color-mix(in srgb, var(--accent-doux) 90%, transparent); }
/* Les lignes arrivent en cascade, vite : les douze premières, le reste est déjà là. */
/* 250 ms au plus, cascade comprise (BO-11) : une liste qui revient de la mémoire ne doit pas
   mettre plus de temps à finir d'arriver qu'elle n'en a mis à être lue. */
tbody tr { animation: monte .18s var(--sortie) both; }
tbody tr:nth-child(2) { animation-delay: .01s; } tbody tr:nth-child(3) { animation-delay: .02s; }
tbody tr:nth-child(4) { animation-delay: .03s; } tbody tr:nth-child(5) { animation-delay: .04s; }
tbody tr:nth-child(6) { animation-delay: .05s; } tbody tr:nth-child(7) { animation-delay: .06s; }
tbody tr:nth-child(n+8) { animation-delay: .07s; }
td.nombre { text-align: right; font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }
td.vide { color: var(--texte-doux); font-style: italic; }
td img { border-radius: 7px; }

.pagination {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-top: 1px solid var(--bord);
  color: var(--texte-doux); font-size: 12.5px;
}
.pagination .pousse { margin-left: auto; }

dl.paires { margin: 0; display: grid; grid-template-columns: minmax(130px, auto) 1fr; gap: 2px 16px; }
dl.paires dt { color: var(--texte-doux); padding: 5px 0; font-size: 12.5px; }
dl.paires dd { margin: 0; padding: 5px 0; min-width: 0; overflow-wrap: anywhere; }
dl.paires dd.nul { color: var(--texte-doux); font-style: italic; }

/* ------------------------------------------------------------------- blocs JSON */

pre.json {
  margin: 0; padding: 14px; background: var(--fond-creux);
  border-radius: var(--rayon); overflow-x: auto;
  max-height: 460px; overflow-y: auto;
}

/* --------------------------------------------------------------------- avis */

.avis {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 15px; border-radius: var(--rayon);
  border: 1px solid var(--bord); background: var(--fond-creux);
  margin-bottom: 14px; font-size: 13px;
  animation: monte .3s var(--sortie) both;
}
.avis.erreur { background: var(--erreur-doux); border-color: color-mix(in srgb, var(--erreur) 45%, transparent); }
.avis.alerte { background: var(--alerte-doux); border-color: color-mix(in srgb, var(--alerte) 45%, transparent); }
.avis.succes { background: var(--succes-doux); border-color: color-mix(in srgb, var(--succes) 45%, transparent); }
.avis .titre-avis { font-weight: 650; }
.avis ul { margin: 6px 0 0; padding-left: 18px; }

/* ------------------------------------------------------------------ voile */

.voile {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 12, 20, .42);
  backdrop-filter: blur(6px) saturate(1.2); -webkit-backdrop-filter: blur(6px) saturate(1.2);
  padding: 20px;
  animation: apparait .2s ease both;
}
.voile .boite {
  background: var(--fond-carte); border: 1px solid var(--bord);
  border-radius: 16px; box-shadow: var(--ombre-fenetre);
  width: 100%; max-width: 440px; padding: 22px 24px 24px;
  max-height: 90vh; overflow-y: auto;
  animation: grandit .32s var(--ressort) both;
}
@keyframes grandit { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.voile.sortie { animation: disparait .17s ease both; pointer-events: none; }
.voile.sortie .boite, .voile.sortie .palette { animation: retrecit .17s ease both; }
@keyframes disparait { to { opacity: 0; } }
@keyframes retrecit { to { opacity: 0; transform: translateY(6px) scale(.97); } }
.voile .boite.large { max-width: 900px; max-height: 88vh; }
.voile .boite h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.voile .tete-boite { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.voile .tete-boite .fermer { margin-left: auto; width: 30px; height: 30px; padding: 0; font-size: 13px; border-radius: 8px; }
.voile .tete-boite .fermer:hover { transform: rotate(90deg); }
.voile .tete-boite .fermer { transition: transform .25s var(--ressort), background-color .15s; }

/* ------------------------------------------------------------------ messages */

#toasts {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  display: flex; flex-direction: column; gap: 10px; max-width: 400px; width: calc(100% - 36px);
  pointer-events: none;
}
#toasts .toast {
  position: relative; overflow: hidden; pointer-events: auto; cursor: pointer;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px 13px; border-radius: 12px;
  background: var(--fond-carte); border: 1px solid var(--bord);
  box-shadow: var(--ombre-haute); font-size: 13px; font-weight: 500;
  animation: glisseDedans .45s var(--ressort) both;
}
#toasts .toast.sortie { animation: glisseDehors .26s ease both; }
@keyframes glisseDedans { from { opacity: 0; transform: translateX(40px) scale(.95); } }
@keyframes glisseDehors { to { opacity: 0; transform: translateX(40px); margin-top: -50px; } }
#toasts .toast-icone { color: var(--accent); margin-top: 1px; }
#toasts .toast-texte { flex: 1; min-width: 0; }
#toasts .toast.erreur { border-color: color-mix(in srgb, var(--erreur) 40%, var(--bord)); }
#toasts .toast.erreur .toast-icone { color: var(--erreur); }
#toasts .toast.succes .toast-icone { color: var(--succes); animation: coche .5s var(--ressort) .1s both; }
@keyframes coche { from { transform: scale(0) rotate(-30deg); } }
/* Le temps qui reste avant que le message ne parte, en un trait qui se vide. */
#toasts .toast-temps {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: currentColor; opacity: .18; transform-origin: left;
  animation: seVide linear both;
}
#toasts .toast.succes .toast-temps { background: var(--succes); opacity: .5; }
#toasts .toast.erreur .toast-temps { background: var(--erreur); opacity: .5; }
#toasts .toast:hover .toast-temps { animation-play-state: paused; }
@keyframes seVide { to { transform: scaleX(0); } }

/* ------------------------------------------------------------------ squelettes */

.squelette {
  border-radius: 10px;
  background: linear-gradient(90deg, var(--fond-creux) 25%, color-mix(in srgb, var(--fond-creux) 40%, var(--fond-carte)) 50%, var(--fond-creux) 75%);
  background-size: 300% 100%;
  animation: miroite 1.4s ease-in-out infinite;
}
@keyframes miroite { from { background-position: 100% 0; } to { background-position: 0 0; } }
.squelette-page { display: grid; gap: 16px; animation: apparait .3s ease .1s both; }
.squelette.tuile { height: 102px; border-radius: var(--rayon-grand); }
.squelette.ligne { height: 14px; }
.squelette.ligne.large { height: 26px; width: 40%; }
.squelette.bloc { height: 260px; border-radius: var(--rayon-grand); }
.squelette-carte {
  display: grid; gap: 14px; padding: 22px;
  border: 1px solid var(--bord); border-radius: var(--rayon-grand); background: var(--fond-carte);
}
/* LES FORMES DE CE QUI ARRIVE (ui.js « squelette ») — mêmes hauteurs que le vrai : rien ne saute
   quand le contenu prend la place. */
.squelette.ligne.fine { height: 11px; }
.squelette-lignes { gap: 0; padding: 0; overflow: hidden; }
.squelette-lignes .tete-s { height: 38px; border-radius: 0; }
.squelette-rangee {
  display: flex; gap: 6%; align-items: center; height: 41px; padding: 0 14px;
  border-top: 1px solid var(--bord);
}
.squelette-rangee .squelette.ligne:last-child { margin-left: auto; }
.squelette-fiche { gap: 10px; }
.squelette-pastilles { display: flex; gap: 8px; margin-top: 2px; }
.squelette.pastille-s { width: 74px; height: 22px; border-radius: 20px; }
.squelette-onglets { display: flex; gap: 10px; padding: 12px 0 9px; margin: 8px 0 10px; border-bottom: 1px solid var(--bord); }
.squelette.onglet-s { height: 16px; }
.squelette-formulaire { gap: 22px; }
.squelette.ligne.titre-s { height: 16px; }
.squelette-champ { display: grid; gap: 9px; }
.squelette-champ .squelette.ligne:first-child { height: 11px; }
.squelette.champ-s { height: 38px; border-radius: var(--rayon); }
.squelette.champ-s.haut { height: 110px; }
/* Sur le fond de page, le gris des cartes ne se voit pas : l'en-tête de fiche prend un ton plus franc. */
.squelette-fiche > .squelette, .squelette-pastilles > .squelette, .squelette-onglets > .squelette,
.squelette.tuile { --fond-creux: var(--neutre-doux); }
/* Posé DANS une carte (la zone d'une liste), le squelette est une liste : ni tuiles, ni second cadre. */
.carte > .squelette-page > .grille.tuiles { display: none; }
.carte > .squelette-page > .squelette-carte { border: 0; border-radius: 0; background: transparent; }

/* ------------------------------------------------------------- palette (Ctrl+K) */

.voile-palette { align-items: flex-start; padding-top: 12vh; z-index: 90; }
.palette {
  width: 100%; max-width: 640px; overflow: hidden;
  background: var(--fond-carte); border: 1px solid var(--bord);
  border-radius: 16px; box-shadow: var(--ombre-fenetre);
  animation: grandit .28s var(--ressort) both;
}
.palette-saisie {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--bord); color: var(--texte-doux);
}
.palette-saisie input {
  border: 0 !important; box-shadow: none !important; background: transparent !important;
  padding: 4px 0; font-size: 16px; color: var(--texte);
}
.palette-liste { max-height: min(56vh, 460px); overflow-y: auto; padding: 6px; scroll-padding: 8px; }
.palette-groupe {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; font-weight: 650;
  color: var(--texte-doux); padding: 10px 10px 4px;
}
.palette-entree {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 9px; cursor: pointer;
  animation: monte .25s var(--sortie) both; animation-delay: calc(var(--i, 0) * 12ms);
}
.palette-entree.choisie { background: var(--accent-doux); }
.palette-entree.choisie .palette-icone { background: var(--degrade); color: #fff; border-color: transparent; }
.palette-icone {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: var(--fond-creux); border: 1px solid var(--bord); color: var(--texte-doux);
  transition: background-color .15s, color .15s;
}
.palette-vignette { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; flex: none; }
.palette-titre { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-note { color: var(--texte-doux); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.palette-retour { margin-left: auto; color: var(--accent); opacity: 0; font-weight: 700; transition: opacity .12s, transform .2s var(--sortie); transform: translateX(-4px); }
.palette-entree.choisie .palette-retour { opacity: 1; transform: none; }
.palette-vide, .palette-attente { padding: 22px; text-align: center; color: var(--texte-doux); display: flex; justify-content: center; align-items: center; gap: 9px; }
.point-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulsation 1s ease-in-out infinite; }
@keyframes pulsation { 50% { transform: scale(.5); opacity: .4; } }
.palette-pied {
  display: flex; gap: 18px; padding: 9px 16px; border-top: 1px solid var(--bord);
  font-size: 11.5px; color: var(--texte-doux); background: var(--fond-creux);
}
.palette-pied kbd { margin-right: 3px; }

/* --------------------------------------------------------------------- trace */

.trace .etape {
  display: flex; align-items: baseline; gap: 9px;
  padding: 5px 8px; border-radius: 6px; font-size: 13px;
}
.trace .etape:hover { background: var(--fond-creux); }
.trace .etape .id { font-family: var(--mono); font-size: 12px; }
.trace .etape .duree { margin-left: auto; color: var(--texte-doux); font-size: 11.5px; font-family: var(--mono); }
.trace .enfants { margin-left: 18px; border-left: 2px solid var(--bord); padding-left: 6px; }
.trace .etape.echec { background: var(--erreur-doux); }
.trace .etape.ignoree { opacity: .6; }

.chargement { color: var(--texte-doux); padding: 20px 0; }

/* ----------------------------------------------------------- tableau de bord */

.bord-entete { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.bord-entete > div:first-child { flex: 1; min-width: 240px; }
.bord-entete .sous-titre { margin: 0; }
.bord-entete .sur-titre { text-transform: none; letter-spacing: .01em; font-size: 12.5px; font-weight: 600; }
.bord-entete .sur-titre::first-letter { text-transform: uppercase; }
.bord { display: grid; gap: 18px; }
.bord > .carte { margin-bottom: 0; }
.grille.kpi { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grille.bord-colonnes { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); align-items: start; }
.grille.bord-colonnes .carte { margin-bottom: 18px; }
.grille.bord-colonnes > .carte:only-child, .grille.bord-colonnes > div > .carte:last-child { margin-bottom: 0; }
.tete-note { color: var(--texte-doux); font-size: 12px; margin-top: 2px; }
.grand-chiffre { font-size: 22px; font-weight: 720; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

.graphique-enveloppe { position: relative; }
.graphique { width: 100%; height: auto; display: block; overflow: visible; }
.graphique .axe { font-size: 11px; fill: var(--texte-doux); font-variant-numeric: tabular-nums; }
.graphique .axe.fort { fill: var(--texte); font-weight: 650; }
.graphique .grille-ligne { stroke: var(--bord); stroke-dasharray: 3 4; }
.graphique .ligne-base { stroke: var(--bord-fort); }
.graphique .barre {
  fill: color-mix(in srgb, var(--accent) 72%, transparent);
  transform-box: fill-box; transform-origin: 50% 100%;
  animation: grandir .7s var(--sortie) both; animation-delay: calc(.1s + var(--i) * 32ms);
  pointer-events: none; transition: fill .15s;
}
.graphique .barre.aujourdhui { fill: var(--accent-2); }
@keyframes grandir { from { transform: scaleY(0); } }
.graphique .zone-survol { fill: var(--accent); opacity: 0; cursor: crosshair; transition: opacity .15s; }
.graphique .zone-survol.active { opacity: .07; }
.bulle-graphique {
  position: absolute; transform: translate(-50%, calc(-100% - 10px)); pointer-events: none;
  background: var(--texte); color: var(--fond-carte);
  padding: 8px 11px; border-radius: 9px; font-size: 12px; white-space: nowrap;
  box-shadow: var(--ombre-haute);
  transition: left .18s var(--sortie), top .18s var(--sortie);
  animation: apparait .15s ease;
}
.bulle-graphique::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px;
  background: inherit; transform: translateX(-50%) rotate(45deg);
}
.bulle-jour { opacity: .7; font-size: 11px; }
.bulle-jour::first-letter { text-transform: uppercase; }
.bulle-valeur { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.bulle-note { opacity: .7; font-size: 11px; }
.graphique-vide {
  position: absolute; inset: 0 0 26px 56px; display: grid; place-items: center;
  color: var(--texte-doux); font-size: 13px;
}

ul.flux { list-style: none; margin: 0; padding: 0; }
ul.flux li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 18px; border-bottom: 1px solid var(--bord); cursor: pointer;
  transition: background-color .12s;
  animation: monte .35s var(--sortie) both; animation-delay: calc(.15s + var(--i) * 40ms);
}
ul.flux li:last-child { border-bottom: 0; }
ul.flux li:hover { background: color-mix(in srgb, var(--accent-doux) 55%, transparent); }
ul.flux .flux-texte { display: grid; flex: 1; min-width: 0; }
ul.flux .flux-texte strong { font-family: var(--mono); font-size: 12.5px; }
ul.flux .flux-texte small { color: var(--texte-doux); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ul.flux .flux-montant { font-weight: 650; font-variant-numeric: tabular-nums; min-width: 84px; text-align: right; }

.barre-empilee {
  display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden;
  background: var(--fond-creux); margin: 4px 0 16px;
  animation: deroule .9s var(--sortie) .15s both; transform-origin: left;
}
@keyframes deroule { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.barre-empilee .seg { display: block; height: 100%; }
.barre-empilee .seg:first-child { border-radius: 6px 0 0 6px; }
.barre-empilee .seg:last-child { border-radius: 0 6px 6px 0; }
.seg.succes, .puce.succes { background: var(--succes); }
.seg.alerte, .puce.alerte { background: var(--alerte); }
.seg.neutre, .puce.neutre { background: var(--bord-fort); }
ul.legende { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
ul.legende li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--texte-doux); }
ul.legende li strong { margin-left: auto; color: var(--texte); font-variant-numeric: tabular-nums; }
.puce { width: 9px; height: 9px; border-radius: 3px; flex: none; }

.etats-commande { display: grid; gap: 2px; padding: 8px !important; }
a.etat-ligne {
  display: flex; align-items: center; padding: 8px 10px; border-radius: 9px;
  color: var(--texte); text-decoration: none; transition: background-color .12s;
}
a.etat-ligne:hover { background: var(--fond-creux); }
a.etat-ligne strong { margin-left: auto; font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------- statistiques */

.stats { margin-bottom: 8px; }
.stats-entete { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.stats-entete h2, h2.titre-section { margin: 0; font-size: 17px; letter-spacing: -.02em; }
h2.titre-section { margin: 30px 0 14px; }
.stats-corps { display: grid; gap: 18px; }
.stats-corps > .carte, .stats-duo .carte { margin-bottom: 0; }
.grille.stats-duo { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.stats-corps .grille.kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Le sélecteur de période : une pastille qui glisse sous le choix. */
.segments {
  position: relative; display: inline-flex; padding: 3px; gap: 2px;
  background: var(--fond-creux); border: 1px solid var(--bord); border-radius: 11px;
}
.segments .segment {
  position: relative; z-index: 1; border: 0; background: transparent; box-shadow: none;
  padding: 6px 13px; font-size: 12.5px; color: var(--texte-doux); border-radius: 8px;
}
.segments .segment:hover:not(:disabled) { background: transparent; color: var(--texte); }
.segments .segment[aria-selected="true"] { color: var(--texte); font-weight: 650; }
.segments-curseur {
  position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 8px; opacity: 0;
  background: var(--fond-carte); box-shadow: 0 1px 3px rgba(16, 24, 40, .12), 0 0 0 1px var(--bord);
  transition: transform .35s var(--ressort), width .35s var(--sortie);
}
.segments.pret .segments-curseur { opacity: 1; }

.variation {
  display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 650;
  padding: 1px 7px; border-radius: 20px; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.variation.hausse { background: var(--succes-doux); color: var(--succes); }
.variation.baisse { background: var(--erreur-doux); color: var(--erreur); }
.variation.neutre { background: var(--neutre-doux); color: var(--texte-doux); }
.tuile-note .variation { margin-right: 3px; }
.tete-chiffre { display: flex; align-items: center; gap: 10px; }

.graphique .serie { fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.graphique .serie-precedente { fill: none; stroke: var(--texte-doux); stroke-width: 1.5; stroke-dasharray: 4 5; opacity: .55; }
.graphique .deg-haut { stop-color: var(--accent); stop-opacity: .28; }
.graphique .deg-bas { stop-color: var(--accent); stop-opacity: 0; }
.graphique .point-fin { fill: var(--accent); stroke: var(--fond-carte); stroke-width: 2; animation: respire 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes respire { 50% { stroke-width: 6; stroke: color-mix(in srgb, var(--accent) 25%, transparent); } }
.graphique .reticule { stroke: var(--bord-fort); stroke-dasharray: 3 3; }
.graphique .point-survol { fill: var(--accent); stroke: var(--fond-carte); stroke-width: 2.5; }
.graphique .point-precedent { fill: var(--fond-carte); stroke: var(--texte-doux); stroke-width: 1.5; }
.graphique .zone-survol-courbe { fill: transparent; cursor: crosshair; }
/* Au premier dessin, la ligne se trace de gauche à droite et l'aire monte derrière elle. */
.graphique.anime .serie { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 1.3s var(--sortie) .15s forwards; }
.graphique.anime .serie-precedente { animation: apparait .8s ease .6s both; }
.graphique.anime .aire { animation: monteAire 1s var(--sortie) .35s both; transform-box: fill-box; transform-origin: 50% 100%; }
.graphique.anime .point-fin { animation: pop .4s var(--ressort) 1.3s both, respire 2.2s ease-in-out 1.7s infinite; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes monteAire { from { opacity: 0; transform: scaleY(.4); } }
@keyframes pop { from { transform: scale(0); } }
.graphique:not(.anime) .barre { animation: none; }

ul.legende-ligne { list-style: none; display: flex; gap: 18px; margin: 10px 0 0; padding: 0; font-size: 12px; color: var(--texte-doux); }
ul.legende-ligne li { display: flex; align-items: center; gap: 7px; }
.trait-legende { width: 18px; height: 0; border-top: 2.5px solid var(--accent); border-radius: 2px; }
.trait-legende.precedent { border-top: 2px dashed var(--texte-doux); opacity: .7; }

.anneau-bloc { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
svg.anneau { width: 160px; height: 160px; flex: none; }
.anneau-fond { stroke: var(--fond-creux); }
.anneau-part {
  transition: opacity .2s ease, stroke-width .2s ease; cursor: pointer;
  animation: apparait .5s ease both; animation-delay: calc(.2s + var(--i) * 90ms);
}
.anneau-part:hover { stroke-width: 20; }
.anneau-part.eteinte, .anneau-legende li.eteinte { opacity: .3; }
.anneau-centre { font-size: 26px; font-weight: 750; fill: var(--texte); letter-spacing: -.03em; }
.anneau-note { font-size: 11px; fill: var(--texte-doux); }
.anneau-legende { flex: 1; min-width: 180px; }
.anneau-legende li { transition: opacity .2s; cursor: default; }
.anneau-legende li small { color: var(--texte-doux); margin-left: 6px; font-variant-numeric: tabular-nums; }
.anneau-legende li.nul { opacity: .55; }
/* Les couleurs d'état sont celles des pastilles : « À valider » est orange partout. */
.etat-pending { stroke: var(--alerte); background: var(--alerte); }
.etat-confirmed { stroke: var(--accent); background: var(--accent); }
.etat-shipped { stroke: var(--accent-2); background: var(--accent-2); }
.etat-completed { stroke: var(--succes); background: var(--succes); }
.etat-cancelled { stroke: var(--erreur); background: var(--erreur); }

ol.classement { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
ol.classement > li { animation: monte .4s var(--sortie) both; animation-delay: calc(.1s + var(--i) * 60ms); }
.classement-ligne {
  display: flex; gap: 12px; align-items: flex-start; padding: 8px; margin: 0 -8px; border-radius: 9px;
  color: inherit; text-decoration: none;
}
a.classement-ligne:hover { background: var(--fond-creux); }
.classement-rang {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; flex: none;
  font-size: 11px; font-weight: 700; background: var(--fond-creux); color: var(--texte-doux);
}
ol.classement > li:first-child .classement-rang { background: var(--degrade); color: #fff; }
.classement-corps { flex: 1; min-width: 0; display: grid; gap: 4px; }
.classement-tete { display: flex; gap: 10px; align-items: baseline; }
.classement-libelle { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.classement-tete strong { font-variant-numeric: tabular-nums; }
.classement-piste { height: 6px; border-radius: 4px; background: var(--fond-creux); overflow: hidden; }
.classement-barre {
  display: block; height: 100%; border-radius: 4px; background: var(--degrade);
  transform-origin: left; animation: etire .9s var(--sortie) both; animation-delay: calc(.2s + var(--i) * 70ms);
}
@keyframes etire { from { transform: scaleX(0); } }
.classement-corps small { color: var(--texte-doux); font-size: 11.5px; }
.squelette-liste { display: grid; gap: 14px; }

/* ----------------------------------------------------- catégories d'un article */

.selection-categories { margin-bottom: 16px; }
.puces-categories { display: flex; flex-wrap: wrap; gap: 8px; }
.puce-categorie {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 6px 4px 4px; border-radius: 20px; font-size: 13px; font-weight: 550;
  background: var(--fond-creux); border: 1px solid var(--bord);
  animation: grandit .3s var(--ressort) both;
}
.puce-categorie.principale {
  background: var(--accent-doux); border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent-texte);
}
.puce-categorie small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.puce-categorie button {
  border: 0; background: transparent; box-shadow: none; padding: 0; width: 24px; height: 24px;
  border-radius: 50%; font-size: 13px; color: var(--texte-doux);
}
.puce-categorie .etoile-puce:hover:not(:disabled) { color: var(--accent); background: var(--fond-carte); transform: rotate(-15deg) scale(1.15); }
.puce-categorie.principale .etoile-puce { color: var(--accent); opacity: 1; cursor: default; }
.puce-categorie .retirer-puce:hover:not(:disabled) { color: var(--erreur); background: var(--erreur-doux); }
.arbres-categories { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.arbre-categories { border: 1px solid var(--bord); border-radius: var(--rayon); padding: 6px; }
.arbre-titre { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 650; color: var(--texte-doux); padding: 6px 8px; }
.ligne-categorie {
  display: flex; align-items: center; gap: 8px; border-radius: 8px;
  padding: 2px 4px 2px calc(8px + var(--niveau, 0) * 20px);
  transition: background-color .15s;
}
.ligne-categorie:hover { background: var(--fond-creux); }
.ligne-categorie.choisie { background: color-mix(in srgb, var(--accent-doux) 60%, transparent); }
.ligne-categorie label { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; padding: 5px 0; cursor: pointer; }
.ligne-categorie label code { margin-left: 4px; color: var(--texte-doux); font-size: 11px; }
.etoile-ligne { font-size: 12px; padding: 3px 8px; color: var(--texte-doux); }
.ligne-categorie.principale .etoile-ligne { color: var(--accent-texte); font-weight: 650; }
.etoile-ligne:not([hidden]) { animation: apparait .2s ease; }

/* ------------------------------------------------------------------- mobile */

#bouton-menu { display: none; }

@media (max-width: 1100px) {
  .grille.bord-colonnes { grid-template-columns: 1fr; }
  .declencheur-palette { min-width: 0; }
}

@media (max-width: 860px) {
  .corps { flex-direction: column; }
  /* PETIT ÉCRAN : le menu se replie derrière le bouton ☰ — sinon ses rubriques passaient avant le
     contenu, à faire défiler à chaque écran. Il se referme dès qu'on choisit. */
  #bouton-menu { display: inline-flex; padding: 7px; }
  nav#menu {
    display: none;
    width: 100%; flex: none; position: static; max-height: none;
    border-right: 0; border-bottom: 1px solid var(--bord);
    background: var(--fond-carte);
  }
  body.menu-ouvert nav#menu { display: block; animation: deplie .28s var(--sortie) both; }
  @keyframes deplie { from { opacity: 0; transform: translateY(-8px); } }
  nav#menu a.actif::before { left: -4px; }
  /* Les onglets DÉFILENT au lieu de passer à la ligne : le trait glissant ne suit qu'une rangée. */
  .onglets { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .onglets::-webkit-scrollbar { display: none; }
  .onglets a { flex: none; }
  header { gap: 8px; padding: 0 12px; }
  #etat-socle, #identite .pastille, #identite .qui-nom, #identite select { display: none; }
  .declencheur-palette { margin-left: auto; padding: 7px 9px; }
  .declencheur-palette .texte, .declencheur-palette kbd { display: none; }
  header .pousse { display: none; }
  main#vue { min-width: 0; }
  .corps-carte.serre { overflow-x: auto; }
  main#vue { padding: 18px 16px 70px; width: 100%; }
  h1 { font-size: 22px; }
  .voile-palette { padding: 10px; padding-top: 8px; }
  .palette-pied { display: none; }
  ul.flux li { padding: 10px 14px; gap: 10px; }
  ul.flux .pastille { display: none; }
  .grille.kpi, .stats-corps .grille.kpi { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grille.stats-duo { grid-template-columns: 1fr; }
  .stats-entete .segments { width: 100%; }
  .stats-entete .segment { flex: 1; padding: 6px 4px; }
  .anneau-bloc { justify-content: center; }
  .tete-chiffre .variation { display: none; }
  .grille.kpi > :first-child { grid-column: 1 / -1; }
  .carte.tuile > .corps-carte { padding: 14px; }
  .carte.tuile:has(.tuile-icone) > .corps-carte { padding-right: 14px; }
  .tuile-icone { width: 28px; height: 28px; top: 12px; right: 12px; }
  .tuile-valeur { font-size: 23px; }
  .bord-entete .rangee-boutons { width: 100%; }
  .bord-entete .rangee-boutons button { flex: 1; }
}

/* ---------------------------------------------------------------------------
   LA PORTE — l'écran de connexion, seul avant la session.

   Tout vient des jetons de :root, donc les deux thèmes suivent sans règle dédiée. Le décor (trois
   halos qui dérivent lentement) est en CSS pur : rien à charger.
   --------------------------------------------------------------------------- */

a.bouton { display: inline-flex; text-decoration: none; }
.bouton.primaire { background: var(--degrade); border-color: transparent; color: #fff; }
.bouton.primaire:hover { filter: brightness(1.08); }
.bouton.discret { border-color: transparent; background: transparent; color: var(--texte-doux); }
.bouton.grand, button.grand { padding: 11px 22px; font-size: 14.5px; border-radius: 11px; }
button.plein { width: 100%; }
button.plein .icone { transition: transform .25s var(--ressort); }
button.plein:hover .icone { transform: translateX(4px); }

/* Sans session : pas de menu, et le corps reprend toute la largeur — une
   colonne de menu vide donnerait une page décentrée qui a l'air cassée. */
body.sans-session nav#menu, body.sans-session #bouton-menu { display: none !important; }
body.sans-session .corps { display: block; }
body.sans-session main#vue { padding: 0; max-width: none; }
body.sans-session header { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; position: absolute; left: 0; right: 0; }

/* ---- La page de connexion ----------------------------------------------- */

.porte {
  position: relative; overflow: hidden; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; padding: 80px 24px 48px;
}
.porte-decor { position: absolute; inset: 0; pointer-events: none; }
.porte-decor .bulle {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
  animation: derive 18s ease-in-out infinite alternate;
}
.porte-decor .b1 { width: 520px; height: 520px; left: -120px; top: -160px; background: var(--accent); opacity: .28; }
.porte-decor .b2 { width: 460px; height: 460px; right: -140px; bottom: -160px; background: var(--accent-2); opacity: .26; animation-delay: -6s; animation-duration: 22s; }
.porte-decor .b3 { width: 320px; height: 320px; left: 45%; top: 30%; background: #22d3ee; opacity: .14; animation-delay: -12s; }
@keyframes derive {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.12); }
  100% { transform: translate(-40px, 70px) scale(.95); }
}
/* Un quadrillage très léger, qui s'efface vers les bords. */
.porte::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--bord) 1px, transparent 1px), linear-gradient(90deg, var(--bord) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .5;
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
}

.porte-scene {
  position: relative; width: 100%; max-width: 1000px;
  display: grid; grid-template-columns: 1.1fr minmax(0, 440px); gap: 56px; align-items: center;
}
.porte-vitrine { animation: monte .7s var(--sortie) both; }
.porte-logo { display: flex; align-items: center; gap: 12px; font-weight: 750; font-size: 19px; letter-spacing: -.02em; margin-bottom: 30px; }
.porte-vitrine h2 { font-size: 44px; line-height: 1.08; letter-spacing: -.04em; margin: 0 0 30px; font-weight: 780; }
.degrade {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: courant 6s linear infinite;
}
@keyframes courant { to { background-position: 200% center; } }
ul.porte-atouts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
ul.porte-atouts li {
  display: flex; align-items: center; gap: 14px;
  animation: monte .6s var(--sortie) both; animation-delay: calc(.25s + var(--i) * 110ms);
}
ul.porte-atouts li > span:last-child { display: grid; }
ul.porte-atouts strong { font-size: 14px; }
ul.porte-atouts small { color: var(--texte-doux); font-size: 13px; }
.atout-icone {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: var(--fond-verre); border: 1px solid var(--bord); color: var(--accent);
  box-shadow: var(--ombre); backdrop-filter: blur(8px);
}

.porte-bloc {
  width: 100%; max-width: 680px; position: relative;
  background: var(--fond-verre); border: 1px solid var(--bord);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: 20px; padding: 36px 36px 30px; box-shadow: var(--ombre-fenetre);
  animation: grandit .6s var(--ressort) .1s both;
}
.porte-bloc.etroit { max-width: 440px; }
.porte-bloc h1 { margin: 0 0 10px; font-size: 28px; letter-spacing: -.03em; }
.sur-titre {
  margin: 0 0 10px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.porte-accroche { margin: 0 0 26px; font-size: 14px; line-height: 1.6; color: var(--texte-doux); }

.porte .champ { display: block; margin-bottom: 16px; }
.porte .champ .nom { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; }
.porte .champ input { width: 100%; box-sizing: border-box; padding: 11px 13px; font-size: 14.5px; border-radius: 11px; background: var(--fond-carte); }
.champ-avec-bouton { position: relative; display: block; }
.champ-avec-bouton input { padding-right: 84px !important; }
.champ-avec-bouton .montrer-mot { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); padding: 5px 10px; font-size: 12px; }
.champ-avec-bouton .montrer-mot:active:not(:disabled) { transform: translateY(-50%) scale(.96); }
.porte .rangee-boutons { margin-top: 24px; align-items: center; }
.porte .zone-erreur { margin-bottom: 15px; }
.porte .zone-erreur:empty { display: none; margin: 0; }
.porte .zone-erreur .avis { animation: secousse .4s ease; }

.porte-note {
  display: grid; gap: 6px; justify-items: start;
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--bord);
}
.porte-note strong { font-size: 13px; }
.porte-note span { font-size: 12.5px; line-height: 1.55; color: var(--texte-doux); }
.porte-note code {
  font-family: var(--mono); font-size: 11.5px;
  padding: 3px 8px; border-radius: 6px; background: var(--neutre-doux);
}

/* ---- Petits écrans ------------------------------------------------------ */

@media (max-width: 900px) {
  .porte-scene { grid-template-columns: 1fr; gap: 26px; justify-items: center; }
  .porte-vitrine { text-align: center; }
  .porte-vitrine h2, ul.porte-atouts { display: none; }
  .porte-logo { justify-content: center; margin-bottom: 0; }
}
@media (max-width: 760px) {
  .porte { padding: 64px 16px 40px; align-items: flex-start; }
  .porte-bloc { padding: 28px 22px 24px; }
}

/* ---- Moins de mouvement --------------------------------------------------
   Le système l'a demandé : tout s'arrête, sauf les fondus très courts qui disent qu'une chose
   est apparue. Les chiffres, eux, défilent encore : c'est du texte qui change, pas un déplacement
   (BO-4, ui.js « compter »). Les transitions d'écran et le dépliage du menu s'arrêtent aussi en
   JavaScript (app.js « mouvementReduit »). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .squelette { animation: none; }
  .porte-decor { display: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---- Bandeau du haut entre 861 et 1280 px (retour d'intégration E) --------
   À 1024 px, la pastille du socle (« socle 73741dc4fc1d · 142 workflows »), le champ de recherche,
   « Ctrl K », la devise et l'identité se chevauchaient. Chacun cède sa place dans un ordre fixe :
   le nom de l'utilisateur d'abord, puis le texte du champ de recherche, puis le détail du socle. */
header > * { flex-shrink: 0; }
header .declencheur-palette { flex-shrink: 1; min-width: 0; overflow: hidden; }
header .declencheur-palette .texte { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#etat-socle { min-width: 0; max-width: 300px; overflow: hidden; }
@media (max-width: 1280px) and (min-width: 861px) {
  #identite .qui-nom { display: none; }
  #etat-socle { max-width: 170px; text-overflow: ellipsis; display: inline-block; vertical-align: middle; line-height: 1.7; }
  #etat-socle::before { display: inline-block; margin-right: 5px; vertical-align: 1px; }
  .declencheur-palette { min-width: 180px; }
}
@media (max-width: 1100px) and (min-width: 861px) {
  #etat-socle { max-width: 110px; }
  .declencheur-palette { min-width: 0; margin-left: 4px; }
  .declencheur-palette .texte, .declencheur-palette kbd { display: none; }
  #identite .pastille { display: none; }
}
