/* Chemin de fer : « table de montage ». Pages blanches posées sur un fond papier chaud ;
   le vert de la validation est la couleur la plus franche de l'écran. Toutes les couleurs sont ici. */

:root {
  --fond: #efeae0;
  --fond-barre: #e6dfd1;
  --surface: #fffdf9;
  --surface-2: #f7f3ec;
  --encre: #23201a;
  --encre-2: #5a5446;
  --encre-3: #6f6858;
  --trait: #d6ccb9;
  --trait-fort: #9d937f;

  --fait: #0f7a3b;
  --fait-vif: #12924a;
  --fait-fond: #d3efdc;
  --fait-encre: #0b5a2c;
  --en-cours: #9a5b00;
  --en-cours-fond: #f8e7c8;
  --retard: #b42318;
  --retard-fond: #fbe3df;
  --focus: #2457c5;
  --accent: #2f3a4f;
  --accent-encre: #fffdf9;

  --teinte-bleu: #3a68ad;
  --teinte-indigo: #4a4f9f;
  --teinte-violet: #774c9a;
  --teinte-rose: #b04776;
  --teinte-orange: #c4642b;
  --teinte-jaune: #c39a1c;
  --teinte-brun: #87613d;
  --teinte-gris: #77756c;

  --ombre-page: 0 1px 2px rgb(56 44 20 / 0.10), 0 3px 8px rgb(56 44 20 / 0.06);
  --ombre-haute: 0 12px 32px rgb(40 30 10 / 0.18), 0 2px 6px rgb(40 30 10 / 0.10);
  --rayon: 6px;
  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --barre-h: 60px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-family: var(--police); font-size: 100%; color: var(--encre); background: var(--fond); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; line-height: 1.45; font-size: 0.9375rem; }
::selection { background: var(--fait-fond); color: var(--fait-encre); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
* { scrollbar-color: var(--trait-fort) transparent; }

.icone { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Écran d'invitation ---- */
.chargement { padding: 2rem; color: var(--encre-2); }
.invitation { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.invitation-carte { max-width: 30rem; background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre-page); padding: 2rem 2.25rem; }
.invitation-titre { font-size: 1.25rem; font-weight: 650; margin-bottom: 0.75rem; }
.invitation-aide { color: var(--encre-2); }

/* ---- Barre du haut ---- */
.barre {
  position: sticky; top: 0; z-index: 20; min-height: var(--barre-h);
  display: grid; grid-template-columns: max-content auto minmax(0, 1fr); align-items: center; gap: 0.75rem 1.5rem;
  padding: 0.5rem 1.25rem; background: var(--fond-barre); border-bottom: 1px solid var(--trait);
}
.barre-numero { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; min-width: 0; }
.titre-numero { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.barre-pages { display: inline-flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.compteur { font-variant-numeric: tabular-nums; color: var(--encre-2); }
.avertissement { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--retard); font-weight: 550; }
.selecteur-bloc { display: inline-flex; }
.selecteur { border: 1px solid var(--trait); background: var(--surface); border-radius: 4px; padding: 0.2rem 0.5rem; }
.barre-droite { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.5rem 0.75rem; min-width: 0; }
.outils { flex-wrap: wrap; justify-content: flex-end; }
.outils { display: flex; align-items: center; gap: 0.5rem; }
.moi { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.15; font-weight: 550; white-space: nowrap; }
.moi-role { font-size: 0.75rem; font-weight: 400; color: var(--encre-2); }

.onglets { display: inline-flex; gap: 2px; padding: 3px; background: var(--fond); border-radius: 8px; border: 1px solid var(--trait); }
.onglet {
  border: 0; background: transparent; padding: 0.4rem 0.9rem; border-radius: 6px; cursor: pointer; color: var(--encre-2); font-weight: 550;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.onglet:hover { color: var(--encre); background: rgb(255 253 249 / 0.6); }
.onglet[aria-selected="true"] { background: var(--surface); color: var(--encre); box-shadow: var(--ombre-page); }

.bandeau { padding: 0.5rem 1.25rem; font-weight: 550; border-bottom: 1px solid var(--trait); }
.bandeau-liaison { background: var(--retard-fond); color: var(--retard); }
.bandeau-archive { background: var(--surface-2); color: var(--encre-2); }

.corps { position: relative; }
.vue { padding: 1.5rem 1.25rem 4rem; outline: none; }
.vide { max-width: 32rem; margin: 3rem auto; text-align: center; color: var(--encre-2); display: grid; gap: 0.75rem; justify-items: center; }

/* ---- Boutons et champs ---- */
.bouton {
  display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid var(--trait-fort); background: var(--surface);
  border-radius: 5px; padding: 0.35rem 0.75rem; cursor: pointer; font-weight: 550; white-space: nowrap;
  transition: background-color 150ms ease-out, border-color 150ms ease-out;
}
a.bouton { color: inherit; text-decoration: none; }
.bouton:hover { background: var(--surface-2); border-color: var(--encre-3); }
.bouton:active { background: var(--fond); }
.bouton:disabled { opacity: 0.5; cursor: not-allowed; }
.bouton-principal { background: var(--accent); color: var(--accent-encre); border-color: var(--accent); }
.bouton-principal:hover { background: #1f2738; border-color: #1f2738; }
.bouton-danger { color: var(--retard); border-color: currentColor; }
.bouton-danger:hover { background: var(--retard-fond); }
.bouton-discret { border-color: transparent; background: transparent; }
.bouton-discret:hover { background: var(--surface-2); border-color: var(--trait); }

.champ { display: grid; gap: 0.25rem; }
.champ > span { font-size: 0.8125rem; font-weight: 600; color: var(--encre-2); }
.champ input, .champ select, .champ textarea {
  width: 100%; border: 1px solid var(--trait-fort); border-radius: 4px; background: var(--surface); padding: 0.4rem 0.55rem;
}
.champ textarea { resize: vertical; min-height: 4.5rem; }
.champ input:disabled, .champ select:disabled, .champ textarea:disabled { background: var(--surface-2); color: var(--encre-2); border-color: var(--trait); }
.erreur-champ { color: var(--retard); font-size: 0.8125rem; }

.lecture-seule .editeur-seulement { display: none !important; }

/* ---- Bascule ---- */
.bascule { display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer; color: var(--encre-2); font-weight: 550; white-space: nowrap; }
.bascule input { width: 1rem; height: 1rem; accent-color: var(--fait); margin: 0; }

/* ---- Vue « Chemin de fer » : la table de montage ---- */
.grille { display: flex; flex-wrap: wrap; gap: 1.5rem 1.75rem; align-items: flex-start; }
.double { display: flex; gap: 0; filter: drop-shadow(0 1px 1.5px rgb(56 44 20 / 0.12)) drop-shadow(0 4px 8px rgb(56 44 20 / 0.06)); }
.double:first-child { padding-left: 0; }

.vignette {
  --teinte: var(--trait-fort);
  position: relative; width: 7rem; aspect-ratio: 176 / 250; display: flex; flex-direction: column; gap: 0.3rem;
  padding: 0.55rem 0.55rem 0.5rem; margin: 0; border: 0; background: var(--surface); text-align: left; cursor: pointer;
  color: var(--encre); font-size: 0.78rem; line-height: 1.25; overflow: hidden;
  transition: background-color 200ms ease-out, transform 150ms ease-out;
}
.double .vignette + .vignette { box-shadow: inset 1px 0 0 var(--trait); }
.double .vignette:first-child { border-radius: 3px 0 0 3px; }
.double .vignette:last-child { border-radius: 0 3px 3px 0; }
.double .vignette:only-child { border-radius: 3px; }
.vignette:hover { background: #fff; }
.vignette:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; z-index: 1; }
.vignette[data-ouvert] { outline: 2px solid var(--encre); outline-offset: -2px; }
.v-bande { position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--teinte); }
.v-tete { display: flex; justify-content: space-between; align-items: baseline; margin-top: 2px; }
.v-numero { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.8rem; color: var(--encre-2); }
.v-etendue { font-variant-numeric: tabular-nums; font-size: 0.7rem; color: var(--encre-3); }
.v-rubrique { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: color-mix(in oklab, var(--teinte) 62%, #000); line-height: 1.15; }
.v-titre { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; hyphens: auto; hyphenate-limit-chars: 12 5 5; }
.v-suite { font-weight: 400; font-style: italic; color: var(--encre-3); }
.v-pastilles { margin-top: auto; display: flex; flex-wrap: wrap; gap: 3px; }
.pastille {
  width: 1rem; height: 1rem; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  border: 1.5px solid var(--trait-fort); background: var(--surface); color: #fff;
}
.pastille .icone { width: 0.7rem; height: 0.7rem; stroke-width: 2.5; }
.pastille-nom { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.pastille[data-etat="en-cours"] { border-color: var(--en-cours); background: linear-gradient(90deg, var(--en-cours) 50%, var(--surface) 50%); }
.pastille[data-etat="fait"] { border-color: var(--fait-vif); background: var(--fait-vif); }
.sans-avancement .v-pastilles { display: none; }

.vignette[data-termine] { background: var(--fait-fond); box-shadow: inset 0 0 0 2px var(--fait-vif); }
.double .vignette[data-termine] + .vignette[data-termine] { box-shadow: inset 0 0 0 2px var(--fait-vif); }
.marque-termine {
  position: absolute; right: 0.4rem; bottom: 0.4rem; display: inline-flex; align-items: center; gap: 0.2rem;
  background: var(--fait-vif); color: #fff; font-size: 0.66rem; font-weight: 700; padding: 0.1rem 0.35rem 0.1rem 0.25rem; border-radius: 999px;
}
.vignette[data-termine] .v-pastilles { visibility: hidden; }
.marque-termine .icone { stroke-width: 2.5; }
.sans-avancement .vignette[data-termine] { background: var(--surface); box-shadow: none; }
.sans-avancement .marque-termine { display: none; }

@keyframes changement { from { background-color: var(--en-cours-fond); } }
.vient-de-changer { animation: changement 1.5s ease-out; }

.teinte-bleu { --teinte: var(--teinte-bleu); }
.teinte-indigo { --teinte: var(--teinte-indigo); }
.teinte-violet { --teinte: var(--teinte-violet); }
.teinte-rose { --teinte: var(--teinte-rose); }
.teinte-orange { --teinte: var(--teinte-orange); }
.teinte-jaune { --teinte: var(--teinte-jaune); }
.teinte-brun { --teinte: var(--teinte-brun); }
.teinte-gris { --teinte: var(--teinte-gris); }

/* ---- Panneau latéral ---- */
.panneau {
  position: fixed; z-index: 30; top: var(--barre-h); right: 0; bottom: 0; width: min(27rem, 100vw);
  background: var(--surface); box-shadow: var(--ombre-haute); display: flex; flex-direction: column; overflow: hidden;
}
@media (min-width: 1100px) { .panneau-ouvert .vue { margin-right: 27rem; } }
.panneau-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; padding: 1rem 1.25rem 0.75rem; border-bottom: 1px solid var(--trait); }
.panneau-titre { font-size: 1.125rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.panneau-pages { color: var(--encre-2); font-variant-numeric: tabular-nums; margin-top: 0.15rem; }
.panneau-fermer { padding: 0.4rem; }
.panneau-fermer .icone { width: 1.1rem; height: 1.1rem; }
.panneau-corps { overflow-y: auto; padding: 1rem 1.25rem 2rem; display: grid; gap: 1.5rem; }
.panneau-section h3, .panneau-deplacer h3 { font-size: 0.8125rem; font-weight: 700; color: var(--encre-2); margin-bottom: 0.5rem; }
.panneau-champs { display: grid; gap: 0.8rem; }
.champs-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.champ-nb_pages input { max-width: 6rem; }
.lien-rendu:empty { display: none; }
.lien-rendu { display: flex; }
.lien-ouvrir { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--focus); font-weight: 550; text-underline-offset: 0.2em; }
.boutons { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.panneau-etapes { display: grid; gap: 0.9rem; }
.groupe-nom { font-size: 0.8125rem; font-weight: 700; color: var(--encre-2); margin-bottom: 0.3rem; }
.liste-etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.liste-etapes li { display: grid; }
.etape {
  display: grid; grid-template-columns: 1.25rem 1fr auto; align-items: center; gap: 0.5rem; width: 100%;
  border: 1px solid var(--trait); background: var(--surface); border-radius: 5px; padding: 0.35rem 0.55rem; cursor: pointer; text-align: left;
  transition: background-color 150ms ease-out, border-color 150ms ease-out;
}
.etape:hover:not(:disabled) { border-color: var(--trait-fort); }
.etape:disabled { cursor: default; }
.etape-marque { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 1.5px solid var(--trait-fort); display: grid; place-items: center; color: #fff; }
.etape-marque .icone { width: 0.75rem; height: 0.75rem; stroke-width: 2.5; }
.etape-etat { font-size: 0.8125rem; color: var(--encre-2); }
.etape[data-etat="fait"] { background: var(--fait-fond); border-color: var(--fait-vif); }
.etape[data-etat="fait"] .etape-marque, .menu-item[data-etat="fait"] .etape-marque { background: var(--fait-vif); border-color: var(--fait-vif); }
.etape[data-etat="fait"] .etape-etat { color: var(--fait-encre); font-weight: 650; }
.etape[data-etat="en-cours"] { background: var(--en-cours-fond); border-color: var(--en-cours); }
.etape[data-etat="en-cours"] .etape-marque, .menu-item[data-etat="en-cours"] .etape-marque { border-color: var(--en-cours); background: linear-gradient(90deg, var(--en-cours) 50%, transparent 50%); }
.etape[data-etat="en-cours"] .etape-etat { color: var(--en-cours); font-weight: 600; }
.etape[data-etat="sans-objet"] .etape-nom { text-decoration: line-through; color: var(--encre-3); }
.etape[data-etat="sans-objet"] .etape-marque, .menu-item[data-etat="sans-objet"] .etape-marque { border-style: dashed; }
.etape-qui { font-size: 0.75rem; color: var(--encre-3); padding: 0.1rem 0 0.2rem 2.3rem; }

.journal { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; font-size: 0.8125rem; }
.journal li { display: grid; overflow-wrap: anywhere; }
.journal-quand { color: var(--encre-3); font-size: 0.75rem; }
.journal-vide { color: var(--encre-3); }
.confirmation { display: grid; gap: 0.6rem; padding: 0.75rem; border-radius: var(--rayon); background: var(--retard-fond); }

/* ---- Menu des états ---- */
.menu-etats {
  position: fixed; z-index: 50; min-width: 11rem; padding: 4px; display: grid; gap: 2px;
  background: var(--surface); border: 1px solid var(--trait); border-radius: 7px; box-shadow: var(--ombre-haute);
}
.menu-item { display: flex; align-items: center; gap: 0.55rem; border: 0; background: transparent; padding: 0.4rem 0.6rem; border-radius: 4px; cursor: pointer; text-align: left; }
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-2); outline: none; }
.menu-item:focus-visible { box-shadow: inset 0 0 0 2px var(--focus); }
.menu-item[aria-checked="true"] { font-weight: 700; }

/* ---- Message bref ---- */
.message {
  position: fixed; z-index: 60; left: 50%; bottom: 1.25rem; transform: translateX(-50%); max-width: min(36rem, calc(100vw - 2rem));
  background: var(--accent); color: var(--accent-encre); padding: 0.6rem 1rem; border-radius: 6px; box-shadow: var(--ombre-haute); font-weight: 550;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Glisser-déposer ---- */
.glissement, .glissement .vignette { cursor: grabbing; }
.vignette.en-glissement { opacity: 0.45; }
.repere { position: fixed; z-index: 40; width: 3px; border-radius: 2px; background: var(--focus); pointer-events: none; box-shadow: 0 0 0 2px var(--surface); }

/* ---- Vue « Suivi » ---- */
.suivi-cadre {
  overflow: auto; max-height: calc(100vh - var(--barre-h) - 3.5rem); background: var(--surface);
  border-radius: var(--rayon); box-shadow: var(--ombre-page);
}
.suivi { border-collapse: separate; border-spacing: 0; font-size: 0.875rem; min-width: 100%; --col-pages: 4.25rem; }
.suivi th, .suivi td { padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: middle; background: var(--surface); }
.suivi thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); font-size: 0.8125rem; font-weight: 650; color: var(--encre-2); }
.suivi thead tr:nth-child(2) th { top: var(--entete-1, 2rem); }
.suivi thead th.col-groupe { text-align: center; color: var(--encre); border-left: 2px solid var(--trait); }
.suivi .col-etape { text-align: center; min-width: 5.5rem; max-width: 8rem; }
.suivi thead .col-etape { font-weight: 550; line-height: 1.2; }
.suivi .debut-groupe { border-left: 2px solid var(--trait); }
.suivi .col-pages { position: sticky; left: 0; z-index: 1; width: var(--col-pages); min-width: var(--col-pages); font-variant-numeric: tabular-nums; color: var(--encre-2); }
.suivi .col-titre { position: sticky; left: var(--col-pages); z-index: 1; min-width: 14rem; max-width: 20rem; box-shadow: inset -1px 0 0 var(--trait); }
.suivi thead .col-pages, .suivi thead .col-titre { z-index: 3; }
.suivi tbody tr:hover > * { background: var(--surface-2); }
.suivi tbody tr[data-termine] > * { background: var(--fait-fond); }
.titre-lien { display: inline-flex; align-items: center; gap: 0.45rem; border: 0; background: none; padding: 0; text-align: left; font-weight: 600; cursor: pointer; color: var(--encre); }
.titre-lien:hover span:last-child { text-decoration: underline; text-underline-offset: 0.2em; }
.puce-rubrique { width: 0.6rem; height: 0.6rem; border-radius: 2px; background: var(--teinte); flex: none; }
.termine-mot { display: inline-flex; align-items: center; gap: 0.2rem; margin-left: 0.4rem; color: var(--fait-encre); font-size: 0.75rem; font-weight: 700; }
.col-responsable { color: var(--encre-2); white-space: nowrap; }
.col-echeance { white-space: nowrap; font-variant-numeric: tabular-nums; }
.col-echeance[data-retard] { color: var(--retard); font-weight: 650; }
.col-echeance .icone { margin-right: 0.3rem; vertical-align: -0.12em; }

.case { width: 2rem; height: 2rem; display: inline-grid; place-items: center; border: 0; background: transparent; border-radius: 6px; cursor: pointer; }
.case:hover:not(:disabled) { background: var(--fond); }
.case:disabled { cursor: default; }
.case .etape-marque { width: 1.35rem; height: 1.35rem; }
.case .etape-marque .icone { width: 0.9rem; height: 0.9rem; }
.case[data-etat="fait"] .etape-marque { background: var(--fait-vif); border-color: var(--fait-vif); }
.case[data-etat="en-cours"] .etape-marque { border-color: var(--en-cours); background: linear-gradient(90deg, var(--en-cours) 50%, transparent 50%); }
.case[data-etat="sans-objet"] .etape-marque { border-style: dashed; border-color: var(--trait-fort); background: linear-gradient(135deg, transparent 45%, var(--trait-fort) 45% 55%, transparent 55%); }

.entete-impression { display: none; }

/* ---- Écrans étroits : la barre passe sur deux lignes ---- */
@media (max-width: 1000px) {
  .barre { grid-template-columns: minmax(0, 1fr) auto; }
  .onglets { grid-row: 2; grid-column: 1 / -1; justify-self: start; }
  .barre-droite { flex-wrap: wrap; }
  .moi { display: none; }
}

/* ---- Réglages ---- */
.reglages { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 34rem), 1fr)); gap: 1.25rem; align-items: start; }
.reglage { background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre-page); padding: 1.1rem 1.25rem 1.25rem; display: grid; gap: 0.75rem; }
.reglage h2 { font-size: 1rem; font-weight: 700; }
.reglage h3 { font-size: 0.8125rem; font-weight: 700; color: var(--encre-2); margin: 0.25rem 0 0.35rem; }
.reglage-aide, .reglage-vide, .reglage-meta { color: var(--encre-2); font-size: 0.8125rem; }
.reglage-grille { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem; align-items: end; }
.reglage-grille .bascule { grid-column: 1 / -1; }
.champ-court input { width: 7rem; }
.liste-reglages { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ligne-reglage { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.3rem 0; border-bottom: 1px solid var(--surface-2); }
.ligne-reglage input[type="text"] { flex: 1 1 10rem; min-width: 0; }
.ligne-reglage .champ-groupe { flex: 0 1 8rem; }
.ligne-reglage input[type="text"], .ligne-reglage select, .ajout input, .ajout select, .lien-neuf input {
  border: 1px solid var(--trait); border-radius: 4px; background: var(--surface); padding: 0.3rem 0.45rem;
}
.ligne-reglage input[type="text"]:hover, .ligne-reglage select:hover { border-color: var(--trait-fort); }
.ligne-reglage .boutons { margin-left: auto; gap: 0.15rem; }
.ligne-reglage .bouton-discret { padding: 0.3rem 0.45rem; }
.ligne-reglage .confirmation { flex-basis: 100%; }
.ligne-reglage.inactive .personne-nom { color: var(--encre-3); text-decoration: line-through; }
.personne-nom { font-weight: 600; flex: 1 1 8rem; min-width: 0; overflow-wrap: anywhere; }
.ajout { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; padding-top: 0.75rem; border-top: 1px solid var(--trait); }
.ajout input[type="text"] { flex: 1 1 9rem; min-width: 0; }
.ajout input[type="number"] { width: 5.5rem; }
.ajout-libelle { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8125rem; color: var(--encre-2); }
.erreur-section { color: var(--retard); font-weight: 600; background: var(--retard-fond); padding: 0.45rem 0.7rem; border-radius: 4px; }
.conseil { display: flex; align-items: center; gap: 0.45rem; color: var(--en-cours); font-weight: 600; font-size: 0.875rem; }
.lien-neuf { display: grid; gap: 0.4rem; padding: 0.75rem; background: var(--fait-fond); border-radius: var(--rayon); }
.lien-neuf label { font-weight: 700; }
.lien-neuf-ligne { display: flex; gap: 0.5rem; }
.lien-neuf-ligne input { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
.historique { max-height: 24rem; overflow-y: auto; }
.groupe-liens { display: grid; gap: 0.8rem; padding-top: 0.4rem; }
.groupe-liens h3 { font-size: 0.8125rem; font-weight: 700; color: var(--encre-2); margin: 0; }
.champ input::placeholder { color: var(--encre-3); }
