/* Lot DESIGN-1 : police Inter (licence OFL, css/fonts/LICENSE-inter.txt), hébergée dans l'appli (hors ligne, sans CDN). */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  /* Identité Perfora (lot U1, docs/MAQUETTES_U1.md §1.3) : bleu nuit, violet (actions), orange (point, Signaler). */
  --nuit: #1A1F3B; --nuit-2: #232947; --orange: #F5A524;
  --bg: #F5F6FA; --card: #fff; --ink: #1A2238; --muted: #5B6478; --line: #E3E6EE;
  --blue: #5B57E0; --blue-soft: #EEEDFE; --red: #c2410c; --red-soft: #fdece4;
  --amber: #8F4E00; --amber-soft: #FDEBCF; --green: #147a3a; --green-soft: #e3f4e8;
  --radius: 14px; --tabs-h: 62px; --top-h: 52px;
  /* Lot DESIGN-1 (.claude/skills/perfora-design/SKILL.md §2) */
  --police: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --surface-2: #F0F2F7; --ombre-1: 0 1px 2px rgb(16 24 40 / .06); --ombre-2: 0 8px 24px rgb(16 24 40 / .12);
  --nav-l: 220px;
  /* Lot DESIGN-2 : jetons de couleur complémentaires (valeurs claires ; versions sombres plus bas) */
  --line-2: #F0F1F5; --amber-vif: #D97706; --blue-ink: #3C3489; --amber-ink: #6B3A00; --green-ink: #166534;
  --puce: #3C3489; --sur-ink: #fff; --blue-plein: #5B57E0;
  /* Lot INSTALL : motif zellige (étoile à 8 branches au trait, tuile 56 px), opacité dans le dessin : 6 % sur fond nuit,
     5 % sur fond clair. Zones autorisées seulement (.claude/skills/perfora-design/SKILL.md §5). */
  --zellige-nuit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='.06' stroke-width='1'%3E%3Cpath d='M16 16H40V40H16Z'/%3E%3Cpath d='M28 11L45 28L28 45L11 28Z'/%3E%3Cpath d='M28 0V11M28 45V56M0 28H11M45 28H56M0 0L16 16M56 0L40 16M0 56L16 40M56 56L40 40'/%3E%3C/g%3E%3C/svg%3E");
  --zellige-clair: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%231A1F3B' stroke-opacity='.05' stroke-width='1'%3E%3Cpath d='M16 16H40V40H16Z'/%3E%3Cpath d='M28 11L45 28L28 45L11 28Z'/%3E%3Cpath d='M28 0V11M28 45V56M0 28H11M45 28H56M0 0L16 16M56 0L40 16M0 56L16 40M56 56L40 40'/%3E%3C/g%3E%3C/svg%3E");
  --safe-b: env(safe-area-inset-bottom, 0px);
}
/* ---------- Lot DESIGN-2 : mode sombre ----------
   Automatique (réglage de l'appareil) sauf choix « Clair » ; forcé par « Sombre » (Mon compte › Affichage).
   Seuls les jetons changent : tout ce qui passe par eux suit. Impression : toujours en clair (règles print). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1222; --card: #171B30; --surface-2: #1E2340; --ink: #E8EAF2; --muted: #A3A9BD; --line: #2A3052; --line-2: #222744;
    --nuit: #0B0E1C; --nuit-2: #151A30;
    --blue: #A9A6FF; --blue-plein: #5B57E0; --blue-soft: #25264F; --red: #F0835A; --red-soft: #3A2018; --amber: #F5A524; --amber-soft: #3B2A0E;
    --green: #4ADE80; --green-soft: #12301E; --amber-vif: #E8960C; --blue-ink: #C7CBFF; --amber-ink: #FCD9A0; --green-ink: #B9F0CB;
    --puce: #C7CBFF; --ombre-1: 0 1px 2px rgb(0 0 0 / .4); --ombre-2: 0 8px 24px rgb(0 0 0 / .5);
    --zellige-clair: var(--zellige-nuit); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #0F1222; --card: #171B30; --surface-2: #1E2340; --ink: #E8EAF2; --muted: #A3A9BD; --line: #2A3052; --line-2: #222744;
    --nuit: #0B0E1C; --nuit-2: #151A30;
    --blue: #A9A6FF; --blue-plein: #5B57E0; --blue-soft: #25264F; --red: #F0835A; --red-soft: #3A2018; --amber: #F5A524; --amber-soft: #3B2A0E;
    --green: #4ADE80; --green-soft: #12301E; --amber-vif: #E8960C; --blue-ink: #C7CBFF; --amber-ink: #FCD9A0; --green-ink: #B9F0CB;
    --puce: #C7CBFF; --ombre-1: 0 1px 2px rgb(0 0 0 / .4); --ombre-2: 0 8px 24px rgb(0 0 0 / .5);
    --zellige-clair: var(--zellige-nuit); color-scheme: dark;
}
/* ---------- Lot DESIGN-2 : classes utilitaires (anciens styles en ligne des gabarits) ----------
   Une classe = une déclaration, « !important » comme un style en ligne ; placées tôt : les règles « !important »
   plus loin (ex. .hidden) gardent le dessus, comme sur un style en ligne. Générées par migration, ne pas éditer à la main
   sans relancer les tests (tests/design2.test.js). */
.u-ai-center { align-items: center !important; }
.u-ai-flex-start { align-items: flex-start !important; }
.u-bb-1_solid_line { border-bottom: 1px solid var(--line) !important; }
.u-bc-collapse { border-collapse: collapse !important; }
.u-bg-red { background: var(--red) !important; }
.u-br-10 { border-radius: 10px !important; }
.u-c-amber { color: var(--amber) !important; }
.u-c-green { color: var(--green) !important; }
.u-c-inherit { color: inherit !important; }
.u-c-red { color: var(--red) !important; }
.u-d-block { display: block !important; }
.u-d-flex { display: flex !important; }
.u-fl-right { float: right !important; }
.u-fs-1p15rem { font-size: 1.15rem !important; }
.u-fs-1p2rem { font-size: 1.2rem !important; }
.u-fs-1p6rem { font-size: 1.6rem !important; }
.u-fw-400 { font-weight: 400 !important; }
.u-fw-700 { font-weight: 700 !important; }
.u-fx-1 { flex: 1 !important; }
.u-fxw-wrap { flex-wrap: wrap !important; }
.u-gap-10 { gap: 10px !important; }
.u-gap-6 { gap: 6px !important; }
.u-gap-8 { gap: 8px !important; }
.u-gcol-span_2 { grid-column: span 2 !important; }
.u-h-22 { height: 22px !important; }
.u-jc-flex-start { justify-content: flex-start !important; }
.u-m-0 { margin: 0 !important; }
.u-m-0_0_6 { margin: 0 0 6px !important; }
.u-m-0_0_8 { margin: 0 0 8px !important; }
.u-m-14_0_6 { margin: 14px 0 6px !important; }
.u-m-4_0 { margin: 4px 0 !important; }
.u-m-4_0_0 { margin: 4px 0 0 !important; }
.u-m-6_0_0 { margin: 6px 0 0 !important; }
.u-m-6_0_12 { margin: 6px 0 12px !important; }
.u-m-6_0_16 { margin: 6px 0 16px !important; }
.u-m-6_0_2 { margin: 6px 0 2px !important; }
.u-m-8_0_0 { margin: 8px 0 0 !important; }
.u-m-n4_0_6 { margin: -4px 0 6px !important; }
.u-maxw-280 { max-width: 280px !important; }
.u-mb-0 { margin-bottom: 0 !important; }
.u-mb-10 { margin-bottom: 10px !important; }
.u-mb-12 { margin-bottom: 12px !important; }
.u-mb-8 { margin-bottom: 8px !important; }
.u-minh-1p4em { min-height: 1.4em !important; }
.u-minh-64 { min-height: 64px !important; }
.u-mr-8 { margin-right: 8px !important; }
.u-mt-0 { margin-top: 0 !important; }
.u-mt-10 { margin-top: 10px !important; }
.u-mt-12 { margin-top: 12px !important; }
.u-mt-14 { margin-top: 14px !important; }
.u-mt-16 { margin-top: 16px !important; }
.u-mt-22 { margin-top: 22px !important; }
.u-mt-4 { margin-top: 4px !important; }
.u-mt-6 { margin-top: 6px !important; }
.u-mt-8 { margin-top: 8px !important; }
.u-mt-n4 { margin-top: -4px !important; }
.u-mt-n6 { margin-top: -6px !important; }
.u-ox-auto { overflow-x: auto !important; }
.u-p-4_6 { padding: 4px 6px !important; }
.u-ta-center { text-align: center !important; }
.u-ta-left { text-align: left !important; }
.u-ta-right { text-align: right !important; }
.u-td-none { text-decoration: none !important; }
.u-tt-capitalize { text-transform: capitalize !important; }
.u-tt-none { text-transform: none !important; }
.u-va-top { vertical-align: top !important; }
.u-vis-hidden { visibility: hidden !important; }
.u-w-100pc { width: 100% !important; }
.u-w-22 { width: 22px !important; }
.u-w-70 { width: 70px !important; }
.u-wb-break-all { word-break: break-all !important; }
.u-ws-nowrap { white-space: nowrap !important; }
.u-ws-pre-wrap { white-space: pre-wrap !important; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 1rem/1.45 var(--police); -webkit-font-smoothing: antialiased;
  padding: var(--top-h) 0 calc(var(--tabs-h) + var(--safe-b) + 76px);
}
a { color: var(--blue); text-decoration: none; }
h1 { font-size: 1.35rem; margin: 4px 0 12px; }
h2 { font-size: 1.02rem; margin: 22px 0 8px; }
h3 { font-size: 1.05rem; margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.pad { padding: 16px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.right { margin-left: auto; }
.hidden { display: none !important; }

/* barre haute */
.top {
  position: fixed; inset: 0 0 auto 0; height: var(--top-h); z-index: 20;
  display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: var(--nuit); color: #fff;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.12rem; letter-spacing: -.02em; color: #fff; }
.brand-txt { white-space: nowrap; }
.point { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-left: 2px; }
.top .sync { background: rgba(255,255,255,.1); color: #fff; }
.site { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.1); color: #fff; border-radius: 99px; padding: 5px 10px;
  font: inherit; font-size: .8rem; font-weight: 600; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
@media (max-width: 520px) { .brand-txt { display: none; } }
.net { font-size: .75rem; padding: 3px 8px; border-radius: 99px; background: rgba(21,128,61,.25); color: #B9F0CB; }
.net.off { background: rgba(245,165,36,.22); color: #FFD89A; }
.who {
  margin-left: auto; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; border-radius: 99px;
  padding: 6px 12px; font: inherit; font-size: .85rem; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* navigation */
.tabs {
  position: fixed; inset: auto 0 0 0; z-index: 20; display: flex;
  height: calc(var(--tabs-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--card); border-top: 1px solid var(--line);
}
.tabs a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: .72rem; color: var(--muted);
}
.tabs a .ic { font-size: 1.25rem; line-height: 1; display: inline-flex; }
/* Lot DESIGN-1 : icônes SVG au trait (Lucide, licence ISC), couleur du texte. */
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.25em; }
.tabs a .ic .ico { width: 22px; height: 22px; }
.card .t .ico { width: 1.1em; height: 1.1em; margin-right: 6px; color: var(--muted); }
.tabs a.on { color: var(--blue); font-weight: 700; background: var(--blue-soft); border-radius: 14px; margin: 6px 3px; }   /* lot VISAGE : pastille, comme l'Atelier */
.only-desktop { display: none !important; }

main { max-width: 880px; margin: 0 auto; padding: 14px 14px 0; outline: none; }

.fab {
  position: fixed; right: 16px; bottom: calc(var(--tabs-h) + var(--safe-b) + 14px); z-index: 19;
  background: var(--orange); color: var(--nuit); font-weight: 700; padding: 14px 20px; border-radius: 99px;
  box-shadow: 0 6px 18px rgba(245, 165, 36, .35);
}

@media (min-width: 900px) {
  body { padding: var(--top-h) 0 40px var(--nav-l); }
  .tabs {
    inset: var(--top-h) auto 0 0; width: var(--nav-l); height: auto; flex-direction: column;
    border-top: 0; border-right: 1px solid var(--line); padding: 12px 8px;
  }
  .tabs a { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; font-size: .95rem; padding: 10px 12px; border-radius: 10px; }
  .tabs a.on { background: var(--blue-soft); box-shadow: none; }
  .only-mobile { display: none !important; }
  .only-desktop { display: flex !important; }
  main { padding: 22px 28px 0; }
  .fab { bottom: 24px; right: 28px; }
}

/* cartes et listes */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
a.card, .card.link { display: block; color: inherit; }
a.card:active { background: var(--surface-2); }
.card .t { font-weight: 650; }
.card .s { color: var(--muted); font-size: .88rem; margin-top: 3px; }
.list-empty { padding: 18px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; color: inherit; display: block; }
.tile b { display: block; font-size: 1.6rem; }
.tile span { font-size: .85rem; color: var(--muted); }
.tile.red b { color: var(--red); } .tile.amber b { color: var(--amber); } .tile.blue b { color: var(--blue); }

.badge { display: inline-block; font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); white-space: nowrap; }
.badge.red { background: var(--red-soft); color: var(--red); border-color: transparent; }
.badge.amber { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.badge.green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.badge.blue { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; }
.dot.indisponible { background: var(--red); } .dot.degrade, .dot.anomalie { background: var(--amber-vif); } .dot.inconnu { background: var(--muted); }

dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: .93rem; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; }

/* boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
}
.btn.primary { background: var(--blue-plein); border-color: var(--blue-plein); color: #fff; }
.btn.danger { color: var(--red); }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: .88rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.actions .btn { flex: 1 1 auto; }

/* formulaires */
label.f { display: block; margin: 14px 0 6px; font-weight: 600; font-size: .92rem; }
label.f .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=search], input[type=number], input[type=date], input[type=datetime-local],
input[type=email], input[type=password], input[type=url], input[type=tel], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); font: inherit; color: inherit;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 9px 14px; min-height: 40px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: .92rem; user-select: none;
}
.chip input:checked + span { background: var(--blue-plein); border-color: var(--blue-plein); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.chip.indisponible input:checked + span { background: var(--red); border-color: var(--red); }
.chip.degrade input:checked + span, .chip.anomalie input:checked + span { background: var(--amber-vif); border-color: var(--amber-vif); }

.check { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); margin-top: 14px; font-weight: 600; }
.check input { width: 22px; height: 22px; }

details.more { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 0 12px; }
details.more summary { padding: 12px 0; cursor: pointer; font-weight: 600; }
details.more[open] { padding-bottom: 12px; }

.picker-results { display: grid; gap: 6px; margin-top: 8px; }
.picker-results button { text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font: inherit; cursor: pointer; }
.picked { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; background: var(--blue-soft); }

.warn { background: var(--amber-soft); color: var(--amber-ink); border-radius: 10px; padding: 10px 12px; font-size: .9rem; margin-top: 10px; }
.info { background: var(--blue-soft); color: var(--blue-ink); border-radius: 10px; padding: 10px 12px; font-size: .9rem; }

.sticky-save { position: sticky; bottom: calc(var(--tabs-h) + var(--safe-b) + 8px); margin-top: 18px; }
@media (min-width: 900px) { .sticky-save { bottom: 16px; } }

/* listes internes */
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.lines li:first-child { border-top: 0; }
.lines li.off { color: var(--muted); text-decoration: line-through; }

.bar { height: 10px; border-radius: 99px; background: var(--blue); min-width: 4px; }
.barrow { display: grid; grid-template-columns: 130px 1fr 40px; gap: 10px; align-items: center; font-size: .9rem; margin: 6px 0; }

.journal-item { font-size: .86rem; padding: 8px 0; border-top: 1px solid var(--line); }
.journal-item code { background: var(--bg); padding: 0 4px; border-radius: 4px; }

.seg { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; }
.seg a { white-space: nowrap; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: .9rem; }
.seg a.on { background: var(--ink); color: var(--card); border-color: var(--ink); }

/* fenêtres (bas d'écran sur mobile) */
dialog.sheet {
  border: 0; padding: 0; width: 100%; max-width: 560px; max-height: 92vh; border-radius: 18px 18px 0 0;
  margin: auto auto 0; background: var(--card); color: var(--ink);
}
dialog.sheet::backdrop { background: rgba(0, 0, 0, .35); }
dialog.sheet form { padding: 18px 16px calc(16px + var(--safe-b)); overflow-y: auto; max-height: 92vh; }
dialog.sheet .sheet-actions { display: flex; gap: 8px; margin-top: 18px; }
dialog.sheet .sheet-actions .btn { flex: 1; }
@media (min-width: 640px) { dialog.sheet { margin: auto; border-radius: 18px; } }

#toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabs-h) + var(--safe-b) + 80px);
  background: var(--ink); color: var(--card); padding: 10px 16px; border-radius: 10px; font-size: .92rem;
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; max-width: 90vw;
}
#toast.show { opacity: 1; }
/* Lot L6a : trois sortes de retour (docs/MAQUETTES_L6.md §2) */
#toast { display: flex; align-items: center; gap: 8px; text-align: left; border-left: 4px solid transparent; }
#toast .toast-ic { display: inline-flex; flex: none; }
#toast .toast-ic .ico { width: 18px; height: 18px; }
#toast.fait { border-left-color: var(--green); }
#toast.fait .toast-ic { color: var(--green); }
#toast.corriger { background: var(--amber-soft); color: var(--ink); border-left-color: var(--amber-vif); }
#toast.corriger .toast-ic { color: var(--amber-vif); }
#toast.refus { background: var(--red-soft); color: var(--ink); border-left-color: var(--red); }
#toast.refus .toast-ic { color: var(--red); }
#toast.show.corriger, #toast.show.refus { pointer-events: auto; }
#toast .toast-x { border: 0; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; padding: 4px 6px; margin-left: 4px; min-width: 32px; min-height: 32px; }
dialog #toast { position: sticky; bottom: 8px; left: auto; transform: none; margin: 8px auto 0; max-width: 100%; }
/* Lot L6a : bouton dont l'action est en cours (pas de double appui) */
.occupe { opacity: .55; pointer-events: none; cursor: progress; }
.occupe-long::after { content: '…'; }
/* Lot L6a : faute sous le champ */
.faute, input.faute, select.faute, textarea.faute { outline: 2px solid var(--red); outline-offset: 1px; border-radius: 8px; }
.faute-msg { color: var(--red); font-size: .85rem; margin: 4px 0 8px; }

video.scan { width: 100%; border-radius: 10px; background: #000; }

/* photos */
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.thumbs:empty { display: none; }
.thumbs button { position: relative; padding: 0; border: 0; background: none; cursor: pointer; }
.thumbs img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; display: block; border: 1px solid var(--line); }
.thumbs .rm { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--card); font-size: 14px; line-height: 22px; text-align: center; }

/* planche de QR codes */
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 14px; }
.qr-label { display: flex; gap: 10px; align-items: center; background: #fff; color: #1A2238; border: 1px dashed #bbb; border-radius: 10px; padding: 8px; break-inside: avoid; }
.qr-label svg { flex: none; }
@media print {
  body { padding: 0 !important; background: #fff; }
  .top, .tabs, .fab, #toast, .no-print { display: none !important; }
  main { max-width: none; padding: 0; }
  .qr-grid { grid-template-columns: repeat(3, 1fr); gap: 4mm; margin: 0; }
  .qr-label { border-color: #999; page-break-inside: avoid; }
}

/* voyant de synchronisation */
.sync { border: 0; border-radius: 99px; padding: 4px 10px; font: inherit; font-size: .75rem; background: var(--bg); color: var(--muted); cursor: pointer; white-space: nowrap; }
.sync.ok { background: var(--green-soft); color: var(--green); }
.sync.wait { background: var(--amber-soft); color: var(--amber); }
.sync.err { background: var(--red-soft); color: var(--red); }

.maj { position: fixed; left: 50%; transform: translateX(-50%); top: calc(var(--top-h) + 8px); z-index: 60; display: flex; gap: 10px; align-items: center; width: max-content; max-width: 92vw; white-space: nowrap;
  background: var(--nuit); color: #fff; padding: 8px 8px 8px 14px; border-radius: 12px; font-size: .9rem; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
/* Lot STAB : page périmée (autre onglet plus récent) : voile qui bloque tout, seul bouton « Recharger » */
.voile-perime { position: fixed; inset: 0; z-index: 200; background: rgba(15, 23, 42, .55); display: flex; align-items: flex-start; justify-content: center; padding: 72px 16px 16px; }
.perime-carte { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 16px 18px; max-width: 520px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.perime-carte p { margin: 0; font-weight: 600; }

/* Écran de connexion : ni onglets, ni bouton Signaler, ni voyants */
body.ecran-connexion .tabs, body.ecran-connexion #fab, body.ecran-connexion #sync, body.ecran-connexion #site, body.ecran-connexion #who { display: none !important; }
/* Lot U1 : connexion en deux panneaux (docs/MAQUETTES_U1.md §1 bis) */
body.ecran-connexion { padding: 0; background: var(--card); }
body.ecran-connexion .top { display: none; }
body.ecran-connexion main { max-width: none; padding: 0; }
.connexion { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.cnx-gauche { background: var(--nuit); color: #fff; padding: 22px 34px; display: flex; flex-direction: column; }
.cnx-logo { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; }
.cnx-logo .point { width: 7px; height: 7px; }
.cnx-puce { align-self: flex-start; margin-top: 46px; background: var(--blue-soft); color: var(--puce); font-size: .72rem; letter-spacing: .02em; padding: 5px 12px; border-radius: 99px; }
.cnx-gauche h1 { font-size: 2.6rem; line-height: 1.15; margin: 64px 0 18px; letter-spacing: -.02em; }
.cnx-sous { color: #A9B2D6; max-width: 400px; }
.cnx-recette { margin-top: auto; background: var(--nuit-2); border: 1px solid #2E3556; border-radius: 10px; padding: 12px 14px; color: #A9B2D6; max-width: 400px; font-size: .92rem; }
.cnx-droite { display: flex; align-items: center; justify-content: center; padding: 34px; }
.cnx-form { width: 100%; max-width: 360px; }
.cnx-sur { font-size: .7rem; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.cnx-form h2 { font-size: 1.75rem; margin: 10px 0 14px; letter-spacing: -.01em; }
.cnx-intro { color: var(--muted); margin: 0 0 8px; }
.cnx-ok { margin-top: 24px; box-shadow: 0 6px 16px rgba(91, 87, 224, .25); }
.cnx-liens { margin: 16px 0; font-size: .9rem; display: flex; flex-direction: column; gap: 10px; }
.cnx-liens .cnx-discret { color: #8A93AB; }
@media (max-width: 760px) {
  .connexion { grid-template-columns: 1fr; min-height: 0; }
  .cnx-gauche { padding: 16px 20px 18px; }
  .cnx-puce { margin-top: 16px; }
  .cnx-gauche h1 { font-size: 1.7rem; margin: 16px 0 6px; }
  .cnx-sous, .cnx-long { display: none; }
  .cnx-recette { margin-top: 10px; padding: 6px 10px; font-size: .78rem; }
  .cnx-droite { align-items: flex-start; padding: 22px 20px; }
}
.btn.block { width: 100%; }

/* Fichiers joints : vignette en cours de chargement ou absente hors ligne */
.thumbs img.attente { background: var(--line); min-height: 64px; }
.thumbs img.absente { background: var(--bg); outline: 1px dashed var(--line); }

/* Lot R2 : fiche intervention en étapes */
.frise { display: flex; gap: 6px; margin: 12px 0 4px; }
.frise span { flex: 1; text-align: center; font-size: .82rem; font-weight: 600; padding: 7px 4px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.frise span.fait { background: var(--green-soft); color: var(--green-ink); }
.frise span.cour { background: var(--blue-plein); color: #fff; }
/* R8 : jauges d'abonnement */
.jauge { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.jauge i { display: block; height: 100%; background: var(--amber); }
/* R9 : semaine en demi-journées */
.sem-grille { display: grid; gap: 2px; font-size: .72rem; margin-bottom: 12px; }
.sem-grille .h { color: var(--muted); text-align: center; padding: 2px 0; font-weight: 600; }
.sem-grille .grp { grid-column: 1 / -1; color: var(--muted); font-size: .72rem; text-transform: uppercase; border-bottom: 1px solid var(--line); margin-top: 6px; padding-bottom: 2px; }
.sem-grille .n { padding: 4px 4px 4px 0; font-size: .82rem; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sem-grille .n.discret { color: var(--muted); font-style: italic; }
.sem-grille .c { min-height: 38px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 2px; display: flex; flex-direction: column; gap: 2px; }
.sem-grille .c.ab { background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 4px, var(--card) 4px, var(--card) 8px); color: var(--muted); align-items: center; justify-content: center; font-size: .7rem; }
.sem-grille .c.trop { border-color: var(--amber); }
.sem-grille .c.survol, .sem-a-planifier.survol { outline: 2px dashed var(--blue); }
.k { display: block; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--muted); border-radius: 4px; padding: 1px 4px; font-size: .7rem; line-height: 1.2; color: var(--ink); text-decoration: none; cursor: grab; }
.k span { color: var(--muted); }
.k.cr { border-left-color: var(--red); } .k.ra { border-left-color: var(--amber); } .k.pl { border-left-color: var(--green); }
.conflit { color: var(--red); font-size: .75rem; }
.ap-ligne { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ap-ligne .k { min-width: 86px; }
@media print {
  body.impression-semaine main > *:not(#view), body.impression-semaine #view > *:not(.sem-grille) { display: none !important; }
  body.impression-semaine .sem-grille { font-size: 9pt; }
}
@page { size: auto; }
/* R4 : petites courbes (12 mois) */
.spark { display: flex; align-items: flex-end; gap: 3px; height: 34px; flex: 1; }
.spark i { display: block; flex: 1; background: var(--blue); opacity: .75; border-radius: 3px 3px 0 0; min-height: 2px; }
.spark.gris i { background: var(--muted); }
.spark i.vide { background: var(--line); }
/* R5 : étapes d'une pièce (demandée → … → remise) */
.suivi-piece { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 2px; }
.suivi-piece span { font-size: .75rem; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.suivi-piece span.fait { background: var(--green-soft); color: var(--green); }
.suivi-piece span.cour { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
section.etape { margin-top: 14px; }
section.etape > h2 { margin-top: 6px; }
details.etape { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 0 12px; }
details.etape summary { padding: 11px 0; cursor: pointer; }
details.etape[open] { padding-bottom: 12px; }
.etape-actions { margin-top: 18px; }
h3.sous { font-size: .95rem; margin: 18px 0 8px; color: var(--muted); text-transform: none; }
.acts .chip.rare { display: none; }
.acts.tout .chip.rare { display: inline-block; }
.chip-plus { border: 1px dashed var(--line); background: transparent; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: .88rem; color: var(--muted); cursor: pointer; }
.acts.tout .chip-plus { display: none; }
.chip.arret input:checked + span { background: var(--red); border-color: var(--red); }
.chip.mal input:checked + span { background: var(--amber-vif); border-color: var(--amber-vif); }

/* ---------- Lot U1 : sections pliables, onglets, balayage (docs/MAQUETTES_U1.md §3 – §5) ---------- */
details.pli { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
details.pli > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; font-weight: 600; min-height: 48px; }
details.pli > summary::-webkit-details-marker { display: none; }
details.pli > summary::before { content: '▸'; color: var(--muted); transition: transform .15s; display: inline-block; }
details.pli[open] > summary::before { transform: rotate(90deg); }
details.pli > summary .pli-t { flex: 1; }
.pli-n { color: var(--muted); font-weight: 600; font-size: .9rem; }
.pli-c { padding: 0 14px 12px; }
.pli-c > .card { box-shadow: none; }
.pli-c > .card:last-child { margin-bottom: 0; }
.plis-tous { text-align: right; font-size: .85rem; color: var(--muted); margin: -4px 0 8px; }
button.lien { border: 0; background: none; padding: 4px 2px; color: var(--blue); font: inherit; cursor: pointer; }

nav.ong { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin: 4px 0 14px; position: sticky; top: var(--top-h); background: var(--bg); z-index: 5; }
nav.ong::-webkit-scrollbar { display: none; }
nav.ong a { padding: 10px 12px; white-space: nowrap; color: var(--muted); font-weight: 600; font-size: .92rem; border-bottom: 3px solid transparent; }
nav.ong a.on { color: var(--blue); border-bottom-color: var(--blue); }
.ong-n { font-size: .78rem; background: var(--line); color: var(--muted); border-radius: 99px; padding: 1px 7px; margin-left: 2px; }
nav.ong a.on .ong-n { background: var(--blue-soft); color: var(--blue); }

.sw { position: relative; margin-bottom: 10px; }
.sw > .card { margin-bottom: 0; position: relative; z-index: 1; transition: transform .15s ease-out; touch-action: pan-y; }
.sw-fond { position: absolute; inset: 0; border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; padding: 0 18px; font-weight: 700; visibility: hidden; }
.sw.vers-d .sw-fond { visibility: visible; background: var(--blue-plein); color: #fff; }
.sw.vers-g .sw-fond { visibility: visible; background: var(--amber-soft); color: var(--amber); }
.sw.vers-d .sw-lg, .sw.vers-g .sw-ld { visibility: hidden; }
.sw.sw-attente > .card { opacity: .55; }
.sw-boutons { display: none; }
@media (hover: hover) and (pointer: fine) {
  .sw-boutons { position: absolute; right: 10px; bottom: 10px; z-index: 2; gap: 6px; }
  .sw:hover .sw-boutons { display: flex; }
}
#toast-annuler { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabs-h) + var(--safe-b) + 80px); z-index: 60; display: none; align-items: center; gap: 16px;
  background: var(--nuit); color: #fff; padding: 10px 14px; border-radius: 12px; box-shadow: 0 8px 22px rgba(0,0,0,.25); font-size: .92rem; }
#toast-annuler.show { display: flex; }
#toast-annuler button { border: 0; background: none; color: var(--orange); font: inherit; font-weight: 700; cursor: pointer; padding: 6px 4px; }
@media (min-width: 900px) { #toast-annuler { bottom: 90px; } }
@media (prefers-reduced-motion: reduce) {
  details.pli > summary::before, .sw > .card { transition: none; }
}

/* ---------- Lot U2 : parc (docs/MAQUETTES_U2.md §1) ---------- */
.chip-filtre { display: inline-flex; align-items: center; gap: 4px; background: var(--blue-soft); color: var(--puce); border-radius: 99px; padding: 4px 10px; font-size: .82rem; font-weight: 600; }
details.comp { margin: -6px 0 10px 18px; }
details.comp > summary { cursor: pointer; color: var(--muted); font-size: .85rem; padding: 4px 0; list-style: none; }
details.comp > summary::-webkit-details-marker { display: none; }
details.comp[open] > summary { color: var(--blue); }
details.comp > .card { margin-bottom: 6px; }

/* ---------- Lot U3 : poste PC (docs/MAQUETTES_U3.md) ---------- */
@media (min-width: 900px) and (max-width: 1099px) { main { max-width: 1000px; } }
@media (min-width: 1100px) {
  main { max-width: 1600px; }
  .accueil-2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
}
.vue-choix { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.vue-choix a { padding: 4px 10px; font-size: .85rem; color: var(--muted); }
.vue-choix a.on { background: var(--blue-plein); color: #fff; }
.tbl-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
table.tbl { border-collapse: collapse; width: 100%; font-size: .88rem; }
table.tbl th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: pointer; user-select: none; position: sticky; top: 0; background: var(--card); }
table.tbl th.tri::after { content: ' ▾'; } table.tbl th.tri.inv::after { content: ' ▴'; }
table.tbl td { padding: 7px 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
table.tbl tr[data-ligne] { cursor: pointer; }
table.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }   /* lot DESIGN-1 */
table.tbl tr[data-ligne]:hover td { background: var(--surface-2); }
table.tbl td.coche, table.tbl th.coche { width: 28px; cursor: default; }
.barre-lot { position: sticky; top: calc(var(--top-h) + 4px); z-index: 6; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--nuit); color: #fff; border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.barre-lot .btn { min-height: 32px; }
.cal { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.cal table { border-collapse: collapse; width: 100%; font-size: .82rem; }
.cal th, .cal td { border-bottom: 1px solid var(--line-2); padding: 6px 4px; text-align: center; white-space: nowrap; }
.cal th:first-child, .cal td:first-child { text-align: left; padding-left: 10px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.cal .pt { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); cursor: pointer; }
.cal .pt.retard { background: var(--red); } .cal .pt.estime { background: repeating-linear-gradient(45deg, var(--blue), var(--blue) 3px, var(--blue-soft) 3px, var(--blue-soft) 6px); }
.cal tr.charge td { font-weight: 700; background: var(--bg); } .cal td.plein { color: var(--red); }
.cal tr.zone td { background: var(--bg); font-weight: 600; color: var(--muted); text-align: left; }
#impression { display: none; }
@media print {
  body.impression-bon > *:not(#impression) { display: none !important; }
  body.impression-bon #impression { display: block; }
  body.impression-bon { padding: 0; background: #fff; }
  .bon { page-break-after: always; font-size: 11pt; color: #000; }
  .bon:last-child { page-break-after: auto; }
}
.bon { padding: 10mm 12mm; }
.bon-tete { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #1A1F3B; padding-bottom: 6px; margin-bottom: 8px; }
.bon table { width: 100%; border-collapse: collapse; margin: 6px 0; }
.bon td, .bon th { border: 1px solid #999; padding: 5px 6px; text-align: left; vertical-align: top; }
.bon .ligne-vide { height: 22px; }
/* Lot M2 : gabarit commun des bons à signer (js/vues/bons.js) — aucun style en ligne */
.bon-logo { width: 28px; height: 28px; vertical-align: middle; }
.bon-ref { text-align: right; }
.bon-titre { font-size: 14pt; }
.bon-qr { text-align: center; min-width: 80px; }
.bon-qr2 { display: block; margin-top: 2px; }
.bon .bon-k { width: 24%; }
.bon-pre { white-space: pre-wrap; }
.bon-vide { display: inline-block; min-width: 48px; border-bottom: 1px solid #999; height: 14px; }
.bon-sign td { height: 40px; }
.bon .bon-signature { width: 32%; }
.bon-petit { font-size: 9pt; }
.bon-petit td, .bon-petit th { padding: 3px 4px; }
.bon-etiquette { max-width: 105mm; border: 1px dashed #666; padding: 4mm; }
@media print { .bon-petit { font-size: 8.5pt; } .bon-etiquette { page-break-after: always; } }

/* ---------- Lot L : « Autre » + Préciser (champ visible seulement si « Autre » est choisi) ---------- */
.precision { display: none; margin-top: 8px; }
.chips:has(input[value="autre"]:checked) + .precision, select:has(option[value="autre"]:checked) + .precision { display: block; }

/* Lot P3 (S-4) : écran du code de double authentification (js/vues/mfa.js), appli et console. Classes utilitaires (S-5). */
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.m0 { margin: 0; }
.mt8 { margin: 8px 0 0; }
.mt12 { margin-top: 12px; }
pre.doc-transmis { white-space: pre-wrap; font-size: .85rem; background: var(--surface-2); padding: 10px; border-radius: 8px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: .8rem; margin-top: 10px; }
.doc-table th, .doc-table td { border: 1px solid #ccc; padding: 4px 6px; text-align: left; vertical-align: top; }
li.bloc { display: block; }   /* lot B1 : ligne sur deux rangées */
.mfa ol { padding-left: 1.2em; } .mfa li { margin-bottom: 10px; }
.mfa-qr { background: #fff; padding: 10px; border-radius: 10px; display: inline-block; margin: 8px 0; }
.mfa-qr svg { display: block; width: 200px; height: 200px; }
.mfa-cle { display: block; margin-top: 4px; font-size: 1rem; letter-spacing: .05em; word-break: break-all; }
.mfa-form { gap: 10px; align-items: center; }
.mfa-code { font-size: 1.6rem; letter-spacing: .2em; max-width: 11rem; }

/* Lot N : navigation par niveaux et pastilles (docs/MAQUETTES_N.md §2) */
.mb8 { margin-bottom: 8px; }
.gap6 { gap: 6px; }
.fil { font-size: .9rem; color: var(--muted); margin: 4px 0 10px; line-height: 1.6; }
.fil b { color: var(--ink); }
.card.niveau .chevron { font-size: 1.3rem; color: var(--muted); margin-left: 6px; }
.card.niveau .badge { margin-left: 4px; }
.pastilles { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.chip-filtre.on { background: var(--blue-plein); color: #fff; }
.chip-filtre b { font-weight: 700; }

/* Lot N : sélecteur commun d'un équipement ou d'un article */
.btn.choix { display: block; width: 100%; text-align: left; font-weight: 500; }
dialog.selecteur .sel-corps { max-height: 60vh; overflow-y: auto; margin-top: 8px; }
.sel-ligne { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 4px; font: inherit; color: inherit; cursor: pointer; min-height: 48px; }
.sel-ligne:hover, .sel-ligne:focus-visible { background: var(--blue-soft); }
.sel-ligne .grow { flex: 1; min-width: 0; }
button.lien { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-decoration: underline; }
.sel-ligne .rouge { color: var(--red); }

/* Lot EXT : intervention confiée à une société */
.rouge { color: var(--red); }
.card.sous-traitance { border-left: 4px solid var(--blue); }
.card.sous-traitance .s { margin-top: 4px; }

/* Lot M3 : barre latérale PC par domaine (docs/MAQUETTES_M_PC.md §4.2, §4.5.6) */
@media (min-width: 900px) {
  .tabs.cote { overflow-y: auto; gap: 0; padding: 8px 8px 24px; }
  .tabs.cote a { padding: 7px 10px; font-size: .9rem; gap: 10px; }
  .tabs.cote a .ic { font-size: 1.05rem; width: 1.3rem; justify-content: center; }
  .tabs.cote a .ic .ico { width: 18px; height: 18px; }
  .tabs.cote a { color: var(--ink); }
  .tabs.cote a .ic { color: var(--muted); }
  .tabs.cote a:hover { background: var(--surface-2); }
  .tabs.cote a.on .ic { color: var(--blue); }
  .tabs.cote .nav-reduire .ico { width: 16px; height: 16px; margin-right: 6px; }
  .tabs.cote a .lib { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabs.cote .nav-dom { display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font: inherit;
    font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 10px 4px; }
  .tabs.cote .nav-dom::after { content: ' ▾'; }
  .tabs.cote .nav-dom.ferme::after { content: ' ▸'; }
  .tabs.cote .nav-sep { display: block; border-top: 1px solid var(--line); margin: 10px 6px 6px; }
  .tabs.cote .nav-n { font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 99px; padding: 1px 7px; }
  .tabs.cote .nav-n.alerte { color: #fff; background: var(--red); }
}
@media (min-width: 900px) and (max-width: 1099px) {
  body { padding-left: 64px; }
  .tabs.cote { width: 64px; padding: 8px 6px; }
  .tabs.cote a { justify-content: center; padding: 9px 0; position: relative; }
  .tabs.cote a .lib, .tabs.cote .nav-dom { display: none; }
  .tabs.cote .nav-n { position: absolute; top: 2px; right: 2px; font-size: .65rem; padding: 0 5px; }
}

/* Lot M3 : tableau de bord de pilotage PC (docs/MAQUETTES_M_PC.md §4.5) */
.pil-sous { font-weight: 400; }
.pil-bloc { margin-bottom: 12px; }
.pil-titre { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 1rem; margin: 0 0 8px; }
.pil-titre .small { font-weight: 400; }
.pil-n { font-size: .85rem; padding: 1px 9px; border-radius: 99px; background: var(--green-soft); color: var(--green); }
.pil-n.alerte { background: var(--red); color: #fff; }
.pil-arrets { border-left: 4px solid var(--red); }
.pil-arret .pil-carre { color: var(--red); margin-right: 8px; }
.pil-arret { align-items: flex-start; }
.pil-grille { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 1100px) { .pil-grille { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } main:has(.pil-grille) { max-width: 1320px; } }
.pil-dec { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.pil-dec a { display: flex; align-items: baseline; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; color: inherit; font-size: .85rem; }
.pil-dec a b { font-size: 1.1rem; color: var(--blue); min-width: 1.4em; }
.pil-dec a.zero { color: var(--muted); }
.pil-dec a.zero b { color: var(--muted); font-weight: 400; }
.pil-rep li { padding: 5px 0; gap: 8px; align-items: center; }
.pil-rep li .grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pil-rep li .btn.sm { padding: 3px 9px; font-size: .78rem; min-height: 0; white-space: nowrap; }
.pil-arrets .lines li { padding: 6px 0; }
.pil-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pil-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .78rem; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.pil-table td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pil-table tr:last-child td { border-bottom: 0; }
.pil-c { display: inline-block; min-width: 2em; text-align: center; font-weight: 700; border-radius: 6px; padding: 1px 6px; }
.pil-c.alerte { background: var(--red-soft); color: var(--red); }
.pil-c.ambre { background: var(--amber-soft); color: var(--amber); }
.pil-c.bleu { background: var(--blue-soft); color: var(--blue); }
.pil-c.vide { color: var(--muted); font-weight: 400; }
.pil-obj { font-weight: 700; }
.pil-obj.ok { color: var(--green); }
.pil-obj.proche { color: var(--amber); }
.pil-obj.sous { color: var(--red); }
.pil-obj.gris { color: var(--muted); font-weight: 400; }
.pil-per { margin-left: auto; display: inline-flex; gap: 4px; }
.pil-per a { font-size: .78rem; font-weight: 400; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.pil-per a.on { background: var(--blue-plein); color: #fff; border-color: var(--blue-plein); }
.filtres-adresse { margin: 0 0 8px; }

/* Lot M3 bis : mécanisme commun des tables (docs/MAQUETTES_M_PC.md §11.2) */
/* Lot NAV : un seul défilement vertical (la page) ; le tableau ne défile qu'en largeur. */
@media (min-width: 900px) { .tbl-wrap { overflow-x: auto; } }
table.tbl th { z-index: 2; }
table.tbl th .th-f { margin-left: 4px; border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; font-size: .8rem; padding: 0 3px; border-radius: 4px; }
table.tbl th .th-f:hover { background: var(--blue-soft); }
table.tbl th .th-f.on { color: #fff; background: var(--blue-plein); }
table.tbl tr.tgrp td { background: var(--blue-soft); font-weight: 650; cursor: pointer; }
.barre-lot .btn.blanc { color: #fff; }
.col-ordre li { gap: 6px; align-items: center; }
.col-ordre .btn.sm { min-height: 0; padding: 2px 9px; }
.pil-une { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pil-arrets .lines li { padding: 4px 0; align-items: center; }
.pil-arrets .btn.sm { padding: 3px 9px; min-height: 0; font-size: .8rem; }
.pil-dec { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.pil-dec { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.pil-dec a { padding: 4px 8px; font-size: .8rem; }
.pil-table th { white-space: nowrap; }
.pil-table td { padding: 4px 6px; }
.pil-bloc .pil-titre { margin-bottom: 4px; }

/* Lot M5 : téléphone « général plié d'abord » (docs/MAQUETTES_M_PC.md §13) */
.card.en-arret { border-left: 4px solid var(--red); }
.carte-arret { color: var(--red); font-weight: 650; margin: 0 0 4px; }
.tournee-emp { margin: 10px 0 4px; font-size: .9rem; color: var(--muted); font-weight: 650; }

/* Lot CPT : Énergie › Compteurs (arbre principal → sous-compteurs) */
.cpt-niv1 { padding-left: 18px; } .cpt-niv2 { padding-left: 36px; } .cpt-niv3 { padding-left: 54px; } .cpt-niv4 { padding-left: 72px; }

/* Lot NAV (docs/MAQUETTES_NAV.md) : tableau pleine largeur, panneau de fiche, retour, barre réduite */
.retour-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; }
.retour-bar .fil { margin: 0; }
.panneau-tete { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 6px; background: var(--bg); padding: 8px 0; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.panneau-tete .btn.sm { min-height: 0; padding: 4px 10px; }
.fil-panneau { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.panneau-fond { display: none; }
.zone-liste a.card.sel, .zone-liste .sw:has(a.sel) > .card, .zone-liste tr.sel td, .zone-liste a.sel { box-shadow: inset 3px 0 0 var(--blue); background: var(--blue-soft); }
@media (min-width: 1100px) {
  main:has(.grille-panneau) { max-width: none; }
  .grille-panneau { display: grid; grid-template-columns: minmax(0, 1fr) var(--panneau-l, 45%); gap: 18px; align-items: start; }
  .zone-liste { min-width: 0; }
  .panneau { position: sticky; top: calc(var(--top-h) + 8px); max-height: calc(100vh - var(--top-h) - 16px); overflow: auto; padding: 0 6px 16px 14px; border-left: 1px solid var(--line); min-width: 0; }
  .panneau-bord { position: absolute; left: -5px; top: 0; bottom: 0; width: 9px; cursor: col-resize; }
  .panneau-bord:hover { background: var(--blue-soft); }
  body.nav-reduite { padding-left: 64px; }
  body.nav-reduite .tabs.cote { width: 64px; padding: 8px 6px; }
  body.nav-reduite .tabs.cote a { justify-content: center; padding: 9px 0; position: relative; }
  body.nav-reduite .tabs.cote a .lib, body.nav-reduite .tabs.cote .nav-dom { display: none; }
  body.nav-reduite .tabs.cote .nav-n { position: absolute; top: 2px; right: 2px; font-size: .65rem; padding: 0 5px; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .panneau { position: fixed; top: var(--top-h); right: 0; bottom: 0; width: 85%; z-index: 31; overflow: auto; background: var(--bg); padding: 0 14px 16px; box-shadow: -8px 0 24px rgba(0, 0, 0, .18); }
  .panneau-fond { display: block; position: fixed; inset: var(--top-h) 0 0 0; z-index: 30; background: rgba(26, 31, 59, .28); }
  .panneau-bord { display: none; }
}
@media (min-width: 900px) {
  .tabs.cote .nav-reduire { margin: 14px 6px 0; border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; font-size: .8rem; text-align: left; padding: 6px 10px; border-radius: 8px; }
  .tabs.cote .nav-reduire:hover { background: var(--blue-soft); }
}

/* ---------- Lot DESIGN-1 : densité « bureau » (PC avec souris, ≥ 1 100 px) ----------
   Une seule condition : le téléphone, la tablette et les écrans tactiles gardent les tailles « doigt ».
   Presque toutes les tailles de texte sont en rem : la taille de base (14 px) les réduit d'un coup. */
@media (min-width: 1100px) and (any-pointer: fine) {
  html { font-size: 14px; }
  :root { --radius: 12px; --nav-l: 216px; }
  h1 { font-size: 1.36rem; letter-spacing: -.01em; margin: 2px 0 12px; }
  h2 { font-size: 1rem; }
  .btn { min-height: 34px; padding: 0 14px; border-radius: 8px; }
  .btn.sm { min-height: 28px; padding: 0 10px; }
  input[type=text], input[type=search], input[type=number], input[type=date], input[type=datetime-local],
  input[type=email], input[type=password], input[type=url], input[type=tel], select { min-height: 34px; padding: 6px 10px; border-radius: 8px; }
  textarea { min-height: 72px; padding: 8px 10px; border-radius: 8px; }
  .chip span { padding: 5px 12px; min-height: 30px; }
  .card { padding: 10px 14px; margin-bottom: 8px; box-shadow: var(--ombre-1); }
  details.pli > summary { padding: 9px 12px; }
  table.tbl th { padding: 7px 10px; background: var(--surface-2); }
  table.tbl td { padding: 6px 10px; }
  table.tbl tr[data-ligne]:hover td { background: var(--surface-2); }
  .tabs.cote a { padding: 6px 10px; gap: 8px; font-size: .93rem; border-radius: 8px; }
  .tabs.cote a .ic .ico { width: 16px; height: 16px; }
  main { padding: 18px 24px 0; }
  .barre-lot .btn { min-height: 28px; }
}

.etiquette-posee { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
/* Lot TERRAIN-2 : page publique d'alerte (alerte.html), sans barre ni menu de l'appli */
body.page-alerte { padding: 0; }
.alerte-tete { background: var(--nuit); background-image: var(--zellige-nuit); color: #fff; padding: 18px 16px 22px; }
.alerte-logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.2rem; letter-spacing: -.02em; }
.alerte-sous { display: block; margin-top: 6px; color: #C9CCE0; font-size: .85rem; }
.alerte-corps { max-width: 560px; margin: 0 auto; padding: 16px; }
.alerte-carte { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--ombre-1); }
.alerte-carte h1 { margin-top: 0; }
.alerte-groupe { border: 0; padding: 0; margin: 14px 0 6px; }
.alerte-groupe legend { font-weight: 600; margin-bottom: 8px; }
.alerte-piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.alerte-liste { margin-top: 10px; }
.alerte-choix { flex-direction: column; align-items: flex-start; text-align: left; height: auto; padding: 8px 12px; }
.alerte-ok h1 { color: var(--green); }
body.sans-motif .alerte-tete { background-image: none; }
/* Lot TERRAIN-1 : parcours d'intervention du terrain */
.parcours { display: flex; flex-direction: column; gap: 10px; }
.parcours-frise { margin: 0; }
.btn-geant { min-height: 56px; font-size: 1.05rem; }
.gros-boutons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gros-boutons .btn { min-height: 64px; flex-direction: column; gap: 4px; font-size: .9rem; }
.gros-boutons .btn .ico { width: 22px; height: 22px; }
details.voir-plus > summary { font-weight: 600; }
/* Lot TERRAIN-1 : cases des missions (fiche membre) */
.check-mission { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.check-mission:last-of-type { border-bottom: 0; }
.check-mission input { width: 20px; height: 20px; }
/* ---------- Lot INSTALL : motif zellige, pastilles de la connexion, installation ---------- */
.cnx-gauche { background-image: var(--zellige-nuit); }
.top { background-image: var(--zellige-nuit); }
.list-empty { background-image: var(--zellige-clair); }
body.sans-motif .cnx-gauche, body.sans-motif .top, body.sans-motif .list-empty { background-image: none; }
.cnx-pastilles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cnx-pastilles span { font-size: .72rem; font-weight: 600; color: #C9CCE0; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); border-radius: 99px; padding: 4px 10px; }
.cnx-pastilles span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #34D399; margin-right: 6px; vertical-align: 1px; }
.btn .ico { width: 1.15em; height: 1.15em; }
.cnx-installer { width: 100%; margin-top: 4px; }
.install-bandeau { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabs-h) + var(--safe-b) + 12px); z-index: 40;
  display: flex; gap: 8px; align-items: center; background: var(--card); color: var(--ink); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; box-shadow: var(--ombre-2); font-size: .9rem; }
.install-bandeau .ico { color: var(--blue); }
@media (min-width: 900px) { .install-bandeau { left: auto; right: 24px; bottom: 24px; max-width: 460px; } }
@media print { .top, .list-empty { background-image: none !important; } .install-bandeau { display: none !important; } }

/* Lot SIMPLE : carte « Décisions », ligne de suivi, file une par une (docs/MAQUETTES_SIMPLE.md §4) */
.decisions-carte .t { font-weight: 600; }
.decisions-n { font-size: 1.6rem; color: var(--blue); }
.decisions-carte .lines { margin: 6px 0 10px; }
.decisions-carte .lines li { padding: 2px 0; border: 0; min-height: 0; }
.suivi-ligne { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin: 4px 0 12px; }
.suivi-ligne a { text-decoration: none; }
.decision-constat { font-size: 1.05rem; margin: 10px 0; }
.decision-actions .btn { flex: 1 1 30%; min-height: 48px; }
.decision-bas { text-align: center; margin-top: 14px; }
.maintenant-titre { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.servir-quoi { font-size: 1.1rem; }
.servir-actions .btn { flex: 1 1 30%; min-height: 48px; }
.aide-pli summary { cursor: pointer; display: inline-block; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; }
.ong-plus { position: relative; display: inline-block; }
.ong-plus summary { cursor: pointer; list-style: none; padding: 8px 12px; }
.ong-plus-menu { position: absolute; z-index: 20; right: 0; display: flex; flex-direction: column; min-width: 180px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(15, 18, 34, .18); padding: 4px; }
.nouveautes { border-left: 4px solid var(--blue); }
.nouveautes ul { margin: 6px 0 0; padding-left: 18px; }

/* Lot ESSAI : « Bien démarrer », bilan d'essai (docs/MAQUETTES_ESSAI.md) */
.demarrage { border-left: 4px solid var(--blue); }
.demarrage-etapes li { padding: 3px 0; border: 0; min-height: 0; }
.demarrage-etapes li.fait { color: var(--muted); }
.bilan-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.bilan-tuile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.bilan-tuile b { font-size: 1.6rem; color: var(--blue); }

/* Lot CHECK : check-lists — une ligne par point, rien de chargé (docs/MAQUETTES_CHECK.md §11) */
.ck-oblig { color: var(--red); font-weight: 700; }
.ck .ck-lignes li { align-items: center; gap: 8px; }
.ck-champ { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.ck-b { min-width: 40px; }
.ck-b.on.vert { background: var(--green); border-color: var(--green); color: #fff; }
.ck-b.on.rouge { background: var(--red); border-color: var(--red); color: #fff; }
.ck-na.on { background: var(--line); }
.ck-num { width: 84px; }
.ck-txt { width: 140px; }
.ck-champ select { max-width: 150px; }
.ck-anomalie { background: var(--red-soft); }
.ck-photo svg { width: 14px; height: 14px; vertical-align: -2px; }
.ck-ed input, .ck-ed select { width: 100%; margin: 2px 0; }
.ck-ed-mes { display: flex; gap: 4px; }
.ck-ed-cases label { display: block; white-space: nowrap; }
.ck-ed-act { white-space: nowrap; }
.u-c-green { color: var(--green) !important; }
@media (max-width: 760px) {
  .ck-ed thead { display: none; }
  .ck-ed tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .ck-ed td { display: block; border: 0; padding: 0; }
  .ck-ed td:first-child { grid-column: 1 / -1; }
  .ck-ed td:nth-child(3) { grid-column: 1 / -1; }
  .ck-ed-cases { display: flex !important; gap: 12px; align-items: center; }
  .ck-ed-act { text-align: right; }
}

/* Lot SÉCU : consignation */
.secu-eq svg, .warn svg, .info svg { width: 16px; height: 16px; vertical-align: -3px; }

/* Lot PERTES */
.pertes-barre { color: var(--blue); letter-spacing: -1px; font-size: .8rem; }
.pertes-spark { font-family: monospace; color: var(--blue); letter-spacing: 1px; }
@media print { .no-print { display: none !important; } }

/* Lot STOCK : bon imprimé */
.print-only { display: none; }
@media print { .print-only { display: block; } }

/* Lot STOCK (2/2) : comptoir */
.comptoir-q { font-size: 1.1rem; padding: 12px; margin-bottom: 12px; }
.comptoir-carte { display: flex; gap: 14px; align-items: flex-start; }
.comptoir-photo { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; flex-shrink: 0; background: var(--line-2); }
.comptoir-photo.vide { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.comptoir-photo.vide svg { width: 40px; height: 40px; }
@media (max-width: 600px) { .comptoir-carte { flex-direction: column; } .comptoir-photo { width: 100%; height: 160px; } }

/* Lot DOC : résumé de la machine, dossier imprimable */
.resume-machine { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-top: 12px; }
.resume-machine .card { margin: 0; }
.dossier h3 { margin-top: 18px; }

/* Lot CONFIG : menu Configuration en cascade, « + » dans les formulaires */
.champ-plus select { flex: 1; min-width: 0; }
.casc .casc-ligne { gap: 6px; align-items: center; }
.casc-pli { width: 26px; min-width: 26px; height: 26px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 0; }
ul.casc > li.casc-p1 { padding-left: 24px; } ul.casc > li.casc-p2 { padding-left: 48px; } ul.casc > li.casc-p3 { padding-left: 72px; } ul.casc > li.casc-p4 { padding-left: 96px; }
ul.casc > li.casc-p0 { font-weight: 600; }
.casc-n { white-space: nowrap; }
@media (max-width: 599px) { .casc-txt { display: none; } }

/* Lot L1 : Pilotage › Zones réduit sur téléphone (Zone, Arrêts, Attente) */
@media (max-width: 599px) { .pil-zones th:nth-child(n+4), .pil-zones td:nth-child(n+4) { display: none; } }
.pil-bloc { overflow-x: auto; min-width: 0; }   /* L1 : un tableau du Pilotage trop large défile dans sa carte */
.pil-grille > div { min-width: 0; }

/* Lot L6b : états (docs/MAQUETTES_L6.md §5-§6) */
#bandeau-etat { font-size: .85rem; padding: 6px 16px; text-align: center; }
#bandeau-etat.hidden { display: none; }
#bandeau-etat.hors { background: var(--amber-soft); color: var(--ink); }
#bandeau-etat.lecture { background: var(--amber-soft); color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--amber-vif); }
body.charge::before { content: ''; position: fixed; top: 0; left: 0; height: 3px; width: 40%; background: var(--orange); z-index: 80; animation: charge 1.1s ease-in-out infinite; }
@keyframes charge { 0% { left: -40%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) { body.charge::before { animation: none; left: 0; width: 100%; opacity: .6; } }
.marque-envoi.attente { background: var(--line); color: var(--muted); }
.bandeau-envoi { margin: 0 0 10px; }
.bandeau-envoi.refusee .btn { margin-left: 6px; }
.refus-non-lus { border-left: 4px solid var(--red); }
.interdit { opacity: .45; }
.list-empty .actions { justify-content: center; }
@media print { #bandeau-etat, .bandeau-envoi { display: none !important; } }

/* Lot L7a : cloche et notifications */
.cloche { position: relative; }
.cloche-n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--orange); color: #fff; font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; }
.cloche-n.urgent { background: var(--red); }
.notifs li.notif a { color: inherit; text-decoration: none; display: block; }
.notifs li.lue { opacity: .6; }
.notifs li.urgent b { color: var(--red); }
.notif-point { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 6px; vertical-align: middle; }

/* Lot L7a (TERRAIN-3) : frise de suivi sur la page d'alerte */
.alerte-suivi { margin: 8px 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--blue-soft); }
.frise { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.frise li { position: relative; padding-left: 18px; }
.frise li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* Lot UX-A §4 : « Qui » des interventions (toutes, mon équipe, les miennes), au-dessus des états. */
.qui-ots { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 8px; font-size: .9rem; }
.qui-ots a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; }
.qui-ots a.on { background: var(--blue-soft); border-color: var(--blue); color: var(--ink); font-weight: 600; }
.ong-plus summary.on { font-weight: 600; }
.ong-plus summary { white-space: nowrap; }

/* Lot UX-B : sous-titre de la fiche intervention, choix « Pièce », prochaine étape d'un achat. */
.ot-sous-titre { margin: -4px 0 8px; }
h1 .dot { vertical-align: middle; }
.choix-liste { display: flex; flex-direction: column; gap: 8px; }
.btn.choix { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-align: left; height: auto; min-height: 56px; padding: 8px 14px; gap: 2px; }
.btn.choix .choix-t, .btn.choix .choix-s { display: block; }
.btn.choix .choix-s { font-weight: 400; opacity: .85; }
.etape-suivante-carte .etape-suivante { font-size: 1rem; }

/* Lot UX-C (docs/MAQUETTES_UX_C.md) : bandeau de démo (§1), repère du clavier jamais caché (§2), pastille de démo (§3). */
.bandeau-demo .actions { margin-top: 8px; gap: 6px; }
.bandeau-demo.court { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; padding-top: 6px; padding-bottom: 6px; }
.bandeau-demo.court .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bandeau-demo.court .btn { flex: none; }
.bandeau-demo .btn.sm { min-height: 32px; }
html { scroll-padding-top: calc(var(--top-h) + 8px); scroll-padding-bottom: calc(var(--tabs-h) + var(--safe-b) + 8px); }
@media (min-width: 900px) { html { scroll-padding-bottom: 8px; } }
.sync.demo { background: var(--bg); color: var(--muted); }
.top .sync.demo { background: rgba(255,255,255,.1); color: #fff; }

/* Lot C2-a (docs/MAQUETTES_C1.md §2, §6) : brouillon de bon gardé sur l'appareil, état du bon. */
.brouillon-bon { margin: 4px 0 10px; }
.etat-bon { margin: 0 0 10px; }

/* Lot C1-a (docs/MAQUETTES_C1.md §2, §3) : recevoir une livraison — une ligne par article, saisie au clavier sur PC. */
.rec-entete .f { margin-top: 8px; }
.rec-lignes .rec-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; align-items: end; }
.rec-ligne .rec-art { grid-column: 1 / -1; }
.rec-ligne .rec-q { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.rec-ligne .rec-q input { min-height: 44px; font-size: 16px; }
.rec-ligne .rec-motif { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.rec-ligne .rec-res-ot { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; font-size: 14px; }
.rec-ligne .rec-err:empty { display: none; }
@media (min-width: 900px) {
  .rec-lignes .rec-ligne { grid-template-columns: minmax(220px, 2fr) minmax(90px, 120px) minmax(90px, 120px); }
  .rec-ligne .rec-art { grid-column: auto; }
  .rec-ligne .rec-q input { min-height: 36px; font-size: 14px; }
}
.rec-ligne .rec-q input, .rec-ligne .rec-motif input { font-weight: 400; }

/* Lot MB-1 : poste magasin (ordinateur) — liseré d'état, filtres en cascade, chiffres du panneau */
table.tbl tr.lis-rouge td:first-child { box-shadow: inset 4px 0 0 var(--red); }
table.tbl tr.lis-ambre td:first-child { box-shadow: inset 4px 0 0 var(--amber-vif); }
table.tbl tr.lis-bleu td:first-child { box-shadow: inset 4px 0 0 var(--blue); }
.poste-tete { gap: 12px; align-items: center; flex-wrap: wrap; }
.poste-tete h1 { margin: 0; }
.poste-q { max-width: 420px; flex: 1 1 280px; margin: 0; }
.poste-bon summary.btn { list-style: none; }
.poste-bon summary.btn::-webkit-details-marker { display: none; }
.poste-outils { flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.poste-filtres { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.poste-f { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.poste-f select { width: auto; min-width: 120px; max-width: 220px; padding: 4px 8px; margin: 0; }
.chip-filtre.poste-p { border: 0; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 600; }
.poste-chiffres { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 6px 0 0; }
.poste-corps table.tbl th { white-space: normal; vertical-align: bottom; padding: 7px 6px; }
.poste-corps table.tbl td { max-width: 200px; padding: 7px 6px; }

/* ---------- Lot VISAGE (v110) : le visage de l'« Atelier » sur le moteur de référence ---------- */
.surtitre { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 6px 0 0; }
h1.grand { font-size: 1.75rem; line-height: 1.12; letter-spacing: -.02em; margin: 6px 0 4px; }
.chapeau { color: var(--muted); margin: 0 0 14px; }
.card.a-traiter { border-radius: 20px; padding: 16px; }
.a-traiter .qui { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--blue); }
.a-traiter h2 { font-size: 1.3rem; margin: 2px 0 10px; letter-spacing: -.01em; }
.traiter { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; margin-bottom: 8px; background: var(--bg); color: var(--ink); min-height: 56px; }
.traiter b { display: block; }
.traiter .s { display: block; }
.traiter .va { color: var(--blue); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.traiter.rouge { background: var(--red-soft); border-color: var(--red); }
.traiter.rouge b { color: var(--red); }
.a-traiter .btn.block { margin-top: 6px; }
.card.accompagne { border-radius: 20px; }
a.card.geste { display: flex; align-items: center; gap: 10px; border-radius: 20px; color: var(--ink); }
a.card.geste b { display: block; font-size: 1.08rem; }
a.card.geste .s { display: block; }
a.card.geste .ico { width: 26px; height: 26px; color: var(--blue); }
h2.a-vous { font-size: 1.2rem; }
h2.a-vous .muted { font-weight: 500; font-size: 1rem; }
.sous-carte { margin: -4px 0 12px 4px; }
.tiles.visage > .tile:nth-child(-n+3) { display: none; }   /* le compte est dans « À vous de jouer », la semaine en lien */
h2.a-vous { display: flex; align-items: baseline; gap: 8px; }
h2.a-vous .lien-semaine { margin-left: auto; font-size: .9rem; font-weight: 600; }
/* Lot VISAGE 2 (v111) : idées reprises de la maquette de recette — pastilles, retour, interrupteurs */
.tabs a { position: relative; }
.nav-pastille { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: var(--sur-ink); font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center; }
.tabs.cote .nav-pastille { display: none; }
.retour-ecran { border: 0; background: none; color: var(--blue); font-weight: 600; padding-left: 0; }
.check input[type=checkbox] { appearance: none; -webkit-appearance: none; order: 2; margin-left: auto; flex: none; width: 46px; height: 27px; border-radius: 14px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; }
.check input[type=checkbox]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: var(--sur-ink); box-shadow: 0 1px 2px rgb(0 0 0 / .3); transition: transform .15s; }
.check input[type=checkbox]:checked { background: var(--blue-plein); }
.check input[type=checkbox]:checked::after { transform: translateX(19px); }
.check input[type=checkbox]:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.check input[type=checkbox]:disabled { opacity: .5; cursor: default; }
/* v114 : affecter une demande en un appui depuis l'accueil du Pilote */
.traiter.bloc { display: block; padding: 0; }
.traiter.bloc .tete { display: flex; align-items: center; gap: 10px; padding: 11px 13px 6px; color: var(--ink); }
.traiter.bloc .affecter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 2px 13px 11px; }
.traiter.bloc .affecter .btn { background: var(--card); min-height: 40px; }
