/* S.T.A.F — feuille de style unique.
   Une famille (Barlow) en deux largeurs : Semi Condensed pour les identifiants (références d'AO,
   trigrammes, chiffres), Barlow pour le texte courant. */

@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-400-normal.81419bf5abb5.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-500-normal.8e986e86d57e.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-600-normal.a1e2a2d7d4c0.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-700-normal.15481e4eab6d.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("../fonts/barlow-semi-condensed-latin-500-normal.69988ca9d262.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("../fonts/barlow-semi-condensed-latin-600-normal.64a19a7cafc2.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("../fonts/barlow-semi-condensed-latin-700-normal.d829c77621b7.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ------------------------------------------------------------ Jetons de design */
:root {
  color-scheme: light dark;

  --papier: #f2f5f3;
  --surface: #ffffff;
  --surface-2: #e7edea;
  --encre: #17201c;
  --encre-2: #48544e;
  --encre-3: #66716b;
  --trait: #d1dad5;
  --trait-fort: #aab7b0;

  --sapin: #1d5c4a;
  --sapin-texte: #ffffff;
  --sapin-fond: #dcebe4;
  --bleu: #2a58a0;
  --bleu-fond: #e2eaf7;
  --violet: #6a3ea3;
  --violet-fond: #ece3f7;
  --ambre: #8f5400;
  --ambre-fond: #fbeed6;
  --rouge: #a3302b;
  --rouge-fond: #f8e2e0;

  --police: "Barlow", system-ui, sans-serif;
  --police-id: "Barlow SC", "Barlow", system-ui, sans-serif;

  --t-petit: 0.8125rem;   /* 13 */
  --t-base: 0.9375rem;    /* 15 */
  --t-moyen: 1.0625rem;   /* 17 */
  --t-grand: 1.375rem;    /* 22 */
  --t-titre: 1.875rem;    /* 30 */

  --r-petit: 4px;
  --r: 6px;
  --r-grand: 10px;
  --ombre-levee: 0 1px 2px rgb(23 32 28 / 0.08), 0 8px 24px rgb(23 32 28 / 0.14);
  --anneau: 0 0 0 2px var(--papier), 0 0 0 4px var(--sapin);
  --gouttiere: clamp(16px, 3vw, 32px);

  accent-color: var(--sapin);
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier: #101614;
    --surface: #18201c;
    --surface-2: #1e2824;
    --encre: #e3e9e6;
    --encre-2: #b0bbb5;
    --encre-3: #8e9a94;
    --trait: #2d3933;
    --trait-fort: #4a5851;

    --sapin: #6cc3a2;
    --sapin-texte: #0d2019;
    --sapin-fond: #1c3a2f;
    --bleu: #8db2f2;
    --bleu-fond: #1d2b44;
    --violet: #c3a3f2;
    --violet-fond: #2e2442;
    --ambre: #f0b04a;
    --ambre-fond: #3a2a10;
    --rouge: #f08c84;
    --rouge-fond: #3e1e1c;
    --ombre-levee: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 28px rgb(0 0 0 / 0.5);
  }
}

/* ------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 var(--t-base) / 1.5 var(--police);
  font-variant-numeric: tabular-nums;
}
h1, h2, h3 { font-family: var(--police-id); font-weight: 600; line-height: 1.2; margin: 0; }
h1 { font-size: var(--t-titre); letter-spacing: -0.01em; }
h2 { font-size: var(--t-grand); }
h3 { font-size: var(--t-moyen); }
p { margin: 0; }
a { color: inherit; text-decoration-color: var(--trait-fort); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: none; box-shadow: var(--anneau); border-radius: var(--r-petit); }
img, svg { display: block; max-width: 100%; }
.vh:where(:not(:focus-within, :active)) {
  position: absolute !important; clip-path: inset(50%) !important; overflow: hidden !important;
  width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important;
  border: 0 !important; white-space: nowrap !important;
}
.discret { color: var(--encre-3); }
.petit { font-size: var(--t-petit); }
.id { font-family: var(--police-id); font-weight: 600; letter-spacing: 0.01em; }
.nowrap { white-space: nowrap; }

/* ------------------------------------------------------------ En-tête */
.entete {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 10px var(--gouttiere);
  background: var(--surface);
  border-bottom: 1px solid var(--trait);
  position: sticky; top: 0; z-index: 20;
}
.marque {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 1.25rem/1 var(--police-id); text-decoration: none; color: var(--encre);
}
.marque svg { width: 26px; height: 26px; color: var(--sapin); }
.nav { display: flex; gap: 2px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block; padding: 6px 10px; border-radius: var(--r);
  text-decoration: none; color: var(--encre-2); font-weight: 500;
}
.nav a:hover { background: var(--surface-2); color: var(--encre); }
.nav a[aria-current="page"] { color: var(--encre); background: var(--sapin-fond); }
.entete-fin { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: var(--t-petit); color: var(--encre-3); }
.entete-fin form { margin: 0; }

/* ------------------------------------------------------------ Mise en page */
.page { padding: 24px var(--gouttiere) 64px; max-width: 1180px; margin: 0 auto; }
.page--large { max-width: none; }
.titre-page { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.titre-page .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.chapo { color: var(--encre-2); font-size: var(--t-moyen); margin-top: 6px; max-width: 70ch; }
.section { margin-top: 32px; }
.section > h2 { margin-bottom: 12px; display: flex; align-items: baseline; gap: 10px; }
.section > h2 .compte { font: 500 var(--t-base) var(--police); color: var(--encre-3); }
.deux-colonnes { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .deux-colonnes { grid-template-columns: minmax(0, 1fr) 340px; } }
.panneau { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-grand); padding: 16px 18px; }
.panneau + .panneau { margin-top: 16px; }
.panneau > h2, .panneau > h3 { margin-bottom: 10px; }

/* ------------------------------------------------------------ Messages */
.messages { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.message { padding: 8px 12px; border-radius: var(--r); background: var(--sapin-fond); border-left: 3px solid var(--sapin); }
.message--error { background: var(--rouge-fond); border-left-color: var(--rouge); }
.message--warning { background: var(--ambre-fond); border-left-color: var(--ambre); }

/* ------------------------------------------------------------ Boutons & champs */
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  min-height: 36px; padding: 6px 14px; border-radius: var(--r);
  border: 1px solid var(--trait-fort); background: var(--surface); color: var(--encre);
  font: 500 var(--t-base)/1.2 var(--police); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--surface-2); }
.btn--primaire { background: var(--sapin); border-color: var(--sapin); color: var(--sapin-texte); }
.btn--primaire:hover { background: var(--sapin); filter: brightness(1.08); }
.btn--danger { color: var(--rouge); border-color: currentColor; }
.btn--petit { min-height: 28px; padding: 2px 10px; font-size: var(--t-petit); }
.btn--lien { border-color: transparent; background: none; padding-inline: 4px; color: var(--encre-2); text-decoration: underline; text-decoration-color: var(--trait-fort); }
.btn--lien:hover { background: none; color: var(--encre); }

.champs { display: grid; gap: 16px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.champ { display: grid; gap: 4px; align-content: start; }
.champ--large { grid-column: 1 / -1; }
.champ label, .champ .label { font-weight: 600; font-size: var(--t-petit); color: var(--encre-2); }
.champ .aide { font-size: var(--t-petit); color: var(--encre-3); }
.champ .erreur { font-size: var(--t-petit); color: var(--rouge); }
input:where(:not([type="checkbox"], [type="radio"], [type="file"])), select, textarea {
  width: 100%; min-height: 36px; padding: 6px 10px;
  font: inherit; color: var(--encre); background: var(--surface);
  border: 1px solid var(--trait-fort); border-radius: var(--r);
}
textarea { resize: vertical; line-height: 1.45; }
input[type="checkbox"] { width: 18px; height: 18px; }
:is(input, select, textarea):focus-visible { border-color: var(--sapin); }
:is(input, select, textarea):is(:user-invalid, [aria-invalid="true"]) { border-color: var(--rouge); background: var(--rouge-fond); }
.form-pied { display: flex; gap: 10px; margin-top: 24px; align-items: center; flex-wrap: wrap; }
.filtres { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }
.filtres .champ { min-width: 160px; }
.filtres .champ--recherche { min-width: min(100%, 260px); flex: 1 1 260px; max-width: 380px; }

/* ------------------------------------------------------------ Jetons de candidature (la signature)
   La forme dit le statut, la couleur ne fait que le renforcer :
   pointillé = identifié, contour = DC proposé, demi-plein = entretien, plein = validé, barré = écarté. */
.jetons { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.jeton {
  display: inline-flex; align-items: center; min-height: 22px; padding: 0 6px;
  border: 1.5px solid currentColor; border-radius: var(--r-petit);
  font: 600 var(--t-petit)/1 var(--police-id); letter-spacing: 0.03em;
  text-decoration: none; background: var(--surface);
}
.jeton--identifie { color: var(--encre-2); border-style: dashed; border-color: var(--encre-3); }
.jeton--propose { color: var(--bleu); }
.jeton--entretien { color: var(--violet); background: linear-gradient(to top, var(--violet-fond) 0 55%, var(--surface) 55% 100%); }
.jeton--valide { color: var(--sapin-texte); background: var(--sapin); border-color: var(--sapin); }
.jeton--rejete, .jeton--retire { color: var(--encre-3); border-color: transparent; background: var(--surface-2); text-decoration: line-through; }
.legende { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--t-petit); color: var(--encre-2); align-items: center; }
.legende span { display: inline-flex; gap: 6px; align-items: center; }

/* Statut d'un besoin : pastille de forme + libellé */
.statut { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 500; }
.statut::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.statut--a_qualifier { color: var(--encre-3); }
.statut--en_cours { color: var(--bleu); }
.statut--propose { color: var(--bleu); }
.statut--propose::before { background: currentColor; }
.statut--suspendu { color: var(--ambre); }
.statut--suspendu::before { border-radius: 2px; }
.statut--gagne { color: var(--sapin); }
.statut--gagne::before { background: currentColor; }
.statut--perdu, .statut--sans_candidat { color: var(--encre-3); }
.statut--perdu::before, .statut--sans_candidat::before { background: currentColor; border-radius: 2px; }
.statut--abandonne { color: var(--encre-3); text-decoration: line-through; }
.statut--abandonne::before { border-style: dotted; }
.statut--mission-a_venir { color: var(--bleu); }
.statut--mission-en_cours { color: var(--sapin); }
.statut--mission-en_cours::before { background: currentColor; }
.statut--mission-a_remplacer { color: var(--ambre); }
.statut--mission-a_remplacer::before { background: currentColor; border-radius: 2px; }
.statut--mission-terminee { color: var(--encre-3); }

.alerte { color: var(--ambre); font-weight: 600; }
.alerte-fond { background: var(--ambre-fond); }

/* ------------------------------------------------------------ Aujourd'hui */
.resume { font-size: var(--t-moyen); color: var(--encre-2); margin-top: 8px; }
.resume strong { font: 700 1.5rem/1 var(--police-id); color: var(--encre); vertical-align: -0.1em; }
.a-faire { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--trait); }
.a-faire > li {
  display: grid; gap: 4px 16px; align-items: center; padding: 10px 4px;
  grid-template-columns: minmax(0, 1fr);
  border-bottom: 1px solid var(--trait);
}
@media (min-width: 720px) { .a-faire > li { grid-template-columns: 170px minmax(0, 1fr) auto; } }
.a-faire > li.en-retard { box-shadow: inset 3px 0 0 var(--ambre); padding-left: 12px; }
.a-faire .quoi { min-width: 0; }
.a-faire .quoi a { font-weight: 600; }
.a-faire .quand { text-align: right; font-size: var(--t-petit); color: var(--encre-2); white-space: nowrap; }
.vide { padding: 14px 0; color: var(--encre-3); }

/* ------------------------------------------------------------ Pipeline */
.tableau {
  display: grid; gap: 12px; align-items: stretch; min-height: 60vh;
  grid-template-columns: repeat(5, minmax(260px, 1fr));
  overflow-x: auto; padding: 4px 4px 16px; margin-inline: -4px;
}
.colonne {
  background: var(--surface-2); border-radius: var(--r-grand); padding: 10px;
  min-height: 200px; display: flex; flex-direction: column; gap: 8px;
}
.colonne > .zone { flex: 1; align-content: start; }
.colonne-entete { display: flex; align-items: baseline; gap: 8px; padding: 2px 4px 4px; }
.colonne-entete h2 { font-size: var(--t-moyen); }
.colonne-entete .compte { color: var(--encre-3); font-size: var(--t-petit); }
.zone { display: grid; gap: 8px; min-height: 48px; border-radius: var(--r); transition: background-color 120ms; }
.zone[data-cible] { background: var(--sapin-fond); outline: 2px dashed var(--sapin); outline-offset: 2px; }
.sous-zone + .sous-zone { margin-top: 6px; }
.sous-zone h3 { font: 600 var(--t-petit) var(--police); color: var(--encre-2); padding: 4px 4px 2px; display: flex; justify-content: space-between; }
.zone-vide { font-size: var(--t-petit); color: var(--encre-3); padding: 8px 4px; }
.zone:has(.carte) .zone-vide { display: none; }

.carte {
  position: relative; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r);
  padding: 10px 10px 10px 12px; display: grid; gap: 6px;
}
.carte:hover { border-color: var(--trait-fort); }
.carte:has(.carte-lien:focus-visible) { box-shadow: var(--anneau); }
.carte-tete { display: flex; align-items: start; gap: 6px; }
.carte-ref { font: 700 var(--t-moyen)/1.15 var(--police-id); letter-spacing: 0.01em; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.carte-lien { text-decoration: none; }
.carte-lien:focus-visible { box-shadow: none; }
.carte-lien::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.carte-titre { color: var(--encre-2); font-size: var(--t-petit); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.carte-faits { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: var(--t-petit); color: var(--encre-3); }
.carte-pied { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.carte-age { font-size: var(--t-petit); color: var(--encre-3); white-space: nowrap; }
.carte-age.alerte { color: var(--ambre); }
.carte .jetons, .carte-outils { position: relative; z-index: 1; }

.poignee {
  position: relative; z-index: 1; flex: none;
  width: 24px; height: 24px; display: grid; place-items: center; margin: -2px -4px 0 0;
  border: 0; border-radius: var(--r-petit); background: none; color: var(--encre-3);
  cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; opacity: 0.7;
}
.poignee:is(:hover, :focus-visible) { background: var(--surface-2); color: var(--encre); opacity: 1; }
.poignee svg { width: 14px; height: 14px; }
.en-glisse, .en-glisse * { cursor: grabbing !important; }
.carte.levee { z-index: 30; pointer-events: none; scale: 1.02; box-shadow: var(--ombre-levee); border-color: var(--sapin); }
.carte.origine-vide { opacity: 0.35; }

.menu-statut { position: relative; }
.menu-statut [popover] {
  margin: 0; padding: 6px; min-width: 220px; border: 1px solid var(--trait-fort); border-radius: var(--r);
  background: var(--surface); color: var(--encre); box-shadow: var(--ombre-levee);
}
.menu-statut [popover] form { display: grid; gap: 2px; }
.menu-statut [popover] button {
  text-align: left; border: 0; background: none; padding: 6px 8px; border-radius: var(--r-petit);
  font: inherit; color: inherit; cursor: pointer;
}
.menu-statut [popover] button:hover, .menu-statut [popover] button:focus-visible { background: var(--surface-2); }
.menu-statut [popover] button[aria-current="true"] { font-weight: 600; }
.menu-statut [popover] .titre-menu { font-size: var(--t-petit); color: var(--encre-3); padding: 2px 8px 4px; }

/* ------------------------------------------------------------ Tables */
.table-wrapper { overflow: auto; container-type: inline-size; border: 1px solid var(--trait); border-radius: var(--r-grand); background: var(--surface); }
table { border-collapse: separate; border-spacing: 0; width: 100%; }
caption { text-align: left; padding: 10px 14px; font-weight: 600; }
th, td { padding: 9px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--trait); }
tbody tr:last-child > * { border-bottom: 0; }
thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); font-size: var(--t-petit); font-weight: 600; color: var(--encre-2); white-space: nowrap; }
thead th a { text-decoration: none; }
thead th a[aria-sort]::after { content: " ↓"; }
thead th a[aria-sort="ascending"]::after { content: " ↑"; }
tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
td.num, th.num { text-align: right; }
.ligne-principale { font-weight: 600; }
tbody th[scope="row"] { white-space: nowrap; }
@container (width < 640px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tbody tr { padding: 10px 14px; border-bottom: 1px solid var(--trait); }
  tbody tr:last-child { border-bottom: 0; }
  th, td { padding: 2px 0; border: 0; }
  td[data-label]::before { content: attr(data-label) " : "; color: var(--encre-3); font-size: var(--t-petit); }
  td.num { text-align: left; }
}

/* ------------------------------------------------------------ Fiche */
.fiche-tete { display: grid; gap: 8px; margin-bottom: 24px; }
.fiche-ref { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.fiche-ref .client { font: 600 var(--t-moyen) var(--police-id); color: var(--encre-2); text-decoration: none; }
.fiche-titre { font: 500 var(--t-grand)/1.3 var(--police); color: var(--encre-2); max-width: 60ch; }
.faits { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 0; }
.faits dt { color: var(--encre-3); font-size: var(--t-petit); padding-top: 2px; }
.faits dd { margin: 0; }
.texte-long { white-space: pre-line; max-width: 75ch; color: var(--encre-2); }
.texte-long.replie { max-height: 14em; overflow: hidden; mask-image: linear-gradient(#000 70%, transparent); }
.competences { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.competences li { padding: 1px 8px; border-radius: 999px; background: var(--surface-2); font-size: var(--t-petit); }

.documents { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.documents li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.ext { font: 700 10px/1 var(--police-id); text-transform: uppercase; color: var(--encre-2); border: 1px solid var(--trait-fort); border-radius: 3px; padding: 6px 0; text-align: center; }
.documents a { overflow-wrap: anywhere; }
.documents form { margin: 0; }

.journal { list-style: none; margin: 0; padding: 0; position: relative; }
.journal li { position: relative; padding: 0 0 14px 20px; }
.journal li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--trait-fort); }
.journal li::after { content: ""; position: absolute; left: 7.5px; top: 18px; bottom: 0; width: 1px; background: var(--trait); }
.journal li:last-child::after { display: none; }
.journal li.ev-note::before { background: var(--ambre); border-radius: 2px; }
.journal .quand { font-size: var(--t-petit); color: var(--encre-3); }
.journal .texte { white-space: pre-line; background: var(--surface-2); border-radius: var(--r); padding: 6px 10px; margin-top: 4px; }

/* ------------------------------------------------------------ Dialogues */
dialog {
  border: 1px solid var(--trait-fort); border-radius: var(--r-grand); padding: 20px 22px;
  width: min(560px, calc(100vw - 32px)); background: var(--surface); color: var(--encre);
  box-shadow: var(--ombre-levee);
}
dialog:modal { overscroll-behavior: contain; }
dialog::backdrop { background: rgb(10 16 13 / 0.45); overflow: hidden; overscroll-behavior: contain; }
dialog h2 { margin-bottom: 14px; }
.ou { display: flex; align-items: center; gap: 10px; color: var(--encre-3); font-size: var(--t-petit); margin: 16px 0; }
.ou::before, .ou::after { content: ""; flex: 1; border-top: 1px solid var(--trait); }

/* ------------------------------------------------------------ Indicateurs */
.chiffres { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.chiffre { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-grand); padding: 14px 16px; }
.chiffre .valeur { font: 700 2rem/1.1 var(--police-id); }
.chiffre .libelle { color: var(--encre-2); }
.chiffre .detail { color: var(--encre-3); font-size: var(--t-petit); margin-top: 4px; }
.graphe { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-grand); padding: 16px 18px; }
.graphe h2 { font-size: var(--t-moyen); margin-bottom: 2px; }
.graphe .sous-titre { color: var(--encre-3); font-size: var(--t-petit); margin-bottom: 14px; }
.colonnes-graphe {
  --h: 180px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; align-items: end;
  height: var(--h); padding-top: 18px;
  background: repeating-linear-gradient(to top, var(--trait) 0 1px, transparent 1px calc(var(--h) / 4));
  border-bottom: 1px solid var(--trait-fort);
}
.barre-v { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 100%; }
.barre-v .b { display: block; width: min(70%, 28px); height: var(--p); min-height: 2px; background: var(--sapin); border-radius: 4px 4px 0 0; }
.barre-v .val { position: absolute; bottom: calc(var(--p) + 3px); font: 600 var(--t-petit)/1 var(--police-id); color: var(--encre-2); }
.axe-mois { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; font-size: 11px; color: var(--encre-3); text-align: center; padding-top: 4px; }
.barres-h { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.barres-h li { display: grid; grid-template-columns: minmax(90px, 34%) minmax(0, 1fr) 2.5em; gap: 10px; align-items: center; font-size: var(--t-petit); }
.barres-h .piste { height: 14px; }
.barres-h .piste span { display: block; height: 100%; min-width: 2px; background: var(--sapin); border-radius: 0 4px 4px 0; }
.barres-h .n { text-align: right; font: 600 var(--t-petit) var(--police-id); }
[data-info] { cursor: default; }
.infobulle {
  position: fixed; z-index: 50; pointer-events: none; padding: 6px 9px; border-radius: var(--r);
  background: var(--encre); color: var(--papier); font-size: var(--t-petit); line-height: 1.3; max-width: 240px;
}
.infobulle[hidden] { display: none; }
details.donnees { margin-top: 12px; font-size: var(--t-petit); }
details.donnees summary { cursor: pointer; color: var(--encre-2); }
details.donnees table { margin-top: 8px; }
details.donnees th, details.donnees td { padding: 4px 8px; }

/* ------------------------------------------------------------ Connexion */
.connexion { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.connexion .panneau { width: min(380px, 100%); padding: 28px; }
.connexion .marque { margin-bottom: 18px; font-size: 1.5rem; }
.connexion .marque svg { width: 32px; height: 32px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .zone[data-cible] { outline-color: Highlight; }
  .jeton--valide { forced-color-adjust: none; }
}

@media (max-width: 720px) {
  .entete { position: static; gap: 8px 16px; }
  .entete-fin { margin-left: 0; }
}
.ligne-total > * { font-weight: 700; border-top: 2px solid var(--trait-fort); }
