/* STRIMA — bureau vivant + salle des plans. Direction artistique reprise du site vitrine (09_WEB/strima-site) :
   « plan d'exécution » — papier blanc, encre, rouge du logo #EE3124, Barlow, losange du logo comme signe d'état.
   Chargée après styles.css : redéfinit les jetons de couleur et de police pour toute l'application. */
:root {
  --paper: #ffffff; --raised: #ffffff; --sunken: #f7f7f7; --rule: #e4e4e4; --rule-strong: #8c9198;
  --ink: #161616; --ink-2: #44474d; --ink-3: #5f6670;
  --mark: #d42a1e; --mark-wash: #fdecea; --mark-deep: #a81f15; --brand: #ee3124;
  --live: #1d6b3a; --live-wash: #e6f4ea; --bad: #8f1d12; --bad-wash: #fbe3df; --warn: #7a5200; --warn-wash: #f8edd5;
  --sec-ops: #2c4a66; --sec-ops-wash: #edf2f7; --sec-dir: #1d6b3a; --sec-dir-wash: #e6f4ea; --sec-meet: #6b4e1f; --sec-meet-wash: #f6efe2;
  --serif: "Barlow", system-ui, sans-serif; --sans: "Barlow", system-ui, sans-serif; --cote: "Barlow Semi Condensed", "Barlow", sans-serif;
  --wall: #161616; --floor: #ffffff; --floor-2: #f7f7f7; --furniture: #d9dce0; --furniture-ink: #8c9198;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121212; --raised: #1a1a1a; --sunken: #0c0c0c; --rule: #2c2c2c; --rule-strong: #6d737b;
    --ink: #f2f2f2; --ink-2: #c9ccd1; --ink-3: #a3a9b1; --mark: #ff5a4e; --mark-wash: #3a1512; --mark-deep: #ff8178; --brand: #ff5a4e;
    --live: #6fcf8f; --live-wash: #12291a; --bad: #ff8a7d; --bad-wash: #3a1712; --warn: #e8b55a; --warn-wash: #33260d;
    --wall: #e9e9e9; --floor: #161616; --floor-2: #1d1d1d; --furniture: #34383d; --furniture-ink: #6d737b;
  }
}
:root[data-theme="dark"] {
  --paper: #121212; --raised: #1a1a1a; --sunken: #0c0c0c; --rule: #2c2c2c; --rule-strong: #6d737b;
  --ink: #f2f2f2; --ink-2: #c9ccd1; --ink-3: #a3a9b1; --mark: #ff5a4e; --mark-wash: #3a1512; --mark-deep: #ff8178; --brand: #ff5a4e;
  --live: #6fcf8f; --live-wash: #12291a; --bad: #ff8a7d; --bad-wash: #3a1712; --warn: #e8b55a; --warn-wash: #33260d;
  --wall: #e9e9e9; --floor: #161616; --floor-2: #1d1d1d; --furniture: #34383d; --furniture-ink: #6d737b;
}
html, body { font-family: var(--sans); font-size: 16px; }
h1, h2, h3 { font-family: var(--serif); letter-spacing: 0; }
h1 { font-weight: 700; font-size: 28px; }
.brand { font-family: var(--cote); letter-spacing: 0.14em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.brand img { width: 14px; height: 19px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; }
.cote { font-family: var(--cote); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.losange { display: inline-block; width: 9px; height: 12px; flex: none; background: var(--brand);
  clip-path: polygon(39% 0, 0 14%, 0 43%, 39% 57%, 39% 29%, 79% 14%, 39% 0, 59% 100%, 100% 86%, 100% 57%, 59% 43%, 59% 71%, 20% 86%); }
.view-switch { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: 999px; overflow: hidden; }
.view-switch a { padding: 6px 14px; text-decoration: none; font-size: 14px; color: var(--ink-2); }
.view-switch a.on { background: var(--ink); color: var(--paper); }
.notice { border-left: 4px solid var(--warn); background: var(--warn-wash); color: var(--ink); padding: 10px 14px; border-radius: var(--radius-sm); margin: 0 0 18px; font-size: 14px; }
.notice.sim { border-color: var(--mark); background: var(--mark-wash); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ─── BUREAU : les murs sont les interstices de la grille ─────────────────── */
.bureau { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.bureau.has-panel { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); }
.office { --w: 7px; background: var(--wall); padding: var(--w); gap: var(--w); display: grid; border-radius: 2px;
  grid-template-columns: 1fr 1.3fr 1fr;
  grid-template-areas: "direction chantiers chantiers" "assistant plans finance" "journal plans finance" "ateliers ateliers ateliers"; }
.room.r-ateliers { grid-area: ateliers; min-height: 0; }
.room { background: var(--floor); position: relative; padding: 12px 14px 12px; min-height: 170px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.room:nth-child(even) { background: var(--floor-2); }
.room.r-direction { grid-area: direction; } .room.r-chantiers { grid-area: chantiers; } .room.r-plans { grid-area: plans; }
.room.r-finance { grid-area: finance; } .room.r-assistant { grid-area: assistant; } .room.r-journal { grid-area: journal; }
.room.on { box-shadow: inset 0 0 0 3px var(--mark); }
.room h2 { font: 600 13px/1.2 var(--cote); text-transform: uppercase; letter-spacing: 0.1em; display: flex; align-items: center; gap: 8px; margin: 0; }
.room h2 a { text-decoration: none; }
.room h2 a::after { content: ""; position: absolute; inset: 0; z-index: 0; } /* toute la pièce est cliquable */
.room h2 .tag { margin-left: auto; font: 600 12px var(--cote); letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: var(--mark); color: #fff; text-transform: none; }
.room .scene { width: 100%; height: auto; display: block; margin: 2px 0 0; position: relative; z-index: 1; pointer-events: none; }
.room .scene a { pointer-events: auto; } /* les objets sont cliquables ; le vide de la scène ouvre la pièce */
.room ul.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; position: relative; z-index: 1; }
.room ul.facts a, .room ul.facts > li > span { font-size: 14px; text-decoration: none; display: grid; grid-template-columns: minmax(2.4em, auto) 1fr; gap: 8px; align-items: baseline; }
.room ul.facts b { white-space: nowrap; }
.room ul.facts a:hover { text-decoration: underline; }
.room ul.facts b { font-variant-numeric: tabular-nums; min-width: 1.6em; text-align: right; }
.room ul.facts .hot b { color: var(--mark); }
.room .scene a { cursor: pointer; }
.door { position: absolute; background: var(--floor); z-index: 1; }
.door.s { bottom: calc(-1 * var(--w, 7px)); height: var(--w, 7px); width: 46px; left: 30px; }
.door.e { right: calc(-1 * var(--w, 7px)); width: var(--w, 7px); height: 46px; top: 40px; }
.office .door::after { content: ""; position: absolute; border: 1px solid var(--furniture-ink); }
.office .door.s::after { width: 44px; height: 44px; bottom: 6px; left: 0; border-radius: 0 44px 0 0; border-left: 0; border-bottom: 0; opacity: .5; }
.office .door.e::after { width: 44px; height: 44px; right: 6px; top: 0; border-radius: 0 0 0 44px; border-right: 0; border-top: 0; opacity: .5; }
.cartouche { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 18px; align-items: center; border: 2px solid var(--wall); border-top: 0; padding: 8px 14px; font-size: 13px; }
.cartouche .t { font: 700 14px var(--cote); letter-spacing: .12em; text-transform: uppercase; display: flex; gap: 8px; align-items: center; }
.cartouche .legend { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-2); }
.cartouche .legend span { display: inline-flex; gap: 6px; align-items: center; }
.leg-on, .leg-off { display: inline-block; width: 9px; height: 12px; clip-path: polygon(39% 0, 0 14%, 0 43%, 39% 57%, 39% 29%, 79% 14%, 39% 0, 59% 100%, 100% 86%, 100% 57%, 59% 43%, 59% 71%, 20% 86%); }
.leg-on { background: var(--brand); } .leg-off { background: var(--furniture-ink); }

/* objets SVG de la scène (vue de dessus) */
.scene text { font-family: var(--cote); font-size: 11px; fill: var(--ink-2); }
.scene .lbl { font-weight: 600; letter-spacing: .04em; fill: var(--ink-3); }
.scene .big { font-size: 15px; font-weight: 700; fill: var(--ink); }
.f-desk { fill: var(--furniture); stroke: var(--furniture-ink); stroke-width: 1; }
.f-chair { fill: var(--floor); stroke: var(--furniture-ink); stroke-width: 1; }
.f-screen { fill: var(--ink); }
.f-board { fill: var(--floor); stroke: var(--ink-2); stroke-width: 1.2; }
.f-body { fill: var(--ink-2); } .f-head { fill: var(--furniture); stroke: var(--ink-2); stroke-width: 1.5; }
.f-diamond { fill: var(--furniture-ink); }
.f-diamond.on { fill: var(--brand); }
.f-person.is-alert .f-diamond { animation: bob 1.8s ease-in-out infinite; transform-box: fill-box; }
@keyframes bob { 50% { translate: 0 -2px; } }
.f-sheet { fill: var(--floor); stroke: var(--ink-2); stroke-width: 1; }
.f-sheet.hot { stroke: var(--mark); stroke-width: 1.6; }
.f-sheet.ok { stroke: var(--live); }
.f-sheet.empty { stroke-dasharray: 3 3; stroke: var(--furniture-ink); fill: none; }
.f-sheet.new { animation: arrive .6s var(--ease, ease-out) both; }
@keyframes arrive { from { translate: 0 -14px; opacity: 0; } }
.f-bar { fill: var(--furniture); } .f-bar.v { fill: var(--ink-2); } .f-bar.down { fill: var(--mark); } .f-bar.ok { fill: var(--live); }
.scene a:focus-visible rect, .scene a:hover .f-sheet { stroke: var(--mark); stroke-width: 2; }

/* panneau de détail d'une salle */
.panel { border: 2px solid var(--wall); background: var(--raised); padding: 16px 18px; position: sticky; top: 12px; max-height: calc(100vh - 60px); overflow: auto; }
.panel h2 { font-size: 22px; margin: 4px 0 2px; }
.panel h2:focus { outline: none; }
.panel h3 { font: 600 12px var(--cote); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: 18px 0 6px; }
.panel .close { float: right; text-decoration: none; font-size: 14px; }
.panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.panel li a, .panel li > span { display: flex; justify-content: space-between; gap: 10px; padding: 7px 8px; border-radius: var(--radius-sm); text-decoration: none; font-size: 14px; }
.panel li a:hover { background: var(--sunken); }
.cycle { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; margin: 6px 0; }
.cycle > div { background: var(--sunken); padding: 6px 6px 5px; font-size: 12px; text-align: center; border-top: 3px solid var(--rule-strong); }
.cycle > div.done { border-top-color: var(--live); }
.cycle b { display: block; font: 700 16px var(--cote); }
.role-card { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; padding: 8px 0; }
.role-card svg { width: 40px; height: 40px; }

/* ─── SALLE DES PLANS ─────────────────────────────────────────────────────── */
.piles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 18px; }
.piles a { border: 1px solid var(--rule); border-top: 4px solid var(--rule-strong); padding: 10px 12px; text-decoration: none; display: grid; gap: 2px; background: var(--raised); }
.piles a.hot { border-top-color: var(--mark); } .piles a.ok { border-top-color: var(--live); } .piles a.on { box-shadow: inset 0 0 0 2px var(--ink); }
.piles a b { font: 700 24px var(--cote); }
.upload { display: grid; grid-template-columns: minmax(160px, 220px) 1fr auto; gap: 10px; align-items: end; }
.upload label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-3); }
.upload input[type=file] { padding: 8px; border: 1px dashed var(--rule-strong); border-radius: var(--radius-sm); background: var(--sunken); width: 100%; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--rule-strong); white-space: nowrap; }
.status.hot { border-color: var(--mark); color: var(--mark-deep); background: var(--mark-wash); }
.status.ok { border-color: var(--live); color: var(--live); background: var(--live-wash); }
.status.warn { border-color: var(--warn); color: var(--warn); background: var(--warn-wash); }
.status.off { color: var(--ink-3); }
.conf { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; white-space: nowrap; border: 1px solid; }
.conf.faible { color: var(--mark-deep); border-color: var(--mark); background: var(--mark-wash); }
.conf.indeterminee { color: var(--warn); border-color: var(--warn); background: var(--warn-wash); }
.conf.moyenne { color: var(--ink-2); border-color: var(--rule-strong); }
.conf.elevee { color: var(--live); border-color: var(--live); background: var(--live-wash); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
.filters label { display: grid; gap: 3px; font-size: 12px; color: var(--ink-3); }
.filters select { min-width: 150px; }

.viewer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 18px; align-items: start; }
.pv-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.pv-tools .btn { padding: 5px 11px; }
.pv-tools .btn.on { background: var(--ink); color: var(--paper); }
.pv-stage { border: 2px solid var(--wall); background: #fff; overflow: auto; max-height: 72vh; position: relative; touch-action: pan-x pan-y; }
.pv-page { position: relative; width: calc(var(--z, 1) * 100%); }
.pv-page canvas, .pv-page img { display: block; width: 100%; height: auto; }
.pv-zones { position: absolute; inset: 0; }
.pv-zones.draw { cursor: crosshair; touch-action: none; }
.pv-zone { position: absolute; border: 2px solid var(--rule-strong); background: transparent; padding: 0; cursor: pointer; min-width: 6px; min-height: 6px; }
.pv-zone.faible { border-color: var(--mark); } .pv-zone.indeterminee { border-color: var(--warn); } .pv-zone.elevee { border-color: var(--live); }
.pv-zone.done { border-style: dashed; opacity: .55; }
.pv-zone.sel { box-shadow: 0 0 0 3px var(--ink), 0 0 0 9999px rgba(0, 0, 0, .12); z-index: 2; }
.pv-draft { position: absolute; border: 2px dashed var(--mark); background: rgba(238, 49, 36, .08); pointer-events: none; }
.pv-empty { padding: 40px; text-align: center; color: var(--ink-3); }
.mlist { border: 1px solid var(--rule); max-height: 300px; overflow: auto; margin-bottom: 12px; }
.mlist a { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 10px; border-bottom: 1px solid var(--rule); text-decoration: none; font-size: 14px; }
.mlist a.sel { background: var(--sunken); box-shadow: inset 4px 0 0 var(--mark); }
.mlist a .dim { grid-column: 1 / -1; font-size: 12px; }
.mcard { border: 2px solid var(--wall); padding: 14px 16px; background: var(--raised); }
.mcard h3 { font-size: 22px; font-family: var(--cote); font-weight: 700; margin: 0 0 4px; }
.crop { width: 100%; background: #fff; border: 1px solid var(--rule); margin: 8px 0; image-rendering: auto; display: block; }
.signals { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 5px; font-size: 13px; }
.signals li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; }
.signals .s { font-weight: 700; text-align: center; border-radius: 4px; font-size: 12px; line-height: 20px; height: 20px; }
.signals .s.p { color: var(--live); background: var(--live-wash); } .signals .s.m { color: var(--warn); background: var(--warn-wash); }
.signals .s.x { color: var(--mark-deep); background: var(--mark-wash); } .signals .s.n { color: var(--ink-3); background: var(--sunken); }
.mform { display: grid; gap: 8px; margin-top: 10px; }
.mform .row { gap: 8px; }
.mform label { display: grid; gap: 3px; font-size: 12px; color: var(--ink-3); }
.mform fieldset { border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 10px; margin: 0; display: grid; gap: 8px; }
.mform legend { font-size: 13px; font-weight: 600; padding: 0 4px; }
.live-region:empty { display: none; }
.live-region { margin: 8px 0; font-size: 14px; }

/* ─── BUREAU 3D ───────────────────────────────────────────────────────────── */
.b3 { position: relative; height: min(70vh, 680px); min-height: 420px; border: 2px solid var(--wall); background: #f7f7f7; overflow: hidden; }
.b3 > canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.b3-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.b3-labels > * { position: absolute; left: 0; top: 0; pointer-events: auto; white-space: nowrap; will-change: transform; }
.b3-labels a { text-decoration: none; color: #161616; }
.b3-pin { font: 700 12px var(--cote); letter-spacing: .08em; text-transform: uppercase; display: inline-flex; gap: 6px; align-items: center; background: #fff; padding: 5px 10px; border-radius: 999px; box-shadow: 0 3px 10px rgba(0,0,0,.14); } /* pas de position ici : le calque impose absolute */
.b3-pin::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; background: #fff; transform: translateX(-50%) rotate(45deg); box-shadow: 3px 3px 5px rgba(0,0,0,.08); z-index: -1; }
.b3-pin i, .b3-npc i { width: 8px; height: 11px; background: #ee3124; clip-path: polygon(39% 0, 0 14%, 0 43%, 39% 57%, 39% 29%, 79% 14%, 39% 0, 59% 100%, 100% 86%, 100% 57%, 59% 43%, 59% 71%, 20% 86%); }
.b3-pin.sel { background: #161616; color: #fff !important; } .b3-pin.sel::after { background: #161616; }
.b3-pin .tag { background: #ee3124; color: #fff; padding: 0 6px; border-radius: 999px; letter-spacing: .02em; text-transform: none; }
.b3-npc { display: grid; grid-template-columns: auto auto; gap: 0 6px; align-items: center; font: 600 12px/1.25 var(--cote); background: rgba(255,255,255,.94); border: 1px solid #c8ccd1; border-radius: 6px; padding: 3px 7px; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.b3-npc i { grid-row: span 2; background: #9aa0a6; }
.b3-npc.on i { background: #ee3124; } .b3-npc.on { border-color: #ee3124; }
.b3-npc .badge { font-weight: 600; font-size: 10.5px; color: #44474d; letter-spacing: .04em; text-transform: uppercase; }
.b3-npc.t-auto .badge { color: #1d6b3a; } .b3-npc.t-hors { opacity: .8; } .b3-npc.t-hors .badge { color: #69727d; }
.b3-npc .sum { display: none; grid-column: 2; font-weight: 500; color: #44474d; }
.b3-npc:hover .sum, .b3-npc:focus-visible .sum, .b3-npc.hot .sum { display: block; }
.b3-npc:hover, .b3-npc:focus-visible, .b3-npc.hot, .b3-pin:hover, .b3-pin:focus-visible, .b3-board:hover { z-index: 5; outline: 2px solid #ee3124; outline-offset: 1px; }
.b3-board { display: grid; font: 600 11px var(--cote); letter-spacing: .06em; text-transform: uppercase; background: #161616; color: #fff !important; padding: 5px 9px; border-radius: 3px; }
.b3-board.light { background: rgba(255,255,255,.95); color: #161616 !important; border: 1px solid #161616; }
.b3-board b { font: 700 16px var(--cote); letter-spacing: 0; text-transform: none; }
.b3-board span { font-weight: 500; text-transform: none; letter-spacing: 0; opacity: .85; }
.b3-pile, .b3-tick { display: grid; justify-items: center; font: 600 10.5px var(--cote); letter-spacing: .05em; text-transform: uppercase; color: #44474d; background: rgba(255,255,255,.85); padding: 1px 5px; border-radius: 3px; }
.b3-pile b { font: 700 18px var(--cote); color: #161616; } .b3-pile.on b { color: #ee3124; }
.b3-tick b { font: 700 12px var(--cote); color: #161616; }
.b3-tools { position: absolute; right: 10px; top: 10px; display: flex; gap: 4px; z-index: 6; }
.b3 { border-radius: 14px; }
/* bandeau « Suivi du pilote » : les 10 points de la grille de validation, l'étape en cours, le pourcentage, l'export */
.b3-stepper { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 6; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 8px 10px 8px 14px; box-shadow: 0 4px 16px rgba(0,0,0,.12); color: #161616; }
.b3-stepper ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.b3-stepper li a { display: flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; font: 600 12px var(--cote); text-decoration: none; color: #44474d; white-space: nowrap; }
.b3-stepper .dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #9aa0a6; display: inline-grid; place-items: center; font-size: 10px; line-height: 1; }
.b3-stepper li.done .dot { background: #1d6b3a; border-color: #1d6b3a; color: #fff; }
.b3-stepper li.warn .dot { background: #f8edd5; border-color: #7a5200; color: #7a5200; }
.b3-stepper li.off { opacity: .55; }
.b3-stepper li.cur a { background: #ee3124; color: #fff; } .b3-stepper li.cur .dot { border-color: #fff; }
.b3-stepper .pct { font: 700 16px var(--cote); }
.b3-stepper .round { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #161616; background: #fff; cursor: pointer; font-weight: 700; }
/* panneau contextuel : carte blanche arrondie posée sur la scène */
.bureau.is3d.has-panel { grid-template-columns: minmax(0, 1fr); position: relative; }
.bureau.is3d .panel { position: absolute; top: 12px; right: 12px; width: min(400px, 46%); max-height: calc(min(70vh, 680px) - 90px); border: 0; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.18); z-index: 8; }
ul.asks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.asks li { border: 1px solid var(--rule); border-radius: 10px; padding: 8px 10px; display: grid; gap: 6px; }
ul.asks li > a { display: grid; gap: 2px; text-decoration: none; padding: 0; }
ul.asks .btn { padding: 4px 12px; font-size: 13px; }
.b3-tools .btn { background: rgba(255,255,255,.95); color: #161616; border-color: #161616; padding: 5px 11px; }

@media (prefers-reduced-motion: reduce) {
  .f-person.is-alert .f-diamond, .f-sheet.new { animation: none; }
}
@media (max-width: 1180px) {
  .bureau.has-panel, .viewer { grid-template-columns: minmax(0, 1fr); }
  .panel { position: static; max-height: none; }
  .bureau.is3d .panel { width: min(380px, 48%); }
  .b3-stepper li:not(.cur) a { font-size: 0; gap: 0; padding: 4px; } /* tablette : les pastilles seules, l'étape en cours garde son nom */
}
@media (max-width: 900px) {
  .bureau.is3d .panel { position: static; width: auto; max-height: none; box-shadow: none; border: 2px solid var(--wall); }
  .office { grid-template-columns: 1fr 1fr; grid-template-areas: "direction direction" "chantiers chantiers" "plans plans" "assistant finance" "journal finance" "ateliers ateliers"; }
  .upload { grid-template-columns: 1fr; }
  .cartouche { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .office { grid-template-columns: 1fr; grid-template-areas: "direction" "chantiers" "plans" "finance" "assistant" "journal" "ateliers"; }
}
