/* Maintenance Tigery ATHP : « Atelier clair, manomètre ». Voir docs/DESIGN.md.
   Fait pour le téléphone tenu d'une main en usine (gants, lumière forte), puis la tablette en portrait et en paysage.
   Repères : barre d'onglets en bas sous 1000 px, dans l'en-tête au-delà ; l'action principale d'un écran est en bas, sous le pouce. */
@font-face {
  font-family: 'Archivo';
  src: url('/polices/archivo-latin-wdth-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face { font-family: 'IBM Plex Mono'; src: url('/polices/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  /* La palette */
  --platre: #ECEEEC;
  --papier: #FFFFFF;
  --platre-fonce: #E1E4E3;
  --graphite: #1F2428;
  --acier: #5B636A;
  --trait: #D5D9DA;
  --trait-fort: #7A8288;
  --rouge: #D9141E;
  --rouge-texte: #B3101A;
  --rouge-fond: #FCE3E2;
  --vert: #1E7F4F;
  --vert-texte: #186B42;
  --vert-fond: #DFF1E7;
  --ambre: #9A5B00;
  --ambre-fond: #FFF0D2;
  --bleu: #2F5F8F;
  --bleu-fond: #E3ECF5;
  /* L'orange est celui de la 3D (sous-ensemble ou pièce montrés) : il ne sert qu'à faire le lien avec elle. */
  --orange: #FF7A00;
  --orange-texte: #A64B00;
  --orange-fond: #FFF1E5;
  /* Le cadre des scènes 3D : graphite, un peu plus clair au centre pour que les pièces sombres restent lisibles. */
  --scene: #1F2428;
  --scene-fond: radial-gradient(120% 95% at 50% 38%, #39414A 0%, #262C31 55%, #1F2428 100%);

  /* Les rôles : redéfinis d'un bloc dans les vues sombres (plein écran de « Comprendre »). */
  --fond: var(--platre);
  --surface: var(--papier);
  --surface-2: var(--platre-fonce);
  --texte-fort: var(--graphite);
  --texte: var(--graphite);
  --texte-doux: var(--acier);
  --principal-fond: var(--graphite);
  --principal-texte: #fff;
  --focus: var(--graphite);
  --ombre-flottant: 0 0 0 1px rgba(31, 36, 40, 0.06), 0 6px 24px rgba(31, 36, 40, 0.08);

  --police: 'Archivo', Arial, sans-serif;
  --mono: 'IBM Plex Mono', Consolas, monospace;
  --etroit: 78%;
  --rayon: 16px;
  --rayon-bouton: 12px;
  --cible: 48px;
  --marge: 16px;
  --haut-sur: env(safe-area-inset-top, 0px);
  --bas-sur: env(safe-area-inset-bottom, 0px);
  --gauche-sur: env(safe-area-inset-left, 0px);
  --droite-sur: env(safe-area-inset-right, 0px);
  --entete: calc(56px + var(--haut-sur));
  --pied: calc(70px + var(--bas-sur));
  --barre: calc(76px + var(--bas-sur));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--fond); }
body { margin: 0; font: 400 17px/1.5 var(--police); font-variant-numeric: tabular-nums; color: var(--texte); background: var(--fond); overflow-x: hidden; overscroll-behavior-y: none; }
#app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(32px, 9vw, 40px); line-height: 1.05; font-weight: 750; font-stretch: var(--etroit); color: var(--texte-fort); letter-spacing: -0.01em; overflow-wrap: anywhere; }
h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 21px; line-height: 1.2; font-weight: 700; font-stretch: 82%; color: var(--texte-fort); }
h3 { font-size: 17px; line-height: 1.3; font-weight: 650; color: var(--texte-fort); overflow-wrap: anywhere; }
a { color: var(--texte-fort); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button, label, summary, input[type='range'] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
code { font-family: var(--mono); font-size: 16px; background: var(--surface); border: 1px solid var(--trait); border-radius: 6px; padding: 3px 8px; user-select: all; overflow-wrap: anywhere; }
.chargement, .vide { padding: 70px 20px; text-align: center; color: var(--texte-doux); display: grid; gap: 16px; justify-items: center; }
.vide svg { width: 36px; height: 36px; }
.sur-titre { font-size: 15px; font-weight: 600; color: var(--texte-doux); }
.doux { color: var(--texte-doux); font-size: 15px; }
.rien { color: var(--texte-doux); padding: 12px 4px; }
/* Les codes de l'usine (IP, machines, gammes) : du texte comme un autre, en plus petit et plus doux. */
.code { font-size: 14px; font-weight: 500; color: var(--texte-doux); margin-left: 8px; overflow-wrap: anywhere; }
p.code { margin-left: 0; }
section { margin-top: 28px; }
section > h2 { margin-bottom: 10px; }
.compte { margin-left: auto; font-size: 15px; font-weight: 600; font-stretch: 100%; color: var(--texte-doux); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ------------------------------------------------------------------ cadre : en-tête, onglets, barre d'action */
.entete {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  height: var(--entete);
  padding: var(--haut-sur) calc(var(--marge) + var(--droite-sur)) 0 calc(var(--marge) + var(--gauche-sur));
  color: var(--texte-fort);
}
/* Le flou est porté par un calque : posé sur l'en-tête lui-même, il ferait de lui le repère des onglets fixés en bas. */
.entete::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(236, 238, 236, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
}
.marque { display: flex; align-items: center; gap: 10px; min-height: var(--cible); color: var(--texte-fort); text-decoration: none; font-weight: 700; font-stretch: 82%; font-size: 19px; margin-right: auto; white-space: nowrap; }
.marque img { height: 26px; width: auto; }
.pastille {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--cible); max-width: 60vw;
  border: 1px solid var(--trait); border-radius: 999px; padding: 0 16px 0 14px; font-size: 15px; font-weight: 600;
  background: var(--papier); color: var(--texte-fort);
}
.pastille span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pastille .point { flex: none; width: 10px; height: 10px; border-radius: 999px; background: var(--vert); }
.pastille.attente { background: var(--ambre-fond); border-color: var(--ambre-fond); color: var(--ambre); }
.pastille.attente .point { background: var(--ambre); }
.pastille:active { background: var(--platre-fonce); }
@media (max-width: 419px) { .marque span { display: none; } .pastille { max-width: 70vw; } }

.onglets {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: center;
  height: var(--pied);
  padding: 6px calc(4px + var(--droite-sur)) calc(6px + var(--bas-sur)) calc(4px + var(--gauche-sur));
  background: rgba(255, 255, 255, 0.88); border-top: 1px solid var(--trait); box-shadow: var(--ombre-flottant);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
}
.onglet {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 56px; margin: 0 2px; border-radius: 14px; color: var(--texte-doux); text-decoration: none;
  font-size: 13px; font-weight: 650; font-stretch: 85%; white-space: nowrap; overflow: hidden;
}
.onglet svg { width: 24px; height: 24px; }
.onglet.actif { color: var(--texte-fort); background: var(--platre-fonce); }
.onglet.actif svg { stroke-width: 2.4; }
.onglet:active { background: var(--platre-fonce); }
.cadre-action .onglets { display: none; }

.barre-action {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 12px;
  min-height: var(--barre);
  padding: 10px calc(var(--marge) + var(--droite-sur)) calc(10px + var(--bas-sur)) calc(var(--marge) + var(--gauche-sur));
  background: rgba(255, 255, 255, 0.9); border-top: 1px solid var(--trait); box-shadow: var(--ombre-flottant);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .entete::before { background: var(--platre); }
  .onglets, .barre-action { background: var(--papier); }
}
.choix-courant { flex: 1 1 auto; min-width: 0; display: flex; }
.choix-courant .lien { min-height: var(--cible); font-weight: 650; color: var(--texte-doux); }
.choix-courant .statut { font-size: 15px; padding: 8px 12px; }
.bouton.enregistrer { flex: 0 1 260px; min-height: 56px; font-size: 18px; }
.bouton.enregistrer svg { width: 22px; height: 22px; stroke-width: 2.6; }

.page { width: min(1320px, 100%); margin: 0 auto; padding: 8px calc(var(--marge) + var(--droite-sur)) calc(var(--pied) + 28px) calc(var(--marge) + var(--gauche-sur)); }
.cadre-action .page { padding-bottom: calc(var(--barre) + 28px); }
.page-seule { flex: 1; display: grid; place-items: center; padding: calc(24px + var(--haut-sur)) 16px calc(24px + var(--bas-sur)); }
.page-pleine { display: flex; flex-direction: column; height: calc(100vh - var(--entete) - var(--pied)); height: calc(100dvh - var(--entete) - var(--pied)); min-height: 0; }

/* ------------------------------------------------------------------ briques */
.carte { background: var(--surface); border-radius: var(--rayon); }
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--cible); padding: 10px 18px; border-radius: var(--rayon-bouton);
  border: 1px solid var(--trait-fort); background: var(--surface); color: var(--texte-fort);
  font-weight: 650; line-height: 1.2; text-decoration: none; text-align: center;
}
.bouton:active { background: var(--surface-2); }
.bouton.principal { background: var(--principal-fond); border-color: var(--principal-fond); color: var(--principal-texte); }
.bouton.principal:active { background: #000; border-color: #000; }
.bouton:disabled { background: var(--surface-2); border-color: var(--surface-2); color: var(--texte-doux); cursor: not-allowed; }
.bouton.large { width: 100%; }
.bouton.rond { width: var(--cible); height: var(--cible); padding: 0; border-radius: 999px; flex: none; }
.bouton.rond svg { width: 24px; height: 24px; stroke-width: 2.4; }
.lien { background: none; border: 0; padding: 0; text-align: left; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.lien.discret { display: inline-flex; align-items: center; gap: 6px; min-height: var(--cible); padding: 0 6px; color: var(--texte-doux); font-weight: 600; }
@media (hover: hover) {
  .bouton:hover { border-color: var(--texte-fort); }
  .bouton.principal:hover { background: #2E353B; border-color: #2E353B; }
  .rangee:hover, .choix:hover, .enfant:hover, .tache:hover { background: #F7F8F7; }
}

.retour { display: inline-flex; align-items: center; gap: 4px; min-height: var(--cible); max-width: 100%; margin-left: -6px; color: var(--texte-doux); text-decoration: none; font-weight: 600; font-size: 16px; }
.retour span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.retour svg { width: 22px; height: 22px; stroke-width: 2.4; }
.erreur-formulaire { background: var(--rouge-fond); color: var(--rouge-texte); padding: 12px 14px; border-radius: var(--rayon-bouton); font-weight: 650; }
.bandeau { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--rayon); margin: 14px 0; font-weight: 550; }
.bandeau svg { margin-top: 2px; }
.bandeau.info { background: var(--platre-fonce); color: var(--graphite); }
.bandeau.attention { background: var(--ambre-fond); color: var(--ambre); }
.bandeau.remis { background: var(--vert-fond); color: var(--vert-texte); }
.bandeau.remis p { font-size: 15px; margin-top: 6px; }
.champ { display: grid; gap: 6px; align-content: start; }
.champ label { font-weight: 650; font-size: 16px; color: var(--texte-fort); }
.champ input, .champ select, textarea, select {
  min-height: 52px; padding: 12px 14px; border: 1px solid var(--trait-fort); border-radius: var(--rayon-bouton);
  background: var(--surface); width: 100%; font-size: 17px;
}
.champ input:focus, select:focus, textarea:focus { border-color: var(--texte-fort); outline: 3px solid var(--focus); outline-offset: 1px; }
.connexion { width: min(440px, 100%); display: grid; gap: 18px; padding: 30px 22px 26px; }
.connexion.centree { margin: 10px auto; }
.connexion .logo { width: 120px; }
.connexion form { display: grid; gap: 16px; }
.connexion .bouton.principal { min-height: 56px; font-size: 18px; }
.liste { display: grid; gap: 10px; }

/* Groupes « inset » : un conteneur blanc, des rangées séparées par un trait fin. */
.groupe, .liste-choix, .liste-enfants { display: grid; background: var(--surface); border-radius: var(--rayon); overflow: hidden; min-width: 0; }
.tete-groupe { display: flex; align-items: baseline; gap: 12px; margin: 0 4px 10px; }
.tete-groupe-nom { min-width: 0; overflow-wrap: anywhere; }
.tete-groupe-nom .code { display: block; margin: 2px 0 0; font-size: 14px; font-weight: 500; font-stretch: 100%; }
.rangee {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 64px; padding: 14px 16px; color: inherit; text-decoration: none;
}
.rangee + .rangee, .choix + .choix, .enfant + .enfant { border-top: 1px solid var(--trait); }
.rangee:active, .choix:active, .enfant:active { background: var(--platre); }
.groupe > :focus-visible, .liste-choix > :focus-visible, .liste-enfants > :focus-visible { outline-offset: -3px; }
.rangee-textes { display: grid; gap: 2px; min-width: 0; }
.puces { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; }

/* ------------------------------------------------------------------ « Moi » et comptes */
.moi { display: grid; gap: 14px; max-width: 560px; margin: 0 auto; }
.moi > section { margin-top: 10px; }
.moi > section > h2 { margin-bottom: 10px; }
.bloc-envoi { gap: 12px; padding: 16px; }
.etat-envoi { font-weight: 650; color: var(--texte-fort); }
.choix { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 16px; color: var(--texte-fort); text-decoration: none; font-weight: 600; }
button.choix { width: 100%; border: 0; background: none; text-align: left; }
.choix span { flex: 1; }
.choix svg { color: var(--texte-doux); }
.choix.sortie { color: var(--rouge); }
.carte.compte { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; }
.carte.compte > div { flex: 1 1 240px; min-width: 0; }
.carte.compte select { flex: 1 1 160px; width: auto; }
.carte.compte .bouton { flex: 1 1 160px; }
.carte.compte.inactif { opacity: 0.6; }
.carte.ajout { padding: 18px; display: grid; gap: 14px; margin-top: 24px; }
.carte.ajout form { display: grid; gap: 14px; }
.comptes { display: grid; gap: 14px; }

/* ------------------------------------------------------------------ statuts et puces */
.statut { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px 4px 9px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.statut svg { width: 15px; height: 15px; stroke-width: 2.8; }
.statut.fait { background: var(--vert-fond); color: var(--vert-texte); }
.statut.defaut { background: var(--ambre-fond); color: var(--ambre); }
.statut.pas-fait { background: var(--rouge-fond); color: var(--rouge-texte); }
.statut.reprogrammer { background: var(--bleu-fond); color: var(--bleu); }
.statut.a-faire { background: var(--platre-fonce); color: var(--graphite); }
.etat-machine, .duree { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 650; white-space: nowrap; }
.etat-machine.arret { background: var(--graphite); color: #fff; }
.etat-machine.marche, .duree { background: var(--platre-fonce); color: var(--graphite); }
.duree svg { width: 15px; height: 15px; }
.etat-machine.grand { font-size: 15px; padding: 6px 12px; }
.reporte { display: inline-flex; align-items: center; gap: 6px; color: var(--ambre); font-weight: 650; font-size: 15px; }
.avancement { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--texte-doux); }
.avancement strong { color: var(--texte-fort); font-size: 20px; }
.avancement .barre { flex: 1; min-width: 70px; height: 8px; border-radius: 999px; background: var(--trait); overflow: hidden; }
.avancement .barre > span { display: block; height: 100%; background: var(--graphite); border-radius: 999px; }

/* Le manomètre : l'avancement du mois. Le seul élément qui bouge sans qu'on le touche, et une seule fois. */
.manometre { margin: 12px 0 0; padding: 18px 16px 16px; display: grid; justify-items: center; text-align: center; background: var(--surface); border-radius: var(--rayon); }
.manometre svg { width: min(100%, 260px); height: auto; overflow: visible; display: block; }
.manometre .piste, .manometre .arc-fait { fill: none; stroke-width: 12; stroke-linecap: butt; }
.manometre .piste { stroke: var(--platre-fonce); }
.manometre .arc-fait { stroke: var(--graphite); }
.manometre .graduation { stroke: var(--acier); stroke-width: 1.5; }
.manometre .graduation.majeure { stroke: var(--graphite); stroke-width: 2.5; }
.manometre .aiguille { transform: rotate(var(--angle)); transform-origin: 120px 120px; transform-box: view-box; }
.manometre .aiguille line { stroke: var(--rouge); stroke-width: 4; stroke-linecap: round; }
.manometre .moyeu { fill: var(--graphite); stroke: none; }
.manometre .axe { fill: var(--platre); stroke: none; }
.manometre-chiffre { margin-top: 6px; font-size: 48px; line-height: 1; font-weight: 750; font-stretch: 75%; color: var(--texte-fort); }
.manometre-legende { font-size: 16px; color: var(--texte-doux); }
.manometre.anime .aiguille { animation: aiguille 600ms cubic-bezier(0.22, 0.8, 0.3, 1) both; }
.manometre.anime .arc-fait { animation: arc-fait 600ms cubic-bezier(0.22, 0.8, 0.3, 1) both; }
@keyframes aiguille { from { transform: rotate(-90deg); } }
@keyframes arc-fait { from { stroke-dasharray: 0 100; } }

/* L'anneau d'une tournée : de la même famille. */
.anneau { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.anneau-texte { font-size: 15px; font-weight: 650; color: var(--texte-fort); }
.anneau svg { width: 36px; height: 36px; }
.anneau circle { fill: none; stroke-width: 4; }
.anneau-piste { stroke: var(--platre-fonce); }
.anneau-fait { stroke: var(--graphite); stroke-linecap: butt; }
.anneau.complet .anneau-fait { stroke: var(--vert); }

/* ------------------------------------------------------------------ ce mois-ci */
.tete-mois { display: flex; align-items: center; gap: 12px; padding-top: 6px; }
.tete-mois h1 { flex: 1; min-width: 0; }
.fleches-mois { display: flex; gap: 8px; }
.rangee.tournee .anneau { align-self: center; }

/* ------------------------------------------------------------------ une tournée */
.tournee-ecran h1 { margin-top: 2px; }
.tournee-ecran > .sur-titre { margin-top: 4px; }
.resume-tournee { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 16px 0 6px; }
.resume-tournee .avancement { flex: 1 1 220px; }
.rangee.ligne { grid-template-columns: auto minmax(0, 1fr) auto; min-height: 76px; }
.rangee.ligne .droite { display: grid; justify-items: end; gap: 6px; }
.rangee.ligne .droite .doux { font-size: 14px; }
/* L'état d'un point de contrôle : un rond à gauche, vide tant qu'il est à faire. */
.rond-statut { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; border: 2.5px solid var(--trait-fort); color: #fff; flex: none; }
.rond-statut svg { width: 20px; height: 20px; stroke-width: 3; }
.rond-statut.a-faire svg { display: none; }
.rond-statut.fait { background: var(--vert); border-color: var(--vert); }
.rond-statut.defaut { background: var(--ambre); border-color: var(--ambre); }
.rond-statut.pas-fait { background: var(--rouge); border-color: var(--rouge); }
.rond-statut.reprogrammer { background: var(--bleu); border-color: var(--bleu); }
.note-courte { font-size: 15px; color: var(--texte); margin-top: 4px; overflow-wrap: anywhere; }
.precision { color: var(--texte-doux); font-weight: 500; }
.a-envoyer { display: inline-flex; align-items: center; gap: 4px; color: var(--ambre); font-size: 14px; font-weight: 650; }
@media (max-width: 480px) {
  .rangee.ligne { grid-template-columns: auto minmax(0, 1fr); }
  .rangee.ligne .droite { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; }
}

/* ------------------------------------------------------------------ un sous-ensemble à faire */
.ligne-ecran { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.ligne-ecran section { margin-top: 0; }
.colonne-vue, .colonne-travail { display: grid; gap: 18px; align-content: start; min-width: 0; }

/* La plaque de la machine : on ne doit pas se tromper de machine. Son code reste gros et cerné, comme peint sur place. */
.identite { background: var(--surface); border-radius: var(--rayon); padding: 6px 16px 18px; }
.identite .sur-titre { margin-top: 10px; font-size: 14px; }
.identite-corps { display: grid; gap: 14px; }
.identite-textes { min-width: 0; }
.nom-machine { font-size: clamp(32px, 9.6vw, 52px); font-weight: 750; font-stretch: 75%; line-height: 1.02; letter-spacing: -0.01em; color: var(--texte-fort); overflow-wrap: anywhere; margin-top: 2px; }
.code-machine {
  display: inline-block; margin-top: 10px; padding: 3px 12px;
  font-weight: 650; font-size: clamp(19px, 5.4vw, 24px); line-height: 1.25; letter-spacing: 0.02em; color: var(--texte-fort);
  border: 2px solid var(--graphite); border-radius: 8px; max-width: 100%; overflow-wrap: anywhere;
}
.nom-sous-ensemble { display: flex; gap: 10px; align-items: baseline; font-size: clamp(22px, 6vw, 30px); font-weight: 700; font-stretch: 80%; line-height: 1.12; color: var(--texte-fort); overflow-wrap: anywhere; margin-top: 2px; }
.nom-sous-ensemble::before { content: ''; flex: none; width: 14px; height: 14px; border-radius: 3px; background: var(--orange); transform: translateY(-1px); }
.code-se { font-size: 14px; color: var(--texte-doux); margin: 4px 0 0 24px; overflow-wrap: anywhere; }
.identite .etiquettes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.photo-reelle { width: 100%; max-height: 150px; object-fit: cover; border-radius: var(--rayon-bouton); display: block; }
.reperes { display: grid; gap: 8px; margin-top: 16px; padding-top: 4px; border-top: 1px solid var(--trait); font-size: 16px; line-height: 1.45; color: var(--texte); }
.reperes strong { color: var(--texte-fort); }
.reperes summary { display: flex; align-items: center; gap: 12px; min-height: var(--cible); font-weight: 650; color: var(--texte-fort); cursor: pointer; list-style: none; }
.reperes summary::-webkit-details-marker { display: none; }
.reperes summary::before { content: '+'; display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 999px; background: var(--platre-fonce); font-size: 20px; line-height: 1; }
.reperes[open] summary::before { content: '\2212'; }

.rappel-machine {
  position: fixed; z-index: 25; left: 0; right: 0; top: var(--entete);
  display: flex; align-items: baseline; gap: 12px; min-height: 52px;
  padding: 10px calc(var(--marge) + var(--droite-sur)) 10px calc(var(--marge) + var(--gauche-sur));
  background: rgba(255, 255, 255, 0.92); color: var(--texte-fort); border-bottom: 1px solid var(--trait); box-shadow: var(--ombre-flottant);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transform: translateY(-110%); visibility: hidden; transition: transform 0.18s ease, visibility 0.18s;
}
.rappel-machine.visible { transform: none; visibility: visible; }
.rappel-code { font-weight: 700; font-size: 19px; white-space: nowrap; }
.rappel-nom { font-weight: 700; font-stretch: 82%; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; color: var(--texte-doux); }

/* La 3D : une scène sombre et immersive, les commandes claires dessous. */
.zone-3d { background: var(--surface); border-radius: var(--rayon); overflow: hidden; position: relative; display: flex; flex-direction: column; }
/* La 3D garde une bonne hauteur sans couvrir l'écran : il reste toujours de quoi poser le doigt pour faire défiler. */
.scene { height: clamp(240px, 44vh, 440px); height: clamp(240px, 44svh, 440px); background: var(--scene); background-image: var(--scene-fond); position: relative; flex: none; min-width: 0; overflow: hidden; }
.scene.v3d-plein { background: var(--scene); background-image: var(--scene-fond); }
.scene canvas { display: block; width: 100%; height: 100%; max-width: 100%; }
.scene .v3d-etiquette { font-size: 13px; padding: 3px 7px; }
.scene .v3d-etiquette.choisi { font-size: 15px; }
.scene .v3d-etiquette.zone, .cp-scene .v3d-etiquette.zone { color: #D5D9DA; }
/* Sur l'orange de la 3D, le blanc ne se lit pas en plein jour : texte graphite. */
.v3d-etiquette.choisi { color: var(--graphite); }
.commandes-3d { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
.commandes-3d .bouton { min-height: 52px; font-size: 16px; }
.eclater { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; font-weight: 650; color: var(--texte-fort); min-height: var(--cible); padding: 0 4px; }
.eclater input, .eclater-flottant input { flex: 1; min-width: 0; height: var(--cible); margin: 0; accent-color: var(--graphite); }
.pieces { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border-bottom: 1px solid var(--trait); align-items: center; }
.pieces .sur-titre { width: 100%; }
@media (max-width: 699px) {
  /* Sur téléphone les pièces défilent en ligne, sous la 3D, au lieu de pousser la gamme vers le bas. */
  .zone-3d .pieces { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .zone-3d .pieces .sur-titre { width: auto; flex: none; }
  .zone-3d .piece { flex: none; white-space: nowrap; }
}
.piece { min-height: var(--cible); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--trait-fort); background: var(--surface); font-weight: 600; }
.piece:active, .piece:focus { border-color: var(--orange-texte); background: var(--orange-fond); color: var(--orange-texte); }
.repli { padding: 16px; }
.liste-se { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.liste-se li { padding: 10px 12px; border-radius: var(--rayon-bouton); overflow-wrap: anywhere; }
.liste-se li.a-faire { background: var(--platre); }
.liste-se li.choisi { background: var(--orange-fond); box-shadow: inset 4px 0 0 var(--orange); font-weight: 700; }

/* La gamme : une liste groupée, un rond à cocher par tâche. */
.taches { display: grid; gap: 12px; }
.taches > h2 { margin: 0 4px; }
.gamme { display: grid; }
.nom-gamme { font-weight: 650; color: var(--texte-fort); margin: 4px 4px 8px; overflow-wrap: anywhere; }
.nom-gamme .code { display: block; margin-left: 0; }
.tache {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; align-items: center; width: 100%;
  min-height: 64px; padding: 12px 16px; border: 0; background: var(--surface); text-align: left; font-size: 17px; line-height: 1.35; color: var(--texte-fort);
}
.tache:first-of-type { border-top-left-radius: var(--rayon); border-top-right-radius: var(--rayon); }
.tache:last-of-type { border-bottom-left-radius: var(--rayon); border-bottom-right-radius: var(--rayon); }
.tache + .tache { border-top: 1px solid var(--trait); }
.tache:active { background: var(--platre); }
.tache:focus-visible { outline-offset: -3px; }
.tache .case { grid-row: span 2; width: 34px; height: 34px; border: 2.5px solid var(--trait-fort); border-radius: 999px; display: grid; place-items: center; color: #fff; }
.tache .case svg { width: 20px; height: 20px; stroke-width: 3.2; }
.tache .texte { overflow-wrap: anywhere; }
.tache.cochee .case { background: var(--vert); border-color: var(--vert); }
.tache .qui { grid-column: 2; font-size: 14px; color: var(--texte-doux); }

.compte-rendu { display: grid; gap: 14px; background: var(--surface); border-radius: var(--rayon); padding: 16px; }
/* Les quatre statuts : un grand sélecteur segmenté. */
.statuts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--platre-fonce); border-radius: 15px; }
.statut-choix {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 68px; padding: 8px 6px; border: 0; border-radius: 11px; background: var(--surface);
  font-size: 16px; font-weight: 700; font-stretch: 88%; line-height: 1.15; color: var(--texte-fort); text-align: center;
}
.statut-choix svg { width: 24px; height: 24px; stroke-width: 2.8; }
.statut-choix:focus-visible { outline-offset: 1px; }
.statut-choix.choisi { color: #fff; }
.statut-choix.fait.choisi { background: var(--vert); }
.statut-choix.defaut.choisi { background: var(--ambre); }
.statut-choix.pas-fait.choisi { background: var(--rouge); }
.statut-choix.reprogrammer.choisi { background: var(--bleu); }
.libelle-note { font-weight: 650; color: var(--texte-fort); }
.libelle-note.obligatoire { color: var(--rouge-texte); }
textarea { font-size: 17px; resize: vertical; min-height: 110px; }
.photos-jointes { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.vignettes { display: flex; gap: 8px; flex-wrap: wrap; }
.vignettes img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--rayon-bouton); }

/* ------------------------------------------------------------------ l'usine, en arborescence
   Téléphone : la recherche, le fil d'Ariane, le nœud, la 3D, puis la liste des enfants qui défile seule.
   Paysage : l'arbre à gauche, la 3D à droite. */
.usine-ecran {
  flex: 1; min-height: 0; display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto minmax(170px, 36%) minmax(0, 1fr);
  grid-template-areas: 'recherche' 'ariane' 'tete' 'vue' 'liste';
  background: var(--fond);
}
.usine-ecran.sans-3d { grid-template-rows: auto auto auto minmax(0, 1fr); grid-template-areas: 'recherche' 'ariane' 'tete' 'liste'; }

/* La recherche : un champ en tête, à tous les niveaux de l'arbre. Ses résultats couvrent ce qui est dessous
   (sur téléphone en portrait, la 3D aussi : la liste reste au-dessus du clavier) ; la 3D reste chargée. */
.recherche-usine {
  grid-area: recherche; position: relative; display: flex; align-items: center; min-width: 0;
  padding: 6px calc(var(--marge) + var(--droite-sur)) 4px calc(var(--marge) + var(--gauche-sur));
}
.recherche-usine input {
  -webkit-appearance: none; appearance: none; width: 100%; min-height: var(--cible); margin: 0;
  padding: 8px 52px 8px 44px; font-size: 17px; border: 1px solid var(--trait); border-radius: var(--rayon-bouton); background: var(--surface);
}
.recherche-usine input:focus { border-color: var(--texte-fort); outline: 3px solid var(--focus); outline-offset: 1px; }
.recherche-usine input::placeholder { color: var(--texte-doux); }
.recherche-usine input::-webkit-search-cancel-button, .recherche-usine input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.recherche-usine .loupe { position: absolute; left: calc(var(--marge) + var(--gauche-sur) + 13px); display: flex; color: var(--texte-doux); pointer-events: none; }
.recherche-usine .loupe svg { width: 22px; height: 22px; stroke-width: 2.4; }
.effacer-recherche {
  position: absolute; right: calc(var(--marge) + var(--droite-sur)); display: grid; place-items: center;
  width: var(--cible); height: var(--cible); padding: 0; border: 0; background: none; color: var(--texte-doux); border-radius: var(--rayon-bouton);
}
.effacer-recherche[hidden] { display: none; }
.effacer-recherche svg { width: 22px; height: 22px; stroke-width: 2.6; }
.effacer-recherche:active { background: var(--platre-fonce); }
.resultats-usine {
  grid-row: 2 / -1; grid-column: 1 / -1; position: relative; z-index: 5; min-height: 0; overflow: auto; overscroll-behavior: contain;
  padding: 12px calc(var(--marge) + var(--droite-sur)) 20px calc(var(--marge) + var(--gauche-sur)); background: var(--fond);
}
.resultats-usine[hidden] { display: none; }
.resultats-usine section { margin: 0 0 22px; }
.resultats-usine h2 { margin: 2px 4px 10px; }
.resultats-usine .doux { margin: -4px 4px 10px; }
.rien-trouve { display: grid; gap: 6px; padding: 14px 16px; background: var(--surface); border-radius: var(--rayon); }
.ariane {
  grid-area: ariane; display: flex; align-items: center; gap: 6px; min-width: 0;
  padding: 0 calc(var(--marge) + var(--droite-sur)) 0 calc(var(--marge) - 4px + var(--gauche-sur));
}
.ariane .bouton.rond { width: var(--cible); height: var(--cible); border-color: transparent; background: transparent; color: var(--texte-fort); }
.retour-vide { display: grid; place-items: center; width: var(--cible); height: var(--cible); flex: none; color: var(--texte-doux); }
.ariane ol { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; white-space: nowrap; min-width: 0; flex: 1; }
.ariane ol::-webkit-scrollbar { display: none; }
.ariane li { display: flex; align-items: center; flex: none; }
.ariane li + li::before { content: '›'; padding: 0 6px; color: var(--trait-fort); font-size: 20px; }
.ariane a, .ariane li > span { display: inline-flex; align-items: center; min-height: var(--cible); font-size: 16px; font-weight: 600; }
.ariane a { color: var(--texte-doux); text-decoration: underline; text-decoration-color: var(--trait-fort); text-underline-offset: 3px; }
.ariane li > span { color: var(--texte-fort); font-weight: 700; }

.tete-noeud { grid-area: tete; display: grid; gap: 2px; padding: 0 calc(var(--marge) + var(--droite-sur)) 12px calc(var(--marge) + var(--gauche-sur)); min-width: 0; }
.tete-noeud h1 { font-size: clamp(26px, 7vw, 34px); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tete-noeud .sur-titre { font-size: 14px; }
.code-noeud { font-size: 14px; font-weight: 500; color: var(--texte-doux); overflow-wrap: anywhere; }
.mois-noeud { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; font-size: 15px; color: var(--texte-doux); font-weight: 600; }

.cpts { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.cpt { display: inline-flex; align-items: baseline; gap: 3px; padding: 2px 10px; border-radius: 999px; font-size: 14px; font-weight: 650; white-space: nowrap; }
.cpt strong { font-size: 15px; }
.cpt-a-faire { background: var(--platre-fonce); color: var(--graphite); }
.cpt-fait { background: var(--vert-fond); color: var(--vert-texte); }
.cpt-defaut { background: var(--ambre-fond); color: var(--ambre); }
.cpt-reprogrammer { background: var(--bleu-fond); color: var(--bleu); }
.cpt-rien { font-weight: 500; }

.vue-usine { grid-area: vue; position: relative; min-height: 0; min-width: 0; margin: 0 calc(var(--marge) + var(--droite-sur)) 0 calc(var(--marge) + var(--gauche-sur)); border-radius: var(--rayon); overflow: hidden; background: var(--scene); }
.vue-usine .scene.plein { height: 100%; }
.scene.plein .v3d-etiquette { font-size: 13px; padding: 3px 7px; }
.eclater-flottant {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2;
  display: flex; align-items: center; gap: 12px; min-height: var(--cible); padding: 0 16px;
  background: rgba(255, 255, 255, 0.94); border-radius: 999px; font-weight: 650; color: var(--graphite);
}

.enfants { grid-area: liste; overflow: auto; overscroll-behavior: contain; min-height: 0; padding: 16px calc(var(--marge) + var(--droite-sur)) 20px calc(var(--marge) + var(--gauche-sur)); }
.enfants > section { margin-top: 0; }
.enfants > h2 { margin: 2px 4px 10px; }
/* Une rangée de l'arbre : un point de l'état du mois, le nom, les compteurs, la flèche. */
.enfant {
  --etat: transparent; --etat-bord: transparent;
  display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 64px; padding: 12px 14px 12px 16px; text-decoration: none; color: var(--texte-fort);
}
.enfant::before { content: ''; width: 10px; height: 10px; border-radius: 999px; background: var(--etat); box-shadow: inset 0 0 0 2px var(--etat-bord); }
.enfant > svg { width: 22px; height: 22px; color: var(--texte-doux); }
.enfant-textes { display: grid; gap: 1px; min-width: 0; }
.enfant-textes .cpts { margin-top: 6px; }
.enfant-nom { font-weight: 650; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.enfant-sous { font-size: 14px; color: var(--texte-doux); overflow-wrap: anywhere; }
.enfant.etat-a-faire { --etat-bord: var(--graphite); }
.enfant.etat-fait { --etat: var(--vert); }
.enfant.etat-defaut { --etat: var(--ambre); }
.enfant.etat-reprogrammer { --etat: var(--bleu); }
.enfant.actuel { --etat: var(--orange); --etat-bord: var(--orange); background: var(--orange-fond); }

.travail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0 0 20px; }
.travail .bouton.principal { min-height: 56px; font-size: 17px; justify-content: flex-start; }
.travail .bouton.principal span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prevues .prevue + .prevue { margin-top: 6px; }
.prevues summary { display: flex; align-items: center; gap: 10px; min-height: var(--cible); padding: 0 14px; font-weight: 650; color: var(--graphite); background: var(--platre-fonce); border-radius: var(--rayon-bouton); cursor: pointer; list-style: none; }
.prevues summary::-webkit-details-marker { display: none; }
.prevues summary::before { content: '+'; font-size: 22px; line-height: 1; width: 18px; }
.prevues[open] summary::before { content: '\2212'; }
.prevues[open] summary { margin-bottom: 8px; }
.prevue { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 14px; background: var(--surface); border-radius: var(--rayon-bouton); text-decoration: none; color: var(--texte-fort); font-weight: 600; }
.prevue > span:not(.statut) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.prevue > svg { color: var(--texte-doux); }

/* Tablette en portrait : une 3D plus haute. */
@media (min-width: 700px) and (max-width: 999px) and (min-height: 561px) {
  .usine-ecran:not(.sans-3d) { grid-template-rows: auto auto auto minmax(260px, 44%) minmax(0, 1fr); }
}
/* Téléphone couché : l'arbre et la 3D côte à côte, sinon la 3D n'a plus de hauteur. */
@media (orientation: landscape) and (max-height: 560px) {
  .usine-ecran { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); grid-template-areas: 'recherche vue' 'ariane vue' 'tete vue' 'liste vue'; }
  .usine-ecran.sans-3d { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'recherche' 'ariane' 'tete' 'liste'; }
  .vue-usine { margin: 8px calc(8px + var(--droite-sur)) 8px 0; }
  .resultats-usine { grid-column: 1; }
}

/* ------------------------------------------------------------------ responsable */
.bilan { display: grid; gap: 16px; padding: 18px; margin-top: 12px; }
.bilan .manometre { margin: 0; padding: 4px 0 0; background: none; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.tuile { --etat: transparent; --etat-bord: transparent; display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--rayon-bouton); background: var(--platre); font-weight: 600; color: var(--texte-doux); }
.tuile strong { font-size: 34px; color: var(--texte-fort); line-height: 1; font-weight: 750; font-stretch: 78%; }
.tuile span { display: flex; align-items: center; gap: 7px; font-size: 15px; font-stretch: 88%; white-space: nowrap; }
.tuile span::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 999px; background: var(--etat); box-shadow: inset 0 0 0 2px var(--etat-bord); }
.tuile.fait { --etat: var(--vert); }
.tuile.defaut { --etat: var(--ambre); }
.tuile.pas-fait { --etat: var(--rouge); }
.tuile.reprogrammer { --etat: var(--bleu); }
.tuile.a-faire { --etat-bord: var(--graphite); }
.heures { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--texte-doux); }
.actions { display: grid; gap: 10px; }
.actions .bouton.principal { min-height: 56px; font-size: 18px; }
.carte.signalee { display: grid; gap: 10px; padding: 16px; }
.signalee-tete { display: grid; gap: 8px; justify-items: start; }
.signalee .note { font-size: 17px; color: var(--texte-fort); overflow-wrap: anywhere; }
.deplacer { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.deplacer label { grid-column: 1 / -1; display: grid; gap: 6px; font-weight: 650; color: var(--texte-fort); }
.deplacer .lien.discret { justify-self: start; }
.historique { background: var(--platre); border-radius: var(--rayon-bouton); padding: 10px 12px; font-size: 15px; display: grid; gap: 6px; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ tablette en portrait et plus */
@media (min-width: 700px) {
  :root { --marge: 28px; }
  .page { padding-top: 16px; }
  .tete-mois { gap: 20px; }
  .statuts { grid-template-columns: repeat(4, 1fr); }
  .scene { height: clamp(320px, 48svh, 560px); }
  .identite { padding: 8px 24px 22px; }
  .identite-corps { grid-template-columns: minmax(0, 1fr) minmax(220px, 34%); align-items: start; }
  .photo-reelle { max-height: 240px; margin-top: 12px; }
  .actions { display: flex; flex-wrap: wrap; }
  .signalee-tete { display: flex; align-items: start; gap: 12px; }
  .deplacer { display: flex; flex-wrap: wrap; align-items: center; }
  .deplacer label { display: flex; align-items: center; gap: 10px; }
  .deplacer select { width: auto; min-width: 220px; }
  .bouton.enregistrer { flex-basis: 320px; }
  .barre-action { padding-left: max(calc(var(--marge) + var(--gauche-sur)), calc((100% - 1320px) / 2 + var(--marge))); padding-right: max(calc(var(--marge) + var(--droite-sur)), calc((100% - 1320px) / 2 + var(--marge))); }
  /* Des listes, pas des grilles : sur grand écran, une colonne de lecture centrée. */
  .ce-mois, .tournee-ecran, .suivi { max-width: 960px; margin: 0 auto; }
}

/* ------------------------------------------------------------------ tablette en paysage, ordinateur : onglets en haut, 3D et gamme côte à côte */
@media (min-width: 1000px) {
  :root { --entete: calc(64px + var(--haut-sur)); --pied: 0px; --barre: 80px; }
  .onglets { position: static; display: flex; height: auto; padding: 0; background: none; border: 0; box-shadow: none; gap: 4px; margin-right: 12px; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .cadre-action .onglets { display: flex; }
  .onglet { flex-direction: row; gap: 8px; padding: 0 16px; min-height: var(--cible); margin: 0; border-radius: 999px; font-size: 16px; font-stretch: 90%; }
  .onglet svg { width: 22px; height: 22px; }
  .onglet.actif { background: var(--papier); box-shadow: inset 0 0 0 1px var(--trait); }
  .onglet:active { background: var(--papier); }
  .marque { margin-right: 18px; }
  .entete .pastille { margin-left: auto; }
  .page { padding-bottom: 60px; }
  .page-pleine { height: calc(100vh - var(--entete)); height: calc(100dvh - var(--entete)); }

  .usine-ecran { grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); grid-template-areas: 'recherche vue' 'ariane vue' 'tete vue' 'liste vue'; }
  .usine-ecran.sans-3d { grid-template-columns: minmax(0, 760px); justify-content: center; grid-template-areas: 'recherche' 'ariane' 'tete' 'liste'; }
  .resultats-usine { grid-column: 1; }
  .vue-usine { margin: 6px calc(var(--marge) + var(--droite-sur)) var(--marge) 0; }

  .ligne-ecran { grid-template-columns: minmax(0, 1.15fr) minmax(380px, 1fr); gap: 20px 24px; align-items: start; }
  .identite, .rappel-machine { grid-column: 1 / -1; }
  .identite-corps { grid-template-columns: minmax(0, 1fr) 280px; }
  .nom-machine { display: inline; margin-right: 16px; vertical-align: middle; }
  .code-machine { vertical-align: middle; margin-top: 4px; }
  .photo-reelle { max-height: 190px; }
  .colonne-vue { position: sticky; top: calc(var(--entete) + 64px); }
  .zone-3d { max-height: calc(100dvh - var(--entete) - var(--barre) - 84px); }
  .zone-3d .scene { flex: 1 1 auto; height: auto; min-height: 260px; }
  .zone-3d .pieces { max-height: 30%; overflow: auto; flex: none; }
  .colonne-vue .zone-3d { height: calc(100vh - var(--entete) - var(--barre) - 84px); height: calc(100dvh - var(--entete) - var(--barre) - 84px); }
  .statuts { grid-template-columns: 1fr 1fr; }
  .barre-action { justify-content: flex-end; }
  .choix-courant { justify-content: flex-end; flex: 0 1 auto; }
}

@media (min-width: 1200px) {
  .marque span::before { content: 'Maintenance '; }
}
