/* =====================================================================
   Direction « Mr. Scrub » : encre marine sur papier crème,
   illustrations gravées, structure d'application iPhone 2026.
   ===================================================================== */
:root {
  --pervenche: #DCE7F0;        /* bleu brume : surfaces actives, sélection */
  --encre: #1D3A57;            /* encre marine du logo */
  --encre-profonde: #142B42;
  --lavande: #7C9DBB;          /* bleu lavé des illustrations */
  --brume: #EEF2F5;
  --lin: #FBF6EA;              /* papier crème */
  --blanc: #FFFDF8;            /* cartes */
  --texte-2: #556373;
  --trait: #ECE3CD;
  --trait-fort: #DDD2B8;
  --ambre-fond: #F6E3BE;
  --ambre-texte: #6E4300;
  --ambre: #C98A1B;
  --ambre-clair: #FBF0DA;
  --brique-fond: #F5DAD3;
  --brique-texte: #9C2F1E;
  --brique: #C0503E;
  --rayon: 22px;
  --rayon-s: 16px;
  --ombre: 0 10px 30px -18px rgba(29, 58, 87, 0.35);
  --police: -apple-system, BlinkMacSystemFont, 'Nunito Sans', system-ui, 'Segoe UI', sans-serif;
  --titre: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --nav-h: 96px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-bottom: 180px; scroll-padding-top: 24px; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--lin);
  color: var(--encre-profonde);
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--encre); font-weight: 700; }
a:hover { color: var(--encre-profonde); }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 800; }
h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
p { margin: 0; }
button, input, select, textarea { font-family: inherit; font-size: 16px; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--lavande); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--texte-2); }
.small { font-size: 14px; }
.xsmall { font-size: 13px; }
.strong { font-weight: 800; }
.danger-text { color: var(--brique-texte); }
.warn-text { color: var(--ambre-texte); }
.nowrap { white-space: nowrap; }
.boot { padding: 40px 20px; text-align: center; color: var(--texte-2); }
.pre { white-space: pre-line; }

/* ---------- Structure ---------- */
.shell { min-height: 100vh; }
.main { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 24px); }
.page { max-width: 760px; margin: 0 auto; padding: 16px 20px 0; }
.page.wide { max-width: 1180px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-l { display: flex; flex-direction: column; gap: 24px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.grow { flex: 1; min-width: 0; }
.gap-s { gap: 6px; }
.mt { margin-top: 16px; }
.mt-l { margin-top: 28px; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: inherit; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 12px; background: var(--encre); color: var(--pervenche);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex: none;
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.back {
  min-height: 48px; display: inline-flex; align-items: center; gap: 4px; text-decoration: none;
  color: var(--encre); font-weight: 800; margin-left: -8px; padding: 0 8px; border-radius: 12px;
}
.icon-btn {
  position: relative; width: 48px; height: 48px; border: none; border-radius: 16px; background: var(--brume);
  color: var(--encre); display: inline-flex; align-items: center; justify-content: center; flex: none; text-decoration: none;
}
.icon-btn .badge {
  position: absolute; top: 7px; right: 7px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--brique-texte); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.page-title { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 4px; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; color: var(--texte-2); }

/* ---------- Navigation ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(var(--nav-h) + var(--safe-b)); padding: 6px 6px calc(10px + var(--safe-b));
  background: var(--blanc); border-top: 1px solid var(--trait); display: flex;
}
.bottomnav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--texte-2); font-size: 12px; font-weight: 700; border-radius: 14px; min-width: 0;
}
.bottomnav a .ic { height: 30px; width: 56px; border-radius: 15px; display: flex; align-items: center; justify-content: center; position: relative; }
.bottomnav a[aria-current="page"] { color: var(--encre-profonde); font-weight: 800; }
.bottomnav a[aria-current="page"] .ic { background: var(--pervenche); }
.bottomnav .dot { position: absolute; top: 2px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--brique); }

.bottomnav .nav-brand { display: none; }
@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: 236px 1fr; }
  .bottomnav {
    position: sticky; top: 0; height: 100vh; flex-direction: column; justify-content: flex-start; gap: 4px;
    border-top: none; border-right: 1px solid var(--trait); padding: 20px 14px;
  }
  .bottomnav .nav-brand { display: flex; margin-bottom: 18px; }
  .bottomnav a { flex: none; flex-direction: row; justify-content: flex-start; gap: 10px; font-size: 15px; padding: 6px; }
  .bottomnav a .ic { width: 44px; }
  .main { padding-bottom: 40px; }
  .page { padding-top: 28px; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: var(--rayon-s); border: none;
  font-weight: 800; font-size: 16px; text-decoration: none; line-height: 1.1; text-align: center;
  background: var(--brume); color: var(--encre-profonde);
}
.btn.primary { background: var(--encre); color: #fff; }
.btn.primary:hover { background: var(--encre-profonde); color: #fff; }
.btn.tint { background: var(--pervenche); color: var(--encre-profonde); }
.btn.outline { background: transparent; border: 1.5px solid var(--lavande); color: var(--encre); }
.btn.ghost { background: transparent; color: var(--encre); }
.btn.danger { background: var(--brique-fond); color: var(--brique-texte); }
.btn.block { width: 100%; }
.btn.lg { min-height: 56px; border-radius: var(--rayon); font-size: 17px; }
.btn.sm { min-height: 40px; padding: 0 12px; font-size: 14px; border-radius: 12px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn.dashed { background: transparent; border: 1.5px dashed var(--lavande); color: var(--encre); min-height: 52px; }
.btn-row { display: flex; gap: 8px; }
.btn-row > * { flex: 1; }

/* ---------- Pastilles ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 800; padding: 4px 10px;
  border-radius: 999px; white-space: nowrap; line-height: 1.3;
}
.chip.prevu { border: 1.5px solid var(--lavande); color: var(--encre); padding: 3px 9px; }
.chip.en_cours { background: var(--pervenche); color: var(--encre-profonde); }
.chip.realise { background: var(--encre); color: #fff; }
.chip.partiel { background: var(--ambre-fond); color: var(--ambre-texte); }
.chip.impossible, .chip.urgent { background: var(--brique-fond); color: var(--brique-texte); }
.chip.annule { background: var(--brume); color: var(--texte-2); text-decoration: line-through; }
.chip.neutral { background: var(--brume); color: var(--encre); }
.chip.white { background: #fff; color: var(--encre-profonde); }
.chip.demo { background: var(--brume); color: var(--encre); font-weight: 700; font-size: 12px; }
.chip.a_traiter { border: 1.5px solid var(--lavande); color: var(--encre-profonde); padding: 3px 9px; }
.chip.en_traitement { background: var(--pervenche); color: var(--encre-profonde); }
.chip.resolu { background: var(--encre); color: #fff; }
.dot-s { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.dot-s.brique { background: var(--brique); }
.dot-s.encre { background: var(--encre); }
.dot-s.ambre { background: var(--ambre); }
.dot-s.lavande { background: var(--lavande); }

/* ---------- Listes ---------- */
.list { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; }
.list > * + * { border-top: 1px solid var(--brume); }
.list-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 56px; text-decoration: none;
  color: var(--encre-profonde); font-weight: 400; background: transparent; border: none; width: 100%; text-align: left;
}
a.list-item:hover, button.list-item:hover { background: #F6F7FB; }
.list-item .title { font-weight: 800; font-size: 15px; }
.list-item .sub { font-size: 14px; color: var(--texte-2); }
.list-item .chev { color: var(--lavande); flex: none; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; align-items: baseline; }
.kv .k { color: var(--texte-2); font-size: 15px; flex: none; max-width: 45%; }
.kv .v { font-weight: 700; font-size: 15px; text-align: right; overflow-wrap: anywhere; }
.plain-list { border-top: 1px solid var(--trait); }
.plain-list > * { border-bottom: 1px solid var(--trait); }

.panel { background: var(--blanc); border: 1px solid var(--trait); border-radius: 22px; padding: 16px; }
.panel.tint { background: var(--brume); border: none; }
.panel.peri { background: var(--pervenche); border: none; }
.panel.ink { background: var(--encre); color: #fff; border: none; }
.panel.ink a { color: #fff; }
.panel.ink a.btn.tint { color: var(--encre-profonde); }

.notice { border-radius: 16px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.notice.warn { background: var(--ambre-clair); border: 1px solid #EBCF97; color: var(--ambre-texte); }
.notice.error { background: var(--brique-fond); color: var(--brique-texte); }
.notice.info { background: var(--brume); color: var(--encre-profonde); }
.notice.internal { background: var(--ambre-clair); border: 1.5px dashed var(--ambre); color: var(--encre-profonde); flex-direction: column; gap: 4px; }
.notice svg { flex: none; margin-top: 1px; }

.empty { padding: 26px 16px; text-align: center; color: var(--texte-2); border: 1.5px dashed var(--trait-fort); border-radius: var(--rayon); }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .label { font-weight: 800; font-size: 15px; }
.field .hint { font-size: 13px; color: var(--texte-2); }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; border-radius: var(--rayon-s); border: 1.5px solid var(--trait-fort);
  background: var(--blanc); padding: 10px 14px; color: var(--encre-profonde);
}
textarea.input { min-height: 96px; resize: vertical; line-height: 1.45; }
.input:focus { border-color: var(--encre); outline: none; box-shadow: 0 0 0 3px var(--pervenche); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 420px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
fieldset { border: none; padding: 0; margin: 0; }
.form-section { border-top: 1px solid var(--trait); padding-top: 20px; }
.form-section > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.form-section > summary::-webkit-details-marker { display: none; }
.form-section[open] > summary .chev-d { transform: rotate(180deg); }
.checkline { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; }
.checkline input { width: 22px; height: 22px; accent-color: var(--encre); }
.daypick { display: flex; gap: 6px; flex-wrap: wrap; }
.daypick label { position: relative; }
.daypick input { position: absolute; opacity: 0; inset: 0; }
.daypick span {
  display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center;
  border: 1.5px solid var(--trait-fort); font-weight: 800; background: #fff;
}
.daypick input:checked + span { background: var(--encre); color: #fff; border-color: var(--encre); }
.daypick input:focus-visible + span { outline: 3px solid var(--lavande); }

.seg { display: flex; background: var(--brume); border-radius: 16px; padding: 4px; gap: 4px; }
.seg button, .seg a {
  flex: 1; min-height: 44px; border: none; border-radius: 12px; background: transparent; color: var(--encre);
  font-weight: 700; font-size: 15px; text-decoration: none; display: flex; align-items: center; justify-content: center; padding: 0 6px;
}
.seg label { flex: 1; min-height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: var(--encre); cursor: pointer; position: relative; padding: 0 6px; }
.seg label input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--lavande); }
.seg label:has(input:checked),
.seg [aria-pressed="true"], .seg [aria-current="true"], .seg [aria-selected="true"] { background: #fff; color: var(--encre-profonde); font-weight: 800; box-shadow: var(--ombre); }

.switch { width: 56px; height: 32px; border-radius: 16px; border: none; background: var(--trait-fort); position: relative; flex: none; padding: 0; }
.switch::after { content: ''; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch[aria-checked="true"] { background: var(--encre); }
.switch[aria-checked="true"]::after { left: 28px; }

.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--trait); overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button {
  min-height: 46px; display: flex; align-items: center; text-decoration: none; color: var(--texte-2);
  font-weight: 700; font-size: 15px; white-space: nowrap; border: none; background: none; padding: 0;
}
.tabs [aria-selected="true"] { color: var(--encre-profonde); font-weight: 800; box-shadow: inset 0 -3px 0 var(--encre); }

/* ---------- Fil du jour ---------- */
.rail { display: flex; flex-direction: column; }
.stop { display: flex; gap: 12px; }
.stop .time { width: 48px; flex: none; font-size: 15px; font-weight: 800; color: var(--texte-2); padding-top: 2px; }
.stop .track { width: 24px; flex: none; display: flex; flex-direction: column; align-items: center; }
.stop .node { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--lavande); background: var(--lin); flex: none; display: flex; align-items: center; justify-content: center; }
.stop .line { flex: 1; width: 3px; margin-top: 2px; background: repeating-linear-gradient(var(--lavande) 0 6px, transparent 6px 11px); }
.stop.done .node { background: var(--encre); border-color: var(--encre); }
.stop.done .line { background: var(--encre); border-radius: 2px; }
.stop.partial .node { background: var(--ambre); border-color: var(--ambre); }
.stop.impossible .node { background: var(--brique); border-color: var(--brique); }
.stop.current .node { background: var(--pervenche); border-color: var(--encre); }
.stop.cancelled { opacity: 0.6; }
.stop:last-child .line { display: none; }
.stop .body { flex: 1; min-width: 0; padding-bottom: 22px; display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: inherit; font-weight: 400; }
.stop .body .title { font-size: 16px; font-weight: 800; }
.stop .body .where { font-size: 15px; color: var(--encre); }
.stop .body .meta { font-size: 14px; color: var(--texte-2); }
.stop .live { background: var(--pervenche); border-radius: 20px; padding: 16px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.stop .live .clock { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.now-line { display: flex; gap: 12px; align-items: center; margin: 0 0 8px; }
.now-line .t { width: 48px; flex: none; font-size: 13px; font-weight: 800; color: var(--encre); }
.now-line .bar { flex: 1; display: flex; align-items: center; gap: 8px; }
.now-line .ring { width: 24px; display: flex; justify-content: center; }
.now-line .ring span { width: 12px; height: 12px; border-radius: 50%; background: var(--lin); border: 3px solid var(--encre); }
.now-line .hr { flex: 1; height: 2px; background: var(--lavande); }
.now-line .lbl { font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--encre); }
.who { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 8px; background: var(--brume); color: var(--encre); }

/* ---------- Immeuble en coupe ---------- */
.coupe { display: flex; align-items: flex-end; gap: 6px; }
.coupe .levels { width: 36px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 800; color: var(--texte-2); text-align: right; }
.coupe .levels div { height: 22px; line-height: 22px; }
.coupe .levels .rdc { height: 34px; line-height: 34px; }
.coupe .levels .ss { height: 30px; line-height: 30px; }
.coupe .bldg { flex: 1; max-width: 260px; display: flex; flex-direction: column; gap: 4px; }
.coupe .roof { height: 14px; margin: 0 6px -4px; border-radius: 8px 8px 0 0; background: var(--lavande); }
.coupe .floor { display: flex; gap: 4px; height: 22px; }
.coupe .cell { flex: 1; background: var(--pervenche); border-radius: 4px; position: relative; }
.coupe .shaft { width: 18px; background: var(--encre); border-radius: 3px; flex: none; }
.coupe .rdc { display: flex; gap: 4px; height: 34px; }
.coupe .hall { flex: 1; background: #fff; border-radius: 6px; box-shadow: inset 0 0 0 2px var(--encre); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.coupe .ground { height: 3px; background: var(--encre); border-radius: 2px; margin: 0 -4px; }
.coupe .basement { display: flex; gap: 4px; height: 30px; }
.coupe .zone { flex: 1; border-radius: 6px; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 4px; }
.coupe .zone.in { background: var(--pervenche); }
.coupe .zone.out { border: 2px dashed var(--lavande); color: var(--texte-2); background: repeating-linear-gradient(135deg, transparent 0 6px, #DDE1EF 6px 8px); }
.coupe .side { width: 76px; display: flex; flex-direction: column; gap: 4px; }
.coupe .yard { height: 34px; border-radius: 6px; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; background: repeating-radial-gradient(circle at 4px 4px, var(--pervenche) 0 2px, #fff 2px 7px); box-shadow: inset 0 0 0 2px var(--pervenche); }
.coupe .issue-dot { position: absolute; right: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brique); box-shadow: 0 0 0 3px #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; font-weight: 700; color: var(--encre); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.progress { height: 8px; border-radius: 4px; background: var(--brume); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--encre); border-radius: 4px; }

/* ---------- Semaine des bacs ---------- */
.binweek { display: flex; flex-direction: column; gap: 6px; }
.binweek .r { display: flex; align-items: center; gap: 4px; }
.binweek .lab { width: 96px; flex: none; font-size: 13px; font-weight: 800; line-height: 1.25; }
.binweek .lab span { display: block; font-weight: 600; color: var(--texte-2); }
.binweek .days { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.binweek .days > span { min-height: 30px; border-radius: 8px; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.1; padding: 2px; }
.binweek .head > span { min-height: auto; color: var(--texte-2); font-size: 12px; }
.binweek .out { background: var(--encre); color: #fff; }
.binweek .col { border: 2px dashed var(--lavande); color: var(--encre); }
.binweek .in { background: var(--pervenche); color: var(--encre-profonde); }

/* ---------- Passage ---------- */
.visit-head { background: var(--encre); color: #fff; padding: 12px 20px 22px; border-radius: 0 0 28px 28px; }
.visit-head a, .visit-head .back { color: #fff; }
.visit-head .sub { color: var(--pervenche); font-weight: 700; font-size: 14px; }
.visit-head .timer { font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.visit-head .timer.small { font-size: 34px; }
.visit-head .btn.tint { color: var(--encre-profonde); }
.quick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.quick a, .quick button { flex: none; min-height: 44px; }
.task { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px; border: none; background: #fff; text-align: left; }
.task .box { width: 30px; height: 30px; flex: none; border-radius: 10px; border: 2.5px solid var(--lavande); display: flex; align-items: center; justify-content: center; }
.task[aria-pressed="true"] .box { background: var(--encre); border-color: var(--encre); }
.task[aria-pressed="true"] .lbl { color: var(--texte-2); text-decoration: line-through; font-weight: 600; }
.task .lbl { font-weight: 700; }
.sticky-foot {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: #fff; border-top: 1px solid var(--trait);
  padding: 12px 20px calc(14px + var(--safe-b)); display: flex; flex-direction: column; gap: 6px;
}
.sticky-foot .inner { max-width: 760px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 960px) { .sticky-foot { left: 236px; } }

.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 600px) { .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.photo { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.photo .img {
  aspect-ratio: 1; border-radius: 14px; background: var(--brume); position: relative; overflow: hidden; border: none; padding: 0;
  display: flex; align-items: center; justify-content: center; color: var(--texte-2); font-size: 12px; font-weight: 700;
}
.photo .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .img.pending { box-shadow: inset 0 0 0 3px var(--ambre); }
.photo .img.failed { box-shadow: inset 0 0 0 3px var(--brique); }
.photo .tag { position: absolute; left: 6px; top: 6px; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 8px; background: #fff; color: var(--encre-profonde); }
.photo .tag.apres { background: var(--encre); color: #fff; }
.photo .tag.degat { background: var(--brique-texte); color: #fff; }
.photo .tag.justif { background: var(--ambre-texte); color: #fff; }
.photo .cap { font-size: 12px; font-weight: 700; color: var(--encre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo .cap.pending { color: var(--ambre-texte); font-weight: 800; }

/* ---------- Planning ---------- */
.weekstrip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.weekstrip a {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-radius: 14px;
  text-decoration: none; color: var(--encre); font-weight: 700; font-size: 12px; min-height: 56px;
}
.weekstrip a b { font-size: 17px; font-weight: 800; }
.weekstrip a[aria-current="true"] { background: var(--encre); color: #fff; }
.weekstrip a.today b { text-decoration: underline; text-underline-offset: 3px; }
.weekstrip .count { font-size: 11px; font-weight: 800; color: var(--texte-2); }
.weekstrip a[aria-current="true"] .count { color: var(--pervenche); }
.weekcols { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.weekcols .col { background: #fff; border: 1px solid var(--trait); border-radius: 16px; padding: 8px; min-height: 160px; display: flex; flex-direction: column; gap: 6px; }
.weekcols .col h3 { font-size: 14px; }
.vchip { display: block; text-decoration: none; color: var(--encre-profonde); font-weight: 400; border-radius: 10px; padding: 6px 8px; font-size: 13px; background: var(--brume); border-left: 0; }
.vchip b { display: block; font-size: 13px; }
.vchip.realise { background: var(--encre); color: #fff; }
.vchip.partiel { background: var(--ambre-fond); }
.vchip.impossible { background: var(--brique-fond); }
.vchip.en_cours { background: var(--pervenche); }
.vchip.annule { opacity: .55; text-decoration: line-through; }
.vchip.exception { box-shadow: inset 0 0 0 2px var(--lavande); }

/* ---------- Feuilles (dialogues) ---------- */
dialog.sheet {
  border: none; padding: 0; margin: auto auto 0; width: 100%; max-width: 640px; max-height: 92vh;
  border-radius: 26px 26px 0 0; background: var(--lin); color: inherit;
}
@media (min-width: 700px) { dialog.sheet { margin: auto; border-radius: 26px; } }
dialog.sheet::backdrop { background: rgba(38, 43, 69, 0.45); }
.sheet-body { padding: 20px 20px calc(20px + var(--safe-b)); display: flex; flex-direction: column; gap: 14px; overflow-y: auto; max-height: 92vh; }
.sheet-grip { width: 44px; height: 5px; border-radius: 3px; background: var(--trait-fort); margin: 0 auto 4px; }

/* ---------- Divers ---------- */
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-b) + 14px); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 480px); pointer-events: none; }
.toast { background: var(--encre-profonde); color: #fff; border-radius: 14px; padding: 12px 16px; font-weight: 700; font-size: 15px; box-shadow: 0 6px 24px rgba(38,43,69,.25); pointer-events: auto; }
.toast.error { background: var(--brique-texte); }
.toast.warn { background: var(--ambre-texte); }
.netbar { position: sticky; top: 0; z-index: 30; background: var(--ambre-fond); color: var(--ambre-texte); font-weight: 800; font-size: 14px; padding: 8px 20px; text-align: center; }
.login { max-width: 440px; margin: 0 auto; padding: 48px 20px; display: flex; flex-direction: column; gap: 22px; }
.login .brand-mark { width: 56px; height: 56px; border-radius: 18px; font-size: 22px; }
.mono { font-variant-numeric: tabular-nums; }
.code-reveal { font-size: 18px; font-weight: 800; letter-spacing: 2px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.fig-line { font-size: 15px; line-height: 1.55; }
.hr { height: 1px; background: var(--trait); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border-radius: 14px; overflow: hidden; }
table.data th, table.data td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--brume); vertical-align: top; }
table.data th { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--texte-2); background: #F6F7FB; }
.scroll-x { overflow-x: auto; border-radius: 14px; border: 1px solid var(--trait); }
@media print {
  .bottomnav, #toasts, .no-print, .netbar { display: none !important; }
  body { background: #fff; }
  .main { padding: 0; }
}
.demobar { background: var(--encre-profonde); color: var(--pervenche); font-size: 13px; font-weight: 800; text-align: center; padding: 6px 16px; }
.demo-pick { display: grid; gap: 10px; }
.demo-pick button { text-align: left; justify-content: flex-start; min-height: 64px; padding: 10px 16px; gap: 12px; background: var(--blanc); border: 1.5px solid var(--trait-fort); }
.demo-pick button:hover { border-color: var(--encre); }
.seg a, .seg button { white-space: nowrap; }
@media (max-width: 400px) { .seg a, .seg button { font-size: 14px; padding: 0 4px; } }


/* =====================================================================
   Mr. Scrub : composants
   ===================================================================== */
body { color: var(--encre); }
h1, h2, .serif { font-family: var(--titre); font-weight: 400; letter-spacing: -0.005em; }
h1 { font-size: 36px; line-height: 1.04; }
h2 { font-size: 23px; line-height: 1.15; }
h3 { font-weight: 800; }
.kicker { font-size: 11px; letter-spacing: .16em; color: var(--texte-2); }
.muted { color: var(--texte-2); }
.list, .panel { border: none; box-shadow: 0 0 0 1px var(--trait); background: var(--blanc); }
.list { border-radius: var(--rayon); }
.list > * + * { border-top-color: #F2EBDA; }
.panel.tint { background: var(--brume); box-shadow: none; }
.panel.peri { background: var(--pervenche); box-shadow: none; }
.panel.ink { background: var(--encre); color: var(--lin); box-shadow: none; }
.btn { border-radius: 999px; background: var(--blanc); box-shadow: 0 0 0 1px var(--trait); color: var(--encre); }
.btn.primary { background: var(--encre); color: var(--lin); box-shadow: 0 10px 22px -12px rgba(29,58,87,.7); }
.btn.primary:hover { background: var(--encre-profonde); color: var(--lin); }
.btn.tint { background: var(--pervenche); box-shadow: none; color: var(--encre); }
.btn.outline { background: transparent; box-shadow: none; border: 1.5px solid var(--lavande); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.danger { background: var(--brique-fond); box-shadow: none; }
.btn.dashed { box-shadow: none; border-radius: var(--rayon); }
.icon-btn { border-radius: 50%; background: var(--blanc); box-shadow: 0 0 0 1px var(--trait); color: var(--encre); }
.chip.realise, .chip.resolu { background: var(--encre); color: var(--lin); }
.chip.en_cours, .chip.en_traitement { background: var(--pervenche); color: var(--encre); }
.chip.white { background: var(--blanc); color: var(--encre); }
.input, select.input, textarea.input { background: var(--blanc); border-color: var(--trait-fort); border-radius: var(--rayon-s); }
.input:focus { border-color: var(--encre); box-shadow: 0 0 0 3px var(--pervenche); }
.seg { background: #EFE7D4; border-radius: 999px; }
.seg button, .seg a, .seg label { border-radius: 999px; }
.seg [aria-pressed="true"], .seg [aria-current="true"], .seg [aria-selected="true"], .seg label:has(input:checked) { background: var(--blanc); box-shadow: 0 1px 4px rgba(29,58,87,.15); }
.tabs [aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--encre); }
.empty { border-color: var(--trait-fort); }
.notice.info { background: var(--brume); }
.toast { background: var(--encre); border-radius: 999px; text-align: center; }
.demobar { background: var(--encre); color: #DCE7F0; }
.progress { background: #E6EDF3; }

/* Médaillon illustré (comme le cadre du logo) */
.med { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--blanc);
  box-shadow: inset 0 0 0 1.5px var(--encre), inset 0 0 0 4px var(--blanc), inset 0 0 0 5px #C9D6E2;
  display: inline-flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.med img { width: 70%; height: 70%; object-fit: contain; }
.med.sm { width: 36px; height: 36px; }
.med.lg { width: 64px; height: 64px; }
.med.dim { opacity: .55; }
.med.live { box-shadow: inset 0 0 0 2.5px var(--encre), inset 0 0 0 5px var(--blanc), inset 0 0 0 6px var(--lavande), 0 0 0 6px rgba(124,157,187,.25); }
.brand-mark { background: var(--blanc); box-shadow: inset 0 0 0 1.5px var(--encre), inset 0 0 0 4px var(--blanc), inset 0 0 0 5px #C9D6E2; border-radius: 50%; color: var(--encre); }
.brand-mark img { width: 82%; height: 82%; object-fit: contain; }

/* Fil du jour en médaillons */
.stop .time { padding-top: 13px; font-size: 14px; }
.stop .track { width: 46px; }
.stop .track .med { margin-bottom: -2px; }
.stop .line { width: 2px; background: repeating-linear-gradient(var(--lavande) 0 5px, transparent 5px 10px); }
.stop.done .line { background: var(--encre); }
.stop .body { padding-top: 4px; }
.stop.done .body .title { text-decoration: line-through; text-decoration-color: var(--lavande); color: var(--texte-2); }
.stop .live { background: var(--encre); color: var(--lin); border-radius: var(--rayon); }
.stop .live .chip.white { background: transparent; color: #C9D6E2; padding: 0; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.stop .live .btn.primary { background: var(--lin); color: var(--encre); box-shadow: none; }
.stop .live .icon-btn { background: rgba(251,246,234,.14) !important; color: var(--lin); box-shadow: none; }
.now-line .ring span { border-color: var(--encre); }
.now-line .hr { background: var(--lavande); }

/* Carte « Ma journée » */
.daycard { display: flex; align-items: center; gap: 14px; background: var(--blanc); border-radius: 24px; padding: 18px 12px 18px 20px; box-shadow: 0 0 0 1px var(--trait), var(--ombre); overflow: hidden; }
.daycard .big { font-family: var(--titre); font-size: 40px; line-height: 1; }
.daycard img { width: 104px; height: 104px; object-fit: contain; flex: none; }
.todo-strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px 6px; }
.todo-strip a { flex: none; width: 168px; background: var(--blanc); border-radius: 18px; padding: 12px 14px; box-shadow: 0 0 0 1px var(--trait);
  text-decoration: none; color: var(--encre); display: flex; flex-direction: column; gap: 4px; font-weight: 400; }
.todo-strip .lab { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; }
.todo-strip .t { font-size: 14px; font-weight: 800; line-height: 1.25; }
.todo-strip .s { font-size: 12.5px; color: var(--texte-2); line-height: 1.3; }

/* Actions rondes (fiche bâtiment) */
.actions { display: flex; }
.actions > * { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--encre);
  text-decoration: none; background: none; border: none; padding: 0; font-family: inherit; cursor: pointer; }
.actions .rb { width: 54px; height: 54px; border-radius: 50%; background: var(--blanc); box-shadow: 0 0 0 1px var(--trait); display: flex; align-items: center; justify-content: center; }
.actions .rb.go { background: var(--encre); color: var(--lin); box-shadow: 0 10px 22px -12px rgba(29,58,87,.7); }
.section-title { display: flex; align-items: center; gap: 10px; }
.section-title img { width: 36px; height: 36px; object-fit: contain; }

/* En-tête du passage */
.visit-head { background: var(--encre); border-radius: 0 0 32px 32px; position: relative; overflow: hidden; }
.visit-head .deco { position: absolute; right: -24px; top: 56px; width: 170px; height: 170px; object-fit: contain; opacity: .16; filter: invert(1) brightness(1.4); pointer-events: none; }
.visit-head h1 { font-size: 29px; color: var(--lin); }
.visit-head .sub { color: #C9D6E2; }
.visit-head .back, .visit-head .btn.ghost { color: var(--lin); }
.visit-head .back { background: rgba(251,246,234,.14); border-radius: 999px; margin-left: 0; padding: 0 14px 0 8px; min-height: 40px; }
.visit-head .timer { font-size: 56px; }
.visit-head .icon-btn { background: rgba(251,246,234,.18) !important; color: var(--lin) !important; box-shadow: inset 0 0 0 1px rgba(251,246,234,.3); }
.visit-head .btn.tint { background: var(--lin); color: var(--encre); }
.task { background: var(--blanc); }
.task .box { border-radius: 50%; border-color: var(--lavande); width: 28px; height: 28px; border-width: 2px; }
.task[aria-pressed="true"] .box { background: var(--encre); border-color: var(--encre); color: var(--lin); }
.task[aria-pressed="true"] .box svg { stroke: var(--lin); width: 16px; height: 16px; }
.quick .btn { background: var(--blanc); }
.photo .img { border-radius: 18px; background: #E6EDF3; }
.photo .tag { background: var(--blanc); }
.photo .tag.apres { background: var(--encre); color: var(--lin); }
.sticky-foot { background: linear-gradient(rgba(251,246,234,0), var(--lin) 28%); border-top: none; }
.sticky-foot .btn.primary { min-height: 58px; font-size: 17px; }

/* Barre d'onglets flottante en verre + bouton « + » */
@media (max-width: 959px) {
  .bottomnav { left: 14px; right: 88px; bottom: calc(18px + var(--safe-b)); height: 64px; padding: 0 6px; border-radius: 32px; border-top: none;
    background: rgba(255,253,248,.74); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
    box-shadow: 0 0 0 1px rgba(29,58,87,.08), 0 14px 32px -12px rgba(29,58,87,.38); }
  .bottomnav.full { right: 14px; }
  .bottomnav a { font-size: 10.5px; gap: 2px; }
  .bottomnav a .ic { width: 50px; height: 30px; }
  .sticky-foot { bottom: 0; }
  #toasts { bottom: calc(100px + var(--safe-b)); }
}
.bottomnav a[aria-current="page"] .ic { background: var(--pervenche); }
.bottomnav a { color: var(--texte-2); }
.bottomnav a[aria-current="page"] { color: var(--encre); }
.fab { position: fixed; right: 14px; bottom: calc(18px + var(--safe-b)); z-index: 21; width: 64px; height: 64px; border-radius: 50%; border: none;
  background: var(--encre); color: var(--lin); box-shadow: 0 14px 28px -10px rgba(29,58,87,.65); display: flex; align-items: center; justify-content: center; text-decoration: none; }
@media (min-width: 960px) {
  .bottomnav { background: var(--lin); border-right: 1px solid var(--trait); }
  .fab { right: 28px; bottom: 28px; }
}

/* Connexion et portail client */
.login .logo { width: 220px; height: auto; align-self: center; }
.demo-pick button { background: var(--blanc); border: none; box-shadow: 0 0 0 1px var(--trait); border-radius: 20px; }
.demo-pick .brand-mark { width: 44px; height: 44px; flex: none; font-size: 14px; font-weight: 800; }
.client-head { background: transparent; padding: 18px 20px 0; }
.client-head .logo { height: 64px; width: auto; }
.helpcard { display: flex; gap: 12px; align-items: center; border-radius: 24px; background: var(--encre); color: var(--lin); padding: 18px; overflow: hidden; }
.helpcard .serif { font-size: 22px; line-height: 1.1; }
.helpcard .badge { width: 92px; height: 92px; border-radius: 50%; background: var(--lin); flex: none; display: flex; align-items: center; justify-content: center; }
.helpcard .badge img { width: 80px; height: 80px; object-fit: contain; }
.helpcard .btn.tint { background: var(--lin); align-self: flex-start; }
.helpcard .btn.outline { color: var(--lin); border-color: rgba(251,246,234,.4); }
.summary-serif { font-family: var(--titre); font-size: 25px; line-height: 1.2; }
.mascot-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 18px; color: var(--texte-2); }
.mascot-empty img { width: 110px; height: 110px; object-fit: contain; }
.visit-head > .stack { position: relative; z-index: 1; }
.sticky-foot { pointer-events: none; } .sticky-foot .inner, .sticky-foot button { pointer-events: auto; }
@media (max-width: 959px) { .bottomnav a { font-size: 10px; letter-spacing: -0.01em; } .bottomnav a .ic { width: 44px; } }

/* Galerie photos du portail client */
.gallery .strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.gallery .shot { flex: none; width: 112px; aspect-ratio: 3 / 4; border: none; padding: 0; border-radius: 12px; overflow: hidden; background: var(--brume); scroll-snap-align: start; cursor: zoom-in; }
.gallery .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 600px) { .gallery .shot { width: 140px; } }
.lightbox { position: fixed; inset: 0; z-index: 1000; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: none; background: #0E1622; display: flex; flex-direction: column; color: #fff; }
.lightbox::backdrop { background: rgba(14, 22, 34, .6); }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: calc(10px + env(safe-area-inset-top)) 12px 6px 18px; font-weight: 800; }
.lb-stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: none; background: rgba(255,255,255,.14); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-cap { text-align: center; padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); font-size: 15px; color: #DCE7F0; }
.weekcard { display: flex; flex-direction: column; gap: 8px; }
.weekcard .wk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
@media print { .gallery .strip { flex-wrap: wrap; overflow: visible; } .lightbox { display: none !important; } }

/* Fiche de travail mensuelle (aperçu à l'écran puis impression A4) */
#print-report { position: fixed; inset: 0; z-index: 900; background: #E6E9EE; overflow: auto; -webkit-overflow-scrolling: touch; }
.rp-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: var(--lin); box-shadow: var(--ombre); }
.rp-wrap { padding: 16px 10px 40px; }
.rp-loading { text-align: center; padding: 60px 0; color: var(--texte-2); }
.rp { background: #fff; color: #142B42; max-width: 794px; margin: 0 auto; padding: 34px 36px; font: 13px/1.45 'Nunito Sans', system-ui, sans-serif; box-shadow: 0 4px 24px rgba(20,43,66,.15); }
.rp h1 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 26px; line-height: 1.1; margin: 2px 0 4px; color: #142B42; }
.rp h2 { font-size: 15px; font-weight: 800; margin: 22px 0 8px; padding-bottom: 4px; border-bottom: 2px solid #1D3A57; color: #1D3A57; text-transform: uppercase; letter-spacing: .5px; }
.rp h3 { font-size: 13px; font-weight: 800; margin: 12px 0 6px; }
.rp-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid #DCE7F0; }
.rp-co { display: flex; gap: 12px; align-items: center; }
.rp-logo { width: 64px; height: 64px; object-fit: contain; }
.rp-coname { font-weight: 800; font-size: 16px; }
.rp-title { text-align: right; }
.rp-kicker { font-size: 10.5px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #8A5A08; }
.rp-period { font-size: 16px; font-weight: 800; text-transform: capitalize; }
.rp-small { font-size: 11px; color: #4E5D72; }
.rp-site { display: grid; grid-template-columns: 1.2fr 1.6fr 1fr; gap: 12px; margin: 14px 0; padding: 10px 12px; background: #F4F7FA; border-radius: 8px; }
.rp-site div { display: flex; flex-direction: column; }
.rp-lab { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #4E5D72; margin-top: 4px; }
.rp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rp-kpis div { border: 1px solid #DCE7F0; border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: #4E5D72; }
.rp-num { font-size: 20px; font-weight: 800; color: #142B42; }
.rp-t { width: 100%; border-collapse: collapse; font-size: 12px; }
.rp-t th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: #4E5D72; border-bottom: 1px solid #142B42; padding: 5px 6px; }
.rp-t td { vertical-align: top; padding: 7px 6px; border-bottom: 1px solid #E3E8EE; }
.rp-t tr { break-inside: avoid; }
.rp-t .st { font-weight: 800; }
.rp-t .st.realise { color: #1D5A2E; }
.rp-t .st.prevu, .rp-t .st.impossible { color: #9A3324; }
.rp-tasks { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 4px; font-size: 11px; color: #4E5D72; }
.rp-tasks .ko { color: #9A3324; }
.rp-obs { margin-top: 4px; font-size: 11.5px; font-style: italic; color: #1D3A57; }
.rp-empty { color: #4E5D72; font-style: italic; }
.rp-list { margin: 0; padding-left: 18px; }
.rp-foot { margin-top: 22px; padding-top: 8px; border-top: 1px solid #DCE7F0; font-size: 10.5px; color: #4E5D72; }
.rp-annex { break-before: page; }
.rp-ph h3 { break-after: avoid; }
.rp-shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 6px; }
.rp-shots figure { margin: 0; break-inside: avoid; }
.rp-shots img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; display: block; }
.rp-shots figcaption { font-size: 9.5px; color: #4E5D72; margin-top: 2px; }
@media (max-width: 600px) { .rp { padding: 20px 16px; } .rp-head { flex-direction: column; } .rp-title { text-align: left; } .rp-site, .rp-kpis { grid-template-columns: 1fr 1fr; } .rp-shots { grid-template-columns: repeat(3, 1fr); } }
@media print {
  @page { size: A4; margin: 12mm; }
  html.print-report body > *:not(#print-report) { display: none !important; }
  html.print-report #print-report { position: static; overflow: visible; background: #fff; }
  html.print-report .rp-bar { display: none !important; }
  html.print-report .rp-wrap { padding: 0; }
  html.print-report .rp { box-shadow: none; max-width: none; padding: 0; }
  html.print-report .rp-site, html.print-report .rp-kpis { grid-template-columns: 1.2fr 1.6fr 1fr; }
  html.print-report .rp-kpis { grid-template-columns: repeat(4, 1fr); }
  html.print-report .rp-head { flex-direction: row; }
  html.print-report .rp-shots { grid-template-columns: repeat(5, 1fr); }
  .rp { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Accueil simplifié : une carte par chose à faire */
.hcard { display: flex; flex-direction: column; align-items: stretch; gap: 10px; background: var(--blanc); border: 1.5px solid var(--trait); border-radius: 18px; padding: 12px 12px 12px 14px; text-decoration: none; color: inherit; }
.hcard.done { opacity: .7; }
.hcard .hbody { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.hcard .htitle { display: block; font-weight: 800; font-size: 17px; color: var(--encre-profonde); }
.hcard .hsub { display: block; font-size: 14px; color: var(--texte-2); }
.hcard .hact { flex: none; }
.hcard .hact .btn { min-height: 48px; width: 100%; }
.hcard .hact .chip { display: inline-flex; }
.hcard.link { flex-direction: row; }
.hcard.link .med { display: inline-flex; align-items: center; justify-content: center; color: var(--encre); }
