/* AEDRA — feuille commune. Aucune police ni ressource extérieure. */

:root {
  --fond: #f5f4f0;
  --surface: #ffffff;
  --surface-2: #f0eee8;
  --encre: #1d232b;
  --encre-douce: #5b636e;
  --trait: #dedad1;
  --trait-fort: #c9c4b8;
  --accent: #a4502a;
  --accent-fort: #8a3f1e;
  --accent-pale: #f6e7de;
  --sur-accent: #ffffff;
  --ok: #2f7a4b;
  --ok-pale: #e3f1e8;
  --alerte: #9a6a00;
  --alerte-pale: #fbf0d6;
  --danger: #b3261e;
  --danger-pale: #fbe4e2;
  --barre: #1f262e;
  --barre-encre: #d8dde3;
  --barre-encre-douce: #8f99a4;
  --barre-actif: #2d3640;
  --ombre: 0 1px 2px rgba(20, 24, 30, 0.06), 0 4px 16px rgba(20, 24, 30, 0.06);
  --rayon: 10px;
  --police: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --largeur-barre: 248px;
  --largeur-barre-icones: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #14181d;
    --surface: #1c2128;
    --surface-2: #232a32;
    --encre: #e6e9ed;
    --encre-douce: #9aa4af;
    --trait: #2e3640;
    --trait-fort: #3c4550;
    --accent: #d9774a;
    --accent-fort: #e78b60;
    --accent-pale: #3a2a22;
    --sur-accent: #1a1410;
    --ok: #5fbf83;
    --ok-pale: #1e3326;
    --alerte: #e0b04a;
    --alerte-pale: #3a3120;
    --danger: #f07a70;
    --danger-pale: #3d2322;
    --barre: #101418;
    --barre-actif: #232b33;
    --ombre: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--fond);
  color: var(--encre);
  font-family: var(--police);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-fort); }

h1, h2, h3 { line-height: 1.25; margin: 0; }
h1 { font-size: 24px; font-weight: 650; letter-spacing: -0.01em; }
h2 { font-size: 17px; font-weight: 620; }
h3 { font-size: 15px; font-weight: 620; }

.cache { display: none !important; }

/* ---------- Mise en page avec barre ---------- */

.contenu {
  margin-left: var(--largeur-barre);
  padding: 32px 40px 64px;
  max-width: calc(1180px + var(--largeur-barre));
  min-height: 100vh;
  transition: margin-left 0.18s ease;
}
body.barre-icones .contenu { margin-left: var(--largeur-barre-icones); }
body.barre-cachee .contenu { margin-left: 0; padding-left: 72px; }
body.sans-barre .contenu { margin-left: 0; padding-left: 40px; }

.entete-page { margin-bottom: 24px; display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.entete-page .sous-titre { margin: 6px 0 0; color: var(--encre-douce); }

/* ---------- Barre de navigation ---------- */

.barre {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--largeur-barre);
  background: var(--barre);
  color: var(--barre-encre);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 40;
  transition: width 0.18s ease, transform 0.18s ease;
}
.barre-tete { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 14px 20px; gap: 8px; }
.marque { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: 0.14em; font-size: 15px; }
.marque svg { flex: none; }
.barre-societe { padding: 0 20px 14px; font-size: 13px; color: var(--barre-encre-douce); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre-section { padding: 16px 20px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--barre-encre-douce); }
.barre-liens { list-style: none; margin: 0; padding: 0 10px; }
.barre-lien {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 9px 10px; margin: 1px 0; border-radius: 8px; border: 0;
  background: none; color: var(--barre-encre); font: inherit; font-size: 14px;
  text-decoration: none; cursor: pointer; text-align: left; white-space: nowrap;
}
.barre-lien:hover { background: var(--barre-actif); color: #fff; }
.barre-lien[aria-current="page"] { background: var(--barre-actif); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.barre-lien svg { flex: none; opacity: 0.9; }
.barre-pied { margin-top: auto; padding: 12px 10px 16px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.barre-pied .barre-liens { padding: 0; }
.barre-personne { padding: 4px 10px 10px; font-size: 13px; color: var(--barre-encre-douce); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bouton-barre {
  background: none; border: 0; color: var(--barre-encre-douce); cursor: pointer;
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none;
}
.bouton-barre:hover { background: var(--barre-actif); color: #fff; }

body.barre-icones .barre { width: var(--largeur-barre-icones); }
body.barre-icones .barre .libelle,
body.barre-icones .barre .barre-section,
body.barre-icones .barre .barre-societe,
body.barre-icones .barre .barre-personne,
body.barre-icones .marque span { display: none; }
body.barre-icones .barre-tete { flex-direction: column; padding: 16px 0 10px; }
body.barre-icones .barre-lien { justify-content: center; padding: 10px 0; }
body.barre-cachee .barre { transform: translateX(-100%); }

.rouvrir-barre {
  position: fixed; top: 16px; left: 16px; z-index: 30;
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--trait);
  background: var(--surface); color: var(--encre); display: none; place-items: center; cursor: pointer; box-shadow: var(--ombre);
}
body.barre-cachee .rouvrir-barre { display: grid; }

.haut-mobile { display: none; }
.voile { display: none; }

@media (max-width: 760px) {
  .contenu, body.barre-icones .contenu, body.barre-cachee .contenu { margin-left: 0; padding: 76px 16px 48px; }
  .barre, body.barre-icones .barre, body.barre-cachee .barre { width: 280px; transform: translateX(-100%); }
  body.barre-icones .barre .libelle, body.barre-icones .barre .barre-section,
  body.barre-icones .barre .barre-societe, body.barre-icones .barre .barre-personne,
  body.barre-icones .marque span { display: revert; }
  body.barre-icones .barre-tete { flex-direction: row; padding: 18px 16px 14px 20px; }
  body.barre-icones .barre-lien { justify-content: flex-start; padding: 9px 10px; }
  body.tiroir-ouvert .barre { transform: none; }
  .bouton-etat-barre, .rouvrir-barre, body.barre-cachee .rouvrir-barre { display: none; }
  .haut-mobile {
    display: flex; position: fixed; inset: 0 0 auto 0; height: 60px; z-index: 35;
    align-items: center; gap: 12px; padding: 0 16px; background: var(--barre); color: #fff;
  }
  .haut-mobile .bouton-barre { color: #fff; width: 40px; height: 40px; }
  body.tiroir-ouvert .voile { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 38; }
  h1 { font-size: 21px; }
}

/* ---------- Composants ---------- */

.carte {
  background: var(--surface);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 20px 22px;
}
.carte + .carte { margin-top: 20px; }
.carte h2 { margin-bottom: 12px; }
.grille { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grille .carte + .carte { margin-top: 0; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 8px 16px; border-radius: 8px;
  border: 1px solid var(--trait-fort); background: var(--surface); color: var(--encre);
  font: inherit; font-size: 14px; font-weight: 560; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.bouton:hover { background: var(--surface-2); }
.bouton:disabled { opacity: 0.55; cursor: not-allowed; }
.bouton.principal { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
.bouton.principal:hover { background: var(--accent-fort); border-color: var(--accent-fort); }
.bouton.danger { color: var(--danger); border-color: var(--danger); background: transparent; }
.bouton.danger:hover { background: var(--danger-pale); }
.bouton.discret { border-color: transparent; background: transparent; color: var(--encre-douce); }
.bouton.discret:hover { background: var(--surface-2); color: var(--encre); }
.boutons { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.boutons.fin { justify-content: flex-end; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.champ { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.champ label, .etiquette { font-size: 13px; font-weight: 600; color: var(--encre-douce); }
.champ input, .champ select, .champ textarea, select.petit {
  font: inherit; font-size: 15px; color: var(--encre); background: var(--surface);
  border: 1px solid var(--trait-fort); border-radius: 8px; padding: 9px 12px; min-height: 40px; width: 100%;
}
select.petit { font-size: 14px; padding: 6px 10px; min-height: 34px; width: auto; }
.champ input:focus, .champ select:focus, .champ textarea:focus, select.petit:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-pale); }
.champ .aide { font-size: 13px; color: var(--encre-douce); }
.champs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 760px) { .champs-2 { grid-template-columns: 1fr; } }
.case { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: 14px; cursor: pointer; }
.case input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }

.tableau-cadre { overflow-x: auto; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--surface); box-shadow: var(--ombre); }
table.tableau { width: 100%; border-collapse: collapse; font-size: 14px; }
.tableau th { text-align: left; font-size: 12px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--encre-douce); background: var(--surface-2); padding: 10px 14px; border-bottom: 1px solid var(--trait); white-space: nowrap; }
.tableau td { padding: 12px 14px; border-bottom: 1px solid var(--trait); vertical-align: top; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau tr.cliquable { cursor: pointer; }
.tableau tr.cliquable:hover td { background: var(--surface-2); }
.tableau .secondaire { color: var(--encre-douce); font-size: 13px; }
.tableau tr.inactif td { color: var(--encre-douce); }

.pastille { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--encre-douce); white-space: nowrap; margin: 1px 4px 1px 0; }
.pastille.accent { background: var(--accent-pale); color: var(--accent-fort); }
.pastille.ok { background: var(--ok-pale); color: var(--ok); }
.pastille.alerte { background: var(--alerte-pale); color: var(--alerte); }
.pastille.danger { background: var(--danger-pale); color: var(--danger); }

.message { border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; border: 1px solid transparent; }
.message.erreur { background: var(--danger-pale); color: var(--danger); border-color: var(--danger); }
.message.info { background: var(--alerte-pale); color: var(--alerte); border-color: var(--alerte); }
.message.succes { background: var(--ok-pale); color: var(--ok); border-color: var(--ok); }

.secret {
  font-family: var(--mono); font-size: 20px; letter-spacing: 0.06em; padding: 12px 16px;
  background: var(--surface-2); border: 1px dashed var(--trait-fort); border-radius: 8px; user-select: all; word-break: break-all;
}

.grille-droits { width: 100%; border-collapse: collapse; font-size: 14px; }
.grille-droits td { padding: 7px 0; border-bottom: 1px solid var(--trait); }
.grille-droits tr:last-child td { border-bottom: 0; }
.grille-droits td:last-child { text-align: right; }
.niveau-0 { color: var(--encre-douce); }
.niveau-1 { color: var(--alerte); font-weight: 600; }
.niveau-2 { color: var(--ok); font-weight: 600; }

dialog.panneau {
  border: 1px solid var(--trait); border-radius: 14px; padding: 0; width: min(640px, calc(100vw - 24px));
  max-height: calc(100vh - 32px); background: var(--surface); color: var(--encre); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
dialog.panneau::backdrop { background: rgba(15, 18, 22, 0.5); }
.panneau-tete { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--trait); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.panneau-corps { padding: 20px 22px; }
.panneau-pied { padding: 14px 22px 18px; border-top: 1px solid var(--trait); position: sticky; bottom: 0; background: var(--surface); }
.bloc-formulaire + .bloc-formulaire { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--trait); }
.bloc-formulaire h3 { margin-bottom: 10px; }

.espace-haut { margin-top: 20px; }
.secondaire { color: var(--encre-douce); font-size: 13px; }
.vide { text-align: center; color: var(--encre-douce); padding: 40px 16px; }
.chiffre { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.carte-lien { text-decoration: none; color: inherit; display: block; }
.carte-lien:hover .carte { border-color: var(--accent); }

/* ---------- Page de connexion ---------- */

body.page-connexion { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; }
.connexion { width: min(400px, 100%); }
.connexion .marque-grande { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 22px; font-weight: 750; letter-spacing: 0.2em; font-size: 22px; color: var(--encre); }
.connexion .carte { padding: 28px; }
.connexion .bouton { width: 100%; margin-top: 6px; }
.connexion .pied { text-align: center; margin-top: 18px; font-size: 13px; color: var(--encre-douce); }

/* ---------- Étape 2 : clients, opérations, signature ---------- */

.petit-champ {
  font: inherit; font-size: 14px; color: var(--encre); background: var(--surface);
  border: 1px solid var(--trait-fort); border-radius: 8px; padding: 7px 12px; min-height: 38px; width: 240px; max-width: 100%;
}
.petit-champ:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-pale); }
.champ textarea { resize: vertical; min-height: 80px; }
.champ input:disabled, .champ select:disabled, .champ textarea:disabled, .tableau input:disabled, .tableau select:disabled {
  background: var(--surface-2); color: var(--encre-douce);
}

.ligne-contact { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--trait); }
.ligne-contact:last-child { border-bottom: 0; }
details.depliant { margin-top: 12px; border: 1px dashed var(--trait-fort); border-radius: 8px; padding: 10px 14px; }
details.depliant summary { cursor: pointer; font-weight: 600; color: var(--accent); }
details.depliant[open] summary { margin-bottom: 12px; }

.tableau td.numero, .tableau .numero { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.tableau td.montant, .tableau .montant { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tableau tfoot td { font-weight: 650; background: var(--surface-2); border-top: 1px solid var(--trait-fort); }
.tableau td.ecart { color: var(--danger); }
.tableau input[type="text"] {
  font: inherit; font-size: 14px; color: var(--encre); background: var(--surface);
  border: 1px solid var(--trait-fort); border-radius: 6px; padding: 6px 8px; min-height: 34px; width: 100%; min-width: 140px;
}
.tableau input[type="text"]:disabled { background: var(--surface-2); color: var(--encre-douce); }
.tableau input.court { min-width: 64px; width: 72px; text-align: right; }
.tableau input.moyen { min-width: 110px; width: 130px; text-align: right; }
.tableau tr.ajout td { background: var(--surface-2); }
.carte h3 { margin: 14px 0 8px; }

.jauge { display: flex; gap: 3px; margin-top: 5px; }
.jauge span { width: 12px; height: 5px; border-radius: 3px; background: var(--trait); }
.jauge span.fait { background: var(--accent); }

ol.deroule { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; }
ol.deroule li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; color: var(--encre-douce); position: relative; }
ol.deroule li::before { content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 2px; background: var(--trait); z-index: 0; }
ol.deroule li:first-child::before { display: none; }
ol.deroule li.fait::before, ol.deroule li.courante::before { background: var(--accent); }
ol.deroule .puce { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--surface); border: 2px solid var(--trait-fort); color: var(--encre-douce); }
ol.deroule li.fait .puce { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
ol.deroule li.courante .puce { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-pale); }
ol.deroule li.courante .nom { color: var(--encre); font-weight: 650; }
@media (max-width: 900px) {
  ol.deroule { grid-template-columns: 1fr; gap: 0; }
  ol.deroule li { flex-direction: row; text-align: left; gap: 12px; padding: 4px 0; }
  ol.deroule li::before { display: none; }
}

.verrou { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-radius: 10px; padding: 14px 16px; border: 1px solid var(--trait); }
.verrou.ouvert { background: var(--ok-pale); border-color: var(--ok); }
.verrou.ferme { background: var(--surface-2); }
.verrou .etiquette { margin-bottom: 4px; }

.feuilles { display: flex; flex-direction: column; gap: 14px; align-items: center; background: var(--surface-2); border-radius: 10px; padding: 14px; max-height: 70vh; overflow-y: auto; }
.feuille { width: 100%; max-width: 820px; height: auto; aspect-ratio: auto 210 / 297; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); border-radius: 2px; }
.empreinte { margin: 12px 0 0; font-size: 13px; color: var(--encre-douce); }
.empreinte code { font-family: var(--mono); font-size: 12px; word-break: break-all; }
.toile-signature {
  display: block; width: 100%; height: 220px; margin: 8px 0 12px;
  background: #fff; border: 2px dashed var(--trait-fort); border-radius: 10px; touch-action: none; cursor: crosshair;
}
.boutons.entre { justify-content: space-between; }
.succes-signature h2 { color: var(--ok); }

/* ---------- Module 3 : consultation ---------- */
input.court { width: 72px; text-align: right; font: inherit; font-size: 14px; padding: 6px 8px; min-height: 34px; border: 1px solid var(--trait-fort); border-radius: 6px; background: var(--surface); color: var(--encre); }
input.court:disabled { background: var(--surface-2); color: var(--encre-douce); }
.bloc-lot { border-top: 1px solid var(--trait); margin-top: 22px; padding-top: 18px; }
.bloc-lot .tableau-cadre + .boutons, .bloc-lot .tableau-cadre + p { margin-top: 10px; }
.bloc-lot .etiquette { margin: 10px 0 6px; }
.choix-lot { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--trait); border-radius: 10px; background: var(--surface-2); }
.choix-lot .champ input, .choix-lot .champ select, .choix-lot .champ textarea { background: var(--surface); }
.boutons.serres { gap: 4px; margin-top: 6px; }
.boutons.serres .bouton { min-height: 30px; padding: 4px 8px; font-size: 13px; }

/* ---------- Module 4 : marchés et dossier administratif ---------- */
.sous-traitant { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--trait); border-radius: 10px; }
.sous-traitant p { margin: 6px 0; }
.tableau tr.alerte-ligne td { background: var(--danger-pale); }
.tableau td.negatif { color: var(--danger); font-weight: 650; }
.bloc-lot .grille-droits td:last-child { white-space: nowrap; }

/* ---------- Module 5 : le chantier ---------- */
.formulaire-ligne { display: grid; gap: 8px; margin-top: 10px; padding: 12px 14px; border: 1px dashed var(--trait-fort); border-radius: 10px; }
.formulaire-ligne textarea { width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--trait-fort); border-radius: 6px; background: var(--surface); color: var(--encre); }
.formulaire-ligne > .bouton { justify-self: start; }
.situation { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--trait); border-radius: 10px; }
.situation p { margin: 6px 0; }
.liste-simple { margin: 6px 0; padding-left: 18px; }
.liste-simple li { margin: 3px 0; }
.liste-simple li.inactif { color: var(--encre-douce); text-decoration: line-through; }
.message.alerte { background: var(--alerte-pale); color: var(--alerte); border: 1px solid var(--alerte); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.petit-champ.large { min-width: 16rem; flex: 1 1 16rem; }
dialog.panneau.large { width: min(860px, calc(100vw - 32px)); }
.budget .tableau th { white-space: normal; }
.budget .tableau td.montant, .budget .tableau th { padding-left: 8px; padding-right: 8px; }

/* ---------- Lecture des devis : relecture et comparatif ---------- */

.relecture { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 20px; align-items: start; }
.relecture .feuilles { max-height: 80vh; position: sticky; top: 16px; }
@media (max-width: 1100px) { .relecture { grid-template-columns: minmax(0, 1fr); } .relecture .feuilles { position: static; max-height: 60vh; } }
.legende { display: block; font-size: 11px; font-weight: 600; color: var(--encre-douce); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 3px; }
.lignes-devis { border-top: 1px solid var(--trait); }
.lignes-devis .chapitre { font-weight: 650; color: var(--accent-fort); background: var(--surface-2); padding: 8px 10px; margin-top: 10px; border-radius: 6px; }
.lignes-devis .ligne {
  display: grid; gap: 8px 10px; align-items: end; padding: 10px 6px; border-bottom: 1px solid var(--trait);
  grid-template-columns: 64px 72px minmax(0, 1fr) minmax(0, 1fr) auto;
  grid-template-areas: "ref des des des ctl" "uni qte pu tot ret";
}
.lignes-devis .ligne.faux { background: var(--danger-pale); }
.lignes-devis .ligne.incomplet { background: var(--alerte-pale); }
.lignes-devis .zone-ref { grid-area: ref; } .lignes-devis .zone-des { grid-area: des; } .lignes-devis .zone-ctl { grid-area: ctl; align-self: center; text-align: right; }
.lignes-devis .zone-uni { grid-area: uni; } .lignes-devis .zone-qte { grid-area: qte; } .lignes-devis .zone-pu { grid-area: pu; } .lignes-devis .zone-tot { grid-area: tot; } .lignes-devis .zone-ret { grid-area: ret; }
.lignes-devis input {
  width: 100%; min-width: 0; font: inherit; font-size: 14px; padding: 6px 8px; min-height: 34px; border: 1px solid var(--trait-fort); border-radius: 6px;
  background: var(--surface); color: var(--encre);
}
.lignes-devis .zone-qte input, .lignes-devis .zone-pu input, .lignes-devis .zone-tot input, .lignes-devis .zone-ref input { text-align: right; }
.lignes-devis .zone-uni input { text-align: center; }
.lignes-devis input:disabled { background: var(--surface-2); color: var(--encre-douce); }
@media (max-width: 560px) {
  .lignes-devis .ligne { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "ref des des des" "ctl ctl ctl ctl" "uni qte pu pu" "tot tot tot ret"; }
  .lignes-devis .zone-ctl { text-align: left; }
}
.totaux-devis { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.totaux-devis input.montant-devis { width: 150px; text-align: right; }
.alertes { margin: 8px 0 0; padding-left: 20px; color: var(--alerte); }
.comparatif td.absent { color: var(--alerte); text-align: center; }
.comparatif td.moins-cher { background: var(--ok-pale); }
.comparatif .detail { display: block; font-size: 12px; font-weight: 400; color: var(--encre-douce); text-transform: none; letter-spacing: 0; }
.comparatif th.entreprise { min-width: 150px; text-align: right; }
.totaux-devis input:disabled { background: var(--surface-2); color: var(--encre-douce); }
.tableau td.chapitre { font-weight: 650; color: var(--accent-fort); background: var(--surface-2); }
