/* Direction : outil technique « suisse » — papier froid, encre nette, un seul accent orange de chantier, bleu de plan
   pour l'eau et le focus. Chiffres et saisie en caractères à chasse fixe, comme sur un carnet de sondeur. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("../vendor/plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("../vendor/plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("../vendor/plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("../vendor/plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("../vendor/plex-mono-500.woff2") format("woff2"); }

:root {
  /* Couleurs */
  --fond: #f3f4f0;
  --surface: #ffffff;
  --surface-creuse: #f7f8f5;
  --encre: #101c2a;
  --encre-douce: #46515f;
  --trait: #d9ddd4;
  --trait-fort: #a9b0a5;
  --bord-champ: #6f766b;
  --accent: #c2410c;
  --accent-vif: #ea580c;
  --accent-fonce: #9a330a;
  --accent-fond: #fff2e9;
  --bleu: #1d4ed8;
  --bleu-fond: #eaf0ff;
  --ok: #17663a;
  --ok-fond: #e8f5ec;
  --alerte: #8a4b08;
  --alerte-fond: #fff4dc;
  --erreur: #b3261e;
  --erreur-fond: #fdecea;

  /* Typographie */
  --police-texte: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --police-chiffres: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  --taille-petit: 12px;
  --taille-texte: 14px;
  --taille-titre: 26px;

  /* Rythme */
  --espace-1: 4px;
  --espace-2: 8px;
  --espace-3: 12px;
  --espace-4: 16px;
  --espace-5: 24px;
  --espace-6: 40px;
  --rayon: 6px;
  --rayon-grand: 10px;
  --hauteur-barre: 56px;
  --cible: 36px;

  /* Mouvement */
  --rapide: 120ms;
  --normale: 200ms;
  --sortie: cubic-bezier(0.16, 1, 0.3, 1);

  --ombre-feuille: 0 1px 2px rgba(16, 28, 42, 0.08), 0 14px 34px -14px rgba(16, 28, 42, 0.32);
  --ombre-menu: 0 1px 2px rgba(16, 28, 42, 0.08), 0 12px 28px -8px rgba(16, 28, 42, 0.28);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  display: flex; flex-direction: column;
  font: var(--taille-texte)/1.5 var(--police-texte);
  color: var(--encre);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}

.visuellement-cache {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* Lien d'évitement : visible seulement quand le clavier l'atteint. */
.evitement {
  position: absolute; z-index: 60; top: var(--espace-2); left: var(--espace-2); padding: var(--espace-2) var(--espace-3);
  border-radius: var(--rayon); background: var(--encre); color: #fff; font-weight: 600;
  transform: translateY(-200%);
}
.evitement:focus { transform: none; outline: 2px solid var(--bleu); outline-offset: 2px; }

svg { flex: none; }
button, .bouton, summary, select, input { touch-action: manipulation; }
button svg, .bouton svg { width: 16px; height: 16px; }

/* ---------- Boutons et champs ---------- */
button, .bouton, select, input, textarea { font: inherit; color: inherit; }

button, .bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--espace-2);
  min-height: var(--cible); padding: 0 var(--espace-3);
  border: 1px solid var(--bord-champ); border-radius: var(--rayon);
  background: var(--surface); color: var(--encre);
  font-weight: 500; font-size: 13.5px; white-space: nowrap; cursor: pointer;
  transition: background-color var(--rapide), border-color var(--rapide), color var(--rapide), transform var(--rapide);
}
button:hover, .bouton:hover { border-color: var(--encre); background: var(--surface-creuse); }
button:active, .bouton:active { transform: translateY(1px); }
button:disabled, button[aria-disabled="true"] { opacity: 0.55; cursor: progress; }

button:focus-visible, .bouton:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible,
summary:focus-visible, input[type="file"]:focus-visible + .bouton, input[type="file"]:focus-visible ~ .bouton {
  outline: 2px solid var(--bleu); outline-offset: 2px;
}

.primaire { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.primaire:hover { background: var(--accent-fonce); border-color: var(--accent-fonce); }
button.icone { width: var(--cible); padding: 0; }
button.lien {
  min-height: 0; padding: 0; border: 0; border-radius: 2px; background: none;
  color: var(--bleu); font-weight: 500; text-decoration: underline; text-underline-offset: 3px;
}
button.lien:hover { background: none; color: var(--encre); }

kbd {
  padding: 1px 5px; border: 1px solid currentColor; border-radius: 4px;
  font: 500 11px/1.4 var(--police-chiffres);
}

select, input[type="text"], textarea {
  width: 100%; min-height: 32px; padding: 5px 8px;
  border: 1px solid var(--bord-champ); border-radius: var(--rayon);
  background: var(--surface); transition: border-color var(--rapide);
}
select:hover, input[type="text"]:hover, textarea:hover { border-color: var(--encre); }
code { font: 12.5px var(--police-chiffres); background: var(--surface-creuse); padding: 1px 5px; border: 1px solid var(--trait); border-radius: 4px; }

/* ---------- Barre haute ---------- */
.barre {
  display: flex; align-items: center; gap: var(--espace-5);
  min-height: var(--hauteur-barre); padding: var(--espace-2) var(--espace-5);
  background: var(--surface); border-bottom: 1px solid var(--trait);
}
.marque { display: flex; align-items: center; gap: var(--espace-2); color: var(--encre); }
.marque-signe { width: 24px; height: 24px; }
.marque-nom { font-weight: 600; font-size: 17px; letter-spacing: 0.16em; }
.marque-tag {
  padding: 1px 6px; border: 1px solid var(--trait-fort); border-radius: 99px;
  font: 500 10.5px/1.5 var(--police-chiffres); letter-spacing: 0.04em; text-transform: uppercase; color: var(--encre-douce);
}

.ouvrages { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--espace-2); }
.onglets {
  display: flex; gap: var(--espace-1); min-width: 0; margin: 0; padding: 5px; list-style: none;
  overflow-x: auto; scrollbar-width: thin;
}
.onglet { display: flex; align-items: center; flex: none; border-radius: var(--rayon); }
.onglet-nom {
  max-width: 220px; min-height: 32px; padding: 0 var(--espace-3); border-color: transparent; background: transparent;
  color: var(--encre-douce); font-weight: 500; overflow: hidden; text-overflow: ellipsis; display: block;
}
.onglet-nom:hover { background: var(--surface-creuse); border-color: transparent; color: var(--encre); }
.onglet.actif { background: var(--encre); }
.onglet.actif .onglet-nom, .onglet.actif .onglet-nom:hover { background: transparent; color: #fff; font-weight: 600; }
.onglet-fermer {
  min-height: 24px; width: 24px; margin-right: var(--espace-1); padding: 0;
  border-color: transparent; background: transparent; color: #c9d1da; font-size: 16px; line-height: 1;
}
.onglet-fermer:hover { background: rgba(255, 255, 255, 0.16); border-color: transparent; color: #fff; }
.onglet.actif :focus-visible { outline-color: #fff; outline-offset: -3px; }

.actions { display: flex; align-items: center; gap: var(--espace-2); }

/* ---------- Menus ---------- */
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg:last-child { transition: transform var(--normale) var(--sortie); }
.menu[open] > summary svg:last-child { transform: rotate(180deg); }
.menu-liste {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 250px;
  display: flex; flex-direction: column; padding: var(--espace-1);
  background: var(--surface); border: 1px solid var(--trait-fort); border-radius: var(--rayon-grand);
  box-shadow: var(--ombre-menu);
  animation: apparition var(--normale) var(--sortie);
}
.menu-liste.droite { left: auto; right: 0; }
.menu-liste button, .menu-item {
  display: flex; align-items: center; justify-content: space-between; gap: var(--espace-4);
  min-height: var(--cible); padding: 0 var(--espace-3);
  border: 0; border-radius: var(--rayon); background: none;
  color: var(--encre); font-weight: 400; font-size: 13.5px; text-align: left; cursor: pointer;
}
.menu-liste button:hover, .menu-item:hover { background: var(--surface-creuse); }
.menu-liste .danger { color: var(--erreur); border-top: 1px solid var(--trait); border-radius: 0 0 var(--rayon) var(--rayon); }
@keyframes apparition { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Bandeau d'attente (lecture d'un document) ---------- */
.progression { height: 3px; overflow: hidden; background: transparent; }
body.occupe .progression { background: var(--accent-fond); }
body.occupe .progression::after {
  content: ""; display: block; width: 40%; height: 100%; background: var(--accent-vif);
  animation: defilement 1.1s linear infinite;
}
@keyframes defilement { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
body.occupe { cursor: progress; }
body.occupe .entree { opacity: 0.6; pointer-events: none; }

/* ---------- Atelier : saisie + planche ---------- */
.atelier { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(360px, 460px) 1fr; }

/* scroll-padding-bottom : un champ qui reçoit le focus ne reste pas caché sous le message affiché en bas. */
.saisie { overflow-y: auto; background: var(--surface); border-right: 1px solid var(--trait); scroll-padding: var(--espace-4) 0 72px; }

.entree { padding: var(--espace-5) var(--espace-5) var(--espace-4); border-bottom: 1px solid var(--trait); }
.entree-titre { margin: 0 0 var(--espace-2); font-size: var(--taille-titre); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
.entree-aide { margin: 0 0 var(--espace-4); color: var(--encre-douce); }
#texte-import {
  display: block; min-height: 190px; padding: var(--espace-3); resize: vertical;
  font: 13px/1.6 var(--police-chiffres);
  border: 1.5px dashed var(--bord-champ); background: var(--surface-creuse);
}
#texte-import:hover { border-color: var(--encre-douce); }
#texte-import:focus-visible { border-style: solid; border-color: var(--bleu); background: var(--surface); outline-offset: 0; }
#texte-import::placeholder { color: #5b6672; }
.entree-actions { display: flex; gap: var(--espace-2); margin-top: var(--espace-3); }
.entree-actions .primaire { flex: 1 1 auto; min-width: 0; min-height: 42px; padding: 0 var(--espace-2); font-size: 14.5px; }
.entree-actions .bouton { flex: none; min-height: 42px; }
.entree-exemples { margin: var(--espace-3) 0 0; font-size: 13px; color: var(--encre-douce); }
.entree-exemples .lien { margin-left: var(--espace-2); }

.non-reconnues {
  margin: var(--espace-3) 0 0; padding: var(--espace-2) var(--espace-3) var(--espace-2) 28px;
  font-size: 13px; color: var(--alerte); background: var(--alerte-fond); border-left: 3px solid var(--alerte); border-radius: 0 var(--rayon) var(--rayon) 0;
}

.ajuster { padding: var(--espace-5) var(--espace-5) var(--espace-6); }
.ajuster-titre { margin: 0; font: 500 var(--taille-petit)/1.4 var(--police-chiffres); letter-spacing: 0.12em; text-transform: uppercase; color: var(--encre-douce); }
.ajuster-aide { margin: var(--espace-1) 0 var(--espace-3); font-size: 13px; color: var(--encre-douce); }

.bloc { border-bottom: 1px solid var(--trait); }
.bloc:first-child { border-top: 1px solid var(--trait); }
.bloc > summary {
  display: flex; align-items: baseline; gap: var(--espace-2); min-height: 44px; padding: var(--espace-3) 0;
  list-style: none; cursor: pointer; font-weight: 600; font-size: 14.5px;
}
.bloc > summary::-webkit-details-marker { display: none; }
.bloc > summary::after {
  content: ""; align-self: center; width: 8px; height: 8px; margin-left: auto; margin-right: var(--espace-1);
  border-right: 1.8px solid var(--encre-douce); border-bottom: 1.8px solid var(--encre-douce);
  transform: rotate(45deg); transition: transform var(--normale) var(--sortie);
}
.bloc[open] > summary::after { transform: rotate(-135deg); }
.bloc > summary:hover { color: var(--accent); }
.compte { font: 400 var(--taille-petit) var(--police-chiffres); color: var(--encre-douce); }
.bloc-corps { padding: 0 0 var(--espace-4); }

.champs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--espace-3) var(--espace-3); }
.champ { display: flex; flex-direction: column; gap: 3px; }
.champ.large { grid-column: 1 / -1; }
.champ > span { font-size: var(--taille-petit); font-weight: 500; color: var(--encre-douce); }

.defilement { overflow-x: auto; }
.defilement:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }
table.lignes { width: 100%; border-collapse: collapse; }
table.lignes th { padding: 0 4px 4px 0; font-size: var(--taille-petit); font-weight: 500; text-align: left; color: var(--encre-douce); }
table.lignes td { padding: 2px 4px 2px 0; }
table.lignes .etroit { width: 64px; }
table.lignes .moyen { width: 108px; }
table.lignes .retrait { width: 30px; }
table.lignes .etroit input { font-family: var(--police-chiffres); font-size: 13px; }
button.retirer { min-height: 28px; width: 28px; padding: 0; border-color: transparent; background: transparent; color: var(--encre-douce); font-size: 16px; }
button.retirer:hover { color: var(--erreur); border-color: var(--erreur); background: var(--erreur-fond); }
.rangee-logo { display: flex; flex-wrap: wrap; align-items: center; gap: var(--espace-3); margin-top: var(--espace-3); }
.vignette-logo { max-height: 40px; max-width: 150px; padding: 3px; border: 1px solid var(--trait); border-radius: 4px; background: #fff; }
.aide { margin: var(--espace-2) 0 0; font-size: 13px; color: var(--encre-douce); }
button.ajouter { margin-top: var(--espace-2); min-height: 32px; border-style: dashed; font-weight: 400; color: var(--encre-douce); }

/* ---------- Planche (aperçu) ---------- */
.planche {
  position: relative; overflow: auto; padding: var(--espace-5) var(--espace-5) var(--espace-6) calc(var(--espace-5) + 18px);
  background-color: var(--fond);
  background-image: radial-gradient(circle, #c9cec4 1px, transparent 1.2px);
  background-size: 20px 20px;
}
/* Règle graduée le long du bord gauche : le motif du métier, discret. */
.planche::before {
  content: ""; position: sticky; float: left; top: 0; width: 12px; height: 100%; margin-left: calc(-1 * (var(--espace-5) + 18px));
  background:
    repeating-linear-gradient(to bottom, var(--trait-fort) 0 1px, transparent 1px 10px) left / 6px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--encre-douce) 0 1px, transparent 1px 50px) left / 12px 100% no-repeat;
  pointer-events: none;
}

.feuille { max-width: 880px; margin: 0 auto; background: #fff; box-shadow: var(--ombre-feuille); animation: pose var(--normale) var(--sortie); }
.feuille svg { display: block; width: 100%; height: auto; }
@keyframes pose { from { opacity: 0; transform: translateY(6px); } }

.etat { max-width: 880px; margin: 0 auto var(--espace-3); }
.etat > summary {
  display: inline-flex; align-items: center; gap: var(--espace-2); min-height: 32px; padding: 0 var(--espace-3) 0 var(--espace-2);
  list-style: none; cursor: pointer; border: 1px solid var(--trait-fort); border-radius: 99px; background: var(--surface);
  font-size: 13px; font-weight: 500;
}
.etat > summary::-webkit-details-marker { display: none; }
.etat-pastille { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.etat[data-niveau="ok"] > summary { cursor: default; color: var(--ok); border-color: #b9d9c4; background: var(--ok-fond); }
.etat[data-niveau="alerte"] > summary { color: var(--alerte); border-color: #e6c88e; background: var(--alerte-fond); }
.etat[data-niveau="alerte"] .etat-pastille { background: var(--alerte); border-radius: 2px; }
.etat[data-niveau="erreur"] > summary { color: var(--erreur); border-color: #e5aaa5; background: var(--erreur-fond); }
.etat[data-niveau="erreur"] .etat-pastille { background: var(--erreur); border-radius: 0; transform: rotate(45deg); }
.etat:not([data-niveau="ok"]) > summary::after { content: "voir"; margin-left: var(--espace-1); text-decoration: underline; text-underline-offset: 3px; font-weight: 400; }
.etat[open]:not([data-niveau="ok"]) > summary::after { content: "masquer"; }
.controles { margin: var(--espace-2) 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; }
.controles li { padding: 6px var(--espace-3); font-size: 13px; background: var(--surface); border-left: 3px solid var(--encre-douce); border-radius: 0 var(--rayon) var(--rayon) 0; }
.controles li.erreur { border-color: var(--erreur); color: var(--erreur); font-weight: 500; }
.controles li.alerte { border-color: var(--alerte); }

.vide {
  max-width: 460px; margin: 8vh auto 0; padding: var(--espace-5); text-align: center; color: var(--encre-douce);
}
.vide-dessin { width: 96px; height: 120px; color: var(--trait-fort); }
.vide h2 { margin: var(--espace-4) 0 var(--espace-2); font-size: 19px; font-weight: 600; color: var(--encre); }
.vide p { margin: 0 0 var(--espace-4); }
.vide-exemples { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--espace-2); }

/* ---------- Fenêtre (profil de l'entreprise) ---------- */
.fenetre {
  width: min(540px, calc(100vw - 2 * var(--espace-4))); max-height: calc(100vh - 2 * var(--espace-4)); padding: 0;
  border: 1px solid var(--trait-fort); border-radius: var(--rayon-grand); background: var(--surface); color: var(--encre);
  box-shadow: var(--ombre-menu);
}
.fenetre[open] { animation: apparition var(--normale) var(--sortie); }
.fenetre::backdrop { background: rgba(16, 28, 42, 0.5); }
.fenetre-tete { padding: var(--espace-5) var(--espace-5) var(--espace-4); border-bottom: 1px solid var(--trait); }
.fenetre-tete h2 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.fenetre-tete p { margin: var(--espace-1) 0 0; font-size: 13px; color: var(--encre-douce); }
.fenetre-corps { display: grid; grid-template-columns: 1fr 1fr; gap: var(--espace-4) var(--espace-3); padding: var(--espace-5); }
.fenetre-corps > .aide, .fenetre-etat { grid-column: 1 / -1; margin: 0; }
.fenetre-corps input[type="text"] { min-height: var(--cible); }
.fenetre-corps .rangee-logo { margin-top: var(--espace-1); }
.fenetre-etat { min-height: 1.5em; font-size: 13px; font-weight: 500; color: var(--ok); }
.fenetre-etat.erreur { color: var(--erreur); }
.fenetre-section { padding-top: var(--espace-4); border-top: 1px solid var(--trait); }
.fenetre-section h3 { margin: 0; font-size: 15px; font-weight: 600; }
.fenetre-section .aide { margin-top: var(--espace-1); }
.lien-simple { color: var(--bleu); font-weight: 500; text-underline-offset: 3px; }
.lien-simple:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; border-radius: 2px; }
.fenetre { overflow-y: auto; }
.fenetre-pied { display: flex; justify-content: flex-end; padding: var(--espace-3) var(--espace-5); border-top: 1px solid var(--trait); background: var(--surface-creuse); border-radius: 0 0 var(--rayon-grand) var(--rayon-grand); }
.fenetre-pied .primaire { min-width: 110px; }

@media (max-width: 520px) {
  .fenetre-corps { grid-template-columns: 1fr; padding: var(--espace-4); }
  .fenetre-corps > * { grid-column: 1 / -1; }
}

/* ---------- Dépôt de fichier sur toute la fenêtre ---------- */
.depot-global {
  position: fixed; inset: 0; z-index: 40; display: none; place-items: center;
  background: rgba(16, 28, 42, 0.72); pointer-events: none;
}
.depot-global p {
  margin: 0; padding: var(--espace-5) var(--espace-6); border: 2px dashed #fff; border-radius: var(--rayon-grand);
  color: #fff; font-size: 20px; font-weight: 600;
}
body.depot .depot-global { display: grid; }

/* ---------- Message ---------- */
.messages {
  position: fixed; z-index: 50; left: 50%; bottom: var(--espace-5); width: max-content; max-width: min(640px, 92vw);
  display: flex; flex-direction: column; align-items: center; gap: var(--espace-2);
  transform: translateX(-50%); pointer-events: none;
}
/* Un message masqué reste dans la page (pour être annoncé dès qu'il change) mais n'occupe aucune place. */
.message {
  max-height: 0; padding: 0 var(--espace-4); overflow: hidden;
  border-radius: var(--rayon); background: var(--encre); color: #fff; font-size: 13.5px;
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--normale), transform var(--normale) var(--sortie);
}
.message.visible { max-height: 40vh; padding: 10px var(--espace-4); opacity: 1; transform: none; box-shadow: var(--ombre-menu); }
.message.alerte { display: flex; align-items: center; gap: var(--espace-3); background: var(--erreur); font-weight: 500; }
.message.alerte.info { background: var(--encre); }
.message.alerte.visible { pointer-events: auto; padding-right: var(--espace-2); }
.message.alerte button { flex: none; min-height: 28px; width: 28px; border-color: transparent; background: transparent; color: #fff; font-size: 18px; }
.message.alerte button:hover { background: rgba(255, 255, 255, 0.18); border-color: transparent; }
.message.alerte button:focus-visible { outline-color: #fff; }

#impression { display: none; }
[hidden] { display: none !important; }

/* ---------- Petits écrans : saisie puis coupe, l'une sous l'autre ---------- */
@media (max-width: 900px) {
  html, body { height: auto; }
  .barre { flex-wrap: wrap; gap: var(--espace-2) var(--espace-3); padding: var(--espace-2) var(--espace-4); }
  .marque-tag { display: none; }
  .barre { position: relative; }
  .ouvrages { order: 3; flex-basis: 100%; }
  .actions { margin-left: auto; }
  /* Les menus se déploient sur la largeur de la barre, pour ne jamais dépasser de l'écran. */
  .menu { position: static; }
  .menu-liste, .menu-liste.droite { left: var(--espace-2); right: var(--espace-2); min-width: 0; top: calc(var(--hauteur-barre) - 6px); }
  .planche { scroll-padding-bottom: 72px; }
  .atelier { grid-template-columns: 1fr; }
  .saisie { overflow: visible; border-right: 0; border-bottom: 1px solid var(--trait); }
  .entree, .ajuster { padding-left: var(--espace-4); padding-right: var(--espace-4); }
  .planche { overflow: visible; padding: var(--espace-4) var(--espace-2) var(--espace-6); }
  .planche::before { display: none; }
  :root { --cible: 44px; --taille-titre: 23px; }
  select, input[type="text"] { min-height: 40px; font-size: 16px; }
  #texte-import { font-size: 16px; }
  table.lignes .etroit { width: 58px; }
}

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

/* ---------- Impression : une coupe par page A4 ---------- */
@page { size: A4 portrait; margin: 0; }
@media print {
  body { display: block; height: auto; background: #fff; }
  .barre, .progression, .atelier, .message, .depot-global { display: none !important; }
  #impression { display: block; }
  #impression .page { width: 210mm; height: 297mm; overflow: hidden; break-after: page; page-break-after: always; }
  #impression .page:last-child { break-after: auto; page-break-after: auto; }
  #impression svg { display: block; width: 210mm; height: 297mm; }
}
