/* ZRB495 — design system (identité : bleu nuit / blanc / or). Mobile d'abord (iPhone/Safari), clair/sombre, gros éléments tactiles. */
:root {
  --bg: #F3F6FB; --surface: #FFFFFF; --surface-2: #EDF1F8; --surface-3: #E1E8F3;
  --text: #0D1B33; --text-2: #34455F; --muted: #566680; --border: #DCE3EF; --border-strong: #BFC9DB;
  --primary: #0B3A7A; --primary-2: #082C5E; --primary-ink: #FFFFFF; --primary-soft: #E1EBFA;
  --gold: #A06F0C; --gold-soft: #FBF0D3; --gold-bright: #E2AF43;
  --prog-a: #0B3A7A; --prog-b: #4A86DC; --glow: rgba(26,85,166,.20);
  --ok: #0B6B47; --ok-soft: #DDF1E8; --warn: #8A5200; --warn-soft: #FDEFD2; --danger: #B3261E; --danger-soft: #FCE6E3; --info: #1F4FA3; --info-soft: #E3EDFB;
  --wa: #128C4A; --wa-soft: #DDF4E7;
  --shadow-sm: 0 1px 2px rgba(13,27,51,.07), 0 1px 1px rgba(13,27,51,.04);
  --shadow: 0 10px 28px -10px rgba(13,27,51,.2), 0 2px 6px rgba(13,27,51,.07);
  --hero: linear-gradient(155deg, #1A55A6 0%, #0A2D62 52%, #051836 100%);
  --radius: 18px; --radius-sm: 12px;
  --nav-h: 68px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #070E1B; --surface: #101A2D; --surface-2: #162338; --surface-3: #203150;
  --text: #EBF1FB; --text-2: #C5D1E5; --muted: #9AABC7; --border: #22324E; --border-strong: #33496C;
  --primary: #E5B64B; --primary-2: #D3A33A; --primary-ink: #0A1730; --primary-soft: #1D2D4C;
  --gold: #E5B64B; --gold-soft: #33290E; --gold-bright: #F1CB6E;
  --prog-a: #D3A33A; --prog-b: #F6DB92; --glow: rgba(46,112,210,.28);
  --ok: #5BDDA3; --ok-soft: #123A2A; --warn: #F2B84B; --warn-soft: #3A2B0C; --danger: #FF8A80; --danger-soft: #431A17; --info: #8DB4FF; --info-soft: #172B4F;
  --wa: #4BE08F; --wa-soft: #11361F;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.45); --shadow: 0 12px 32px -10px rgba(0,0,0,.65);
  --hero: linear-gradient(155deg, #123B78 0%, #0A2754 52%, #061429 100%);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070E1B; --surface: #101A2D; --surface-2: #162338; --surface-3: #203150;
    --text: #EBF1FB; --text-2: #C5D1E5; --muted: #9AABC7; --border: #22324E; --border-strong: #33496C;
    --primary: #E5B64B; --primary-2: #D3A33A; --primary-ink: #0A1730; --primary-soft: #1D2D4C;
    --gold: #E5B64B; --gold-soft: #33290E; --gold-bright: #F1CB6E;
    --prog-a: #D3A33A; --prog-b: #F6DB92; --glow: rgba(46,112,210,.28); --glow: rgba(46,112,210,.28);
    --ok: #5BDDA3; --ok-soft: #123A2A; --warn: #F2B84B; --warn-soft: #3A2B0C; --danger: #FF8A80; --danger-soft: #431A17; --info: #8DB4FF; --info-soft: #172B4F;
    --wa: #4BE08F; --wa-soft: #11361F;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.45); --shadow: 0 12px 32px -10px rgba(0,0,0,.65);
    --hero: linear-gradient(155deg, #123B78 0%, #0A2754 52%, #061429 100%);
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; min-height: 100dvh; font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 1.7rem; font-weight: 800; } h2 { font-size: 1.25rem; font-weight: 750; } h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 .75em; } a { color: var(--primary); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
.ic { width: 1.35em; height: 1.35em; flex: none; vertical-align: -.3em; }
.ic-sm { width: 1.05em; height: 1.05em; vertical-align: -.15em; } .ic-lg { width: 1.8em; height: 1.8em; } .ic-xl { width: 2.6em; height: 2.6em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--primary-ink); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .xs { font-size: .8rem; } .strong { font-weight: 700; } .center { text-align: center; } .right { text-align: right; }
.nowrap { white-space: nowrap; } .mt { margin-top: 16px; } .mt-lg { margin-top: 28px; } .mb { margin-bottom: 16px; } .gap { display: grid; gap: 14px; } .row { display: flex; align-items: center; gap: 12px; } .row.wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; } .between { justify-content: space-between; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------- Shell ---------- */
.shell { display: block; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-t) + 10px) 16px 10px; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.12rem; letter-spacing: .01em; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: block; box-shadow: var(--shadow-sm); }
.topbar .spacer { flex: 1; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; transition: transform .12s, background .15s; -webkit-tap-highlight-color: transparent; }
.icon-btn:hover { background: var(--surface-2); } .icon-btn:active { transform: scale(.94); }
.icon-btn .badge-dot { position: absolute; top: 7px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.theme-sun { display: none; } :root[data-theme="dark"] .theme-sun { display: inline; } :root[data-theme="dark"] .theme-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-sun { display: inline; } :root:not([data-theme="light"]) .theme-moon { display: none; } }
.sidebar { display: none; }
.main { padding: 16px 16px calc(var(--nav-h) + var(--safe-b) + 28px); max-width: 780px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 6px 0 18px; }
.page-head .sub { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-weight: 600; margin-bottom: 6px; min-height: 44px; }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(var(--safe-b) + 6px); background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px); border-top: 1px solid var(--border); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; border-radius: 14px; text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 700; position: relative; -webkit-tap-highlight-color: transparent; }
.bottom-nav a .ic { width: 1.6em; height: 1.6em; }
.bottom-nav a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
.bottom-nav .pill { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 800; padding: 0 5px; }
.footer-credit { text-align: center; color: var(--muted); font-size: .78rem; padding: 26px 16px 0; }
@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
  .sidebar { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; padding: 22px 14px; border-right: 1px solid var(--border); background: var(--surface); overflow-y: auto; }
  .sidebar .brand { padding: 4px 10px 18px; }
  .sidebar a.nav { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; color: var(--text-2); text-decoration: none; font-weight: 650; min-height: 48px; }
  .sidebar a.nav:hover { background: var(--surface-2); } .sidebar a.nav[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
  .sidebar .nav-h { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 16px 14px 4px; font-weight: 800; }
  .sidebar .push { margin-top: auto; }
  .bottom-nav { display: none; } .topbar .brand { display: none; }
  .topbar { padding-top: 14px; } .main { padding: 24px 32px 48px; max-width: 1040px; }
  .main.narrow { max-width: 760px; }
}

/* ---------- Cartes & listes ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.card.flush { padding: 0; overflow: hidden; } .card + .card { margin-top: 14px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-title { font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin: 26px 2px 10px; }
.list > * + * { border-top: 1px solid var(--border); }
.li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 64px; color: inherit; text-decoration: none; transition: background .12s; -webkit-tap-highlight-color: transparent; }
a.li:hover { background: var(--surface-2); } a.li:active { background: var(--surface-3); }
.li .li-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.li .li-t { font-weight: 700; } .li .li-s { color: var(--muted); font-size: .9rem; line-height: 1.35; }
.li .chev { color: var(--muted); margin-left: auto; flex: none; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; } .kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.divider { height: 1px; background: var(--border); margin: 14px 0; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 20px; border-radius: 15px; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent; text-align: center; line-height: 1.2; }
.btn:hover { background: var(--surface-2); } .btn:active { transform: scale(.975); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn.primary:hover { background: var(--primary-2); }
.btn.wa { background: var(--wa-soft); border-color: transparent; color: var(--wa); } .btn.wa:hover { filter: brightness(.97); }
.btn.danger { background: var(--danger-soft); border-color: transparent; color: var(--danger); } .btn.danger.solid { background: var(--danger); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--primary); } .btn.ghost:hover { background: var(--primary-soft); }
.btn.block { display: flex; width: 100%; } .btn.sm { min-height: 44px; padding: 8px 14px; font-size: .95rem; border-radius: 12px; } .btn.lg { min-height: 60px; font-size: 1.1rem; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; } .btn-row .btn { flex: 1 1 auto; }
.btn-stack { display: grid; gap: 10px; }

/* ---------- Pastilles / statuts (couleur + icône + texte) ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .82rem; font-weight: 750; background: var(--surface-3); color: var(--text-2); white-space: nowrap; line-height: 1.35; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--info-soft); color: var(--info); } .badge.muted { background: var(--surface-3); color: var(--muted); } .badge.demo { background: var(--gold-soft); color: var(--gold); letter-spacing: .06em; font-size: .7rem; text-transform: uppercase; }

/* ---------- À faire aujourd'hui ---------- */
.hero { background: var(--hero); color: #fff; border-radius: 24px; padding: 22px 20px; box-shadow: var(--shadow), inset 0 -3px 0 var(--gold-bright); position: relative; overflow: hidden; }
.hero .date { opacity: .88; color: #F3D98F; font-size: .9rem; font-weight: 600; text-transform: capitalize; } .hero h1 { color: inherit; font-size: 1.55rem; margin: 4px 0 6px; } .hero p { margin: 0; opacity: .92; }
.hero .ok-big { display: flex; gap: 14px; align-items: center; }
.todo { margin-top: 14px; display: grid; gap: 12px; }
.todo-item { background: var(--surface); border: 1px solid var(--border); border-left-width: 6px; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.todo-item.urgent { border-left-color: var(--danger); } .todo-item.warn { border-left-color: var(--gold); } .todo-item.info { border-left-color: var(--info); }
.todo-item .t { font-weight: 800; font-size: 1.05rem; display: flex; gap: 8px; align-items: flex-start; } .todo-item .d { color: var(--muted); margin: 4px 0 12px; font-size: .95rem; line-height: 1.4; }
.todo-item .acts { display: flex; flex-wrap: wrap; gap: 8px; } .todo-item .acts .btn { flex: 1 1 140px; min-height: 48px; }
.sev-ic { flex: none; width: 1.3em; height: 1.3em; margin-top: 2px; } .urgent .sev-ic { color: var(--danger); } .warn .sev-ic { color: var(--gold); } .info .sev-ic { color: var(--info); }
.allgood { background: var(--ok-soft); color: var(--ok); border-radius: var(--radius); padding: 22px; display: flex; gap: 14px; align-items: center; font-weight: 750; font-size: 1.1rem; margin-top: 14px; }

/* ---------- Chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.stat .l { color: var(--muted); font-size: .85rem; font-weight: 650; } .stat .v { font-size: 1.45rem; font-weight: 800; margin-top: 2px; letter-spacing: -.02em; } .stat .v small { font-size: .8rem; font-weight: 700; color: var(--muted); }
.stat.good .v { color: var(--ok); } .stat.bad .v { color: var(--danger); }
.progress { height: 12px; background: var(--surface-3); border-radius: 8px; overflow: hidden; } .progress > i { display: block; height: 100%; width: var(--w, 0%); background: linear-gradient(90deg, var(--prog-a), var(--prog-b)); border-radius: 8px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.seg { display: flex; height: 12px; border-radius: 8px; overflow: hidden; background: var(--surface-3); } .seg i { display: block; height: 100%; }
.seg .s-paid { background: var(--ok); } .seg .s-part { background: var(--gold); } .seg .s-unpaid { background: var(--danger); }

/* ---------- Vue immeuble ---------- */
.building { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 84px; border-radius: 16px; background: var(--surface-2); border: 1.5px solid var(--border); text-decoration: none; color: var(--text); font-weight: 800; padding: 8px 4px; -webkit-tap-highlight-color: transparent; transition: transform .12s; }
.tile:active { transform: scale(.95); } .tile .n { font-size: 1.3rem; line-height: 1; } .tile .s { font-size: .68rem; font-weight: 750; display: flex; gap: 3px; align-items: center; text-align: center; line-height: 1.15; }
.tile.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); } .tile.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.tile.danger { background: var(--danger-soft); border-color: transparent; color: var(--danger); } .tile.info { background: var(--info-soft); border-color: transparent; color: var(--info); }
.tile.muted { color: var(--muted); border-style: dashed; background: transparent; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .8rem; color: var(--muted); margin-top: 12px; } .legend span { display: inline-flex; align-items: center; gap: 5px; }
@media (min-width: 900px) { .building { grid-template-columns: repeat(8, 1fr); } }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 18px; } .field { display: grid; gap: 6px; }
.field > label, .field > .lab { font-weight: 700; font-size: .95rem; } .field .hint { color: var(--muted); font-size: .85rem; margin-top: -2px; }
.input, select.input, textarea.input { width: 100%; min-height: 54px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 1.06rem; /* ≥16px : pas de zoom iOS */ appearance: none; -webkit-appearance: none; transition: border-color .15s, box-shadow .15s; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a9a92' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; padding-right: 44px; }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.45; } .input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); }
.input[aria-invalid="true"], .field.err .input { border-color: var(--danger); }
.input-big { font-size: 1.7rem; font-weight: 800; min-height: 68px; letter-spacing: -.01em; text-align: right; padding-right: 74px; }
.input-wrap { position: relative; } .input-wrap .suffix { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 800; pointer-events: none; }
.field-error { color: var(--danger); font-weight: 650; font-size: .9rem; margin: 2px 0 0; display: flex; gap: 6px; align-items: flex-start; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--border-strong); border-radius: 14px; background: var(--surface); cursor: pointer; min-height: 56px; }
.check input { width: 24px; height: 24px; accent-color: var(--primary); flex: none; margin-top: 1px; } .check .ct { font-weight: 700; } .check .cd { color: var(--muted); font-size: .88rem; }
.check:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.choice { display: grid; gap: 10px; } .grid2 { display: grid; gap: 14px; } @media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.seg-ctl { display: grid; grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-3); } .seg-ctl a, .seg-ctl button { min-height: 44px; display: grid; place-items: center; border-radius: 11px; text-decoration: none; color: var(--text-2); font: inherit; font-weight: 700; border: 0; background: transparent; cursor: pointer; font-size: .95rem; }
.seg-ctl [aria-current="true"], .seg-ctl .on { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.file-drop { border: 2px dashed var(--border-strong); border-radius: 14px; padding: 16px; display: flex; gap: 12px; align-items: center; background: var(--surface-2); }
.file-drop input { max-width: 100%; font-size: 1rem; }

/* ---------- Alertes, toasts, vide ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-weight: 600; background: var(--info-soft); color: var(--info); line-height: 1.4; }
.alert.success { background: var(--ok-soft); color: var(--ok); } .alert.error { background: var(--danger-soft); color: var(--danger); } .alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert .ic { margin-top: 1px; } .alert b { font-weight: 800; }
.flash { display: grid; gap: 10px; margin-bottom: 16px; }
.empty { text-align: center; padding: 34px 20px; color: var(--muted); } .empty .ic { width: 3em; height: 3em; color: var(--border-strong); margin-bottom: 8px; } .empty h3 { color: var(--text); margin-bottom: 4px; }
dialog { border: 0; border-radius: 22px; padding: 0; max-width: min(520px, calc(100vw - 28px)); width: 100%; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
dialog::backdrop { background: rgba(8, 16, 13, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dlg { padding: 22px; display: grid; gap: 14px; } .dlg h3 { font-size: 1.3rem; }
details.more { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); } details.more > summary { list-style: none; cursor: pointer; padding: 16px; font-weight: 750; display: flex; align-items: center; gap: 10px; min-height: 56px; } details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg); transition: transform .2s; } details.more[open] > summary::after { transform: rotate(-135deg); } details.more > .body { padding: 0 16px 16px; }

/* ---------- Tables → cartes sur mobile ---------- */
.tbl { width: 100%; border-collapse: collapse; } .tbl th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); } .tbl td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; } .tbl td.r, .tbl th.r { text-align: right; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.timeline { position: relative; display: grid; gap: 16px; padding-left: 22px; } .timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline .ev { position: relative; } .timeline .ev::before { content: ""; position: absolute; left: -22px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); }
.period { padding: 14px 16px; display: grid; gap: 8px; } .period .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.period .applied { font-size: .88rem; color: var(--muted); display: grid; gap: 2px; border-left: 3px solid var(--border); padding-left: 10px; }
.big-amount { font-size: 2rem; font-weight: 850; letter-spacing: -.02em; line-height: 1.1; }
.help-card { display: flex; gap: 12px; align-items: center; }
.sticky-cta { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 10px); z-index: 20; }
@media (min-width: 900px) { .sticky-cta { bottom: 16px; } }
.install-tip { display: none; } .install-tip.show { display: flex; }
.qr-box { background: #fff; padding: 12px; border-radius: 16px; display: inline-block; line-height: 0; } .qr-box svg { width: 220px; height: 220px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; background: var(--surface-2); padding: 10px 14px; border-radius: 12px; display: inline-block; overflow-wrap: anywhere; font-size: .95rem; }
.recovery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .recovery .code { text-align: center; }

/* ---------- Pages publiques ---------- */
.public { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--safe-t) + 24px) 16px 24px; background: radial-gradient(1200px 520px at 50% -10%, var(--glow), transparent), var(--bg); }
.public .box { width: 100%; max-width: 460px; } .public .logo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 22px; text-align: center; } .public .logo img { width: 112px; height: 112px; border-radius: 28px; box-shadow: 0 18px 40px -14px rgba(5,24,54,.55), 0 4px 10px rgba(5,24,54,.18); } .public .logo b { font-size: 1.5rem; letter-spacing: .02em; }
.verify-ok, .verify-bad { text-align: center; padding: 26px 20px; } .verify-ok .big, .verify-bad .big { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; } .verify-ok .big { background: var(--ok-soft); color: var(--ok); } .verify-bad .big { background: var(--danger-soft); color: var(--danger); } .big .ic { width: 46px; height: 46px; }
.hp { position: absolute; left: -5000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
@media print { .topbar, .bottom-nav, .sidebar, .btn, .no-print { display: none !important; } body { background: #fff; } .main { padding: 0; max-width: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
