/* Portail client HODAS FINANCE, lot 0 (S17) : mise en page de la proposition A.
   Mode clair : couleurs de A. Mode sombre : couleurs de B. Choix du 12.10.2026.
   Règles de style de Thomas : aucun gras (500 au plus), pas de pastel, traits pleins et fins. */

:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --card: #ffffff;
  --soft: #f7f6f2;
  --border: #e3ded2;
  --ink: #1d2a3b;
  --muted: #5d6877;
  --acc: #162953;
  --acc-ink: #ffffff;
  --gold: #b8975a;
  --gold-line: #c5a76c;
  --up: #1f7a52;
  --dn: #a3343e;
  --top: #ffffff;
  --brand: #162953;
  --panel: linear-gradient(150deg, #162953, #24427f);
  --panel-ink: #ffffff;
  --input: #ffffff;
  --focus: #24427f;
  --c1: #162953; --c2: #5b7fb8; --c3: #c5a76c; --c4: #8d9aab;
  --radius: 14px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1626;
  --card: #152038;
  --soft: #1a2742;
  --border: #26344f;
  --ink: #e9edf3;
  --muted: #9aa6bd;
  --acc: #c5a76c;
  --acc-ink: #0e1626;
  --gold: #c5a76c;
  --gold-line: #c5a76c;
  --up: #5fd39a;
  --dn: #ef8f97;
  --top: #0b1220;
  --brand: #e9edf3;
  --panel: linear-gradient(150deg, #0b1220, #1a2742);
  --panel-ink: #e9edf3;
  --input: #1a2742;
  --focus: #c5a76c;
  --c1: #e9edf3; --c2: #7d9bd0; --c3: #c5a76c; --c4: #8d9aab;
}

/* Sans script : le réglage du système s'applique. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1626; --card: #152038; --soft: #1a2742; --border: #26344f; --ink: #e9edf3; --muted: #9aa6bd;
    --acc: #c5a76c; --acc-ink: #0e1626; --gold: #c5a76c; --gold-line: #c5a76c; --up: #5fd39a; --dn: #ef8f97;
    --top: #0b1220; --brand: #e9edf3; --panel: linear-gradient(150deg, #0b1220, #1a2742); --panel-ink: #e9edf3;
    --input: #1a2742; --focus: #c5a76c;
    --c1: #e9edf3; --c2: #7d9bd0; --c3: #c5a76c; --c4: #8d9aab;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
}
b, strong, th, h1, h2, h3, label, button { font-weight: 500; }
a { color: inherit; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* --- Bouton de bascule du thème ---------------------------------------------------------------- */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 0; width: 54px; height: 30px; padding: 3px;
  border-radius: 99px; border: 1px solid var(--border); background: var(--soft); cursor: pointer;
  color: var(--ink);
}
.theme-toggle .knob {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--acc); color: var(--acc-ink); font-size: 12px; line-height: 1;
  transition: transform .18s ease;
}
:root[data-theme="dark"] .theme-toggle .knob { transform: translateX(24px); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: inline; }
@media (prefers-reduced-motion: reduce) { .theme-toggle .knob { transition: none; } }

/* --- Boutons, champs ------------------------------------------------------------------------- */
.btn {
  display: inline-block; border: 1px solid var(--border); background: var(--card); color: var(--ink);
  border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 500; font-size: 14px;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { border-color: var(--acc); }
.btn.primary { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.btn.block { display: block; width: 100%; }
.btn.small { padding: 6px 11px; font-size: 13px; }
.btn.link { border: 0; background: none; padding: 0; color: var(--muted); text-decoration: underline; }
.field { display: block; margin: 14px 0 0; }
.field > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; font-weight: 500; }
.field input {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--input); color: var(--ink); font: inherit; font-size: 15px;
}
.field input:focus { outline: none; border-color: var(--focus); }
.field input.code { letter-spacing: .4em; font-variant-numeric: tabular-nums; max-width: 220px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-weight: 400; }
.check input { margin-top: 4px; accent-color: var(--acc); }
.form-actions { margin-top: 20px; display: grid; gap: 10px; }
.note { color: var(--muted); font-size: 13px; }
.alert { border: 1px solid var(--border); border-left: 2px solid var(--dn); border-radius: 8px; padding: 10px 12px; margin: 14px 0 0; font-size: 14px; background: var(--card); }
.alert.info { border-left-color: var(--gold-line); }

/* --- Pages d'accès (connexion, activation) ---------------------------------------------------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-panel {
  background: var(--panel); color: var(--panel-ink); padding: 56px; display: flex; flex-direction: column;
  justify-content: space-between;
}
.brand { display: flex; gap: 14px; align-items: center; text-decoration: none; }
.brand img { width: 56px; height: 56px; background: #fff; border-radius: 50%; padding: 5px; }
.brand .name { display: block; font-family: var(--serif); font-size: 22px; letter-spacing: .14em; font-weight: 400; }
.brand .sub { display: block; font-size: 10px; letter-spacing: .3em; color: var(--gold-line); font-weight: 500; }
.motto { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.15; margin: 0; }
.motto-sub { margin-top: 14px; max-width: 420px; opacity: .85; font-size: 14px; }
.auth-foot { font-size: 12px; opacity: .75; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; position: relative; }
.auth-main .theme-toggle { position: absolute; top: 24px; right: 24px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 4px; }
.auth-mobile-brand { display: none; }
.steps { display: flex; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.steps li { flex: 1; height: 2px; background: var(--border); }
.steps li.done { background: var(--gold-line); }
.qr { display: flex; gap: 16px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.qr img { width: 170px; height: 170px; border-radius: 8px; border: 1px solid var(--border); background: #fff; padding: 6px; }
.key { font-family: Consolas, "SFMono-Regular", monospace; font-size: 13px; word-break: break-all; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 14px 0 0; padding: 12px 14px; list-style: none;
  border: 1px solid var(--border); border-radius: 10px; background: var(--card);
  font-family: Consolas, "SFMono-Regular", monospace; font-size: 14px; }
.consent { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--card); font-size: 14px; margin-top: 14px; }
.consent p { margin: 0 0 8px; }
.consent p:last-child { margin: 0; }

/* --- Coquille connectée ------------------------------------------------------------------------ */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 32px;
  background: var(--top); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5;
}
.topbar .brand img { width: 40px; height: 40px; padding: 3px; }
.topbar .brand .name { font-size: 18px; color: var(--brand); }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 15px; border-radius: 99px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14px; }
.nav a.active { background: var(--acc); color: var(--acc-ink); }
.top-right { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.top-right form { margin: 0; }
.page { max-width: 1120px; margin: 0 auto; padding: 28px 32px 90px; }
.page h1 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 4px 0 18px; }
.eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin: 0; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.card h2 { font-family: var(--serif); font-weight: 400; font-size: 19px; margin: 0 0 10px; }
.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.stack { display: grid; gap: 16px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.up { color: var(--up); }
.dn { color: var(--dn); }
.chip { display: inline-block; border: 1px solid currentColor; border-radius: 99px; padding: 1px 9px; font-size: 12px; font-weight: 500; }
.rule-gold { border: 0; border-top: 1px solid var(--gold-line); width: 48px; margin: 10px 0 14px; }
.welcome { border-left: 2px solid var(--gold-line); }
.disclaimer { color: var(--muted); font-size: 12px; margin-top: 22px; }
.tabbar { display: none; }

/* --- Téléphone ------------------------------------------------------------------------------- */
@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
  .auth-main { place-items: start center; padding: 72px 20px 32px; }
  .auth-mobile-brand { display: block; text-align: center; margin-bottom: 26px; }
  .auth-mobile-brand img { width: 84px; height: 84px; background: #fff; border-radius: 20px; padding: 8px; }
  .auth-mobile-brand p { font-family: var(--serif); color: var(--gold); margin: 12px 0 0; font-size: 16px; }
  .auth-box h1 { text-align: center; }
  .topbar { padding: 10px 16px; }
  .nav, .top-right .who { display: none; }
  .page { padding: 18px 16px 96px; }
  .grid2 { grid-template-columns: 1fr; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: var(--top);
    border-top: 1px solid var(--border); padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); z-index: 5;
  }
  .tabbar a { flex: 1; text-align: center; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 500; }
  .tabbar a.active { color: var(--acc); }
  .tabbar .ico { display: block; font-size: 17px; line-height: 1.3; }
  .codes { grid-template-columns: 1fr; }
}
.spaced { margin-top: 18px; }

/* --- Lot 1 : consultation (maquettes validées le 13.10.2026) ---------------------------------- */
.hero { background: var(--card); color: var(--ink); border: 1px solid var(--border); border-top: 2px solid var(--gold-line);
  border-radius: var(--radius); padding: 24px 26px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: end; }
.hero.sheet { grid-template-columns: 1.2fr 2fr; }
.hero .eb { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0; }
.hero h1, .hero h2 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 4px 0 10px; }
.big { font-size: 38px; font-weight: 500; letter-spacing: -.01em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.facts { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--muted); }
.facts.wide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 0; }
.facts > div { border-left: 1px solid var(--gold-line); padding-left: 10px; }
.facts b { display: block; font-size: 17px; font-weight: 500; color: var(--ink); }
.facts b.up { color: var(--up); }
.facts b.dn { color: var(--dn); }
.spark { width: 100%; height: 110px; display: block; }
.spark path { fill: none; stroke: var(--gold-line); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.sec { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 26px 0 10px; flex-wrap: wrap; }
.sec.in { margin: 0 0 6px; }
.sec h2 { font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 0; }
.card .sec h2 { font-size: 19px; }
.sec a, .sec .note { font-size: 13px; color: var(--muted); text-decoration: none; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ccard { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px;
  text-decoration: none; color: inherit; display: block; }
.ccard:hover { border-color: var(--gold-line); }
.ccard .eb { font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin: 0; }
.ccard h3 { font-weight: 500; font-size: 15px; margin: 3px 0 8px; }
.ccard .val { font-size: 26px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ccard .perf { font-size: 13px; margin: 4px 0 12px; }
.ccard .kv { font-size: 13.5px; padding: 7px 0; }
.ccard .stale, .stale { font-size: 12px; color: var(--gold); }
.bar { display: block; width: 100%; height: 4px; margin: 6px 0; }
.bar.thick { height: 6px; margin-bottom: 12px; }
.c1 { fill: var(--c1); } .c2 { fill: var(--c2); } .c3 { fill: var(--c3); } .c4 { fill: var(--c4); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px; vertical-align: 0; }
.legend .l1::before { background: var(--c1); } .legend .l2::before { background: var(--c2); }
.legend .l3::before { background: var(--c3); } .legend .l4::before { background: var(--c4); }
.share { font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 99px; padding: 1px 8px; margin-left: 6px; font-weight: 400; white-space: nowrap; }
.mv { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); }
.mv:last-child { border-bottom: 0; }
.mv .ic { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 9px; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.mv .t { font-weight: 500; font-size: 14px; }
.mv .d { font-size: 12.5px; color: var(--muted); }
.mv .a { text-align: right; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.adv { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.adv .av { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--gold-line); display: grid; place-items: center; color: var(--gold); font-family: var(--serif); }
.adv .nm { font-weight: 500; }
.attn { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.attn:last-child { border-bottom: 0; }
.attn .t { font-weight: 500; font-size: 14px; }
.attn .d { font-size: 12.5px; color: var(--muted); }
.attn form, .doc form { margin: 0; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-line); margin-right: 7px; vertical-align: 1px; }
.table-wrap { overflow-x: auto; }
table.lines { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.lines th { white-space: nowrap; font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: right; padding: 8px; border-bottom: 1px solid var(--ink); }
table.lines th:first-child, table.lines td:first-child { text-align: left; }
table.lines td { white-space: nowrap; padding: 11px 8px; border-bottom: 1px solid var(--border); text-align: right; }
table.lines td:first-child { white-space: normal; }
table.lines td small { display: block; color: var(--muted); font-size: 12px; }
table.lines td .n { font-weight: 500; }
.crumb { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.crumb a { text-decoration: none; }
.crumb span { color: var(--ink); }
.chart { width: 100%; height: 200px; display: block; }
.chart .area { fill: var(--soft); }
.chart .value { fill: none; stroke: var(--acc); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.chart .paid { fill: none; stroke: var(--gold-line); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.periods { display: flex; gap: 4px; }
.periods a { font-size: 12px; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--border); color: var(--muted); text-decoration: none; }
.periods a.on { border-color: var(--acc); color: var(--ink); }
.alloc .row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.alloc .row:last-child { border-bottom: 0; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs a { font-size: 13px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--border); color: var(--muted); text-decoration: none; }
.tabs a.on { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.doc { display: grid; grid-template-columns: 38px minmax(0, 1fr) 105px 120px 170px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.doc.head { white-space: nowrap; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 0; }
.doc .pdf { width: 38px; height: 44px; border: 1px solid var(--border); border-radius: 6px; display: grid; place-items: center; font-size: 10px; color: var(--dn); letter-spacing: .05em; }
.doc .t { font-weight: 500; }
.doc .d { font-size: 12.5px; color: var(--muted); }
.alert .d { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.doc-group { margin: 18px 0 0; padding-bottom: 6px; border-bottom: 1px solid var(--gold-line); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.doc-actions { display: flex; gap: 6px; justify-content: flex-end; }
.new { color: var(--gold); font-size: 12.5px; }
.warn { border-left: 2px solid var(--gold-line); padding: 6px 0 6px 12px; font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.nav .badge { display: inline-block; min-width: 18px; border: 1px solid var(--gold-line); color: var(--gold); border-radius: 99px; font-size: 11px; padding: 0 5px; margin-left: 5px; line-height: 16px; text-align: center; }
.nav a.active .badge { color: var(--acc-ink); border-color: var(--acc-ink); }
.empty { color: var(--muted); font-size: 14px; padding: 8px 0; }
.wide2 { grid-template-columns: 2fr 1fr; }
.mv a, .attn a.t { text-decoration: none; }
@media (max-width: 820px) {
  .hero, .hero.sheet { grid-template-columns: 1fr; padding: 20px; }
  .big { font-size: 32px; }
  .facts.wide { grid-template-columns: 1fr 1fr; }
  .top-right .btn { white-space: nowrap; }
  .topbar .brand .sub { white-space: nowrap; }
  .cards3 { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .doc:not(.sent-row) .doc-actions { grid-column: 2 / -1; justify-content: flex-start; }
  .doc .hide-m { display: none; }
  table.lines .hide-m { display: none; }
}

/* Moyens de connexion (18.10.2026). */
[hidden] { display: none !important; }
.field input.inline, input.inline {
  width: 140px; padding: 6px 9px; font: inherit; font-size: 13px; color: var(--ink);
  background: var(--input); border: 1px solid var(--border); border-radius: 8px;
}
input.inline:focus { outline: none; border-color: var(--focus); }

/* Transmettre des documents (19.10.2026) : petit bouton sous le relevé de situation, zone dépliée sur place. */
.send { margin-top: 12px; }
.send > summary { list-style: none; display: inline-block; cursor: pointer; }
.send > summary::-webkit-details-marker { display: none; }
.send[open] > summary { border-color: var(--acc); }
.send form { display: grid; gap: 12px; margin: 12px 0 0; }
.send-drop { display: block; position: relative; border: 1px dashed var(--gold-line); border-radius: 10px; padding: 22px 14px;
  text-align: center; color: var(--muted); font-size: 14px; background: var(--soft); cursor: pointer; }
.send-drop.over { border-style: solid; border-color: var(--acc); }
.send-drop .u { color: var(--ink); text-decoration: underline; }
.send-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.send-list { list-style: none; margin: 0; padding: 0; }
.send-list:empty { display: none; }
.send-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.send-list li span:first-child { overflow-wrap: anywhere; }
.send-list li span:last-child { color: var(--muted); white-space: nowrap; }
.send .field { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.send .field input { font: inherit; color: var(--ink); background: var(--input); border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; }
.sent { margin-top: 10px; }
.state { display: inline-block; font-size: 12px; padding: 2px 9px; border: 1px solid var(--border); border-radius: 99px; color: var(--muted); white-space: nowrap; }
.state-recu { border-color: var(--gold-line); color: var(--ink); }
.state-classe { border-color: var(--up); color: var(--up); }
.doc.sent-row { grid-template-columns: 38px minmax(0, 1fr) 105px 120px 170px; }
.doc.sent-row .t { overflow-wrap: anywhere; }
@media (max-width: 820px) {
  .grid2.wide2 { grid-template-columns: 1fr; }  /* la règle .wide2, plus bas dans le fichier, gagnait sur téléphone */
  .doc.sent-row { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .doc.sent-row .st { grid-column: 2; }
  .doc.sent-row .doc-actions { grid-column: 3; grid-row: 1 / span 2; }
}

/* Volet entreprise (maquettes du 23.10.2026) : choix de l'espace et écrans trésorerie. Traits fins, 500 au plus. */
.space-switch { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--ink); text-decoration: none;
  border: 1px solid var(--gold-line); border-radius: 99px; padding: 6px 12px; font-size: 13.5px; font-weight: 500; max-width: 280px; }
.space-switch .k { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 400; }
.space-switch .caret { color: var(--muted); font-size: 11px; }
.space-switch .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.topbar .nav a { white-space: nowrap; }
@media (max-width: 1320px) { .top-right:has(.space-switch) .who { display: none; } }
.space-bar { display: none; }
.hero-calendar .lbl { font-size: 12px; color: var(--muted); margin: 0; }
.hero-calendar .mat:last-child { border-bottom: 0; }
.pl { display: grid; grid-template-columns: 40px minmax(0, 1fr) 160px 120px; gap: 12px; align-items: center; padding: 11px 0;
  border-bottom: 1px solid var(--border); color: var(--ink); text-decoration: none; }
a.pl:hover .t { color: var(--gold); }
.pl .ic { width: 40px; height: 34px; border: 1px solid var(--border); border-radius: 8px; display: grid; place-items: center; font-size: 10px; letter-spacing: .06em; color: var(--muted); }
.pl .ic.g { border-color: var(--gold-line); color: var(--gold); }
.pl .t, .mat .t { font-weight: 500; font-size: 14px; }
.pl .d, .mat .d { font-size: 12.5px; color: var(--muted); }
.pl .when { font-size: 13.5px; }
.pl .a, .mat .a { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mat { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); }
.mat .day { font-size: 13px; color: var(--gold); border-left: 1px solid var(--gold-line); padding-left: 8px; }
.sw { display: inline-block; width: 8px; height: 8px; margin-right: 8px; }
.sw.c1 { background: var(--c1); } .sw.c2 { background: var(--c2); } .sw.c3 { background: var(--c3); } .sw.c4 { background: var(--c4); }
.sw.c0 { border: 1px solid var(--c4); width: 6px; height: 6px; }
.limit { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.limit b { color: var(--up); font-weight: 500; }
.limit.breach b { color: var(--gold); }
.fine { font-size: 12px; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }
.spaces { max-width: 560px; margin: 20px auto; }
.spaces .eb { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0; }
.spaces form { margin: 0; }
.space { position: relative; display: block; width: 100%; text-align: left; font: inherit; cursor: pointer; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 44px 16px 20px; margin-bottom: 12px; color: var(--ink); }
.space:hover, .space.current { border-color: var(--gold-line); }
.space .k, .space .n, .space .d { display: block; }
.space .k { font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.space .n { font-size: 17px; font-weight: 500; margin: 3px 0; }
.space .d { font-size: 13px; color: var(--muted); }
.space .go { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 22px; }
@media (max-width: 820px) {
  .pl { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .pl .when { grid-column: 2 / -1; grid-row: 2; }
  .top-right .space-switch { display: none; }
  .space-bar { display: block; margin: -8px 0 14px; }
  .space-bar .space-switch { width: 100%; max-width: none; justify-content: space-between; }
  .mat { grid-template-columns: 64px minmax(0, 1fr); }
  .mat .a { grid-column: 2; text-align: left; }
  .space-bar .space-switch .n { max-width: none; }
}

/* Conditions d'utilisation et confidentialité (02.11.2026) : une colonne de lecture. */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { font-family: var(--serif); font-weight: 400; margin: 6px 0 18px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 18px; margin: 26px 0 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.legal p { line-height: 1.6; margin: 0 0 10px; }
.legal a { color: var(--acc); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 12px; background: var(--card); }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.legal-table th { font-weight: 500; color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.legal-version { margin-top: 24px; }
.legal-links, .legal-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; }
.legal-links a, .legal-foot a { color: var(--muted); }
.legal-foot { margin-top: 18px; justify-content: center; }
@media (max-width: 640px) { .legal-table { font-size: 13px; } .legal-table th, .legal-table td { padding: 7px 6px; } }
