/* Cabinet Labroud — même style que Hissab / Mogador Boost Gestion (icônes emoji façon iPhone,
   police système, menu foncé), avec le vert à la place du bleu. Mobile d'abord. */
:root {
  --brand: #15803d;
  --brand-d: color-mix(in srgb, var(--brand) 78%, #000);
  --brand-l: color-mix(in srgb, var(--brand) 12%, #fff);
  --night: #0b2418;
  --night-2: #123623;
  --night-3: #1b4a31;
  --gold: #d6a531;
  --ink: #111721;
  --text: #111721;
  --muted: #5b626c;
  --line: #dee2e8;
  --line-2: #eef0f3;
  --bg: #f2f3f5;
  --card: #fff;
  --danger: #cf3434;
  --danger-l: #fde4e4;
  --warn: #d9820f;
  --warn-l: #fff3dc;
  --ok: #138a4c;
  --ok-l: #e1f5ea;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 36, 24, .06), 0 6px 20px -8px rgba(11, 36, 24, .14);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --side: 248px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--font); background: var(--bg); color: var(--text); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font); font-weight: 700; line-height: 1.2; margin: 0; color: var(--ink); }
.ic { width: 18px; height: 18px; flex: none; }
.ic.sm { width: 13px; height: 13px; vertical-align: -2px; }
html[dir=rtl] .ic.flip { transform: scaleX(-1); }
/* Icônes emoji (rendu natif : Apple sur iPhone/Mac) */
.emo { display: inline-grid; place-items: center; width: 22px; flex: none; font-size: 1.05rem; line-height: 1; font-style: normal; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.emo.sm { width: auto; font-size: .82rem; vertical-align: -1px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.pad { padding: 14px 16px; margin: 0; }
.center { text-align: center; }
[hidden] { display: none !important; }

/* ---------- Chargement ---------- */
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--night); z-index: 50; font-size: 46px; }
.boot span { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; transform: scale(.94); } }

/* ---------- Marque ---------- */
.b-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--brand); color: #fff; font-size: 21px; flex: none; }
.b-mark.big { width: 64px; height: 64px; font-size: 32px; border-radius: 18px; background: var(--brand-l); margin: 0 auto 10px; }

/* ---------- Connexion ---------- */
#gate { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; background:
  radial-gradient(900px 500px at 20% 0%, var(--night-3), transparent 60%), linear-gradient(160deg, var(--night) 0%, #07170f 100%); }
.gate-card { width: 100%; max-width: 460px; background: #fff; border-radius: 22px; padding: 28px 24px 22px; text-align: center; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); position: relative; animation: rise .4s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.gate-top { position: absolute; inset-inline-end: 14px; top: 14px; }
.gate-card h1 { font-size: 26px; }
.gate-sub { color: var(--muted); margin: 4px 0 20px; font-size: 14.5px; }
.gate-card form { text-align: start; display: grid; gap: 12px; }
.gate-note { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.gate-msg { min-height: 1.2em; margin: 0; font-size: 13.5px; color: var(--danger); text-align: center; }
.gate-msg.ok { color: var(--ok); }
.gate-credit { color: rgba(255, 255, 255, .55); margin-top: 18px; }
.demo-users { display: grid; gap: 8px; }
.demo-user { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; text-align: start; transition: border-color .15s, transform .15s var(--ease), box-shadow .15s; }
.demo-user:hover { border-color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow); }
.demo-user > span:not(.av) { display: flex; flex-direction: column; }
.demo-user small { color: var(--muted); }
.link { background: none; border: 0; color: var(--brand-d); font-weight: 700; cursor: pointer; font-size: 13.5px; justify-self: center; }
.credit { font-size: 11.5px; color: var(--muted); margin: 8px 0 0; text-align: end; }

/* ---------- Boutons & champs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .15s, transform .15s var(--ease), box-shadow .15s; }
.btn:hover { background: #f6f8fa; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 14px -8px var(--brand); }
.btn.primary:hover { background: var(--brand-d); }
.btn.danger { color: var(--danger); border-color: #f1caca; background: #fff; }
.btn.danger:hover { background: var(--danger-l); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: #e9ebef; }
.btn.sm { min-height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn .emo { width: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; color: var(--muted); flex: none; transition: background .15s; }
.icon-btn:hover { background: #e9ebef; color: var(--ink); }
.icon-btn.sm { width: 30px; height: 30px; border-radius: 8px; }
.icon-btn.danger { color: var(--danger); }
.lang-btn { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--brand); background: #fff; color: var(--brand-d); font-weight: 800; cursor: pointer; font-size: 15px; }
.lang-btn:hover { background: var(--brand); color: #fff; }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.field small { color: var(--muted); font-size: 12px; }
input, select, textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; font-size: 15px; min-width: 0; }
textarea { resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
input:disabled, select:disabled, textarea:disabled { background: #f4f5f7; color: var(--muted); }
.invalid { border-color: var(--danger) !important; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; padding: 6px 0; }
.check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--brand); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.grid2 .full { grid-column: 1 / -1; }
.seg { display: inline-flex; background: #e6e8ec; border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 13px; border-radius: 9px; cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }

/* ---------- Structure ---------- */
#shell { min-height: 100vh; }
.side { position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--side); background: var(--night); color: #d8e3dc; display: flex; flex-direction: column; z-index: 20; padding: 14px 12px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 16px; }
.brand div { display: flex; flex-direction: column; min-width: 0; }
.brand b { font-size: 15.5px; color: #fff; line-height: 1.2; }
.brand small { color: #9fb8aa; font-size: 12px; }
.nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: #c4d2ca; transition: background .15s, color .15s; }
.nav a:hover { background: var(--night-2); color: #fff; }
.nav a.on { background: color-mix(in srgb, var(--brand) 40%, var(--night)); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
html[dir=rtl] .nav a.on { box-shadow: inset -3px 0 0 var(--gold); }
.badge { min-width: 20px; height: 20px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 11px; font-style: normal; font-weight: 800; display: inline-grid; place-items: center; padding: 0 6px; margin-inline-start: auto; }
.side-foot { border-top: 1px solid #1e4532; padding-top: 10px; }
.me-link { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.me-link:hover { background: var(--night-2); }
.me-link > span:not(.av) { display: flex; flex-direction: column; min-width: 0; }
.me-link b { color: #fff; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-link small { color: #9fb8aa; font-size: 12px; }
.side-actions { display: flex; gap: 8px; margin-top: 8px; align-items: center; padding: 0 6px; }
.side-actions .icon-btn { color: #d8e3dc; border: 1px solid rgba(255, 255, 255, .14); }
.side-actions .icon-btn:hover { background: var(--night-2); }
.side-actions .lang-btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.side .credit { color: #7f9a8b; font-size: 11px; }

.topbar { display: none; }
.demo-bar { margin-inline-start: var(--side); background: var(--warn-l); color: #8a5300; font-size: 12.5px; font-weight: 600; text-align: center; padding: 6px 12px; }
main { margin-inline-start: var(--side); padding: 22px 28px 60px; }
main > * { max-width: 1220px; margin-inline: auto; }
main > .back { display: flex; width: max-content; margin-inline: 0; }
.tabbar { display: none; }

/* ---------- En-têtes de page ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.45rem, 3.2vw, 1.9rem); }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.page-head p a { color: var(--brand-d); font-weight: 600; }
.page-head .eyebrow { margin: 0 0 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-bottom: 10px; font-weight: 700; }
.back:hover { color: var(--brand-d); }
.saved { color: var(--ok); font-size: 12.5px; font-weight: 700; }

/* ---------- Tableau de bord ---------- */
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.hero .date { margin: 0; color: var(--muted); font-weight: 700; text-transform: capitalize; font-size: 14px; }
.hero h1 { font-size: clamp(1.6rem, 3.4vw, 2rem); }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { --c: var(--brand); background: var(--card); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); border-inline-start: 4px solid var(--c); display: flex; flex-direction: column; gap: 2px; transition: transform .15s var(--ease); }
a.kpi:hover { transform: translateY(-2px); }
.kpi i { font-style: normal; font-size: 13px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.kpi b { font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.kpi span { color: var(--muted); font-size: 12.5px; }
.kpi.warn { --c: var(--warn); }
.kpi.red { --c: var(--danger); } .kpi.red b { color: var(--danger); }
.kpi.gold { --c: var(--gold); }
.kpis.small .kpi b { font-size: 20px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; align-items: start; }

/* ---------- Cartes & lignes ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid #e7e9ed; margin-bottom: 16px; overflow: hidden; }
.card > .grid2, .card > .infos, .card > p.notes, .card > .pane-act, .card > .photos, .card > #lines, .card > .lines-head, .card > .totals, .card > .words, .card > .muted.small { margin-inline: 16px; }
.card > .grid2:first-child { margin-top: 16px; }
.card > .grid2:last-child, .card > .words:last-child, .card > .muted.small:last-child { margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; }
.card-head h2, .card-title { font-size: 1.12rem; display: flex; align-items: center; gap: 8px; }
.card-title { padding: 14px 16px 10px; }
.card-head .btn.ghost { color: var(--brand-d); }
.card.pane { padding: 16px; }
.card.account { display: flex; align-items: center; gap: 14px; padding: 18px; }
.card.account .av { width: 52px; height: 52px; font-size: 18px; }
.card.account p { margin: 2px 0 0; }
.card > .seg, .card > form.inline-form, .card > .btn { margin: 0 16px 16px; }
.inline-form { display: flex; gap: 8px; }
.list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid #e7e9ed; overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); width: 100%; background: none; border-inline: 0; border-top: 0; text-align: start; cursor: pointer; transition: background .12s; }
.row:last-child { border-bottom: 0; }
a.row:hover, button.row:hover, .row .row-main:hover { background: #f8f9fb; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; background: none; border: 0; padding: 0; text-align: start; cursor: pointer; }
.row-main b { font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; }
.row-main small { color: var(--muted); font-size: 12.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.row-main small em { color: var(--danger); font-style: normal; font-weight: 700; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.row-side small { color: var(--muted); font-size: 12px; }
.row.late .ref, .row.late .row-side small { color: var(--danger); }
.row.off { opacity: .55; }
.ref { font-weight: 800; color: var(--brand-d); font-size: 13px; background: var(--brand-l); padding: 4px 8px; border-radius: 8px; flex: none; font-variant-numeric: tabular-nums; }
.count { color: var(--muted); font-size: 12.5px; flex: none; }
.row.event .time { font-weight: 800; color: var(--brand-d); font-size: 14px; width: 46px; flex: none; font-variant-numeric: tabular-nums; }
.row.due { background: #fffaf0; }
.doc-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #eef1f5; flex: none; font-weight: 800; font-size: 18px; }
.doc-ic.facture { background: var(--brand-l); color: var(--brand-d); font-size: 15px; }
.doc-ic.devis { background: #fff3dc; color: #8a5300; font-size: 15px; }
.row.task .tick { width: 24px; height: 24px; border-radius: 7px; border: 2px solid #b8bec8; background: #fff; display: grid; place-items: center; cursor: pointer; flex: none; color: #fff; padding: 0; transition: background .15s, border-color .15s; }
.row.task .tick:hover { border-color: var(--brand); }
.row.task .tick .ic { width: 15px; height: 15px; }
.row.task.done .tick { background: var(--brand); border-color: var(--brand); }
.row.task.done b { text-decoration: line-through; color: var(--muted); }
.row.task.late:not(.done) .row-main small { color: var(--danger); }
.new { background: var(--danger); color: #fff; font-size: 10.5px; padding: 1px 7px; border-radius: 99px; vertical-align: 1px; font-weight: 800; }
.av { --h: 150; width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 800; color: #fff; background: hsl(var(--h) 42% 38%); flex: none; letter-spacing: .02em; }
.av.empty { background: #dadee4; color: #7c828b; }

.pill { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 800; background: #edeff1; color: var(--muted); white-space: nowrap; }
.pill.dstatus-ouvert, .pill.devis-envoye, .pill.facture-emise { background: var(--warn-l); color: #9a5d00; }
.pill.dstatus-en_cours, .pill.facture-partielle { background: #e6efff; color: #2c5bc4; }
.pill.dstatus-attente { background: #f1eefb; color: #5b4a9a; }
.pill.dstatus-cloture, .pill.devis-accepte, .pill.facture-payee, .pill.rstatus-finalise { background: var(--ok-l); color: var(--ok); }
.pill.devis-refuse, .pill.off { background: var(--danger-l); color: var(--danger); }
.pill.facture-annulee { background: #ecedee; color: #6b7077; text-decoration: line-through; }
.pill.prio-haute { background: var(--warn-l); color: #9a5d00; }
.pill.prio-urgente { background: var(--danger); color: #fff; }
.pill.prio-basse { background: #ecedee; color: var(--muted); }
.pill[class*="dtype-"], .pill[class*="etype-"] { background: #eef0f3; color: #3e4550; font-weight: 700; }
.pill.role-admin { background: var(--brand-l); color: var(--brand-d); }

.empty { padding: 38px 16px; text-align: center; color: var(--muted); }
.empty .emo { width: auto; font-size: 40px; }
.empty p { margin: 8px 0 14px; }
.notice { display: flex; gap: 8px; align-items: center; background: var(--warn-l); color: #8a5300; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; margin: 0 0 14px; }
.loads { padding: 0 0 6px; }
.load { display: flex; align-items: center; gap: 10px; padding: 8px 16px; }
.load > span:not(.av) { flex: 1; font-size: 14px; }
.load b { font-size: 16px; color: var(--ink); }
.load em { font-style: normal; font-size: 12px; color: var(--danger); font-weight: 700; }

/* ---------- Filtres, onglets ---------- */
.filters { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.filters select { width: auto; min-width: 150px; }
.search { position: relative; flex: 1; min-width: 220px; display: block; }
.search .ic { position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-inline-start: 38px; border-radius: 99px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 14px; }
.tabs button.on { color: var(--brand-d); border-bottom-color: var(--brand); }
.tabs i { font-style: normal; background: #e9ebef; color: #3e4550; border-radius: 99px; padding: 0 7px; font-size: 12px; }
.mobile-only { display: none; }

/* ---------- Dossier ---------- */
.infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2px 18px; }
.info { padding: 9px 0; border-bottom: 1px dashed var(--line); display: flex; flex-direction: column; gap: 2px; }
.info span { font-size: 12px; color: var(--muted); font-weight: 600; }
.info b { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.info b a { color: var(--brand-d); text-decoration: underline; text-underline-offset: 2px; }
.notes { white-space: pre-wrap; background: var(--bg); padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-top: 12px; }
h3.sub { font-size: 1rem; margin: 18px 0 6px; display: flex; align-items: center; gap: 8px; }
.ev-date { font-size: 12px; color: var(--muted); font-weight: 700; padding: 8px 0 0; }
.pane .row { padding-inline: 4px; }
.pane-act { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.jform { display: flex; gap: 8px; margin-bottom: 14px; }
.journal { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--line); }
.journal li { padding: 0 0 14px 14px; position: relative; }
html[dir=rtl] .journal li { padding: 0 14px 14px 0; }
.journal li::before { content: ''; position: absolute; inset-inline-start: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.journal span { font-size: 12px; color: var(--muted); }
.journal p { margin: 2px 0 0; font-size: 14px; }

/* ---------- Suivi du processus (étapes par client) ---------- */
.proc-count { font-size: 13px; font-weight: 800; color: var(--brand-d); background: var(--brand-l); padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.proc-count.all { background: var(--ok-l); color: var(--ok); }
.proc-bar { height: 8px; background: #e6e8ec; border-radius: 99px; margin: 0 16px 12px; overflow: hidden; }
.proc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #22c55e); border-radius: 99px; transition: width .5s var(--ease); }
.steps { list-style: none; margin: 0; padding: 4px 16px 6px; }
.step { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 0 0 16px; }
.step::before { content: ''; position: absolute; inset-inline-start: 15px; top: 32px; bottom: 2px; width: 2px; background: #dfe3e8; }
.step:last-child::before { display: none; }
.step.done::before { background: var(--brand); }
.step .dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #c8ced6; background: #fff; color: var(--muted); font-weight: 800; font-size: 13px; display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .15s var(--ease), background .2s, border-color .2s; }
.step .dot:hover { transform: scale(1.08); border-color: var(--brand); }
.step.done .dot { background: var(--brand); border-color: var(--brand); color: #fff; font-size: 16px; }
.step.cur .dot { border-color: var(--brand); color: var(--brand-d); box-shadow: 0 0 0 4px var(--brand-l); }
.step.late .dot { border-color: var(--danger); color: var(--danger); box-shadow: 0 0 0 4px var(--danger-l); }
.step-body { flex: 1; min-width: 0; padding-top: 5px; display: flex; flex-direction: column; gap: 2px; }
.step-body b { font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; }
.step.done .step-body b { color: var(--muted); }
.step-body small { color: var(--muted); font-size: 12.5px; }
.step.done .step-body small { color: var(--ok); font-weight: 600; }
.step.late .step-body small { color: var(--danger); font-weight: 700; }
.step-body p { margin: 4px 0 0; font-size: 13.5px; background: var(--bg); padding: 6px 10px; border-radius: 8px; white-space: pre-wrap; }
.step-act { display: flex; gap: 2px; opacity: .55; transition: opacity .15s; }
.step:hover .step-act, .step:focus-within .step-act { opacity: 1; }
.step-act .icon-btn:disabled { opacity: .3; cursor: default; }
.step-add { display: flex; gap: 8px; padding: 4px 16px 16px; }
.mini-prog { position: relative; width: 70px; height: 18px; border-radius: 99px; background: #e6e8ec; overflow: hidden; flex: none; display: grid; place-items: center; }
.mini-prog i { position: absolute; inset-block: 0; inset-inline-start: 0; background: color-mix(in srgb, var(--brand) 35%, #fff); }
.mini-prog small { position: relative; font-size: 11px; font-weight: 800; color: var(--brand-d); }
@media (max-width: 600px) {
  .step { flex-wrap: wrap; }
  .step-act { opacity: 1; width: 100%; padding-inline-start: 44px; }
  .step-add { flex-direction: column; }
}

/* ---------- Tâches ---------- */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.col { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid #e7e9ed; overflow: hidden; }
.col h3 { font-size: 1rem; padding: 12px 16px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 8px; }
.col h3 i { font-style: normal; font-size: 12px; background: #e9ebef; border-radius: 99px; padding: 1px 8px; }
.col:nth-child(1) h3 { box-shadow: inset 0 3px 0 var(--danger); }
.col:nth-child(2) h3 { box-shadow: inset 0 3px 0 var(--warn); }
.col:nth-child(3) h3 { box-shadow: inset 0 3px 0 var(--ok); }
.comments h4 { margin: 8px 0; font-size: 14px; }
.cmt { display: flex; gap: 10px; margin-bottom: 10px; }
.cmt small { color: var(--muted); font-size: 12px; }
.cmt p { margin: 2px 0 0; background: var(--bg); padding: 8px 11px; border-radius: 4px 14px 14px 14px; font-size: 14px; white-space: pre-wrap; }
.cmt-new { display: flex; gap: 8px; }

.form-h { margin: 6px 0 -2px; font-size: 14px; color: var(--brand-d); border-bottom: 1px solid var(--line-2); padding-bottom: 6px; }
.form-h:first-child { margin-top: 0; }

/* ---------- Recettes & dépenses ---------- */
.toolbar .sp, .filters .sp { flex: 1; }
.kpi b.pos { color: var(--ok); }
.mode-table { padding: 0 16px 12px; }
.mt-h, .mt-r { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr 1fr 1fr; gap: 8px; align-items: center; }
.mt-h { font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 8px 6px; }
.mt-h span:not(:first-child), .mt-r > :not(:first-child) { text-align: end; }
.mt-r { width: 100%; border: 0; background: none; padding: 9px 8px; border-top: 1px solid var(--line-2); font: inherit; color: inherit; cursor: pointer; border-radius: 8px; text-align: start; }
.mt-r:hover, .mt-r.on { background: var(--brand-l); }
.mt-r span:first-child { font-weight: 700; }
.pos { color: var(--ok); font-weight: 700; }
.neg { color: var(--danger); font-weight: 700; }
.mv-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; font-size: 17px; flex: none; }
.row.mv.recette .mv-ic { background: var(--ok-l); color: var(--ok); }
.row.mv.depense .mv-ic { background: var(--danger-l); color: var(--danger); }
.mv-amt { font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row.mv.recette .mv-amt { color: var(--ok); }
.row.mv.depense .mv-amt { color: var(--danger); }
@media (max-width: 600px) {
  .mt-h, .mt-r { grid-template-columns: minmax(0, 1.2fr) 1fr 1fr; }
  .mt-h span:last-child, .mt-r b { display: none; }
  .mt-r { font-size: 13px; }
  .toolbar .sp { display: none; }
  .toolbar > .btn { flex: 1; }
  .filters .seg { width: 100%; }
  .filters .seg button { flex: 1; }
  .filters .sp { display: none; }
}

/* ---------- Logo ---------- */
.b-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 11px; background: #fff; padding: 3px; flex: none; }
.b-logo.big { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 10px; display: block; box-shadow: 0 0 0 1px var(--line); }
.topbar .b-logo { width: 34px; height: 34px; border-radius: 10px; }
.logo-row { display: flex; gap: 16px; align-items: center; padding: 0 16px 16px; flex-wrap: wrap; }
.logo-row .b-mark.big { margin: 0; }
.logo-prev { width: 96px; height: 96px; object-fit: contain; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 6px; }

/* ---------- Dossiers / clients (même onglet) ---------- */
.dc-seg { margin-bottom: 14px; }
.dc-seg a { padding: 7px 14px; border-radius: 9px; font-weight: 700; font-size: 13.5px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.dc-seg a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.dc-seg i { font-style: normal; font-size: 11.5px; background: #dfe2e7; border-radius: 99px; padding: 0 7px; }
.dc-seg a.on i { background: var(--brand-l); color: var(--brand-d); }

/* ---------- Modèles ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.tpl-card { background: #fff; border: 1px solid #e7e9ed; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: flex; gap: 12px; align-items: center; transition: transform .15s var(--ease), border-color .15s; }
.tpl-card:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.tpl-emo { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-l); display: grid; place-items: center; font-size: 22px; flex: none; }
.tpl-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tpl-txt b { font-size: 14.5px; }
.tpl-txt small { color: var(--muted); font-size: 12px; }
.tpl-act { display: flex; gap: 4px; align-items: center; flex: none; }
.tpl-vars small { color: var(--muted); display: block; margin-bottom: 6px; }
.tpl-vars div { display: flex; flex-wrap: wrap; gap: 5px; }
.tpl-vars .var { border: 1px solid var(--line); background: var(--bg); border-radius: 7px; padding: 3px 7px; font: 600 12px/1.2 ui-monospace, Consolas, monospace; cursor: pointer; color: var(--brand-d); direction: ltr; }
.tpl-vars .var:hover { background: var(--brand-l); }

/* ---------- Calendrier : mois / semaine heure par heure ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.month-nav { display: flex; align-items: center; gap: 6px; }
.month-nav b { font-size: 1.05rem; min-width: 170px; text-align: center; text-transform: capitalize; }
.cal-sum { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.legend { display: inline-flex; gap: 6px; align-items: center; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cal { background: #fff; border: 1px solid #e7e9ed; border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.cal-h, .cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-h span { text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: capitalize; padding: 4px 0; }
.cd { aspect-ratio: 1 / .92; border: 1px solid transparent; background: #f7f8fa; border-radius: 10px; display: flex; flex-direction: column; justify-content: space-between; padding: 5px 6px; cursor: pointer; text-align: start; min-width: 0; transition: background .15s, border-color .15s; font: inherit; color: inherit; }
.cd:hover { border-color: var(--line); background: #fff; }
.cd.out { background: none; cursor: default; }
.cd.we { background: #eff1f3; }
.cd.today .cd-n { background: var(--night); color: #fff; }
.cd.sel { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.cd-n { font-weight: 800; font-size: 13px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.cd-evs { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; justify-content: center; }
.cd-evs span { font-size: 10.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--brand-d); }
.cd-evs b { font-weight: 800; }
.cd-dots { display: flex; gap: 3px; flex-wrap: wrap; }
.cd-dots i, .wk-all-c i { font-style: normal; font-size: 10.5px; font-weight: 800; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; display: inline-grid; place-items: center; color: #fff; }
.dot-v { background: var(--brand); }
.dot-t { background: var(--gold); }
.day-panel { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.day-panel h2 { text-transform: capitalize; font-size: 1rem; }
.wk-scroll { overflow-x: auto; background: #fff; border: 1px solid #e7e9ed; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 8px; }
.wk { min-width: 640px; padding: 6px 8px 10px; }
.wk-row { display: grid; grid-template-columns: 52px repeat(6, minmax(0, 1fr)); gap: 4px; }
.wk-day { border: 0; background: none; border-radius: 10px; padding: 6px 2px; display: flex; flex-direction: column; align-items: center; cursor: pointer; font: inherit; color: var(--ink); }
.wk-day small { font-size: 11.5px; color: var(--muted); text-transform: capitalize; }
.wk-day b { font-size: 1.05rem; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; }
.wk-day.today b { background: var(--night); color: #fff; }
.wk-day.sel { background: var(--brand-l); }
.wk-allrow { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 0; margin-bottom: 4px; }
.wk-lbl { font-size: 10px; color: var(--muted); font-weight: 700; text-align: end; line-height: 1.2; align-self: center; }
.wk-all-c { min-height: 30px; border: 0; background: #f7f8fa; border-radius: 8px; display: flex; gap: 3px; flex-wrap: wrap; align-items: center; justify-content: center; cursor: pointer; padding: 3px; }
.wk-all-c.sel { background: var(--brand-l); }
.wk-hours { position: relative; }
.wk-hours span { position: absolute; inset-inline-end: 4px; transform: translateY(-50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wk-hours span:first-child { transform: none; }
.wk-col { position: relative; border-radius: 8px; background: repeating-linear-gradient(to bottom, #fff 0 calc(var(--slot) - 1px), #e6e9ee calc(var(--slot) - 1px) var(--slot)), #fff; border: 1px solid #edf0f3; cursor: copy; overflow: hidden; }
.wk-col.sel { border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.wk-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--danger); z-index: 2; pointer-events: none; }
.wk-ev { position: absolute; left: 3px; right: 3px; border: 0; border-inline-start: 3px solid var(--brand); background: color-mix(in srgb, var(--brand) 13%, #fff); color: var(--ink); border-radius: 6px; padding: 2px 5px; text-align: start; font: 11.5px/1.25 var(--font); overflow: hidden; cursor: pointer; z-index: 1; }
.wk-ev b { font-weight: 800; color: var(--brand-d); }
.wk-ev small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-ev.t-constat { border-inline-start-color: #0e7490; background: #e6f6fa; }
.wk-ev.t-audience { border-inline-start-color: #7b5bd6; background: #f1ecff; }
.wk-ev.t-notification, .wk-ev.t-execution { border-inline-start-color: var(--gold); background: #fff7e3; }
.wk-ev:hover { filter: brightness(.97); }
@media (max-width: 900px) {
  .cal-wrap { grid-template-columns: minmax(0, 1fr); }
  .day-panel { position: static; max-height: none; }
  .cd { aspect-ratio: auto; min-height: 52px; padding: 4px; }
  .cd-evs { display: none; }
  .cd-dots i { min-width: 15px; height: 15px; font-size: 9.5px; padding: 0 3px; }
}
@media (max-width: 600px) {
  .tpl-grid { grid-template-columns: 1fr; }
  .toolbar .seg { width: 100%; }
  .toolbar .seg button { flex: 1; }
  .month-nav { width: 100%; justify-content: space-between; }
  .month-nav b { min-width: 0; }
}

/* ---------- Agenda ---------- */
.week-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.week-nav b { font-size: 15px; }
.week { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.day { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid #e7e9ed; overflow: hidden; }
.day h3 { font-size: 14px; font-weight: 700; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line-2); text-transform: capitalize; }
.day.is-today { border-color: var(--brand); }
.day.is-today h3 { background: var(--brand); color: #fff; }
.day.is-today h3 .icon-btn { color: #fff; }
.day .muted { padding: 10px 14px; margin: 0; }
.day .row { padding: 10px 14px; }

/* ---------- Éditeurs ---------- */
.editor .card { overflow: visible; }
.editor .card-title + .grid2 { padding-bottom: 16px; }
.doc-text { font-family: "Times New Roman", Georgia, serif; font-size: 16px; }
.doc-text.ar { font-family: "Traditional Arabic", "Segoe UI", serif; font-size: 18px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; padding: 4px 0 16px; }
.photos .muted { grid-column: 1 / -1; padding: 0; }
.photos figure { margin: 0; position: relative; background: var(--bg); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #e9edf1; }
.photos .cap { border: 0; border-top: 1px solid var(--line); border-radius: 0; min-height: 36px; font-size: 13px; }
.photos .icon-btn { position: absolute; top: 6px; inset-inline-end: 6px; background: #fff; }
.lines-head, .line { display: grid; grid-template-columns: minmax(0, 1fr) 70px 120px 64px 120px 32px; gap: 8px; align-items: center; }
.lines-head { font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 0; }
.line { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.line input { min-height: 38px; padding: 7px 9px; }
.l-tax { display: flex; align-items: center; gap: 5px; font-size: 12.5px; cursor: pointer; }
.l-tax input { width: 18px; height: 18px; min-height: 0; accent-color: var(--brand); }
.l-total { text-align: end; font-size: 14px; font-variant-numeric: tabular-nums; }
.svc { width: auto; max-width: 300px; min-height: 34px; padding: 5px 9px; font-size: 13.5px; }
#addLine { margin: 10px 16px 0; color: var(--brand-d); }
.totals { margin-top: 14px; margin-bottom: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.totals div { display: flex; gap: 18px; min-width: 280px; justify-content: space-between; font-size: 14px; }
.totals div b { font-variant-numeric: tabular-nums; }
.totals .big { font-size: 17px; border-top: 2px solid var(--ink); padding-top: 6px; margin-top: 2px; }
.totals .big b { color: var(--brand-d); }
.words { font-style: italic; color: var(--muted); font-size: 13.5px; text-align: end; }
.row.pay { cursor: default; }
.row.doc { cursor: default; }
.row.doc .row-main small .pill { font-size: 10.5px; padding: 1px 7px; }
.svc-row { display: grid; grid-template-columns: 1fr 1fr 110px 64px 32px; gap: 8px; align-items: center; margin: 0 16px 8px; }
.svc-row input { min-height: 38px; }
#svcs { padding-bottom: 8px; }
.share { white-space: pre-wrap; background: var(--bg); padding: 12px; border-radius: 10px; font-size: 13.5px; font-family: inherit; margin: 0; }

/* ---------- Modales & toasts ---------- */
.overlay { position: fixed; inset: 0; background: rgba(8, 20, 14, .5); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 100; opacity: 0; transition: opacity .18s; backdrop-filter: blur(2px); }
.overlay.in { opacity: 1; }
.modal { background: #fff; width: 100%; max-width: 520px; max-height: calc(100dvh - 32px); border-radius: 18px; display: flex; flex-direction: column; box-shadow: 0 24px 70px rgba(0, 0, 0, .3); transform: translateY(10px) scale(.98); transition: transform .22s var(--ease); overflow: hidden; }
.modal.wide { max-width: 760px; }
.overlay.in .modal { transform: none; }
.modal form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.m-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--line-2); }
.m-head h3 { font-size: 1.12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-body { padding: 16px 18px; overflow-y: auto; flex: 1; }
.m-foot { display: flex; gap: 8px; justify-content: flex-end; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line-2); background: #fafbfc; }
.m-left { margin-inline-end: auto; display: flex; gap: 6px; }
.confirm { font-size: 15.5px; margin: 6px 0; }
.sheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sheet-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px; background: var(--bg); border: 0; cursor: pointer; font-size: 12.5px; font-weight: 700; text-align: center; }
.sheet-item .emo { width: auto; font-size: 24px; }
#toasts { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--night); color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); animation: rise .25s var(--ease) both; max-width: 360px; transition: opacity .4s, transform .4s; }
.toast.ok { border-inline-start: 4px solid #4ade80; }
.toast.err { background: var(--danger); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .side { display: none; }
  .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); }
  .topbar .b-mark { width: 34px; height: 34px; font-size: 18px; border-radius: 10px; }
  .topbar b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar .sp { flex: 1; }
  .topbar .lang-btn { width: 34px; height: 34px; }
  .demo-bar { margin-inline-start: 0; }
  main { margin-inline-start: 0; padding: 16px 16px calc(84px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; font-size: 11px; font-weight: 700; color: var(--muted); background: none; border: 0; cursor: pointer; }
  .tabbar .emo { width: auto; font-size: 22px; }
  .tabbar .ic { width: 22px; height: 22px; }
  .tabbar .on { color: var(--brand-d); }
  .tabbar .badge { position: absolute; top: 3px; inset-inline-start: calc(50% + 6px); margin: 0; }
  .board { grid-template-columns: 1fr; }
  .board .col { display: none; }
  .board .col.show { display: block; }
  .board .col h3 { display: none; }
  .mobile-only { display: flex; }
  #toasts { left: 16px; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); align-items: center; }
}
@media (max-width: 600px) {
  .grid2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpis .kpi:nth-child(5) { grid-column: span 2; }
  .kpis.small .kpi:nth-child(3) { grid-column: span 2; }
  .kpi { padding: 12px; }
  .kpi b { font-size: 20px; }
  .quick { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .page-head { align-items: flex-start; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1; }
  .filters select { flex: 1; min-width: 0; }
  .search { min-width: 100%; }
  .row { padding: 11px 12px; gap: 10px; }
  .row.dossier .row-side small { display: none; }
  .lines-head { display: none; }
  .line { grid-template-columns: 1fr 1fr 32px; grid-template-areas: 'l l l' 'q p d' 't tot tot'; }
  .line .l-label { grid-area: l; }
  .line .l-qty { grid-area: q; }
  .line .l-price { grid-area: p; }
  .line .l-tax { grid-area: t; }
  .line .l-total { grid-area: tot; }
  .line [data-delline] { grid-area: d; }
  .totals div { min-width: 0; width: 100%; }
  .svc-row { grid-template-columns: 1fr 1fr 32px; }
  .svc-row .s-fr, .svc-row .s-ar { grid-column: span 3; }
  .card-head { flex-wrap: wrap; }
  .svc { max-width: 100%; width: 100%; }
  .overlay { align-items: flex-end; padding: 0; }
  .modal, .modal.wide { max-width: none; border-radius: 20px 20px 0 0; max-height: 92dvh; }
  .m-foot { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .infos { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
