/* =====================================================================
   Coteo — direction « plan de métreur »
   Papier calque, encre, une seule couleur : la terre cuite.
   Titres en condensé de signalétique, chiffres en chasse fixe.
   ===================================================================== */
:root {
  color-scheme: light;
  --papier: #efebe2;
  --feuille: #f8f6f0;
  --feuille-2: #ebe6da;
  --filet: #d6cfbf;
  --encre: #1d1d1b;
  --encre-2: #4a4740;
  --encre-3: #7d776b;
  --tuile: #b5452a;
  --tuile-fort: #8f3219;
  --tuile-pale: #f3e1d6;
  --vert: #2f7d4f;
  --alerte: #b07800;
  --alerte-fond: #f5ead0;
  --erreur: #a8281f;
  --erreur-fond: #f5dcd8;
  --grille: rgba(29, 29, 27, .045);
  --texte-inverse: #f8f6f0;
  --sur-tuile: #ffffff;
  --titre: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --texte: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --chiffres: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  font-family: var(--texte);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --papier: #121210; --feuille: #1a1916; --feuille-2: #23221e; --filet: #3a3832;
    --encre: #ece8dc; --encre-2: #bdb7a8; --encre-3: #8c867a;
    --tuile: #df6a43; --tuile-fort: #f08460; --tuile-pale: #3a241b;
    --vert: #5bb381; --alerte: #e0a72e; --alerte-fond: #33291a; --erreur: #ef7468; --erreur-fond: #3a1f1c;
    --grille: rgba(236, 232, 220, .035); --texte-inverse: #121210; --sur-tuile: #121210;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --papier: #121210; --feuille: #1a1916; --feuille-2: #23221e; --filet: #3a3832;
  --encre: #ece8dc; --encre-2: #bdb7a8; --encre-3: #8c867a;
  --tuile: #df6a43; --tuile-fort: #f08460; --tuile-pale: #3a241b;
  --vert: #5bb381; --alerte: #e0a72e; --alerte-fond: #33291a; --erreur: #ef7468; --erreur-fond: #3a1f1c;
  --grille: rgba(236, 232, 220, .035); --texte-inverse: #121210; --sur-tuile: #121210;
}

/* ---------------------------------------------------------------- Base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { background: var(--papier); color: var(--encre); font-size: 14px; line-height: 1.5; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased; }
:where(button, .consigne, .alerte, .suggestions, .recherche, .pictogramme) svg { width: 18px; height: 18px; flex: none; }
symbol path, symbol circle, symbol rect { stroke-width: 1.7; stroke-linecap: square; stroke-linejoin: miter; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--tuile); outline-offset: 2px; }
h1 { font-family: var(--titre); font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -.005em; text-transform: uppercase; margin: 6px 0 14px; }
h1 em { font-style: normal; color: var(--tuile); }
h2 { font-family: var(--titre); font-weight: 600; font-size: 19px; letter-spacing: .01em; margin: 0; }
h3 { font-family: var(--chiffres); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-3);
  margin: 26px 0 8px; display: flex; align-items: center; gap: 10px; }
h3::after { content: ""; flex: 1; border-top: 1px solid var(--filet); }
.aide { color: var(--encre-3); font-size: 12.5px; margin: 8px 0 0; }
.intro { color: var(--encre-2); margin: 0 0 20px; font-size: 14.5px; max-width: 36em; }
.n, .chiffre { font-family: var(--chiffres); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 3px; padding: 9px 14px;
  border: 1.5px solid transparent; font-family: var(--titre); font-weight: 600; font-size: 15px; letter-spacing: .06em;
  text-transform: uppercase; transition: background .12s, color .12s, border-color .12s; }
.btn:active { transform: translateY(1px); }
.btn.large { width: 100%; padding: 12px 16px; font-size: 16px; }
.btn-principal { background: var(--tuile); color: var(--sur-tuile); }
.btn-principal:hover:not(:disabled) { background: var(--tuile-fort); }
.btn-principal:disabled { background: var(--feuille-2); color: var(--encre-3); cursor: not-allowed; }
.btn-secondaire { background: transparent; border-color: var(--encre); color: var(--encre); }
.btn-secondaire:hover:not(:disabled) { background: var(--encre); color: var(--texte-inverse); }
.btn-secondaire:disabled { opacity: .4; cursor: not-allowed; }
.btn-discret { background: transparent; border-color: var(--filet); padding: 6px 12px; font-size: 14px; }
.btn-discret:hover { border-color: var(--encre); }
.btn-icone { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 3px; border: 0; background: transparent; }
.btn-icone:hover { background: var(--feuille-2); }
.btn-icone.bord { border: 1.5px solid var(--encre); width: 44px; height: auto; }
.btn-icone.bord:hover { background: var(--encre); color: var(--texte-inverse); }
.lien { background: none; border: 0; color: var(--tuile); padding: 0; font-family: var(--chiffres); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.lien:hover { text-decoration: underline; text-underline-offset: 3px; }
.retour { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--encre-3); padding: 2px 0;
  margin: 0 0 12px -4px; font-family: var(--chiffres); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.retour:hover { color: var(--encre); }

/* ---------------------------------------------------------------- Barre */
.barre { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; height: 56px; background: var(--feuille);
  border-bottom: 1.5px solid var(--encre); }
.marque { display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; text-align: left; }
.marque > svg { width: 30px; height: 30px; }
.marque strong { font-family: var(--titre); font-weight: 700; font-size: 25px; letter-spacing: .14em; text-transform: uppercase; line-height: 1; }
.marque small { display: block; font-family: var(--chiffres); color: var(--encre-3); font-size: 10.5px; letter-spacing: .06em; margin-top: 3px; }
.marque span { display: flex; flex-direction: column; }
.actions-barre { display: flex; align-items: center; gap: 6px; }
.version { color: var(--encre-3); font-family: var(--chiffres); font-size: 11px; margin-left: 6px; }

/* ---------------------------------------------------------------- Disposition */
.disposition { flex: 1; display: grid; grid-template-columns: 450px 1fr; min-height: 0; }
.panneau { overflow-y: auto; background-color: var(--feuille);
  background-image: linear-gradient(var(--grille) 1px, transparent 1px), linear-gradient(90deg, var(--grille) 1px, transparent 1px);
  background-size: 24px 24px; border-right: 1.5px solid var(--encre); padding: 24px 26px 34px; }
.zone-vue { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.vue { animation: apparition .2s ease-out; }
@keyframes apparition { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------- Accueil */
.recherche { position: relative; }
.icone-champ { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--encre-3); pointer-events: none; }
input[type=search] { width: 100%; padding: 13px 14px 13px 42px; font: inherit; font-size: 15.5px; border: 1.5px solid var(--encre);
  border-radius: 3px; background: var(--feuille); color: var(--encre); }
input[type=search]::placeholder { color: var(--encre-3); }
input[type=search]:focus { outline: none; border-color: var(--tuile); box-shadow: 0 0 0 3px var(--tuile-pale); }
.suggestions { position: absolute; z-index: 1000; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
  background: var(--feuille); border: 1.5px solid var(--encre); border-radius: 3px; box-shadow: 4px 4px 0 var(--grille); }
.suggestions li { padding: 9px 10px; cursor: pointer; display: flex; gap: 10px; align-items: center; border-radius: 2px; }
.suggestions li svg { color: var(--encre-3); width: 16px; height: 16px; }
.suggestions li[aria-selected=true], .suggestions li:hover { background: var(--tuile-pale); }
.suggestions .vide { color: var(--encre-3); cursor: default; }
.etapes-accueil { list-style: none; padding: 0; margin: 26px 0 18px; border-top: 1px solid var(--filet); }
.etapes-accueil li { display: grid; grid-template-columns: 44px 1fr; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--filet); }
.etapes-accueil span { font-family: var(--chiffres); color: var(--tuile); font-size: 13px; }
.etapes-accueil b { font-weight: 600; }
.etapes-accueil small { display: block; color: var(--encre-3); }
.titre-section { display: flex; justify-content: space-between; align-items: center; margin: 30px 0 10px; }
.titre-section h2 { font-family: var(--chiffres); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-3); }
.liste-mesures { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--filet); }
.liste-mesures li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--filet); cursor: pointer; }
.liste-mesures li:hover { background: var(--tuile-pale); }
.liste-mesures .adr { font-weight: 600; display: block; }
.liste-mesures small { color: var(--encre-3); font-family: var(--chiffres); font-size: 11px; }
.liste-mesures .val { text-align: right; white-space: nowrap; font-family: var(--chiffres); font-weight: 500; }

/* ---------------------------------------------------------------- Sélection */
.titre-adresse { font-size: 26px; line-height: 1.05; margin-bottom: 14px; text-transform: none; }
.consigne { display: flex; gap: 12px; align-items: flex-start; border-left: 3px solid var(--tuile); background: var(--tuile-pale);
  padding: 10px 12px; margin-bottom: 14px; }
.consigne svg { color: var(--tuile); margin-top: 2px; }
.consigne p { margin: 0; color: var(--encre-2); }
.consigne b { color: var(--encre); }
.carte-bat { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--encre); border-radius: 3px; padding: 12px 14px;
  margin-bottom: 14px; background: var(--feuille); }
.carte-bat.vide { border-style: dashed; border-color: var(--encre-3); color: var(--encre-3); }
.carte-bat b { display: block; font-family: var(--titre); font-weight: 600; font-size: 18px; letter-spacing: .02em; }
.carte-bat small { color: var(--encre-2); font-family: var(--chiffres); font-size: 11.5px; }
.pictogramme { width: 40px; height: 40px; border-radius: 2px; background: var(--tuile); color: var(--sur-tuile); display: grid; place-items: center; flex: none; }
.pictogramme svg { width: 22px; height: 22px; }
.options { margin-top: 18px; color: var(--encre-2); }
.options summary { cursor: pointer; font-family: var(--chiffres); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.choix-source { border: 0; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.choix-source legend { font-size: 12px; color: var(--encre-3); margin-bottom: 6px; }
.choix-source label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--filet); border-radius: 3px; padding: 10px 12px; cursor: pointer; background: var(--feuille); }
.choix-source label:has(input:checked) { border-color: var(--tuile); }
.choix-source input { margin-top: 3px; accent-color: var(--tuile); }
.choix-source b { display: block; color: var(--encre); }
.choix-source small { color: var(--encre-3); }

/* ---------------------------------------------------------------- Calcul */
.stepper { list-style: none; padding: 0; margin: 24px 0; counter-reset: etape; border-top: 1px solid var(--filet); }
.stepper li { counter-increment: etape; display: grid; grid-template-columns: 44px 1fr 24px; align-items: center; padding: 13px 0;
  border-bottom: 1px solid var(--filet); color: var(--encre-3); }
.stepper li::before { content: counter(etape, decimal-leading-zero); font-family: var(--chiffres); font-size: 13px; }
.stepper li::after { content: ""; width: 14px; height: 14px; justify-self: end; border: 1.5px solid var(--filet); }
.stepper li.en-cours { color: var(--encre); font-weight: 600; }
.stepper li.en-cours::before { color: var(--tuile); }
.stepper li.en-cours::after { border-color: var(--tuile); background: var(--tuile); animation: clignote 1s steps(2) infinite; }
.stepper li.fait { color: var(--encre-2); }
.stepper li.fait::after { border-color: var(--vert); background: var(--vert)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='white' stroke-width='3.5'/%3E%3C/svg%3E") center/12px no-repeat; }
@keyframes clignote { 50% { opacity: .25; } }
.chrono { color: var(--encre-3); font-family: var(--chiffres); font-size: 12px; }

/* ---------------------------------------------------------------- Résultats */
.meta { color: var(--encre-3); font-family: var(--chiffres); font-size: 11px; letter-spacing: .02em; margin: -8px 0 16px; }
/* Cartouche de plan : la surface, encadrée, avec une ligne de cote */
.hero { border: 1.5px solid var(--encre); background: var(--feuille); padding: 12px 16px 14px; position: relative; }
.hero span { display: block; font-family: var(--chiffres); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-3); }
.hero b { display: block; font-family: var(--titre); font-weight: 700; font-size: 54px; line-height: 1; letter-spacing: -.01em; margin: 4px 0 10px; }
.hero small { display: block; font-family: var(--chiffres); font-size: 11.5px; color: var(--encre-2); padding-top: 9px; position: relative;
  border-top: 1px solid var(--tuile); }
.hero small::before, .hero small::after { content: ""; position: absolute; top: -5px; height: 9px; border-left: 1px solid var(--tuile); }
.hero small::before { left: 0; }
.hero small::after { right: 0; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--encre); border-top: 0; }
.kpi { padding: 9px 14px 10px; border-top: 1px solid var(--filet); }
.kpi:nth-child(odd) { border-right: 1px solid var(--filet); }
.kpi span { display: block; font-family: var(--chiffres); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-3); }
.kpi b { font-family: var(--titre); font-weight: 600; font-size: 27px; line-height: 1.1; }
.kpi small { font-family: var(--chiffres); color: var(--encre-2); margin-left: 4px; font-size: 12px; }
.actions-res { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; }
.actions-res .btn-principal { grid-column: 1 / -1; padding: 12px; font-size: 16px; }
.alerte { display: flex; gap: 10px; border-left: 3px solid var(--alerte); background: var(--alerte-fond); padding: 9px 12px; margin-top: 12px;
  font-size: 13px; color: var(--encre-2); }
.alerte svg { color: var(--alerte); margin-top: 1px; }
.alerte.erreur { border-color: var(--erreur); background: var(--erreur-fond); flex-direction: column; }
.alerte.erreur .btn { align-self: flex-start; margin-top: 6px; }
/* Bordereau de quantités : poste ........ quantité */
.devis { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--encre); }
.devis li { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 8px 0 7px; border-bottom: 1px solid var(--filet); }
.devis .poste { display: flex; align-items: baseline; gap: 8px; font-weight: 600; }
.devis .poste::after { content: ""; flex: 1; border-bottom: 1px dotted var(--encre-3); transform: translateY(-4px); min-width: 12px; }
.devis .qte { font-family: var(--chiffres); font-weight: 500; text-align: right; white-space: nowrap; }
.devis small { grid-column: 1 / -1; color: var(--encre-3); font-size: 12px; }
.section { border-top: 1px solid var(--filet); }
.section:first-of-type { margin-top: 22px; }
.section summary { cursor: pointer; padding: 12px 0; font-family: var(--titre); font-weight: 600; font-size: 17px; letter-spacing: .02em;
  list-style: none; display: flex; align-items: center; gap: 10px; }
.section summary::-webkit-details-marker { display: none; }
.section summary::before { content: "+"; font-family: var(--chiffres); font-weight: 400; color: var(--tuile); width: 12px; }
.section[open] summary::before { content: "−"; }
.section > :last-child { margin-bottom: 14px; }
.compte { color: var(--encre-3); font-family: var(--chiffres); font-size: 12px; font-weight: 400; }
.tableau { width: 100%; border-collapse: collapse; font-size: 13px; }
.tableau th { text-align: left; font-family: var(--chiffres); font-weight: 500; color: var(--encre-3); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 6px; border-bottom: 1.5px solid var(--encre); }
.tableau td { padding: 7px 6px; border-bottom: 1px solid var(--filet); }
.tableau td.n { font-size: 12.5px; }
.tableau tr.total td { font-weight: 600; border-top: 1.5px solid var(--encre); border-bottom: 0; }
.tableau tbody tr.actif td, .tableau tbody tr[data-pan]:hover td { background: var(--tuile-pale); }
.pastille { display: inline-block; width: 11px; height: 11px; margin-right: 8px; vertical-align: -1px; }
.trait { display: inline-block; width: 22px; height: 0; border-top: 3px solid; margin-right: 8px; vertical-align: 3px; }
.trait.dash { border-top-style: dashed; } .trait.dot { border-top-style: dotted; }
.exports { display: flex; flex-wrap: wrap; gap: 6px; }
.exports a { text-decoration: none; color: var(--encre); border: 1px solid var(--filet); border-radius: 3px; padding: 5px 10px;
  font-family: var(--chiffres); font-size: 11.5px; }
.exports a:hover { border-color: var(--encre); }
.mention { color: var(--encre-3); font-size: 11px; margin-top: 20px; }

/* ---------------------------------------------------------------- Carte et onglets */
.onglets { display: flex; align-items: stretch; gap: 0; padding: 0 14px; height: 44px; background: var(--feuille); border-bottom: 1.5px solid var(--encre); }
.onglets button { border: 0; background: none; padding: 0 16px; color: var(--encre-3); border-bottom: 3px solid transparent; margin-bottom: -1.5px;
  font-family: var(--titre); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.onglets button[aria-selected=true] { color: var(--encre); border-color: var(--tuile); }
.onglets button:disabled { opacity: .35; cursor: not-allowed; }
.fonds { margin: auto 0 auto auto; display: flex; border: 1px solid var(--filet); border-radius: 3px; }
.fonds input { position: absolute; opacity: 0; }
.fonds span { display: block; padding: 4px 12px; font-family: var(--chiffres); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-3); cursor: pointer; }
.fonds input:checked + span { background: var(--encre); color: var(--texte-inverse); }
.contenu-onglet { flex: 1; position: relative; min-height: 0; }
#carte { position: absolute; inset: 0; background: #2a2b26; }
iframe { border: 0; width: 100%; height: 100%; background: #fff; }
.contenu-onglet.plan { overflow: auto; background: #fcfcfb; text-align: center; }
.contenu-onglet.plan img { max-width: 100%; height: auto; }
.pastille-consigne { position: absolute; z-index: 600; top: 14px; left: 50%; transform: translateX(-50%); background: var(--encre); color: var(--texte-inverse);
  padding: 7px 14px; font-family: var(--chiffres); font-size: 12px; letter-spacing: .04em; pointer-events: none; white-space: nowrap; border-radius: 2px; }
.legende { position: absolute; right: 12px; bottom: 26px; z-index: 600; background: var(--feuille); color: var(--encre); border: 1.5px solid var(--encre);
  border-radius: 2px; padding: 9px 13px; font-family: var(--chiffres); font-size: 11.5px; }
.legende div { white-space: nowrap; margin: 3px 0; }
.etiquette-pan { background: #f8f6f0; border: 1px solid #1d1d1b; border-radius: 1px; box-shadow: none; font-family: var(--chiffres); font-weight: 500;
  font-size: 11px; padding: 1px 6px; color: #1d1d1b; }
.etiquette-pan::before, .etiquette-bat::before { display: none; }
.etiquette-bat { background: #b5452a; color: #fff; border: 0; border-radius: 1px; font-family: var(--chiffres); font-size: 11px; letter-spacing: .04em; padding: 3px 8px; box-shadow: none; }
.leaflet-interactive:focus { outline: none; }
.leaflet-container { font-family: var(--texte); }
.leaflet-bar { border: 1.5px solid #1d1d1b !important; border-radius: 2px !important; box-shadow: none !important; }
.leaflet-bar a { border-radius: 0 !important; color: #1d1d1b; }

/* ---------------------------------------------------------------- Dialogues et notifications */
dialog { border: 1.5px solid var(--encre); border-radius: 3px; padding: 0; width: min(600px, 92vw); background: var(--feuille); color: var(--encre); }
dialog::backdrop { background: rgba(20, 20, 18, .45); }
.dlg-tete { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px 10px; border-bottom: 1px solid var(--filet); }
.dlg-tete h2 { font-size: 22px; }
.dlg-aide { padding: 10px 20px 0; margin: 0 0 6px; }
#liste-historique { padding: 0 20px 18px; max-height: 62vh; overflow: auto; border-top: 0; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3000; background: var(--encre); color: var(--texte-inverse);
  padding: 10px 18px; border-radius: 2px; font-size: 13.5px; animation: apparition .15s ease-out; }
.toast.erreur { background: var(--erreur); color: #fff; }

/* ---------------------------------------------------------------- Transfert vers logiciel de devis */
dialog.large { width: min(720px, 94vw); }
.form-compte { display: grid; gap: 10px; margin: 14px 0 18px; padding: 14px 0; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.form-compte h3 { margin: 0 0 2px; }
.form-compte label { display: grid; gap: 5px; font: 500 11px/1.3 var(--chiffres); letter-spacing: .08em; text-transform: uppercase; color: var(--encre-2); }
.form-compte input { height: 42px; padding: 0 10px; border: 1.5px solid var(--filet); border-radius: 2px; background: var(--papier);
  font: 15px var(--texte); color: var(--encre); text-transform: none; letter-spacing: 0; }
.form-compte .btn { justify-self: start; }
.actions-compte { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.dlg-corps { padding: 14px 20px 20px; }
.choix-logiciel { display: inline-flex; border: 1.5px solid var(--encre); border-radius: 3px; margin: 0 0 16px; }
.choix-logiciel input { position: absolute; opacity: 0; }
.choix-logiciel span { display: block; padding: 7px 18px; font-family: var(--titre); font-weight: 600; font-size: 15px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--encre-2); cursor: pointer; }
.choix-logiciel label + label span { border-left: 1px solid var(--filet); }
.choix-logiciel input:checked + span { background: var(--encre); color: var(--texte-inverse); }
.choix-logiciel input:focus-visible + span { outline: 2px solid var(--tuile); }
.guide { margin: 0 0 16px; padding-left: 22px; color: var(--encre-2); display: grid; gap: 5px; }
.guide li::marker { font-family: var(--chiffres); color: var(--tuile); }
.guide b { color: var(--encre); }
.lignes-transfert td { vertical-align: middle; }
.lignes-transfert .qte { font-family: var(--chiffres); font-weight: 500; white-space: nowrap; }
.btn-mini { border: 1px solid var(--encre); background: transparent; border-radius: 2px; padding: 3px 9px; font-family: var(--chiffres); font-size: 11px;
  letter-spacing: .04em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 5px; }
.btn-mini:hover { background: var(--encre); color: var(--texte-inverse); }
.btn-mini.ok { background: var(--vert); border-color: var(--vert); color: #fff; }
.btn-mini svg { width: 13px; height: 13px; }
.actions-transfert { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }

/* ---------------------------------------------------------------- Écrans étroits */
@media (max-width: 900px) {
  .disposition { display: flex; flex-direction: column; overflow-y: auto; }
  .zone-vue { order: -1; flex: none; height: 55vh; }
  .panneau { overflow: visible; border-right: 0; border-bottom: 1.5px solid var(--encre); padding: 18px 16px 24px; }
  .marque small, .version { display: none; }
  h1 { font-size: 34px; }
}
