/* Gestion LMD — feuille de style unique. Dense, lisible au comptoir. */
:root {
  --fond: #f5f3ef; --surface: #ffffff; --encre: #14161a; --attenue: #5c636e;
  --bordure: #ddd9d1; --bordure-claire: #f0ede7; --accent: #b4442a; --accent-sombre: #8e3421;
  --vert: #175840; --vert-fond: #e6f1ec; --bleu: #24394a; --bleu-fond: #e9eef1;
  --ambre-fond: #fdf4e3; --ambre: #7a5a12;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--encre);
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", system-ui, sans-serif; font-size: 14px; }
a { color: var(--accent); } a:hover { color: var(--accent-sombre); }
h1 { font-size: 24px; margin: 0; letter-spacing: -.3px; }
h2 { font-size: 11px; font-weight: 600; letter-spacing: .7px; text-transform: uppercase; color: var(--attenue); margin: 0 0 10px; }
.mono, td.num, input.num { font-family: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; }

/* Barre de navigation */
/* La barre de navigation s'est remplie : douze rubriques depuis que la
   réception existe (lot 6). Elle passe donc à la ligne plutôt que de
   pousser le nom de l'utilisateur et le bouton de déconnexion hors du
   bandeau — c'est ce qui arrivait, et ça ne se voyait qu'à la capture.
   L'écart est resserré pour que le cas ordinaire tienne quand même sur
   une seule ligne. */
.nav { background: var(--encre); color: #f5f3ef; min-height: 54px; display: flex; align-items: center;
  flex-wrap: wrap; gap: 4px 8px; padding: 6px 16px; position: sticky; top: 0; z-index: 30; }
.nav .marque { font-weight: 700; font-size: 17px; letter-spacing: -.2px; }
.nav .marque span { color: var(--accent); }
.nav a, .nav .inactif { padding: 7px 9px; border-radius: 6px; text-decoration: none; font-weight: 500;
  white-space: nowrap; }
.nav a { color: #b9b4aa; } .nav a.actif { background: #2a2d33; color: #fff; font-weight: 600; }
.nav .inactif { color: #4e4a44; display: inline-flex; align-items: center; gap: 6px; cursor: not-allowed; }
.nav .grandir { flex-grow: 1; } .nav .qui { color: #b9b4aa; font-size: 13px; }
.jalon { font-size: 10px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase;
  padding: 1px 5px; border-radius: 3px; border: 1px solid currentColor; }

.page { max-width: 1320px; margin: 0 auto; padding: 18px 20px 60px; }
.entete { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.entete .grandir { flex-grow: 1; }
.sous-titre { color: var(--attenue); font-size: 13px; margin-top: 4px; }

/* Blocs */
.carte { background: var(--surface); border: 1px solid var(--bordure); border-radius: 10px; padding: 14px 16px; }
.carte + .carte { margin-top: 14px; }
.grille2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .grille2 { grid-template-columns: minmax(0, 1fr); } }

/* Formulaires */
label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase;
  color: var(--attenue); margin-bottom: 4px; }
/* `tel` et `datetime-local` manquaient a la liste : un champ de ce type
   n'heritait ni de la hauteur, ni de la bordure, ni de la largeur, et se
   posait de travers au milieu d'une rangee. Personne ne s'en etait
   apercu parce qu'aucun ecran n'en portait avant la reception. */
input[type=text], input[type=password], input[type=email], input[type=search], input[type=number],
input[type=tel], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; height: 38px; padding: 0 11px; border: 1px solid #c9c4ba; border-radius: 7px;
  background: #fff; font-size: 14px; font-family: inherit; color: inherit; }
textarea { height: auto; padding: 9px 11px; min-height: 64px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
input.num { text-align: right; }
.champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.champs .large { grid-column: span 2; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px;
  border-radius: 8px; border: 1px solid var(--bordure); background: #fff; color: var(--encre);
  font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; font-family: inherit; }
.btn:hover { background: #faf9f6; color: var(--encre); }
.btn.principal { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.principal:hover { background: var(--accent-sombre); border-color: var(--accent-sombre); color: #fff; }
.btn.sombre { background: var(--encre); border-color: var(--encre); color: #fff; font-weight: 600; }
.btn.sombre:hover { background: #2a2d33; color: #fff; }
.btn.petit { height: 30px; padding: 0 10px; font-size: 13px; }
/* Un bouton desactive redevient neutre, texte compris. La regle ne
   remettait que le fond a blanc : un « .btn principal » desactive gardait
   donc sa couleur de texte blanche, et devenait un rectangle vide. Ca ne
   se voyait nulle part tant qu'aucun bouton principal n'etait desactive —
   le premier est « Transformer en devis », sur la reception. */
.btn[disabled], .btn.indispo { opacity: .55; cursor: not-allowed; background: #fff;
  color: var(--encre); border-color: #c9c4ba; font-weight: 500; }
.btn.danger { border-color: #e4cdc6; color: var(--accent-sombre); }

/* Tableaux */
table { width: 100%; border-collapse: collapse; }
thead th { position: sticky; top: 54px; z-index: 10; background: #faf9f6; border-bottom: 1px solid #e8e4dc;
  font-size: 10px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--attenue);
  text-align: left; padding: 9px 10px; }
tbody td { padding: 8px 10px; border-bottom: 1px solid var(--bordure-claire); vertical-align: top; }
tbody tr:hover { background: #fcfbf9; }
td.num, th.num { text-align: right; }

/* overflow: CLIP et non HIDDEN. « hidden » fait de ce bloc un conteneur
   de défilement : l'en-tête collant du tableau se cale alors à 54 px du
   haut DU BLOC au lieu du haut de la fenêtre, et vient se poser sur la
   première ligne de données — d'où les intitulés « NomTypeTéléphone… »
   empilés sur le premier client. « clip » rogne pareil, respecte les
   coins arrondis, mais ne crée pas de conteneur de défilement : le
   collant retrouve la fenêtre comme référence. */
.tableau { background: var(--surface); border: 1px solid var(--bordure); border-radius: 10px; overflow: clip; }

/* Étiquettes */
.etiq { display: inline-block; white-space: nowrap; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.etiq.gris { background: var(--bordure-claire); color: #57504a; }
.etiq.rouge { background: #fbede9; color: var(--accent-sombre); }
.etiq.bleu { background: var(--bleu-fond); color: var(--bleu); }
.etiq.vert { background: var(--vert-fond); color: var(--vert); }
.etiq.ambre { background: var(--ambre-fond); color: var(--ambre); }

/* Messages */
.message { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; border: 1px solid; }
.message.succes { background: var(--vert-fond); border-color: #bfdccf; color: var(--vert); }
.message.erreur { background: #fbede9; border-color: #efcabf; color: var(--accent-sombre); }
.message.avertissement { background: var(--ambre-fond); border-color: #e8d6a8; color: var(--ambre); }
.message.info { background: var(--bleu-fond); border-color: #c8d7e0; color: var(--bleu); }

/* Bandeau d'environnement */
.bandeau-test { background: var(--ambre-fond); color: var(--ambre); border-bottom: 1px solid #e8d6a8;
  padding: 6px 20px; font-size: 12px; font-weight: 600; text-align: center; }

/* Onglets */
.onglets { display: flex; border-bottom: 1px solid #e8e4dc; background: #faf9f6; margin: -14px -16px 12px;
  border-radius: 10px 10px 0 0; overflow-x: auto; }
.onglets a { padding: 11px 15px; text-decoration: none; font-size: 13px; font-weight: 500;
  color: var(--attenue); border-bottom: 2px solid transparent; white-space: nowrap; }
.onglets a.actif { background: #fff; color: var(--encre); font-weight: 600; border-bottom-color: var(--accent); }

/* Barre d'actions collante du devis */
.actions-collantes { position: sticky; top: 54px; z-index: 20; background: var(--fond);
  padding: 10px 0; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  border-bottom: 1px solid var(--bordure); }
.devis-table thead th { top: 108px; }

/* Totaux */
.totaux { background: var(--encre); color: #f5f3ef; border-radius: 10px; padding: 14px 18px; }
.totaux .ligne { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 0; }
.totaux .ligne span:first-child { color: #b9b4aa; font-size: 13px; }
.totaux .barre { height: 1px; background: #3a3d44; margin: 9px 0; }
.totaux .ttc { font-size: 28px; font-weight: 600; letter-spacing: -.5px; color: #fff; }
.pave { background: var(--bleu-fond); color: var(--bleu); border-radius: 8px; padding: 9px 12px; flex-grow: 1; }
.pave.mo { background: var(--vert-fond); color: var(--vert); }
.pave .valeur { font-size: 18px; font-weight: 600; margin-top: 2px; }

.vide { color: var(--attenue); font-style: italic; padding: 14px; text-align: center; }
.aide { color: var(--attenue); font-size: 12px; margin-top: 4px; }
.rangee { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }

/* =====================================================================
   Listes : colonnes, recherche, pagination
   ===================================================================== */

/* Largeurs stables : sans table-layout fixe, une adresse longue élargit
   sa colonne et décale toutes les autres d'une ligne à l'autre. */
.tableau table { table-layout: fixed; }
.tableau td, .tableau th { overflow-wrap: anywhere; }
.tableau tbody td { vertical-align: top; }

/* Repli en fenêtre étroite : plutôt qu'un défilement horizontal — qui
   casserait de nouveau l'en-tête collant — les colonnes secondaires
   disparaissent et leur contenu remonte sous le nom. */
.repli { display: none; font-size: 12px; color: var(--attenue); margin-top: 3px; }
@media (max-width: 1080px) {
  .col-adresse, .col-type { display: none; }
  .repli { display: block; }
}
@media (max-width: 760px) {
  .col-second { display: none; }
}

/* Champ de recherche et sa croix d'effacement. La croix est un vrai
   lien vers la liste sans critère : elle fonctionne sans JavaScript,
   et le petit script ne fait que la masquer quand le champ est vide. */
.champ-recherche { position: relative; }
.champ-recherche input { padding-right: 38px; }
.champ-recherche input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.croix { position: absolute; right: 1px; bottom: 1px; width: 34px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--attenue); font-size: 19px; line-height: 1;
  text-decoration: none; cursor: pointer; border-radius: 0 7px 7px 0; }
.croix:hover { background: #f1eee8; color: var(--encre); }
/* [hidden] vient de la feuille du navigateur, avec display:none — mais
   .croix pose display:inline-flex, plus spécifique, et la croix restait
   visible sur un champ vide. On le dit explicitement. */
.croix[hidden] { display: none; }

.pagination { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pagination .compte { color: var(--attenue); font-size: 13px; flex-grow: 1; }
.pagination .btn.indispo { pointer-events: none; }

/* =====================================================================
   Fiches en lecture
   ===================================================================== */
.donnees { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 3px 14px; align-items: baseline; }
.donnees dt { font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase;
  color: var(--attenue); padding-top: 4px; }
.donnees dd { margin: 0; padding-top: 3px; }
.donnees dd.absent { color: #9a958c; font-style: italic; }

.bloc-vehicule { border: 1px solid var(--bordure); border-radius: 9px; margin-bottom: 10px; overflow: hidden; }
.bloc-vehicule .tete { background: #faf9f6; border-bottom: 1px solid #e8e4dc; padding: 10px 12px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bloc-vehicule .corps { padding: 10px 12px; display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 13px; color: var(--attenue); }
.bloc-vehicule .immat { font-size: 15px; font-weight: 600; letter-spacing: .5px; }

/* Choix de version quand un modèle existe en plusieurs cylindrées. */
.choix-version { margin-top: 8px; padding: 9px 11px; border-radius: 8px;
  background: var(--ambre-fond); border: 1px solid #e8d6a8; color: var(--ambre); font-size: 13px; }
.choix-version select { margin-top: 6px; max-width: 320px; background: #fff; }
.propositions { margin-top: 4px; font-size: 12px; color: var(--attenue); }
.propositions b { color: var(--encre); font-weight: 600; }

/* =====================================================================
   Fenêtres superposées : aperçu du PDF et envoi rapide depuis la liste
   =====================================================================
   Un <dialog> natif : la touche Échap le ferme, le fond est inerte, et
   la page derrière garde sa position de défilement — c'est ce qui permet
   de revenir exactement là où on en était dans la liste. */
dialog.fenetre { border: 1px solid var(--bordure); border-radius: 12px; padding: 0; width: min(560px, 94vw);
  box-shadow: 0 22px 60px rgba(31, 27, 20, .28); background: var(--surface); color: var(--encre); }
dialog.fenetre::backdrop { background: rgba(31, 27, 20, .45); }
dialog.fenetre-large { width: min(1000px, 96vw); height: min(92vh, 1200px); display: none; }
dialog.fenetre-large[open] { display: flex; flex-direction: column; }
dialog.fenetre .fenetre-barre { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px; border-bottom: 1px solid var(--bordure); background: #faf9f6;
  border-radius: 12px 12px 0 0; }
dialog.fenetre .fenetre-corps { padding: 12px; }
dialog.fenetre iframe { flex: 1 1 auto; width: 100%; border: 0; background: #f1efe9; }
dialog.fenetre .aide { margin-top: 8px; font-size: 12.5px; color: var(--attenue); }

/* Les trois actions d'une ligne de liste. */
td.actions-ligne { white-space: nowrap; }
td.actions-ligne .btn { margin-right: 3px; padding: 3px 8px; font-size: 12px; }
@media (max-width: 1080px) { .col-vehicule { display: none; } }

/* Une date et un montant ne se coupent pas en deux lignes. */
td.insecable { white-space: nowrap; }

/* ---------------------------------------------------------------------
   Suggestions d'adresse (référentiel local)
   Une liste posée sous le champ, qui ne déplace rien autour d'elle.
   --------------------------------------------------------------------- */
[data-adresse-bloc] { position: relative; }

.suggestions {
  position: absolute;
  z-index: 40;
  left: 0; right: 0;
  margin-top: 2px;
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: 9px;
  box-shadow: 0 10px 26px rgba(0,0,0,.14);
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
}

.suggestions .suggestion {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 11px;
  border: 0;
  border-bottom: 1px solid #f0ede8;
  background: #fff;
  cursor: pointer;
  font: inherit;
}
.suggestions .suggestion:last-child { border-bottom: 0; }
.suggestions .suggestion:hover,
.suggestions .suggestion.actif { background: #f6f3ee; }
.suggestions .libelle { display: block; font-size: 14px; }
.suggestions .detail { display: block; font-size: 11px; color: var(--attenue); }

/* ---------------------------------------------------------------------
   La bascule qui montre ou cache le prix d'achat (§46)

   La pastille dit l'état : rouge = masqué, vert = affiché. Elle est
   doublée par l'intitulé du bouton, pour que l'information ne repose
   pas sur la seule couleur — huit pour cent des hommes distinguent mal
   le rouge du vert, et le comptoir est tenu par des hommes.
   --------------------------------------------------------------------- */
.bascule-achat { display: inline-flex; align-items: center; gap: 7px; }
.bascule-achat .pastille {
  width: 10px; height: 10px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18);
}
.bascule-achat.est-rouge .pastille { background: #c0392b; }
.bascule-achat.est-vert  .pastille { background: #1e8e5a; }
.bascule-achat.est-vert  { border-color: #bfdccf; background: var(--vert-fond); color: var(--vert); }

/* Les colonnes de marge : discrètes, elles ne doivent pas prendre le pas
   sur le prix de vente, qui est ce que le client paie. */
.col-achat { background: #fbfaf7; }
.col-achat .valeur { font-variant-numeric: tabular-nums; }
.marge-muette { color: var(--attenue); font-style: italic; }

/* ---------------------------------------------------------------------
   Saisie d'un prix : un champ, et son unité juste à côté
   ---------------------------------------------------------------------
   L'unité fait partie du champ, visuellement : un sélecteur posé ailleurs
   dans la ligne laisserait croire qu'il commande autre chose. Les deux
   partagent donc une seule bordure. */
.prix-saisie { display: flex; align-items: stretch; border: 1px solid var(--bordure); border-radius: 4px; overflow: hidden; background: #fff; }
.prix-saisie:focus-within { outline: 2px solid var(--accent); outline-offset: -1px; }
.prix-saisie input { border: 0; border-radius: 0; height: 30px; width: auto; min-width: 0;
  flex: 1 1 60px; text-align: right; padding: 0 8px; }
.prix-saisie input:focus { outline: none; }
.prix-saisie select.unite-prix {
  border: 0; border-left: 1px solid var(--bordure); border-radius: 0;
  background: var(--bordure-claire); height: 30px; padding: 0 2px 0 5px;
  width: auto; flex: 0 0 52px;
  font-size: 11px; font-weight: 600; color: #57504a; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.prix-saisie select.unite-prix:focus { outline: none; }
/* L'autre écriture du même prix, quand on demande à voir les deux. */
.prix-autre { font-size: 11px; color: var(--attenue); text-align: right; margin-top: 2px; }

/* ---------------------------------------------------------------------
   Un interrupteur qui s'explique
   ---------------------------------------------------------------------
   `label` est mis en petites capitales par la feuille de style : c'est un
   intitulé de champ, deux mots au-dessus d'une case. Ici le libellé est
   une phrase, et une phrase en capitales ne se lit pas. */
label.interrupteur { display: flex; gap: 9px; align-items: flex-start; cursor: pointer;
  text-transform: none; letter-spacing: normal; font-weight: 400; font-size: 14px;
  flex: 1 1 280px; max-width: 340px; }
label.interrupteur input[type="checkbox"] { margin-top: 3px; flex: 0 0 auto; }
label.interrupteur strong { display: block; font-weight: 600; }
label.interrupteur .explication { display: block; font-size: 13px; color: var(--attenue); margin-top: 2px; }

/* Un pavé de ventilation qui porte les deux écritures respire moins :
   « 515,17 € HT · 618,20 € TTC » ne tient pas au corps d'un seul montant. */
.pave .valeur { overflow-wrap: anywhere; }
.pave .valeur.deux { font-size: 15px; line-height: 1.35; }

/* ---------------------------------------------------------------------
   Le témoin d'attente de la recherche
   ---------------------------------------------------------------------
   La liste se filtre à la frappe, donc il y a un aller-retour au serveur
   qu'on ne voit pas. Ce point qui pulse dit « ça suit » — sans lui, une
   demi-seconde de réseau ressemble à une frappe perdue. Il ne s'allume
   que pendant la requête, et il ne bouge aucune autre pièce de la barre. */
.sablier { position: absolute; right: 42px; top: 50%; width: 7px; height: 7px;
  margin-top: -3px; border-radius: 50%; background: var(--accent); opacity: .85;
  animation: sablier-pulse 900ms ease-in-out infinite; pointer-events: none; }
@keyframes sablier-pulse { 0%, 100% { transform: scale(.6); opacity: .35; } 50% { transform: scale(1); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .sablier { animation: none; } }

/* ---------------------------------------------------------------------
   Le choix du nombre de lignes, au pied du tableau
   --------------------------------------------------------------------- */
.pagination .par-page { display: flex; align-items: center; gap: 6px; margin: 0; }
.pagination .par-page label { margin: 0; font-size: 11px; color: var(--attenue);
  text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }
.pagination .par-page select { width: auto; height: 28px; padding: 0 6px; font-size: 13px; }

/* Mise à jour automatique d'un devis (12/10/2026) : le tableau pâlit
   le temps que le serveur recalcule, pour qu'on ne lise pas un total
   qui va changer. */
#form-devis { transition: opacity .15s; }
#form-devis.maj-en-cours { opacity: .55; pointer-events: none; }

/* ---------------------------------------------------------------------
   Sélecteur de véhicule (lot 6, 13/10/2026) : le modèle d'abord
   Le bloc ne crée pas de boîte (display: contents) : ses champs prennent
   leur place dans la grille ou la rangée qui l'accueille, comme avant.
   --------------------------------------------------------------------- */
.selecteur-vehicule { display: contents; }
.sv-modele { position: relative; }
.champs .sv-large { grid-column: 1 / -1; }
.rangee .sv-large { flex: 1 1 100%; }
.sv-large.propositions:empty { display: none; }
.suggestions .libelle b { font-weight: 600; }

/* =====================================================================
   Réception — le tableau du jour (lot 6)
   =====================================================================
   Une ligne par dossier : quand, qui (client, véhicule, demande), et les
   gestes. Des boîtes souples plutôt qu'un tableau : sur un téléphone ou
   une tablette, les gestes passent sous le nom au lieu de pousser la page
   en largeur. */
.onglets-reception { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.onglets-reception .nombre { font-weight: 400; opacity: .8; }
.rubrique h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.dossier-ligne { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap;
  padding: 10px 0; border-top: 1px solid var(--bordure-claire); }
.rubrique .dossier-ligne:first-of-type { border-top: 0; }
.dossier-ligne .quand { flex: 0 0 96px; font-weight: 600; }
.dossier-ligne .qui { flex: 1 1 280px; min-width: 0; font-size: 14px; }
.dossier-ligne .qui .etiq { margin-left: 4px; }
.dossier-ligne .ligne-vehicule { font-size: 13px; color: var(--attenue); margin-top: 2px; }
.dossier-ligne .ligne-travail { font-size: 13px; margin-top: 2px; }
.dossier-ligne .motif { font-size: 12.5px; margin-top: 3px; color: var(--ambre); font-weight: 600; }
.dossier-ligne .suite-documents { font-size: 13px; margin-top: 3px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.dossier-ligne .gestes { flex: 0 1 auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.dossier-ligne .gestes form { margin: 0; }
@media (max-width: 760px) {
  .dossier-ligne .quand { flex-basis: 100%; }
  .dossier-ligne .gestes { justify-content: flex-start; flex-basis: 100%; }
}
/* La comparaison d'adresses : ce qui diffère, ce qui manque. */
[data-adresse-rdv] tr.different td { background: var(--ambre-fond); }
[data-adresse-rdv] tr.a-completer td { background: var(--bleu-fond); }
/* Les motifs d'une annulation : des choix à lire, pas des intitulés de champ. */
label.choix-motif { display: flex; gap: 8px; align-items: center; margin: 5px 0;
  text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 400; color: var(--encre); }
label.choix-motif input { width: auto; height: auto; }
/* La fiche d'arrivée : intitulés de groupe et vignettes des photos. */
.legende-champ { font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--attenue); margin-bottom: 4px; }
.vignettes { display: flex; flex-wrap: wrap; gap: 10px; }
.vignette { margin: 0; width: 150px; }
.vignette img, .vignette .vignette-heic { display: block; width: 150px; height: 112px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--bordure); background: var(--bordure-claire); }
.vignette .vignette-heic { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; color: var(--attenue); }
.vignette figcaption { font-size: 12px; margin-top: 4px; overflow-wrap: anywhere; }
@media (max-width: 760px) { .vignette, .vignette img, .vignette .vignette-heic { width: 46vw; max-width: 170px; } }
.dossier-ligne .ligne-constat { margin-top: 4px; }
.dossier-ligne .ligne-constat a.etiq { text-decoration: none; }
/* Lot 7 — le panneau des forfaits : replié dès qu'un forfait est sur le
   document, rouvert d'un clic. Un <details> : ouvert ou fermé sans script. */
details.panneau-forfaits { margin-top: 10px; }
details.panneau-forfaits > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap;
  gap: 10px; align-items: center; }
details.panneau-forfaits > summary::-webkit-details-marker { display: none; }
details.panneau-forfaits[open] > summary .si-ferme,
details.panneau-forfaits:not([open]) > summary .si-ouvert { display: none; }
/* Un intitulé pour les lecteurs d'écran seulement (en-tête d'une colonne de boutons). */
.masque-visuel { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* Les gestes d'une ligne de document (monter, descendre, supprimer) : côte à
   côte sur un écran large, les uns sous les autres sur un écran étroit — mais
   toujours DANS la carte, donc toujours cliquables. */
.devis-table th.actions-ligne { width: 122px; }
/* Glisser-déposer des lignes (15/10/2026). La poignée se voit sans crier ;
   la ligne attrapée pâlit ; un trait couleur accent marque l'endroit où
   elle tombera — au-dessus ou au-dessous de la ligne survolée. */
.poignee-ligne { display: inline-block; cursor: grab; user-select: none; -webkit-user-select: none;
  margin-right: 5px; padding: 0 2px; letter-spacing: -2px; color: var(--attenue); font-family: inherit; }
.poignee-ligne:hover { color: var(--accent); }
tr.ligne-glissee { opacity: .4; }
tr.ligne-glissee .poignee-ligne { cursor: grabbing; }
tr.depot-avant > td { box-shadow: inset 0 3px 0 var(--accent); }
tr.depot-apres > td { box-shadow: inset 0 -3px 0 var(--accent); }
tbody.ordre-en-cours { opacity: .6; cursor: progress; }
@media (max-width: 1080px) {
  .devis-table th.actions-ligne { width: 52px; }
  .devis-table td.actions-ligne { white-space: normal; }
  .devis-table td.actions-ligne .btn { display: flex; width: 32px; justify-content: center; margin: 0 0 4px auto; padding: 3px 0; }
}
/* Filet de sécurité des écrans étroits : un tableau trop large pour la
   fenêtre défile à l'horizontale plutôt que de couper ses dernières
   colonnes — et les boutons qu'elles portent. L'en-tête cesse alors d'être
   collant, ce qui vaut mieux qu'un bouton hors d'atteinte. */
@media (max-width: 1080px) {
  .tableau { overflow-x: auto; }
  .tableau thead th { position: static; }
}
/* Lot 7 — la rubrique « Consommables compatibles » : sept raccourcis (pneus,
   plaquettes, filtres, bougie), chacun montrant la monte d'origine et ce qui
   est proposable ; le raccourci ouvert liste les pièces par disponibilité. */
/* Dans la carte d'ajout de ligne de l'éditeur, la rubrique ne redessine pas un cadre dans le cadre. */
.carte .carte.conso { border: 0; box-shadow: none; padding: 0; margin: 0; background: transparent; }
.conso-version { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
.conso-version details.conso-choix { flex: 1 1 100%; }
.conso-raccourcis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
a.conso-raccourci { display: flex; flex-direction: column; gap: 3px; padding: 9px 11px; border: 1px solid var(--bordure);
  border-radius: 8px; background: #fff; color: var(--encre); text-decoration: none; min-height: 64px; }
a.conso-raccourci:hover { border-color: var(--encre); color: var(--encre); }
a.conso-raccourci.actif { border-color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); background: #fffaf8; }
a.conso-raccourci.vide strong { color: var(--attenue); }
a.conso-raccourci .conso-monte { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: 12px; color: #2d3138;
  overflow-wrap: anywhere; }
a.conso-raccourci.vide .conso-monte { font-family: inherit; color: var(--attenue); font-style: italic; }
a.conso-raccourci .conso-compte { font-size: 11px; color: var(--vert); }
.conso-detail { margin-top: 12px; border-top: 1px solid var(--bordure-claire); padding-top: 6px; }
.conso-monte-ligne { padding: 6px 0; border-bottom: 1px dashed var(--bordure-claire); }
.conso-monte-ligne:last-child { border-bottom: 0; }
.conso-monte-ligne q { font-style: italic; }
.conso-section { margin-top: 12px; }
.conso-section h3 { font-size: 13px; margin: 0 0 6px; }
.conso-section.conso-verifier h3 { color: var(--ambre); }
.conso-section.conso-verifier table { background: #fffdf8; }
.conso-alerte { font-size: 12px; color: var(--ambre); margin-top: 2px; }
form.conso-ajout { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin: 0; }
form.conso-ajout input.num { height: 30px; padding: 0 6px; text-align: right; }
.conso-monte-ligne .aide, .conso-produits td { overflow-wrap: anywhere; }
/* Une restriction de source peut être longue : son étiquette passe à la ligne. */
.conso-monte-ligne .etiq { white-space: normal; }
/* Sur un téléphone, chaque pièce devient une fiche : ses colonnes l'une sous
   l'autre, chacune avec son intitulé — plutôt qu'un tableau écrasé. */
@media (max-width: 700px) {
  .conso-raccourcis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  table.conso-produits thead { display: none; }
  table.conso-produits, table.conso-produits tbody, table.conso-produits tr, table.conso-produits td { display: block; width: auto; }
  table.conso-produits tr { border-bottom: 1px solid var(--bordure-claire); padding: 8px 10px; }
  table.conso-produits td { border: 0; padding: 2px 0; text-align: left; }
  table.conso-produits td[data-libelle]::before { content: attr(data-libelle) " : "; color: var(--attenue); font-size: 11px;
    font-family: "IBM Plex Sans", -apple-system, "Segoe UI", system-ui, sans-serif; }
  form.conso-ajout { justify-content: flex-start; margin-top: 4px; }
}
/* Stock progressif — les tableaux des achats (documents, lignes lues,
   livraisons, réception) : sur un téléphone, chaque ligne devient une fiche,
   ses colonnes l'une sous l'autre avec leur intitulé, comme les consommables
   — plutôt qu'un tableau écrasé dont la dernière colonne (la pièce, le
   bouton) sort de l'écran. */
@media (max-width: 700px) {
  table.achats-fiches thead { display: none; }
  table.achats-fiches, table.achats-fiches tbody, table.achats-fiches tr, table.achats-fiches td { display: block; width: auto !important; }
  table.achats-fiches tr { border-bottom: 1px solid var(--bordure-claire); padding: 8px 10px; }
  table.achats-fiches td { border: 0; padding: 2px 0; text-align: left; }
  table.achats-fiches td[data-libelle]::before { content: attr(data-libelle) " : "; color: var(--attenue); font-size: 11px;
    font-family: "IBM Plex Sans", -apple-system, "Segoe UI", system-ui, sans-serif; }
  table.achats-fiches td.vide::before { content: none; }
}
/* Les corrections d'un champ lu : une rangée par champ, l'intitulé à gauche. */
.achats-correction { display: grid; grid-template-columns: minmax(130px, 190px) minmax(0, 260px) auto; gap: 6px 8px; align-items: center; margin: 0 0 6px; }
.achats-correction label { margin: 0; }
.achats-correction .btn { justify-self: start; }
@media (max-width: 700px) { .achats-correction { grid-template-columns: minmax(0, 1fr) auto; } .achats-correction label { grid-column: 1 / -1; } }

/* Stock > Inventaires : une ligne dont le stock a bougé depuis son comptage (à recompter), et la dernière pièce scannée. */
tr.a-recompter td, tr.refusee td { background: #fbede9; }
tr.scannee td, tr.en-attente td { background: var(--ambre-fond); }
tr.posee td[data-libelle="Comptée"] input { border-color: var(--vert); }
.tableau td.negatif, .tableau td .negatif { color: var(--accent-sombre); font-weight: 600; }
/* L'attribut hidden l'emporte sur l'affichage des libellés (le choix du périmètre d'un inventaire masque les champs qui ne servent pas). */
label[hidden] { display: none !important; }

/* Réception — le tableau de pilotage (19/10/2026) : des tableaux compacts,
   des lignes qui se lisent d'un coup d'œil, les gestes principaux visibles
   et les autres dans un menu. */
.barre-pilotage { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 0 0 10px; }
.compteurs-pilotage { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.compteurs-pilotage a { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border: 1px solid var(--bordure);
  border-radius: 6px; background: var(--surface); color: var(--encre); text-decoration: none; font-size: 13px; }
.compteurs-pilotage a strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.compteurs-pilotage a:hover, .compteurs-pilotage a.actif { border-color: var(--encre); }
.compteurs-pilotage a.alerte strong { color: var(--accent-sombre); }
.bloc-pilotage { margin-top: 12px; padding-top: 12px; padding-bottom: 12px; }
.bloc-pilotage h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.bloc-pilotage h2 .tri { margin-left: auto; font-size: 11px; font-weight: 400; text-transform: none; letter-spacing: 0; }
details.bloc-pilotage > summary { cursor: pointer; list-style: none; }
details.bloc-pilotage > summary::-webkit-details-marker { display: none; }
details.bloc-pilotage > summary::before { content: "▸ "; color: var(--attenue); }
details.bloc-pilotage[open] > summary::before { content: "▾ "; }
.tableau.compact td, .tableau.compact th { padding-top: 5px; padding-bottom: 5px; vertical-align: middle; }
.sous-ligne { display: block; font-size: 11px; color: var(--attenue); font-family: "IBM Plex Sans", -apple-system, "Segoe UI", system-ui, sans-serif; }
tr.en-retard td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.actions-ligne { white-space: nowrap; text-align: right; }
.actions-ligne form, .actions-ligne details { display: inline-block; vertical-align: middle; }
.etat-travail select { height: 28px; padding: 0 6px; border: 0; cursor: pointer; font-size: 12px; }
.groupe-anomalie { margin-top: 10px; }
.groupe-anomalie h3 { font-size: 13px; margin: 0 0 2px; display: flex; gap: 6px; align-items: center; }
.archives-pilotage a { white-space: nowrap; }
/* Le menu secondaire d'une ligne. */
.menu-actions { position: relative; }
.menu-actions > summary { list-style: none; cursor: pointer; }
.menu-actions > summary::-webkit-details-marker { display: none; }
.menu-actions-liste { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 190px; background: var(--surface);
  border: 1px solid var(--bordure); border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.12); padding: 4px 0; text-align: left; }
.menu-actions-liste a, .menu-actions-liste button { display: block; width: 100%; padding: 7px 12px; border: 0; background: none; font: inherit;
  font-size: 13px; color: var(--encre); text-align: left; text-decoration: none; cursor: pointer; }
.menu-actions-liste a:hover, .menu-actions-liste button:hover { background: #f6f3ee; }
.menu-actions-liste .danger { color: var(--accent-sombre); }
.menu-actions-liste form { display: block; margin: 0; }
/* La prochaine action, cliquable (21/10/2026) : un lien ou un geste d'un
   clic, qui se lisent pareil — en gras, couleur des liens, une flèche. */
.lien-action { display: inline; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; font-size: inherit;
  color: var(--accent); text-align: left; text-decoration: none; cursor: pointer; }
.lien-action::after { content: " \203A"; }
.lien-action:hover, .lien-action:focus-visible { color: var(--accent-sombre); text-decoration: underline; }
.lien-action:disabled { color: var(--attenue); cursor: default; text-decoration: none; }
.form-livrer { display: inline; margin: 0; }
@media (max-width: 900px) {
  .bloc-pilotage .col-second { display: none; }
}
.filtres-pilotage select, .barre-pilotage select { width: auto; height: 30px; padding: 0 8px; font-size: 13px; }
.barre-pilotage label { text-transform: none; letter-spacing: 0; font-size: 13px; }
/* Le menu d'une ligne déborde du tableau : le conteneur ne le rogne pas. */
.bloc-pilotage .tableau { overflow: visible; }
.bloc-pilotage .tableau thead th { position: static; }

/* Réception V2 (19/10/2026) : la livraison, dépliée sur la fiche. */
details.livraison > summary { list-style: none; display: inline-block; cursor: pointer; }
details.livraison > summary::-webkit-details-marker { display: none; }
.grille-livraison { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 14px; align-items: end; max-width: 980px; }
.grille-livraison .large { grid-column: 1 / -1; }
.grille-livraison input { width: 100%; }

/* Réception V2 (4.9.39) : la réception plus dense, pour 1366 à 1920 px. */
.compteurs-pilotage { gap: 4px; }
.compteurs-pilotage a { padding: 3px 8px; font-size: 12.5px; gap: 4px; }
.compteurs-pilotage a strong { font-size: 15px; }
.compteurs-pilotage .etiq { font-size: 10.5px; padding: 0 5px; }
.filtres-pilotage select { max-width: 190px; }
.etiq.pastille-presence { font-family: "IBM Plex Sans", -apple-system, "Segoe UI", system-ui, sans-serif; font-size: 10.5px; letter-spacing: 0; white-space: nowrap; }
.bloc-pilotage { margin-top: 10px; padding-top: 10px; padding-bottom: 8px; }
.bloc-pilotage .tableau.compact td, .bloc-pilotage .tableau.compact th { padding-top: 3px; padding-bottom: 3px; padding-left: 6px; padding-right: 6px; }
.bloc-pilotage .tableau.compact td { font-size: 13px; line-height: 1.3; }
.bloc-pilotage .btn.petit { padding: 2px 8px; min-height: 26px; }
.select-ligne { width: auto; max-width: 130px; height: 26px; padding: 0 4px; font-size: 12px; border-color: transparent; background-color: transparent; cursor: pointer; }
.select-ligne:hover, .select-ligne:focus { border-color: var(--bordure); background-color: var(--fond, #fff); }

/* Bouton qui se lit comme un lien (prix « pièce seule » d'une ligne de
   devis, migration 090). */
button.lien {
  background: none; border: 0; padding: 0; font: inherit; font-size: inherit;
  color: var(--accent, #9a3412); text-decoration: underline; cursor: pointer;
}

/* Vue Atelier (4.9.42) : les véhicules au garage en colonnes, par état. */
.atelier-colonnes { display: grid; grid-template-columns: repeat(6, minmax(190px, 1fr)); gap: 10px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.atelier-colonne { background: var(--fond-doux, rgba(0,0,0,.03)); border-radius: 8px; padding: 8px; min-height: 120px; }
.atelier-colonne > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.atelier-nombre { font-size: 15px; }
.atelier-vide { color: var(--attenue); text-align: center; padding: 12px 0; }
.atelier-carte { background: var(--fond, #fff); border: 1px solid var(--bordure, #ddd); border-radius: 6px; padding: 8px; margin-bottom: 8px; font-size: 13px; }
.atelier-carte.en-alerte { border-left: 3px solid #c0392b; }
.atelier-lien { display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; }
.atelier-lien:hover .atelier-plaque { text-decoration: underline; }
.atelier-plaque { font-weight: 600; font-size: 14px; }
.atelier-client, .atelier-meta, .atelier-motif { color: var(--attenue); }
.atelier-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; font-size: 12px; }
.atelier-blocage { margin-top: 4px; font-weight: 600; color: #a04000; }
.atelier-alerte { margin-top: 4px; font-size: 12px; color: #c0392b; }
.atelier-etat { margin-top: 6px; }
.atelier-etat select { width: 100%; }
@media (max-width: 900px) { .atelier-colonnes { grid-template-columns: repeat(6, 220px); } }

/* Statistiques de la réception (4.9.43). */
.grille-stats-reception { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin-bottom: 12px; }
.grille-stats-reception .carte h2, .carte[data-bloc] h2 { font-size: 15px; margin: 0 0 8px; }
.tranches-presence { display: grid; gap: 4px; margin-top: 10px; font-size: 13px; }
.tranches-presence > div { display: grid; grid-template-columns: 120px 1fr 32px; align-items: center; gap: 8px; }
.tranches-presence .barre { background: rgba(0,0,0,.06); border-radius: 3px; height: 10px; overflow: hidden; }
.tranches-presence .barre i { display: block; height: 100%; background: #2e6da4; }
.histogramme-reception { display: flex; align-items: flex-end; gap: 3px; height: 140px; overflow-x: auto; padding-bottom: 2px; }
.histogramme-reception .jour { display: flex; flex-direction: column; align-items: center; min-width: 18px; flex: 1; height: 100%; }
.histogramme-reception .colonnes { display: flex; align-items: flex-end; gap: 1px; height: calc(100% - 16px); width: 100%; justify-content: center; }
.histogramme-reception .colonnes i { display: block; width: 45%; min-height: 1px; border-radius: 2px 2px 0 0; }
.histogramme-reception span { font-size: 10px; color: var(--attenue); }
.histogramme-reception .acc, .pastille-legende.acc { background: #2e6da4; }
.histogramme-reception .liv, .pastille-legende.liv { background: #3f9b5a; }
.pastille-legende { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: middle; }

/* Réception sur un téléphone (demande d'Eric du 21/10/2026, 7 h 34 : « sur
   la page réception, l'affichage mobile n'est pas bon ») : chaque dossier
   devient une fiche — le client et l'heure en tête, puis chaque colonne
   sous son intitulé, les boutons en bas — au lieu d'un tableau dont les
   colonnes du client et du travail n'avaient plus qu'une lettre de large.
   Seuil à 1000 px et non 700 (même jour, 8 h 29 : « c'est pas bon ») : en
   paysage, en « version pour ordinateur » ou avec le zoom d'affichage, un
   téléphone annonce plus de 700 px, et le tableau à 7 colonnes y reste
   écrasé jusque vers 1000 px. */
@media (max-width: 1000px) {
  table.fiches-mobile { table-layout: auto; }
  table.fiches-mobile thead { display: none; }
  table.fiches-mobile, table.fiches-mobile tbody, table.fiches-mobile td { display: block; width: auto !important; }
  /* Une fiche par dossier, rangée en flex : l'heure et le client en tête
     (ordre 0), un saut de ligne (le ::after, ordre 1), puis les champs côte
     à côte — un par ligne sur un téléphone en portrait, deux ou trois quand
     la place le permet (ordre 2) — et les boutons en bas (ordre 3). */
  table.fiches-mobile tr { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 18px; row-gap: 1px;
    border-bottom: 1px solid var(--bordure-claire); padding: 7px 10px; }
  table.fiches-mobile tr::after { content: ""; order: 1; flex-basis: 100%; height: 2px; }
  table.fiches-mobile tr.intertitre { display: block; padding: 6px 10px; }
  table.fiches-mobile tr.intertitre::after { content: none; }
  table.fiches-mobile td { order: 2; flex: 1 1 210px; min-width: 0; border: 0; padding: 1px 0 !important;
    text-align: left !important; overflow-wrap: normal; word-break: normal; font-size: 13px !important; line-height: 1.35; }
  table.fiches-mobile td.fiche-tete { order: 0; flex: 0 1 auto; font-size: 14px !important; }
  table.fiches-mobile td.fiche-tete .sous-ligne { display: inline; margin-left: 6px; }
  table.fiches-mobile td[data-libelle]::before { content: attr(data-libelle) " : "; color: var(--attenue); font-size: 11px;
    font-family: "IBM Plex Sans", -apple-system, "Segoe UI", system-ui, sans-serif; }
  table.fiches-mobile td.actions-ligne { order: 3; flex: 1 0 100%; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-start;
    padding-top: 5px !important; white-space: normal; }
  table.fiches-mobile td:empty { display: none; }
  table.fiches-mobile td .sous-ligne { display: inline; }
  table.fiches-mobile td .sous-ligne::before { content: " · "; color: var(--attenue); }
  table.fiches-mobile td.fiche-tete .sous-ligne::before { content: none; }
  table.fiches-mobile .select-ligne { max-width: none; border-color: var(--bordure); }
  .filtres-pilotage input[type="search"] { width: 100% !important; }
}

/* ===== Centre de pilotage IA (lot 1, 12/11/2026) ===== */
.signaler-ia { position: fixed; right: 16px; bottom: 16px; z-index: 50; font-size: 13px; height: 34px;
  box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.signaler-ia-boite { border: 1px solid #ddd; border-radius: 10px; padding: 18px; width: min(520px, 92vw); }
.signaler-ia-boite::backdrop { background: rgba(20,22,26,.35); }
.signaler-ia-reponse { margin-top: 8px; font-size: 14px; }
.signaler-ia-reponse.ok { color: #1f6b3a; font-weight: 600; }
.signaler-ia-reponse.ko { color: #a3361f; font-weight: 600; }
.pil-compteurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.pil-compteur { background: #fff; border: 1px solid #e7e4dc; border-radius: 8px; padding: 10px 12px; }
.pil-compteur b { display: block; font-size: 22px; }
.pil-compteur span { font-size: 12px; color: #666; }
.pil-compteur.alerte b { color: #a3361f; }
.pil-kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.pil-colonne { background: #f4f2ec; border-radius: 8px; padding: 8px; min-height: 120px; }
.pil-colonne h3 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: #555; }
.pil-carte { display: block; background: #fff; border: 1px solid #e2ded3; border-radius: 6px; padding: 7px 8px; margin-bottom: 6px;
  font-size: 12.5px; text-decoration: none; color: inherit; }
.pil-carte:hover { border-color: #b9b3a3; }
.pil-carte .pil-meta { color: #777; font-size: 11.5px; margin-top: 3px; }
.pil-etat { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 11.5px; background: #eee; }
.pil-etat.disponible { background: #e3f1e7; color: #1f6b3a; }
.pil-etat.occupe, .pil-etat.occupé { background: #e6eefb; color: #23498f; }
.pil-etat.bloque, .pil-etat.bloqué { background: #fbe9e4; color: #a3361f; }
.pil-etat.desactive, .pil-etat.désactivé { background: #eee; color: #666; }
.pil-desactive { opacity: .7; }
.pil-raison { font-size: 12.5px; color: #8a5a00; background: #fff6e0; border: 1px solid #f0dfb0; border-radius: 6px; padding: 6px 9px; margin: 6px 0; }
.pil-demander textarea { width: 100%; min-height: 64px; font: inherit; }

/* ===== LMD OS (4.9.79, 14/11/2026) : l'accueil et les pôles, lisibles sur un
   téléphone — une colonne, rien à faire défiler de côté. ===== */
.los-titre { font-size: 15px; margin: 18px 0 8px; }
.los-envoi { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 8px; }
.los-envoi label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #666; min-width: 0; flex: 1 1 220px; }
.los-envoi select { max-width: 100%; height: 38px; font: inherit; }
.los-poles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 14px; }
.los-pole { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid #e2ded3; border-radius: 10px;
  padding: 11px 13px; text-decoration: none; color: inherit; min-height: 78px; }
.los-pole:hover { border-color: #b9b3a3; }
.los-pole strong { font-size: 14px; line-height: 1.25; }
.los-pole.alerte { border-left: 4px solid #a3361f; }
.los-pole-chiffres { font-size: 12.5px; color: #555; }
.los-pole-chiffres b { color: #1d1f23; }
.los-pole.alerte .los-pole-chiffres b:first-child { color: #a3361f; }
.los-pole-agents { font-size: 11.5px; color: #888; }
.los-groupe { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: #555; margin: 12px 0 6px; }
.los-agent { padding: 8px 0; border-top: 1px solid #eee9df; font-size: 13.5px; }
.los-agent:first-of-type { border-top: 0; }
.los-liens { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.carte + .los-titre { margin-top: 18px; }
.los-poles + .carte, .pil-compteurs + .carte, .los-titre + .carte { margin-top: 0; }
.pil-carte { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .los-poles { grid-template-columns: minmax(0, 1fr); }
  .los-pole { min-height: 0; }
  .los-envoi .btn { flex: 1 1 100%; justify-content: center; height: 44px; }
  .pil-demander textarea { font-size: 16px; }  /* sous 16 px, iOS zoome sur le champ */
  .pil-compteurs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Sur un téléphone, le menu (plusieurs lignes) ne reste pas collé en haut
     des écrans de LMD OS, et « Signaler » descend en bas de page au lieu de
     flotter sur le contenu. Les autres écrans ne changent pas. */
  body.lmd-os .nav { position: static; }
  body.lmd-os .signaler-ia { position: static; display: flex; margin: 0 20px 24px auto; box-shadow: none; }
  body.lmd-os .page { padding-bottom: 20px; }
}
