/* LA FEUILLE DE L'ATELIER — sortie de `base.html` le 25-09-2026 (refonte, lot 1).

   ⚠️ Servie par whitenoise, avec EMPREINTE en production (`STORAGES` de
   `config/settings.py`) : un réseau de chantier la garde en cache, et le nom
   change à chaque version, donc un déploiement ne sert jamais l'ancienne.

   ⚠️ Socle visuel du PRODUIT (spec V1 § 4.2) : aucune couleur n'est un
   paramètre client. Couleurs de marque échantillonnées du logo Imper-Tech ;
   neutres et états dérivés, contraste calculé (formule WCAG) — voir le rapport
   de design du 25-09-2026, § 2.1.

   ⚠️ LE CONTRAT ET LE DOCUMENT CLIENT NE SE RESTYLENT PAS. Leur typographie est
   réglementée (LPC, règl. 26-28) et vit dans `noyau/document/rendu.py`. Les
   règles d'ÉLÉMENT ci-dessous (`table`, `th`, `td`) cascadent pourtant dans
   leur zone : le bloc « ZONES RÉGLEMENTÉES » en fin de fichier leur rend,
   valeur pour valeur, ce que l'ancien `base.html` leur donnait. On ne l'enlève
   pas pour « nettoyer ». La taille de base est posée sur `body`, jamais sur
   `html` : les `rem` du contrat restent à 16 px. */

:root {
  /* ⚠️ VISUEL V4 (19-11-2026) — la maquette approuvée par Gabriel le 17-11 (« maquette FUSION »,
     v4) : neutres chauds, rayons 10 / 12 / 14, secondaires blancs à contour gris, le geste
     principal de la barre du pouce en BLEU DRAGÉE, et ce qui vient d'un TEXTO en indigo à 40 %.
     Contrastes recalculés (formule WCAG) au commit ; les zones réglementées gardent les
     anciennes valeurs (bloc « ZONES RÉGLEMENTÉES »). */
  /* Marque — fixe pour tous les couvreurs */
  --it-marine:#262362;   /* en-tête                 blanc dessus 14,01:1 */
  --it-royal:#2C3791;    /* action, lien, focus     blanc dessus 10,18:1 · sur fond 9,02:1 */
  --it-royal-presse:#222B78; --it-royal-survol:#34419F;
  --it-cyan:#25AAE1;     /* RETIRÉ de l'app (v4) : ne reste que pour `--accent`, lu par le contrat et le document */
  --it-argent:#BCBDC0;   /* texte secondaire SUR MARINE (7,46:1) — jamais sur blanc */
  --it-dragee:#DFF2FF;   /* v4 (Gab) : LE geste principal de la barre du pouce, et rien d'autre — marine dessus 12,19:1 */
  --it-dragee-presse:#C2E4FA; /* appuyé — marine dessus 10,52:1 */
  /* Ce qui vient d'un TEXTO (Gab, 17-11) : cadre, puce « À relire », trait. Jamais un avertissement :
     l'ambre reste aux avertissements, et les deux ne se confondent pas. */
  --texto:rgba(75,0,130,.4); --texto-trait:#4B0082; /* encre dessus : 5,99:1 sur le fond, 6,59:1 sur blanc */
  /* Neutres chauds (v4) */
  --fond:#F3F1EC;        /* page */
  --surface:#FFFFFF;
  --creux:#E9E6DF;       /* fond d'une puce neutre, d'un secondaire appuyé */
  --encre:#1B1F2E;       /* 16,38:1 blanc · 14,51:1 fond */
  --sourd:#4A4F5C;       /*  8,19:1 blanc ·  7,26:1 fond */
  --puce-neutre:#3D424E; /* texte d'une puce neutre : 8,07:1 sur --creux */
  --contour:#6E6A62;     /* bord des CHAMPS et des secondaires : 5,38:1 blanc · 4,77:1 fond */
  --filet:#DCD7CE;       /* séparateurs DÉCORATIFS seuls */
  --royal-teinte:#E8EAF6;
  --fuchsia-fonce:#A0105C; /* lien Google Maps de la fiche (11-11-2026) — 7,71:1 blanc · 6,85:1 fond */
  /* États — la couleur n'est jamais seule : chaque bandeau porte un mot */
  --bloque:#A12B20;  --bloque-teinte:#FCEDEA;
  --avertit:#7A5A00; --avertit-teinte:#FFF4D6;
  --ok-fonce:#1E6B3C; --ok-teinte:#E6F3EA;
  /* ⚠️ ANCIENS NOMS, gardés : une vingtaine de `style` de gabarits les lisent
     encore (`var(--trait)`, `var(--alerte)`…). Ils pointent sur les nouveaux. */
  --marque:var(--it-royal); --marque-profond:var(--it-marine); --accent:var(--it-cyan);
  --argent:var(--it-argent); --papier:var(--fond); --trait:var(--filet);
  --alerte:var(--bloque); --attention:var(--avertit); --ok:var(--ok-fonce);
  /* Espacements (4 px) */
  --e1:4px; --e2:8px; --e3:12px; --e4:16px; --e5:24px; --e6:32px; --e7:48px;
  /* Rayons (v4) : 10 un champ, 12 un bouton, 14 un bloc (carte, bandeau, puce). */
  --r-champ:10px; --r-bouton:12px; --r-bloc:14px;
  --r-controle:var(--r-champ);
}

* { box-sizing:border-box; }
body { margin:0; background:var(--fond); color:var(--encre);
       font:17px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; }
@media (min-width:600px) { body { font-size:16px; } }

/* ─── Focus : visible au soleil. Royal 3 px (10,18:1) ; blanc sur la marine. ─── */
:focus-visible { outline:3px solid var(--it-royal); outline-offset:2px; }
body > header :focus-visible { outline-color:#fff; }

/* ─── En-tête : 56 px, le nom du couvreur, et « Compte » replié ───
   ⚠️ `body > header`, jamais `header` nu : le document remis au client porte
   son propre `<header class="bandeau">`, que l'ancienne règle atteignait. */
body > header { background:var(--it-marine); min-height:56px; padding:0 var(--e4);
         display:flex; justify-content:space-between; align-items:center; gap:var(--e4);
         position:relative; }
body > header strong { color:#fff; font-size:17px; font-weight:700; line-height:1.25;
                overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
/* Refonte, lot 5 : le logo du couvreur (`ClientSaas.logo`), quand il existe.
   Hauteur bornée à 40 px (décision n° 2) ; sans logo, rien ne change. */
body > header strong img.marque-logo { height:40px; max-height:40px; width:auto;
       vertical-align:middle; margin-right:var(--e2); border-radius:2px; }
details.compte { flex:none; }
details.compte > summary { list-style:none; cursor:pointer; color:#fff; font-weight:600; font-size:15px;
       min-height:48px; min-width:48px; display:flex; align-items:center; justify-content:center;
       padding:0 var(--e3); border:1px solid var(--it-argent); border-radius:var(--r-bouton); }
details.compte > summary::-webkit-details-marker { display:none; }
details.compte > summary::after { content:"▾"; margin-left:6px; font-size:12px; }
details.compte[open] > summary::after { content:"▴"; }
details.compte .panneau { position:absolute; right:var(--e4); top:calc(100% + 4px); z-index:10;
       width:min(320px, calc(100vw - 2 * var(--e4))); background:var(--it-marine); color:#fff;
       border-top:4px solid var(--it-dragee); border-radius:0 0 var(--r-bloc) var(--r-bloc);
       padding:var(--e4); display:grid; gap:var(--e3); font-size:15px; }
/* v4 : le lien du panneau héritait du royal — 1,4:1 sur la marine. Blanc : 14,01:1. */
details.compte .panneau a { color:#fff; min-height:44px; display:flex; align-items:center; }
details.compte .panneau .qui { color:var(--it-argent); }
details.compte .panneau .qui b { color:#fff; font-weight:700; }
details.compte .panneau label { color:var(--it-argent); font-size:14px; font-weight:600; }
details.compte form { margin:0; display:flex; gap:var(--e2); align-items:center; flex-wrap:wrap; }
details.compte select { flex:1 1 10rem; min-height:48px; font-size:16px; }
details.compte button { min-height:48px; background:#fff; color:var(--it-marine); }
details.compte form.sortie button { width:100%; background:transparent; color:#fff;
       border:1px solid var(--it-argent); }

/* ─── Onglets : 48 px, UNE seule ligne à toutes les tailles ─── */
nav.onglets { background:var(--surface); border-bottom:1px solid var(--filet);
       display:grid; grid-auto-flow:column; grid-auto-columns:1fr; overflow-x:auto; }
nav.onglets a { min-height:48px; display:flex; align-items:center; justify-content:center;
       padding:0 var(--e2); text-decoration:none; color:var(--sourd); font-weight:600; font-size:15px;
       white-space:nowrap; border-bottom:3px solid transparent; }
nav.onglets a.ici { color:var(--it-royal); border-bottom-color:var(--it-royal); background:var(--royal-teinte); }
nav.onglets a:hover { color:var(--it-royal); }
@media (min-width:600px) {
  nav.onglets { grid-auto-columns:max-content; padding:0 var(--e5); }
  nav.onglets a { padding:0 var(--e4); }
}
/* Le menu du haut (le seul `nav.onglets` enfant direct de body) passe à la ligne sur un
   téléphone au lieu de défiler de côté : à six onglets, « Équipe » et « Heures » sortaient
   de l'écran à 375 px (14-10-2026). `auto-fit` : un seul onglet (l'employé) prend toute la
   largeur. Les onglets DANS une page (tâches, heures, parcours) gardent le défilement. */
@media (max-width:599.98px) {
  body > nav.onglets { grid-auto-flow:row; grid-template-columns:repeat(auto-fit, minmax(110px, 1fr));
       overflow-x:visible; }
}

/* ─── Page ─── */
main { padding:var(--e4); max-width:1200px; }
@media (min-width:600px) { main { padding:var(--e5); } }
h1 { font-size:22px; line-height:1.2; margin:0 0 var(--e4); font-weight:700; }
/* v4 : les sections sont des TITRES, sans carte ni compteur. */
/* ⚠️ Jamais dans le contrat, l'annexe ni le document client (contre-examen Codex, 19-11) : leurs titres gardent
   leur rendu. `:where` garde la spécificité d'un élément seul — un `h2` local d'un gabarit passe toujours devant. */
h2:where(:not(:is(.contrat-lpc, .annexe-lpc, .feuilles, div.feuille) *)) { font-size:20px; line-height:1.25; margin:var(--e6) 0 var(--e3); font-weight:700; }
h3:where(:not(:is(.contrat-lpc, .annexe-lpc, .feuilles, div.feuille) *)) { font-size:17px; line-height:1.3; margin:var(--e5) 0 var(--e2); font-weight:700; }
a { color:var(--it-royal); }
.lecteur { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

/* ─── Tableaux (hors zones réglementées — voir la fin du fichier) ─── */
table { border-collapse:collapse; width:100%; font-size:15px; }
th, td { text-align:left; padding:10px 12px; border-bottom:1px solid var(--filet); vertical-align:top; }
th { font-weight:600; color:var(--sourd); font-size:14px; }
td.num { text-align:right; font-variant-numeric:tabular-nums; }

/* ─── Compteurs ─── */
.cartes { display:flex; gap:var(--e3); flex-wrap:wrap; margin-bottom:var(--e5); }
.carte { border:1px solid var(--filet); border-radius:var(--r-bloc); padding:var(--e3) var(--e4);
         background:var(--surface); min-width:130px; }
.carte .n { font-size:24px; font-weight:700; font-variant-numeric:tabular-nums; }
.carte .l { font-size:14px; color:var(--sourd); }

/* ─── Badges et états — v4 : une PUCE (un mot + une couleur, fond teinté, rayon 14) ─── */
.drapeau { display:inline-flex; align-items:center; min-height:28px; font-size:14px; font-weight:700; line-height:1;
           padding:0 10px; border-radius:var(--r-bloc); border:1px solid transparent; white-space:nowrap;
           background:var(--creux); color:var(--puce-neutre); }
/* v4 (Gab, 17-11) : « Total partiel » AVERTIT — ambre, jamais rouge, jamais la couleur du texto. */
.partiel { color:var(--avertit); }
.drapeau.partiel { background:var(--avertit-teinte); }
/* L'historique marque un champ d'ARGENT avec la même classe : un renseignement, pas un avertissement. */
.drapeau.argent { color:var(--puce-neutre); background:var(--creux); }
/* Tâches (08-10-2026) : l'urgence se voit avant de lire le titre — rouge, la seule puce en couleur pleine. */
.urgente { color:#fff; background:var(--bloque); border-color:var(--bloque); }
.prioritaire { color:var(--avertit); }
.drapeau.prioritaire { background:var(--avertit-teinte); }
.renforce { color:var(--avertit); }
/* ⚠️ « standard » est l'EXCEPTION sur la liste des soumissions (décision n° 6,
   29-09-2026) — un renseignement, pas un avertissement : jamais --avertit
   (ambre = avertit, règle absolue), --sourd comme les autres libellés neutres. */
.standard { color:var(--sourd); }
.drapeau.standard { color:var(--puce-neutre); }
.vide { color:var(--sourd); font-style:italic; padding:var(--e6) 0; }
.faite { color:var(--sourd); text-decoration:line-through; }
.retard { color:var(--bloque); font-weight:600; }

/* ─── Boutons ─── */
a.bouton, button { display:inline-flex; align-items:center; justify-content:center; gap:var(--e2); font:inherit;
       font-weight:600; line-height:1.15; text-decoration:none; background:var(--it-royal); color:#fff;
       border:1.5px solid transparent; border-radius:var(--r-bouton); padding:0 var(--e4); min-height:48px;
       cursor:pointer; transition:background-color .12s, transform .08s; }
/* v4 : appuyé = fond plus foncé + 1 px d'enfoncement, pas de lèvre. */
/* v4 (Codex) : le secondaire est BLANC, contour gris, texte encre — peu de bleu à l'écran. */
a.bouton.secondaire, button.secondaire { background:var(--surface); color:var(--encre);
       border:1.5px solid var(--contour); }
@media (hover:hover) {
  a.bouton:hover, button:hover { background:var(--it-royal-survol); }
  a.bouton.secondaire:hover, button.secondaire:hover { background:var(--creux); }
}
/* Écrit APRÈS le survol (Codex, 19-11) : à spécificité égale, appuyé gagne. */
a.bouton:active, button:active { background:var(--it-royal-presse); transform:translateY(1px); }
a.bouton.secondaire:active, button.secondaire:active { background:var(--creux); }
.actions { margin-top:var(--e5); display:flex; gap:var(--e2); flex-wrap:wrap; }

/* ─── Champs : un contour qu'on voit au soleil (4,83:1) ─── */
/* v4 : 12 px entre deux champs (un champ prenait ~100 px de haut au téléphone). */
.champ { margin-bottom:var(--e3); max-width:520px; }
.champ label { display:block; font-size:15px; font-weight:600; margin-bottom:var(--e1); }
.champ .aide { display:block; font-size:14px; color:var(--sourd); margin-top:var(--e1); }
/* La bulle « ? » (19-11-2026, demande d'Alex) : l'aide d'un champ se lit en touchant le
   rond à droite du libellé. Zéro script (`details`), le texte reste dans la page. Rond de
   26 px ; cible de 44 px : le `::before`, compté depuis l'intérieur de la bordure. Les AVERTISSEMENTS ne vont jamais dans une bulle. */
.champ:has(> details.bulle) { position:relative; }
.champ:has(> details.bulle) > label { padding-right:44px; }
details.bulle > summary { position:absolute; top:-3px; right:9px; width:26px; height:26px;
       box-sizing:border-box; border:2px solid var(--it-royal); border-radius:50%; color:var(--it-royal);
       background:var(--surface); font-size:15px; font-weight:700; line-height:22px; text-align:center;
       list-style:none; cursor:pointer; z-index:1; }
details.bulle > summary::-webkit-details-marker { display:none; }
details.bulle > summary::before { content:""; position:absolute; inset:-11px; }
details.bulle[open] > summary { background:var(--it-royal); color:#fff; }
details.bulle > summary:focus-visible { outline:3px solid var(--it-royal); outline-offset:3px; }
details.bulle > .aide { padding:var(--e2) var(--e3); background:var(--surface); border-left:3px solid var(--it-royal);
       border-radius:0 var(--r-champ) var(--r-champ) 0; }
input, select, textarea { font:inherit; font-size:max(16px, 1em); width:100%; min-height:52px;
       padding:var(--e2) var(--e3); border:1.5px solid var(--contour); border-radius:var(--r-champ);
       background:var(--surface); color:var(--encre); }
input::placeholder, textarea::placeholder { color:var(--contour); opacity:1; }
input:focus, select:focus, textarea:focus { outline:3px solid var(--it-royal); outline-offset:1px;
       border-color:var(--it-royal); }
@media (min-width:600px) { input, select, textarea { min-height:48px; } }
textarea { min-height:6rem; }
/* La règle des champs (100 %, 52 px) ne vaut pas pour une case : elle la
   centrait seule sur sa ligne, au-dessus de son libellé. */
input[type=checkbox], input[type=radio] { width:28px; height:28px; min-height:0; padding:0; margin:0;
       flex:none; accent-color:var(--it-royal); }
/* v4 : une section est un TITRE posé sur le fond, sans cadre — les champs blancs en sont la seule surface.
   Une section DANS une section garde un titre de lecture, pas de section. */
fieldset { border:0; border-radius:0; padding:0; margin:0 0 var(--e5); background:transparent; min-width:0; }
legend { font-size:20px; line-height:1.25; font-weight:700; padding:0; margin-bottom:var(--e3); }
fieldset fieldset > legend { font-size:17px; margin-bottom:var(--e2); }

/* ─── Choix : le LIBELLÉ ENTIER est la cible ─── */
/* ⚠️ `display:block` + case en position absolue, jamais `flex` : un libellé
   qui porte un `<strong>` se coupait en trois colonnes (« Je suis | en présence
   du client | au moment de signer »), chaque nœud de texte devenant un item. */
label.choix { position:relative; display:block; min-height:56px; padding:14px var(--e4) 14px 56px;
       border:1px solid var(--contour); border-radius:var(--r-champ); background:var(--surface);
       cursor:pointer; font-weight:400; font-size:inherit; line-height:1.45; margin:0; }
label.choix > input { position:absolute; left:var(--e4); top:12px; }
label.choix:has(input:checked) { border:2px solid var(--it-royal); background:var(--royal-teinte);
       padding:13px calc(var(--e4) - 1px) 13px 55px; }
label.choix:has(input:checked) > input { left:calc(var(--e4) - 1px); top:11px; }
.choix-rangee { display:flex; gap:var(--e2); flex-wrap:wrap; }
.choix-rangee > label.choix { flex:1 1 12rem; }

/* ─── Saisie des lignes (écran 03) — une ligne = une carte (refonte, lot 2) ───
   Le tableau à six colonnes débordait du téléphone. Ici, chaque ligne est une
   carte blanche posée sur le fond de la page : description et description
   supplémentaire sur toute la largeur, puis quantité / unité / tarif sur trois
   colonnes égales, puis « Sans prix ». À partir de 900 px, tout tient sur UNE
   rangée — l'œil y retrouve le rang de l'Excel. La section se saisit AU-DESSUS
   de la carte, discrète : c'est un titre facultatif, pas un champ de la ligne. */
fieldset.bloc-lignes { background:transparent; border:0; padding:0; }
fieldset.bloc-lignes > legend { padding:0; margin-bottom:var(--e3); }
fieldset.bloc-lignes > .aide { display:block; font-size:14px; color:var(--sourd); margin:var(--e4) 0 0; }
ol.lignes-saisie { list-style:none; margin:0; padding:0; display:grid; gap:var(--e5); }
.section-ligne { display:flex; align-items:center; gap:var(--e2); margin-bottom:var(--e2); }
.section-ligne label { flex:none; font-size:14px; font-weight:600; color:var(--sourd); }
.section-ligne input { min-height:48px; background:var(--fond); font-weight:600; }
fieldset.carte-ligne { margin:0; padding:var(--e3) var(--e4) var(--e4); background:var(--surface);
       border:1px solid var(--filet); border-radius:var(--r-bloc); min-width:0; }
fieldset.carte-ligne > legend { font-size:15px; font-weight:600; color:var(--sourd); padding:0 var(--e2); margin-bottom:0; }
/* ⚠️ La grille vit sur un `div`, jamais sur le `fieldset` : `display:grid` sur un
   fieldset et sa légende n'est pas rendu pareil partout. */
.grille-ligne { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:var(--e3); }
.carte-ligne .champ { margin:0; max-width:none; min-width:0; }
/* LA FEUILLE DE MESURE a sa grille (revue de T1). Elle empruntait celle de la saisie
   des lignes — 3fr 3fr 1fr 1fr 1.2fr auto, faite pour description / quantité /
   unité / tarif : « Ligne de mesure » et « Hauteur » tombaient dans 79 px au bureau,
   et dans trois colonnes de 114 px au téléphone, menus coupés. Ici : UNE colonne
   sous 600 px ; au-dessus, des colonnes ÉGALES d'au moins 13 rem, autant qu'il en tient. */
.grille-mesure { display:grid; grid-template-columns:minmax(0, 1fr); gap:var(--e3); align-items:end; }
.grille-mesure .champ { margin:0; max-width:none; min-width:0; }
.grille-mesure .champ.large { grid-column:1 / -1; }
.grille-mesure select, .grille-mesure input[type="text"] { width:100%; }
@media (min-width:600px) {
  .grille-mesure { grid-template-columns:repeat(auto-fill, minmax(13rem, 1fr)); }
}
/* LE TAKE OFF AU DOIGT (02-10-2026) : un nombre et SON unité, côte à côte — le
   nombre prend la place, l'unité garde une cible d'au moins 44 px de haut et de
   quoi lire « mm ». Rien ici ne dépend du survol. */
.nombre-et-unite .paire { display:grid; grid-template-columns:minmax(0, 1fr) 5.5rem; gap:var(--e2); }
.murs-de-zone .murs-dits { margin:0 0 var(--e3); }
ul.tours-de-murs { margin:0 0 var(--e3); padding-left:var(--e5); }
.carte-ligne .champ.large, .carte-ligne label.sans-prix { grid-column:1 / -1; }
/* Run d'Alex, 30-09-2026 : la quantité est le seul champ que le catalogue ne
   remplit jamais — c'est elle qu'on oublie. Elle se voit. */
.carte-ligne input.quantite { font-weight:700; border:2px solid var(--it-royal); } /* v4 : le cyan (2,65:1 sur blanc) est retiré */
.carte-ligne input[type="search"] { background:var(--fond); }
@media (min-width:900px) {
  .grille-ligne { grid-template-columns:3fr 3fr 1fr 1fr 1.2fr auto; align-items:end; }
  .carte-ligne .champ.large, .carte-ligne label.sans-prix { grid-column:auto; }
  .carte-ligne label.sans-prix { white-space:nowrap; }
}
/* Le récapitulatif des totaux : chiffres alignés, jamais en point anglais. */
.recap-totaux { margin-top:var(--e4); }
.recap-totaux dd { font-variant-numeric:tabular-nums; }

/* ─── Bandeaux : ROUGE = bloque, AMBRE = avertit (jamais l'un pour l'autre) ─── */
.erreurs { background:var(--bloque-teinte); color:var(--encre);
       border:0; border-left:4px solid var(--bloque); border-radius:var(--r-bloc);
       padding:var(--e3) var(--e4); margin-bottom:var(--e5); }
.erreurs strong { color:var(--bloque); }
.erreurs ul { margin:0; padding-left:1.2rem; color:var(--bloque); }
/* v4 (Gab, 17-11) : « Total partiel » AVERTIT, il ne bloque rien — l'ambre, comme sa puce. */
.bandeau-partiel { white-space:pre-line; background:var(--avertit-teinte); color:var(--avertit);
       border:0; border-left:4px solid var(--avertit); border-radius:var(--r-bloc);
       padding:var(--e3) var(--e4); margin-bottom:var(--e5); }
.bandeau-partiel strong { color:var(--avertit); }
/* Ambre, jamais rouge : le rouge dit « bloqué ». Celui-ci AVERTIT et ne bloque
   rien — lui donner la couleur du blocage apprendrait à ignorer les deux. */
.bandeau-avertir { background:var(--avertit-teinte); color:var(--encre);
       border:0; border-left:4px solid var(--avertit); border-radius:var(--r-bloc);
       padding:var(--e3) var(--e4); margin-bottom:var(--e5); }
.bandeau-avertir strong { display:block; margin-bottom:var(--e2); color:var(--avertit); }
.bandeau-avertir ul { margin:0; padding-left:1.2rem; }
.bandeau-avertir li { margin-bottom:6px; }

/* ─── Fiche ─── */
.fiche-champs { display:grid; grid-template-columns:auto 1fr; gap:var(--e2) var(--e4); margin-bottom:var(--e5); }
.fiche-champs dt { color:var(--sourd); font-size:14px; font-weight:600; }
.fiche-champs dd { margin:0; min-width:0; }
/* Sur un écran étroit, une étiquette longue (« vente à domicile — 10 jours pour annuler »)
   sortait de la fiche, coupée à droite : dans la fiche elle va à la ligne. */
.fiche-champs .drapeau { white-space:normal; }

/* ─── Recherche et ajout ─── */
form.recherche { display:flex; gap:var(--e2); max-width:560px; margin-bottom:var(--e5); }
.trouve { font-size:14px; color:var(--sourd); margin:calc(-1 * var(--e4)) 0 var(--e5); }
/* Le formulaire d'ajout tient sur UNE ligne : un formulaire en pleine hauteur
   pousse la liste sous le pli, et une liste qu'on ne voit pas ne se coche pas. */
details.ajout { margin-bottom:var(--e5); }
/* v4 : « + Ajouter » est un contour en tirets, texte encre — on sait qu'il ouvre quelque chose. */
details.ajout > summary { display:inline-flex; align-items:center; min-height:48px; cursor:pointer;
       font-weight:600; color:var(--encre); border:1.5px dashed var(--contour);
       border-radius:var(--r-bouton); padding:0 var(--e4); list-style:none; background:var(--surface); }
details.ajout > summary::-webkit-details-marker { display:none; }
details.ajout[open] > summary { margin-bottom:var(--e3); border-style:solid; }
form.ajout { display:flex; gap:var(--e3); flex-wrap:wrap; align-items:flex-end;
       border:1px solid var(--filet); border-radius:var(--r-bloc); padding:var(--e4); background:var(--surface); }
form.ajout .champ { margin:0; max-width:none; }
form.ajout .champ.titre { flex:1 1 20rem; }
form.ajout details { flex-basis:100%; font-size:15px; color:var(--sourd); }
form.ajout details summary { cursor:pointer; min-height:48px; display:flex; align-items:center; }
form.enligne { display:inline; }
form.enligne button { all:unset; cursor:pointer; color:var(--it-royal); text-decoration:underline;
       font-size:15px; white-space:nowrap; min-height:48px; display:inline-flex; align-items:center; }

/* Téléphone : le vendeur est sur le toit, pas au bureau. */
@media (max-width:480px) {
  table { font-size:15px; }
  /* Qui a ajouté la tâche, la dernière connexion : des colonnes de bureau.
     ⚠️ Visait `.secondaire` NU jusqu'au 25-09-2026 — donc aussi TOUS les
     boutons secondaires : « Effacer et recommencer » de la signature, « Annuler »
     du croquis, « Révoquer le lien » du parcours disparaissaient au téléphone.
     Invisible tant que l'outil de capture rendait à 500 px. */
  th.secondaire, td.secondaire { display:none; }
}

/* ═══ ZONES RÉGLEMENTÉES — l'ancien rendu, valeur pour valeur ═══════════════
   Contrat, annexe de résolution, document remis au client : leurs tableaux
   gardent exactement ce que `base.html` leur donnait avant la refonte. Leur
   encre, elle, est tenue par le plancher `!important` de `rendu.py`. */
/* ⚠️ v4 (19-11-2026) : les neutres de l'app ont changé ; ces zones gardent les ANCIENS, valeur pour
   valeur — le contrat, l'annexe et le document client ne se restylent pas. */
:is(.contrat-lpc, .annexe-lpc, .feuilles, div.feuille) { --fond:#EFF2F3; --sourd:#464D5D; --contour:#6B7280;
       --filet:#C9CED6; --trait:#C9CED6; --r-controle:4px; line-height:1.55; }
:is(.contrat-lpc, .annexe-lpc, .feuilles) table { font-size:.9rem; }
:is(.contrat-lpc, .annexe-lpc, .feuilles) :is(th, td) { padding:.55rem .7rem; border-bottom:1px solid #dcdad3; }
:is(.contrat-lpc, .annexe-lpc, .feuilles) th { color:#464D5D; font-size:.78rem; text-transform:uppercase;
       letter-spacing:.04em; font-weight:600; }
@media (max-width:480px) { :is(.contrat-lpc, .annexe-lpc, .feuilles) table { font-size:.85rem; } }
/* ⚠️ CORRIGÉ le 29-09-2026, décision d'Alex. L'ancienne règle `header` du site
   atteignait le bandeau « SOUMISSION » du document : fond bleu sous un texte
   noir, jamais un choix de design — un accident de sélecteur `header` non
   scopé, hérité d'avant la refonte. Fond retiré ; le document garde SA propre
   présentation (`STYLE_SOUMISSION.bandeau` : filet noir, texte noir, aucun
   fond) — `gap`/`flex-wrap` restent, utiles au responsive de l'aperçu écran. */
.feuilles header { gap:1rem; flex-wrap:wrap; }

/* ═══════════════════════════════════════════════════════════════════════
   LOT 3 (26-09-2026) — TABLEAUX → CARTES SOUS 600 PX, ET LA CASE « FAITE ».
   Écrans 01 (soumissions), 02 (fiche), 10 (tâches), 12 (équipe). Bloc NEUF,
   à la suite de tout ce qui précède — cette feuille est PARTAGÉE avec le
   lot 2 (saisie des lignes) : on n'y réécrit jamais une règle déjà posée.

   ⚠️ Scopé à `table.tableau-cartes` SEULEMENT. La feuille dessert AUSSI le
   contrat et le document remis au client (bloc « ZONES RÉGLEMENTÉES »
   ci-dessus) : un sélecteur `table` nu aurait transformé LEURS tableaux en
   cartes, et on ne les restyle pas (CLAUDE.md : « le contrat et le document
   remis au client ne se restylent pas »).

   ⚠️ AUCUN attribut sur `<tr>` : `tests/test_creation_soumission.py:293` et
   `tests/test_document_soumission.py` comptent `<tr>` NU ailleurs dans ce
   dépôt. Tout ce qu'une carte a besoin — position, libellé de colonne — vit
   dans une règle CSS par ÉLÉMENT (`tr`, `td`) sous ce sélecteur de table,
   jamais dans un attribut posé sur `<tr>` par le gabarit. Les libellés de
   colonne vont sur les `<td>` (`data-libelle`), jamais sur `<tr>`. */
@media (max-width:599px) {
  /* Le même procédé que `.lecteur` plus haut (masqué à l'œil, lisible au
     clavier et au lecteur d'écran) — appliqué ICI, sous 600 px seulement :
     l'en-tête de colonnes reste utile en tableau, à partir de 600 px. */
  table.tableau-cartes thead {
    position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0);
  }
  table.tableau-cartes, table.tableau-cartes tbody { display:block; width:100%; }
  table.tableau-cartes tbody tr {
    display:block; position:relative; background:var(--surface);
    border:1px solid var(--filet); border-radius:var(--r-bloc);
    padding:var(--e3) var(--e4); margin-bottom:var(--e2);
  }
  table.tableau-cartes tbody tr.section {
    background:var(--fond); border-style:dashed; padding:var(--e2) var(--e4);
  }
  table.tableau-cartes tbody td {
    display:block; text-align:left; border:0; padding:var(--e1) 0;
  }
  table.tableau-cartes tbody td[data-libelle]::before {
    content:attr(data-libelle); display:block; font-size:14px; font-weight:600; color:var(--sourd);
  }
  /* La 1ʳᵉ cellule identifie la carte (numéro+client, description, nom) :
     elle porte l'emphase, comme un titre — jamais sur une ligne « vide » (le
     message d'écran vide n'identifie rien) ni sur un intertitre de section
     (sa seule cellule EST déjà le titre de la section, mis en gras plus haut). */
  table.tableau-cartes:not(.tableau-taches) tbody tr:not(.section):not(:has(.vide)) td:first-child {
    font-size:17px; font-weight:700; padding-top:0;
  }

  /* ── 01 Liste SEULEMENT : toute la carte est la cible ──────────────────
     Les autres tableaux du lot (fiche, tâches, équipe) portent leurs PROPRES
     contrôles par ligne (cases, formulaires) : y étirer un lien casserait
     ces contrôles. Ici, chaque ligne n'a qu'une action — ouvrir la fiche. */
  table.tableau-cliquable tbody tr:not(:has(.vide)) { cursor:pointer; }
  table.tableau-cliquable tbody tr td:first-child a { text-decoration:none; color:inherit; }
  table.tableau-cliquable tbody tr td:first-child a::after { content:""; position:absolute; inset:0; }
  /* 09-11-2026 : le lien étiré couvre la carte ENTIÈRE. Ce qui a sa propre action dans la carte
     (le numéro à composer, la note) passe AU-DESSUS, sinon le toucher ouvre la fiche. */
  table.tableau-cliquable tbody tr td:not(:first-child) :is(a, form) { position:relative; z-index:1; }

  /* ── 10 Tâches SEULEMENT : la case déborde à gauche de la carte entière,
     le reste (titre, pour, échéance) empilé à droite — ici la 1ʳᵉ colonne
     n'identifie pas la carte, c'est son ACTION. */
  table.tableau-taches tbody tr:not(:has(.vide)) { display:flex; align-items:flex-start; gap:var(--e3); }
  table.tableau-taches tbody tr td:first-child { flex:none; padding:0; }
  table.tableau-taches tbody tr td:not(:first-child) { flex:1 1 auto; min-width:0; }
  table.tableau-taches tbody tr td:nth-child(2) { font-size:17px; font-weight:700; padding-top:0; }
  /* 08-10-2026 : « Pour », « Échéance » et « Ajoutée par » se chevauchaient à côté du
     titre (vu dans un navigateur à 375 px). Ils passent SOUS le titre. */
  table.tableau-taches tbody tr:not(:has(.vide)) { flex-wrap:wrap; }
  table.tableau-taches tbody tr td:nth-child(2) { flex:1 1 55%; }
  table.tableau-taches tbody tr td:nth-child(n+3) { flex:1 1 30%; font-size:14px; }
}

/* ─── La case « faite » (agenda) : le langage visuel de `label.choix` du
   lot 1, sans <input> — le bascule reste un vrai <button type=submit> (zéro
   JavaScript, comme partout dans ce dépôt) : un `<input type=checkbox>` ne
   peut pas soumettre son formulaire sans `onchange`. S'applique à TOUTE
   largeur, pas seulement sous 600 px : la cible de 13 px de haut (défaut
   n° 10 de l'audit design du 25-09) n'était pas un défaut du seul téléphone.
   ⚠️ Spécificité : `form.enligne button` (posée au lot 1, plus haut dans ce
   fichier) écrit `all:unset` — cette règle-ci la bat par la classe,
   propriété par propriété ; elle n'a pas besoin de tout redéclarer. */
form.enligne button.case-tache {
  display:inline-flex; align-items:center; gap:var(--e2); min-height:56px;
  padding:0 var(--e3); border:1px solid var(--contour); border-radius:var(--r-controle);
  background:var(--surface); color:var(--sourd); font-size:14px; font-weight:600;
  text-decoration:none; white-space:normal;
}
form.enligne button.case-tache .case {
  flex:none; width:28px; height:28px; border:2px solid var(--contour); border-radius:4px;
  display:inline-flex; align-items:center; justify-content:center; font-size:16px; line-height:1;
  color:var(--it-royal); background:var(--surface);
}
form.enligne button.case-tache.faite-le { border-color:var(--it-royal); background:var(--royal-teinte); }
form.enligne button.case-tache.faite-le .case { border-color:var(--it-royal); background:var(--royal-teinte); }

/* ═══════════════════════════════════════════════════════════════════════
   LOT 4 (28-09-2026) — LA BARRE DU POUCE + LA HIÉRARCHIE DES ACTIONS.
   Écrans 00 (connexion), 01 (soumissions), 02 (fiche), 03 (saisie),
   04 (nouvelle soumission), 13 (parcours) — spec de design § 2.0 et § 3.
   Bloc NEUF, à la suite de tout ce qui précède.

   « Le geste fort unique » : UNE barre collée en bas, fond marine, UN SEUL
   bouton plein. Zéro JavaScript (`position:sticky` suffit).
   ⚠️ v4 (19-11-2026, choix de Gab du 17-11) : le geste principal passe du cyan
   au BLEU DRAGÉE (`--it-dragee`, marine dessus 12,19:1) et le filet cyan du
   haut de la barre est retiré. C'est la SEULE surface dragée du produit.

   ⚠️ Pas de marge négative pleine-bleed ici, à dessein : la barre vit tantôt
   dans `<main>`, tantôt dans un `<form>` sans padding propre — une bordure
   édge-to-edge calculée pour l'un déborderait dans l'autre. Elle reste donc
   pleine largeur de SON conteneur, comme `.carte` et `.actions` déjà. */
.barre-pouce {
  position:sticky; bottom:0; z-index:5; background:var(--it-marine);
  padding:var(--e2) var(--e4) calc(var(--e2) + env(safe-area-inset-bottom));
  margin-top:var(--e6);
}
.barre-pouce .bouton-pouce {
  display:flex; align-items:center; justify-content:center; width:100%;
  min-height:56px; background:var(--it-dragee); color:var(--it-marine);
  font:inherit; font-size:18px; font-weight:700; line-height:1.15; text-decoration:none; text-align:center;
  border:none; border-radius:var(--r-bouton); cursor:pointer; transition:background-color .12s, transform .08s;
}
@media (hover:hover) { .barre-pouce .bouton-pouce:hover { background:var(--it-dragee-presse); } }
.barre-pouce .bouton-pouce:active { background:var(--it-dragee-presse); transform:translateY(1px); }
/* Run d'Alex, 30-09-2026 : la fiche porte DEUX gestes au pouce — saisir les
   lignes (secondaire, contour) et le document (primaire, plein). Côte à côte :
   deux cibles de 56 px, jamais empilées hors de portée du pouce. */
.barre-pouce:has(.bouton-pouce.secondaire) { display:flex; gap:var(--e2); }
/* v4 (Codex) : le secondaire de la barre est allégé — contour argent de 1 px, libellé à 600. */
.barre-pouce .bouton-pouce.secondaire { background:transparent; color:#fff;
  border:1px solid var(--it-argent); font-size:16px; font-weight:600; }
@media (hover:hover) { .barre-pouce .bouton-pouce.secondaire:hover { background:#33307A; } }
.barre-pouce .bouton-pouce.secondaire:active { background:#33307A; }

/* ─── Lien d'action (§ 2.5) : le texte est la cible, jamais un cadre ───
   Fiche (02) : contrat, croquis, historique passent de bouton à lien — une
   seule action PRIMAIRE reste dans la barre du pouce (le document). */
.lien-action { display:inline-flex; align-items:center; min-height:48px;
       color:var(--it-royal); text-decoration:underline; font-weight:600; }
ul.actions-secondaires { list-style:none; margin:0 0 var(--e4); padding:0;
       display:flex; flex-wrap:wrap; column-gap:var(--e5); row-gap:0; }
ul.actions-secondaires li { margin:0; }


/* ─── Le texto préparé (02-10-2026) : le bouton est `a.bouton` (48 px), le texte
   à copier se sélectionne d'un doigt (`user-select:all`) ─── */
.texto { margin-top:var(--e4); }
.texto .aide { display:block; font-size:14px; margin-top:var(--e1); }
.texto-message { min-height:9rem; user-select:all; -webkit-user-select:all; background:var(--surface); }
.texto-raison, .suivi-raison { font-weight:600; }

/* ─── Photos d'une tâche (08-10-2026) ─── */
.photos-tache { display:flex; flex-wrap:wrap; gap:8px; margin:8px 0 4px; }
.photos-tache img { width:96px; height:96px; object-fit:cover; border-radius:var(--r-champ);
                    border:1px solid var(--trait, #ccc); display:block; }
/* Retirer une photo (13-10-2026) : le lien SOUS la vignette, à 44 px de haut — jamais sur l'image. */
.photo-jointe { display:grid; justify-items:center; }
.photo-jointe a.retirer-photo { min-height:44px; min-width:96px; display:flex; align-items:center;
                                justify-content:center; font-size:14px; font-weight:400; }
img.photo-a-retirer { max-width:100%; height:auto; max-height:60vh; border-radius:var(--r-champ);
                      border:1px solid var(--trait, #ccc); }
details.ajout-photo { margin-top:6px; font-size:14px; font-weight:400; }
details.ajout-photo summary { cursor:pointer; min-height:44px; display:flex; align-items:center; }
details.ajout-photo form { display:grid; gap:8px; justify-items:start; }
details.ajout-photo label { display:grid; gap:2px; font-weight:600; }

/* ─── La saisie, CONDENSÉE sous 600 px (08-10-2026, rencontre d'essai avec Gabriel) ───
   Une ligne faisait 529 px de haut sur un téléphone : après un texto de sept lignes, on
   se perdait à force de descendre. Mêmes champs, mêmes cibles d'au moins 44 px — moins
   d'air entre eux. Rien n'est caché : ce qui manquerait à l'écran manquerait à la saisie. */
@media (max-width:599px) {
  ol.lignes-saisie { gap:var(--e3); }
  fieldset.carte-ligne { padding:4px 10px 10px; }
  .grille-ligne { gap:6px 8px; }
  .carte-ligne .champ label { font-size:13px; margin-bottom:1px; }
  .carte-ligne input:not([type="checkbox"]), .section-ligne input { min-height:44px; padding-top:4px; padding-bottom:4px; }
  .carte-ligne .aide { font-size:13px; margin-top:0; }
  /* ⚠️ « Sans prix » : la case est en position ABSOLUE (`label.choix`), donc c'est
     le remplissage GAUCHE du libellé qui lui fait sa place. La première rédaction
     écrivait `padding:2px 8px` : la case se dessinait SUR le mot — « S▢▢ prix »
     (vu en ligne, 375 px, 08-10-2026). Et la règle de la case COCHÉE, plus
     spécifique, gardait les 13 px de la base : la ligne cochée faisait 55 px,
     11 de plus que sa voisine. Les deux états s'écrivent donc ICI et se comptent
     pareil — bordure + remplissage : 1 + 8 décochée, 2 + 7 cochée. La ligne de
     texte (≈ 25 px) tient alors sous le plancher : c'est `min-height` qui fait
     la hauteur, 44 px dans les deux états (mesuré dans un navigateur).
     La case (28 px) : à 8 px du bord et du haut ; le mot, 8 px après elle. */
  .carte-ligne label.sans-prix { min-height:44px; padding:8px 8px 8px 43px; }
  .carte-ligne label.sans-prix > input { left:7px; top:7px; }
  .carte-ligne label.sans-prix:has(input:checked) { padding:7px 7px 7px 42px; }
  .carte-ligne label.sans-prix:has(input:checked) > input { left:6px; top:6px; }
  .section-ligne { margin-bottom:2px; }
}

/* ─── L'appareil photo dans la page (tâches, 08-10-2026) ─── */
/* ⚠️ `hidden` ne cache RIEN dès qu'une règle écrit `display` : le cadre noir de la caméra
   fermée restait à l'écran (vu dans un navigateur, 08-10-2026). */
[hidden] { display:none !important; }
.camera { display:grid; gap:8px; justify-items:start; margin:8px 0; }
.camera video { width:100%; max-width:520px; border-radius:var(--r-champ); background:#000; }
button.ouvrir-camera { margin:4px 0 8px; }
.etat-camera:empty { display:none; }


/* ─── L'enregistrement automatique (08-10-2026) ───
   L'état vit DANS la barre du pouce, au-dessus des boutons : c'est le seul endroit de
   l'écran qui reste visible pendant qu'on tape. Blanc sur marine (14:1) ; l'alerte en
   cyan gras — jamais le rouge, illisible sur marine. Caché tant que le script ne l'a
   pas rempli : sans JavaScript, la barre est celle d'avant. */
.etat-garde { margin:0 0 var(--e2); color:var(--it-argent); font-size:14px; line-height:1.3; text-align:center; }
.etat-garde.alerte { color:var(--it-dragee); font-weight:700; } /* v4 : dragée sur marine, 12,19:1 */
.etat-garde.alerte::before { content:"⚠️ "; }
.barre-pouce:has(.bouton-pouce.secondaire):has(.etat-garde) { flex-wrap:wrap; }
.barre-pouce:has(.bouton-pouce.secondaire) .etat-garde { flex:0 0 100%; margin-bottom:0; }
.barre-pouce:has(.bouton-pouce.secondaire):has(.etat-garde) .bouton-pouce { width:auto; flex:1 1 0; }
/* Saisie : « Enregistrer » est écrit avant « Prévisualiser » (c'est lui que la touche Entrée
   déclenche) ; à l'écran l'ordre reste l'état, l'aperçu, puis Enregistrer sous le pouce droit. */
.barre-pouce .etat-garde { order:-2; }
.barre-pouce button.bouton-pouce.secondaire { order:-1; }
/* Les soumissions commencées, et le bouton « Repartir » d'une reprise. */
.commencees { list-style:none; margin:0; padding:0; }
.commencees li { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
       gap:var(--e2) var(--e4); padding:var(--e2) 0; }
.commencees .gestes { display:flex; gap:var(--e2); align-items:center; }
#saisie-reprise form { margin-top:var(--e3); }

/* ─── L'adresse proposée pendant la frappe (création d'une soumission, 08-10-2026) ───
   Chaque adresse est une cible d'au moins 48 px : elle se touche du pouce, sur un toit. */
ul.adresses-proposees { list-style:none; margin:var(--e1) 0 0; padding:0; background:var(--surface);
       border:1px solid var(--contour); border-radius:var(--r-controle); }
ul.adresses-proposees li { min-height:48px; padding:var(--e2) var(--e3); display:flex; align-items:center;
       cursor:pointer; border-top:1px solid var(--filet); overflow-wrap:anywhere; }
ul.adresses-proposees li:first-child { border-top:0; }
ul.adresses-proposees li:hover, ul.adresses-proposees li[aria-selected="true"] {
       background:var(--royal-teinte); box-shadow:inset 3px 0 0 var(--it-royal); }

/* Le bouton d'entrée du relevé (09-11-2026, Gabriel) : sur toute la largeur de la page. */
a.bouton.bouton-large { display:flex; width:100%; }

/* Fiche (11-11-2026, Gabriel, « La matrice ») : les liens du haut deviennent des boutons
   encadrés, pleine largeur, comme « Saisir le relevé » ; le lien Google Maps, encadré fuchsia. */
ul.actions-secondaires.onglets-fiche { display:flex; flex-direction:column; row-gap:var(--e2); }
/* v4 (19-11-2026) : ces boutons prennent la forme du SECONDAIRE de la maquette — blanc, contour gris,
   texte encre, 17 px à 600. Le seul bleu plein de la fiche reste l'entrée du take off. */
ul.onglets-fiche .lien-action { display:flex; width:100%; justify-content:center; box-sizing:border-box;
       background:var(--surface); border:1.5px solid var(--contour); border-radius:var(--r-bouton);
       color:var(--encre); text-decoration:none; font-size:17px; font-weight:600; padding:0 var(--e4); }
.lien-maps { border:2px solid var(--fuchsia-fonce); border-radius:var(--r-bouton);
       color:var(--fuchsia-fonce); padding:0 var(--e3); font-size:calc(1em + 2pt); margin-left:var(--e2); }

/* Une erreur de saisie mène à sa ligne (09-11-2026, Gabriel) : la ligne visée se voit, et ne se cache pas sous la barre du bas. */
.carte-ligne { scroll-margin-top:var(--e4); scroll-margin-bottom:96px; }
.carte-ligne:target { outline:3px solid var(--it-royal); outline-offset:2px; }
a.lien-ligne-en-faute { font-weight:600; text-decoration:underline; }

/* 09-11-2026 (Gabriel) : la note de la liste — le champ et son bouton sur une ligne. */
form.note-liste { display:flex; gap:var(--e2); align-items:center; margin:0; }
form.note-liste input[type=text] { flex:1 1 auto; min-width:8em; }

/* 09-11-2026 (Gabriel) : le dernier texto de take off enregistré se relit, il ne déborde pas. */
/* v4 (Gab, 17-11) : il VIENT D'UN TEXTO — le cadre indigo à 40 % et son trait, jamais l'ambre. */
pre.texte-garde { white-space:pre-wrap; overflow-wrap:anywhere; font-family:inherit; background:var(--texto); color:var(--encre);
  border:0; border-left:4px solid var(--texto-trait); border-radius:var(--r-champ); padding:var(--e3); max-height:20em; overflow:auto; }
details.relecture-texte textarea { width:100%; }

/* La source des adresses (licence CC-BY 4.0), en petit au bas de la création (11-11-2026). */
p.source-adresses { margin:var(--e4) 0 var(--e6); font-size:12px; color:var(--sourd); }
p.source-adresses .aide { font-size:inherit; }

/* ─── L'onglet « Jobs » de l'équipe et l'étiquette des photos (16-11-2026) ─── */
.photo-jointe .sujet-photo { font-size:13px; font-weight:400; }
.photo-jointe form.sujet-photo { display:flex; gap:4px; align-items:center; }
.photo-jointe form.sujet-photo select, .photo-jointe form.sujet-photo button { min-height:44px; }
fieldset.sujet-a-la-prise { display:flex; flex-wrap:wrap; gap:8px; border:0; padding:0; margin:0 0 8px; }
fieldset.sujet-a-la-prise legend { font-weight:600; margin-bottom:4px; }
.liste-jobs { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.liste-jobs a.job { display:grid; gap:2px; min-height:44px; padding:10px 12px; border:1px solid var(--trait, #ccc);
                    border-radius:var(--r-bloc); text-decoration:none; color:inherit; background:var(--surface); }
.liste-jobs .job-adresse { font-weight:600; }
.liste-jobs .job-date, p.job-date, p.job-ville { font-size:14px; }
.liens-carte { display:flex; flex-wrap:wrap; gap:8px; }
.photos-job { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:8px; }
.photos-job figure { margin:0; }
.photos-job img { width:100%; height:150px; object-fit:cover; border-radius:var(--r-champ); border:1px solid var(--trait, #ccc); display:block; }
.photos-job figcaption { font-size:13px; text-align:center; }
.superficies { list-style:none; padding:0; display:flex; gap:16px; flex-wrap:wrap; }
dl.logistique dt { font-weight:600; margin-top:6px; }
dl.logistique dd { margin:0; }
#texto-job .bouton { margin:0 4px 8px 0; }

/* ═══════════════════════════════════════════════════════════════════════
   VISUEL V4 (19-11-2026) — ce que la maquette approuvée par Gabriel ajoute.
   Bloc NEUF, à la suite. Les jetons sont en tête du fichier.
   ⚠️ Un AVERTISSEMENT est ambre ; ce qui VIENT D'UN TEXTO est indigo à 40 %. Les deux ne se
   remplacent jamais l'un l'autre (choix de Gab du 17-11 : le jaune du texto devient mauve,
   « Total partiel » reste ambre). */

/* ─── Les puces d'état : un mot + une couleur, rayon 14 ─── */
.puce { display:inline-flex; align-items:center; gap:5px; min-height:28px; padding:0 10px; border-radius:var(--r-bloc);
        font-size:14px; font-weight:700; line-height:1; white-space:nowrap; background:var(--creux); color:var(--puce-neutre); }
.puce.statut-envoyee { background:var(--royal-teinte); color:var(--it-royal); }
.puce.statut-signee { background:var(--ok-teinte); color:var(--ok-fonce); }
.puce.statut-refusee, .puce.statut-perdue { background:var(--bloque-teinte); color:var(--bloque); }
.puce.relire { background:var(--texto); color:var(--encre); }

/* ─── Ce qui vient d'un texto ─── */
.bandeau-texto { background:var(--texto); color:var(--encre); border-left:4px solid var(--texto-trait);
       border-radius:var(--r-bloc); padding:var(--e3) var(--e4); margin-bottom:var(--e5); }
.bandeau-texto > strong { display:block; margin-bottom:var(--e2); }
.bandeau-texto ul { margin:0; padding-left:1.2rem; }
/* Un écart dans une addition AVERTIT : il garde l'ambre, même dans le cadre du texto. */
.bandeau-texto .calculs-note { background:var(--avertit-teinte); color:var(--encre); border-left:4px solid var(--avertit);
       border-radius:var(--r-champ); padding:var(--e2) var(--e3); margin:var(--e2) 0; }
fieldset.carte-ligne.vient-du-texto { box-shadow:inset 4px 0 0 var(--texto-trait); }
fieldset.carte-ligne.vient-du-texto > legend .puce { margin-left:var(--e2); min-height:24px; font-size:13px; vertical-align:middle; }
details.relecture-texte textarea { background:var(--texto); color:var(--encre); border-color:var(--texto-trait); }
details.take-off-garde > summary, details.relecture-texte > summary { min-height:48px; display:flex; align-items:center;
       cursor:pointer; font-weight:600; }

/* ─── Le mouvement : on coupe les transitions et l'enfoncement, jamais ce qui dit l'état ─── */
@media (prefers-reduced-motion:reduce) {
  a.bouton, button, .barre-pouce .bouton-pouce { transition:none; }
  a.bouton:active, button:active, .barre-pouce .bouton-pouce:active { transform:none; }
}
@media (forced-colors:active) {
  .puce, .drapeau, .barre-pouce .bouton-pouce { border:1px solid ButtonText; }
}

/* ─── Un repli (`details`) sans classe : son titre est une cible de 44 px, au doigt ─── */
/* `:where` : le plus faible des sélecteurs — tout repli qui a sa propre règle (compte, ajout, bulle) la garde. */
:where(details:not(.bulle)) > summary { min-height:44px; padding:var(--e2) 0; cursor:pointer; }

/* ─── La liste des soumissions au téléphone : la carte COMPACTE de la maquette (v4) ───
   Le nom, puis l'adresse, puis le numéro ; le statut en puce, en haut à droite. Les MÊMES
   cellules, réordonnées par la feuille : le nom et l'adresse se lisent sans libellé, le reste garde
   le sien. Le lien étiré du numéro couvre toujours la carte entière (lot 3). */
@media (max-width:599px) {
  table.tableau-cliquable tbody tr:not(:has(.vide)) { display:grid; grid-template-columns:minmax(0, 1fr) auto;
    column-gap:var(--e2); row-gap:2px; align-items:start; }
  table.tableau-cliquable tbody tr:not(:has(.vide)) > td { grid-column:1 / -1; }
  table.tableau-cliquable.tableau-cartes tbody tr:not(.section):not(:has(.vide)) td:first-child {
    grid-row:3; font-size:14px; font-weight:600; color:var(--sourd); }
  table.tableau-cliquable tbody tr > td[data-libelle="Client"] { grid-column:1; grid-row:1; font-size:17px; font-weight:700;
    line-height:1.25; overflow-wrap:anywhere; }
  table.tableau-cliquable tbody tr > td[data-libelle="Adresse"] { grid-column:1; grid-row:2; font-size:15px; color:var(--sourd); overflow-wrap:anywhere; }
  table.tableau-cliquable tbody :is(td[data-libelle="Client"], td[data-libelle="Adresse"], td[data-libelle="Statut"])::before { content:none; }
  table.tableau-cliquable tbody tr > td[data-libelle="Statut"] { grid-column:2; grid-row:1 / span 2; padding:0;
    display:grid; justify-items:end; gap:var(--e1); }
  table.tableau-cliquable tbody td[data-libelle="Statut"] br { display:none; }
  table.tableau-cliquable tbody :is(td[data-libelle="Téléphone"], td[data-libelle="Type de toit"])::before {
    display:inline; content:attr(data-libelle) " : "; }
}

/* La liste au bureau : le numéro est une cible de 44 px (contre-examen Codex, 19-11). */
@media (min-width:600px) {
  table.tableau-cliquable tbody td:first-child a { display:inline-flex; align-items:center; min-height:44px; }
}

/* Le constat signé renvoyé au client (v4, 20-11) : le bloc est une section v4, le retour du dépôt
   un bandeau NEUTRE (réussite comme refus — l'ambre reste aux vrais avertissements), et l'empreinte
   se coupe au téléphone (64 caractères sans espace élargissaient la page à 671 px, mesuré à 375) ;
   le tracé de la signature (600 px, avec sa viewBox) se réduit à la largeur au lieu de l'élargir. */
#renvoi-client { margin-top:var(--e5); padding-top:var(--e4); border-top:1px solid var(--filet); }
#renvoi-client .bandeau { background:var(--royal-teinte); color:var(--encre); border-left:4px solid var(--it-royal);
  border-radius:var(--r-champ); padding:var(--e3) var(--e4); }
p.aide code { overflow-wrap:anywhere; }
.signature-constat svg { max-width:100%; height:auto; }

/* ─── L'inventaire des camions (23-11-2026) — une rangée par article, au doigt ───
   Gabriel (23-11, au téléphone) : l'article et sa quantité sur UNE rangée, avec − et +. Le nom à gauche,
   l'unité et « environ » dessous en petit ; − quantité + à droite, sur les deux lignes du nom. Cibles de
   44 px au moins. Dès 600 px : nom · − quantité + · unité et environ. */
.liste-camions { list-style:none; padding:0; margin:var(--e4) 0; }
.liste-camions li { padding:var(--e2) 0; border-bottom:1px solid var(--filet); }
form.inventaire fieldset.famille { margin:0 0 var(--e4); padding:0 var(--e3) var(--e1); background:var(--surface);
  border:1px solid var(--filet); border-radius:var(--r-bloc); }
form.inventaire fieldset.famille > legend { font-size:16px; font-weight:700; color:var(--it-marine); padding:0 var(--e2); }
form.inventaire fieldset.a-zero { border:2px solid var(--avertit); background:var(--avertit-teinte); }
.inventaire .article { display:grid; grid-template-columns:minmax(0, 1fr) auto; grid-template-areas:"nom q" "sous q";
  gap:0 var(--e2); align-items:center; padding:6px 0; border-top:1px solid var(--filet); }
.inventaire .article:first-of-type { border-top:none; }
.inventaire .article .nom { grid-area:nom; font-weight:600; font-size:16px; line-height:1.25; overflow-wrap:anywhere; }
.inventaire .article .quantite { grid-area:q; display:flex; align-items:center; gap:4px; }
.inventaire .article .quantite input { width:3.6rem; min-height:44px; padding:0 6px; font-size:18px; font-weight:700;
  text-align:center; font-variant-numeric:tabular-nums; }
.inventaire .article .pas { width:44px; height:44px; flex:none; border-radius:10px; border:1px solid var(--contour);
  background:var(--surface); color:var(--it-royal); font:inherit; font-size:24px; font-weight:700; line-height:1;
  display:inline-flex; align-items:center; justify-content:center; cursor:pointer; touch-action:manipulation; }
.inventaire .article .pas[hidden] { display:none; }
.inventaire .article .pas:active { background:var(--royal-teinte); }
.inventaire .article .sous { grid-area:sous; display:flex; align-items:center; gap:var(--e3); flex-wrap:wrap; }
.inventaire .article .unite { color:var(--sourd); font-size:14px; }
.inventaire .article .environ { display:flex; align-items:center; gap:6px; min-height:44px; margin-block:-6px;
  font-size:14px; color:var(--sourd); } /* 44 px au doigt, 32 px à l'œil : la marge négative mord sur l'espace de la rangée */
.inventaire .article .environ input { width:20px; height:20px; }
.inventaire .article .message-ligne { grid-column:1 / -1; margin:0; font-size:14px; color:var(--bloque); }
.inventaire .article.en-erreur .quantite input, .inventaire .article.en-conflit .quantite input { border:2px solid var(--bloque); }
.inventaire .article .lue { font-weight:700; }
.inventaire .article .famille-rappel { font-weight:400; color:var(--sourd); font-size:14px; }
@media (min-width:600px) {
  .inventaire .article { grid-template-columns:minmax(0, 1fr) auto minmax(9rem, auto); grid-template-areas:"nom q sous"; }
}

/* ═══ LE PARCOURS « NOUVELLE SOUMISSION » EN 3 ÉTAPES (23-11-2026, maquette approuvée par Gabriel) ═══
   Les étapes remplacent le menu du haut pendant le parcours (décision d'Alex). Étape 1 : le client, ce
   que la loi exige en vue, le reste replié. Étape 2 : une ligne compacte (description, puis quantité ·
   unité · tarif · montant), le reste derrière ⋯. Étape 3 : ce qui manque pour faire signer, en tête.
   Cibles d'au moins 44 px ; deux colonnes dès 900 px (la tablette). */
.etapes-parcours { display:flex; align-items:stretch; background:var(--surface); border-bottom:1px solid var(--filet); }
.etapes-parcours a.fermer { flex:none; display:flex; align-items:center; justify-content:center; min-width:52px; min-height:52px;
  color:var(--encre); text-decoration:none; font-size:20px; font-weight:700; border-right:1px solid var(--filet); }
ol.etapes { list-style:none; margin:0; padding:0; flex:1; display:grid; grid-template-columns:repeat(3, 1fr); }
ol.etapes li { min-height:52px; display:flex; align-items:center; justify-content:center; gap:6px;
  font-size:15px; font-weight:600; color:var(--sourd); border-bottom:3px solid transparent; }
ol.etapes li a { display:flex; align-items:center; gap:6px; min-height:52px; color:inherit; text-decoration:none; }
ol.etapes li .n { width:24px; height:24px; border-radius:50%; display:inline-flex; align-items:center;
  justify-content:center; font-size:13px; background:var(--creux); color:var(--encre); }
ol.etapes li.fait .n { background:var(--ok-fonce); color:#fff; }
ol.etapes li.ici { color:var(--it-royal); border-bottom-color:var(--it-royal); background:var(--royal-teinte); }
ol.etapes li.ici .n { background:var(--it-royal); color:#fff; }
/* Au téléphone, « 3 Signature » touchait le bord droit (108 px par étape à 375 px) : plus serré, et le × plus étroit. */
@media (max-width:420px) {
  .etapes-parcours a.fermer { min-width:44px; }
  ol.etapes li, ol.etapes li a { gap:4px; font-size:14px; }
  ol.etapes li .n { width:22px; height:22px; font-size:12px; }
}
.rappel { font-size:15px; color:var(--sourd); margin:-4px 0 var(--e3); }
.oblig { font-weight:600; font-size:13px; color:var(--bloque); background:var(--bloque-teinte);
  border-radius:999px; padding:1px 8px; margin-left:6px; vertical-align:2px; }
.rangee { display:grid; grid-template-columns:1fr 1fr; gap:var(--e3); }
.rangee.ville { grid-template-columns:1.6fr 1fr; }
.rangee > .champ { min-width:0; }

/* Étape 1 : nouveau ou existant — deux radios en segments ; la feuille montre le bloc qui va avec. */
.bascule { display:grid; grid-template-columns:1fr 1fr; background:var(--creux); border-radius:var(--r-bouton);
  padding:4px; gap:4px; margin:0 0 var(--e4); max-width:520px; }
.bascule label { min-height:44px; display:flex; align-items:center; justify-content:center; border-radius:10px;
  font-weight:600; color:var(--sourd); cursor:pointer; }
.bascule input { position:absolute; opacity:0; width:1px; height:1px; }
.bascule label:has(input:checked) { background:var(--surface); color:var(--encre); box-shadow:0 1px 3px rgba(0,0,0,.15); }
.bascule label:has(input:focus-visible) { outline:3px solid var(--it-royal); outline-offset:1px; }
form.parcours-client:has(input[name="client_mode"][value="existant"]:checked) .si-nouveau { display:none; }
form.parcours-client:has(input[name="client_mode"][value="nouveau"]:checked) .si-existant { display:none; }
fieldset.choix-origine { border:none; padding:0; margin:0 0 var(--e3); background:transparent; }
fieldset.choix-origine > legend { font-size:15px; font-weight:600; padding:0; margin-bottom:6px; }
.grille-choix { display:grid; grid-template-columns:1fr 1fr; gap:var(--e2); }
.grille-choix label { min-height:56px; display:flex; align-items:center; gap:8px; padding:var(--e2) var(--e3);
  background:var(--surface); border:1px solid var(--contour); border-radius:var(--r-bouton);
  font-size:15px; line-height:1.25; cursor:pointer; }
.grille-choix input { width:22px; height:22px; flex:none; accent-color:var(--it-royal); }
.grille-choix label:has(input:checked) { border:2px solid var(--it-royal); background:var(--royal-teinte); font-weight:600; }
details.replie { background:var(--surface); border:1px solid var(--filet); border-radius:var(--r-bloc); margin:var(--e3) 0; }
details.replie > summary { min-height:56px; display:flex; align-items:center; justify-content:space-between; gap:var(--e2);
  padding:var(--e2) var(--e4); cursor:pointer; list-style:none; font-weight:600; font-size:16px; }
details.replie > summary::-webkit-details-marker { display:none; }
details.replie > summary::after { content:"▾"; color:var(--sourd); }
details.replie[open] > summary::after { content:"▴"; }
details.replie > summary small { display:block; font-weight:400; font-size:14px; color:var(--sourd); }
details.replie > .dedans { padding:0 var(--e4) var(--e3); }

/* Étape 2 : les entrées du texto et de la feuille de take off. */
.entree-texto { display:flex; gap:var(--e2); margin:0 0 var(--e3); }
.entree-texto:not(:has(a)) { display:none; }
.entree-texto a { flex:1; min-height:52px; display:flex; align-items:center; justify-content:center; text-align:center;
  border-radius:var(--r-bouton); text-decoration:none; font-weight:700; font-size:16px; line-height:1.2; padding:0 var(--e2); }
.entree-texto a.texto { background:var(--surface); color:var(--texto-trait); border:2px solid var(--texto-trait); }
.entree-texto a.feuille { background:var(--surface); color:var(--encre); border:1px solid var(--contour); font-weight:600; }

/* Étape 2 : la ligne compacte. Téléphone : la description sur toute la largeur et ⋯ à droite ; dessous,
   quantité · unité · tarif · montant. Le `li` porte `.carte-ligne` (les règles de « sans prix » qu'elle
   avait la suivent) et `.compacte`, qui fait la grille. */
.entete-lignes { display:grid; grid-template-columns:minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.2fr) 44px;
  gap:0 6px; padding:0 var(--e2) 4px; font-size:13px; font-weight:700; color:var(--sourd); text-transform:uppercase; letter-spacing:.02em; }
.entete-lignes .d { grid-column:1 / -1; }
.entete-lignes .mont { grid-column:4 / 6; text-align:right; }
ol.lignes-saisie:has(li.compacte) { gap:var(--e2); }
li.carte-ligne.compacte { background:var(--surface); border:1px solid var(--filet); border-radius:var(--r-bloc); padding:var(--e2);
  display:grid; grid-template-columns:minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.2fr) 44px;
  gap:6px; align-items:center; min-width:0; }
li.carte-ligne.compacte.vient-du-texto { border:2px solid var(--texto); border-left:5px solid var(--texto-trait); }
li.compacte > .intertitre { grid-column:1 / -1; border-bottom:2px solid var(--it-marine); }
li.compacte > .intertitre input { border:none; background:transparent; min-height:44px; padding:0 4px; font-size:14px; font-weight:800;
  letter-spacing:.05em; color:var(--it-marine); text-transform:uppercase; }
li.compacte > .desc { grid-column:1 / 5; position:relative; }
/* ⋯ est placé d'office sur la rangée de la description : en placement automatique, la quantité prenait sa
   place à côté de la description (vu à 375 px, 23-11-2026 — seules les lignes à intertitre y échappaient). */
li.compacte > details.plus-ligne { grid-column:5; grid-row:1; align-self:start; }
li.compacte.avec-intertitre > details.plus-ligne { grid-row:2; }
li.compacte > .desc textarea { min-height:48px; padding:11px var(--e3); resize:none; field-sizing:content; line-height:1.3;
  font-size:17px; font-weight:600; overflow:hidden; }
li.compacte input:not([type="checkbox"]) { min-height:48px; font-size:16px; padding:0 6px; }
li.compacte > .q input, li.compacte > .t input { text-align:right; }
li.compacte > .q input.quantite { font-weight:700; border:2px solid var(--it-royal); }
li.compacte > output.montant { grid-column:4 / 6; text-align:right; font-weight:700; font-size:16px; white-space:nowrap;
  font-variant-numeric:tabular-nums; padding-right:2px; }
li.compacte > output.montant.vide { color:var(--sourd); font-weight:400; }
li.compacte > .supp, li.compacte > .puces { grid-column:1 / -1; }
li.compacte > .supp input { min-height:44px; font-size:15px; color:var(--sourd); }
li.compacte > .puces { display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
details.plus-ligne > summary { width:44px; height:44px; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--contour); border-radius:10px; background:var(--surface); font-size:22px; line-height:1;
  cursor:pointer; list-style:none; }
details.plus-ligne > summary::-webkit-details-marker { display:none; }
details.plus-ligne[open] { grid-column:1 / -1; }
details.plus-ligne[open] > summary { margin-left:auto; }
details.plus-ligne .menu-ligne { background:var(--fond); border-radius:var(--r-champ); padding:var(--e2); margin-top:6px;
  display:grid; grid-template-columns:1fr; gap:6px; }
details.plus-ligne .menu-ligne .champ { margin:0; max-width:none; }
details.plus-ligne .menu-ligne button.retirer { min-height:44px; border-radius:10px; border:1px solid var(--contour);
  background:var(--surface); font:inherit; font-size:15px; font-weight:600; color:var(--bloque); text-align:left; padding:0 10px; }
.ajouts { display:grid; grid-template-columns:1fr 1fr; gap:var(--e2); margin:var(--e3) 0; }
.ajouts button { min-height:52px; border-radius:var(--r-bouton); border:1px dashed var(--contour); background:transparent;
  font:inherit; font-weight:600; font-size:16px; color:var(--it-royal); cursor:pointer; }
ul.suggestions-catalogue { list-style:none; margin:4px 0 0; padding:0; background:var(--surface); border:1px solid var(--contour);
  border-radius:var(--r-champ); overflow:hidden; position:relative; z-index:3; }
ul.suggestions-catalogue button { display:block; width:100%; min-height:48px; text-align:left; background:transparent;
  border:none; border-top:1px solid var(--filet); font:inherit; font-size:15px; padding:var(--e2) var(--e3); color:var(--encre); cursor:pointer; }
ul.suggestions-catalogue li:first-child button { border-top:none; }
.cote h2 { font-size:18px; margin:var(--e4) 0 var(--e2); }

/* La barre du pouce, au parcours : les totaux (étape 2) ou ce qui manque (étape 3) au-dessus des boutons. */
.barre-pouce.barre-etape { display:flex; flex-wrap:wrap; gap:var(--e2); }
.barre-pouce.barre-etape > .totaux, .barre-pouce.barre-etape > .etat-etape, .barre-pouce.barre-etape > .etat-garde { flex:1 1 100%; }
.barre-pouce.barre-etape > button.bouton-pouce { flex:1 1 0; width:auto; }
.barre-pouce.barre-etape > button.bouton-pouce.secondaire { flex:0 1 40%; }
/* Les totaux d'abord : « Prévisualiser » est remonté (`order:-1`) pour toute la barre, et il prenait seul la
   première rangée au téléphone. */
.barre-pouce.barre-etape > .totaux, .barre-pouce.barre-etape > .etat-etape { order:-3; }
.barre-pouce .totaux { display:flex; justify-content:space-between; color:#fff; font-size:15px; font-variant-numeric:tabular-nums; }
.barre-pouce .totaux b { font-size:17px; }
.barre-pouce .totaux .sourd { color:var(--it-argent); }
.barre-pouce .etat-etape { color:var(--it-argent); font-size:14px; }

/* Étape 3 : ce qui manque pour faire signer, puis les champs. */
.pret { background:var(--surface); border-radius:var(--r-bloc); border:1px solid var(--filet); padding:var(--e3) var(--e4); margin:0 0 var(--e4); }
.pret h2 { margin:0 0 var(--e2); font-size:17px; }
.pret ul { list-style:none; margin:0; padding:0; }
.pret li { display:flex; gap:10px; align-items:flex-start; padding:6px 0; border-top:1px solid var(--filet); font-size:16px; }
.pret li:first-child { border-top:none; }
.pret .ok, .pret span.manque { flex:none; width:24px; height:24px; border-radius:50%; display:inline-flex; align-items:center;
  justify-content:center; font-size:14px; font-weight:800; margin-top:1px; }
.pret .ok { background:var(--ok-teinte); color:var(--ok-fonce); }
.pret span.manque { background:var(--bloque-teinte); color:var(--bloque); }
.pret li small { display:block; color:var(--sourd); font-size:14px; }
.champ.a-faire input { border:2px solid var(--bloque); }
.champ.a-faire .aide { color:var(--bloque); font-weight:600; }
label.interrupteur { display:flex; align-items:center; justify-content:space-between; gap:var(--e3); min-height:56px;
  background:var(--surface); border:1px solid var(--filet); border-radius:var(--r-bloc); padding:var(--e2) var(--e4); margin:var(--e3) 0; font-weight:600; }
label.interrupteur small { display:block; font-weight:400; font-size:14px; color:var(--sourd); }
label.interrupteur input { flex:none; accent-color:var(--it-royal); }
a.ligne-lien { display:flex; justify-content:space-between; align-items:center; min-height:56px; background:var(--surface);
  border:1px solid var(--filet); border-radius:var(--r-bloc); padding:var(--e2) var(--e4); color:var(--encre); text-decoration:none;
  font-weight:600; margin:var(--e3) 0; }
a.ligne-lien small { display:block; font-weight:400; font-size:14px; color:var(--sourd); }
a.ligne-lien::after { content:"›"; font-size:26px; color:var(--it-royal); }
form.parcours-etape-3 textarea, form.parcours-client textarea { min-height:72px; }

/* La tablette (Toughpad, ~1280 × 800) : deux colonnes ; la ligne tient sur une rangée. */
@media (min-width:900px) {
  .deux-col { display:grid; grid-template-columns:1fr 1fr; gap:var(--e6); align-items:start; }
  .deux-col.lignes-et-cote { grid-template-columns:minmax(0, 1fr) 320px; }
  .deux-col .champ { max-width:none; }
  .cote { position:sticky; top:var(--e4); }
  .entete-lignes { grid-template-columns:minmax(0, 3fr) .8fr .8fr .9fr 1fr 44px; }
  .entete-lignes .d { grid-column:auto; }
  .entete-lignes .mont { grid-column:5; }
  li.carte-ligne.compacte { grid-template-columns:minmax(0, 3fr) .8fr .8fr .9fr 1fr 44px; }
  li.compacte > .desc { grid-column:1; }
  li.compacte > output.montant { grid-column:5; }
  li.compacte > details.plus-ligne { grid-column:6; grid-row:1; }
  li.compacte.avec-intertitre > details.plus-ligne { grid-row:2; }
  li.compacte > details.plus-ligne[open] { grid-column:1 / -1; grid-row:auto; }
  .barre-pouce.barre-etape > .totaux { flex:1 1 auto; justify-content:flex-start; gap:var(--e5); align-self:center; }
  .barre-pouce.barre-etape > .etat-etape { flex:1 1 auto; align-self:center; }
  .barre-pouce.barre-etape > button.bouton-pouce { flex:0 1 260px; }
}
