/* erase4me — identité inspirée d'o2switch : page crème, bleu nuit, orange vif, titres Sora très gras, corps Poppins. */
:root {
  --bg: #faf7f1;            /* crème (page) */
  --surface: #ffffff;       /* cartes */
  --raise: #f3eee4;         /* survol, pistes */
  --navy: #11263f;          /* bandeaux et panneaux sombres */
  --navy-d: #0b1b2b;        /* texte */
  --navy-2: #1c3350;
  --line: #e6e1d6; --line-2: #cfc9bb;
  --text: #0b1b2b; --text-2: #3c4a5c; --muted: #73748c;
  --accent: #ff611c; --accent-d: #e5520f; --accent-soft: #fff0e8;
  --ok: #12a06e; --ok-soft: #e1f5ec; --warn: #c98200; --warn-soft: #fff3d6; --err: #d9382b; --err-soft: #fde8e5;
  --head: 'Sora', 'Poppins', system-ui, sans-serif;
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'JetBrains Mono', Consolas, monospace;
  --radius: 14px;
  --shadow: 0 10px 30px -18px rgba(11, 27, 43, .35);
  --ease: cubic-bezier(.3, .7, .2, 1);
  --page: 1160px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 15.5px; line-height: 1.65; color: var(--text); background: var(--bg);
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid rgba(255, 97, 28, .5); outline-offset: 2px; border-radius: 4px; }
main { flex: 1 0 auto; width: 100%; max-width: var(--page); margin: 0 auto; padding: 36px 28px 96px; animation: fade .35s ease-out both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- polices auto-hébergées ---------- */
@font-face { font-family: 'Sora'; font-weight: 400 800; font-display: swap; src: url('/static/fonts/sora.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url('/static/fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url('/static/fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url('/static/fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url('/static/fonts/poppins-700.woff2') format('woff2'); }

/* ---------- en-tête crème ---------- */
.topbar { background: var(--bg); position: relative; z-index: 20; }
.nav { width: 100%; max-width: var(--page); margin: 0 auto; padding: 22px 28px; display: flex; align-items: center; gap: 28px; min-height: 92px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--head); font-weight: 800; font-size: 1.7rem; letter-spacing: -.045em; line-height: 1; color: var(--navy); }
.logo b { color: var(--accent); font-weight: 800; }
.logo img { width: 40px; height: 40px; border-radius: 10px; }
.tabs { display: flex; margin-right: auto; margin-left: 8px; }
.tabs a { padding: 6px 18px; font-family: var(--head); font-size: .82rem; font-weight: 600; color: var(--navy); transition: color .2s; position: relative; }
.tabs a + a { border-left: 1px solid var(--line-2); }
.tabs a:hover { color: var(--accent); }
.tabs a.on { color: var(--accent); }
.tabs a.dash { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-right form { display: inline; }
.nav-link { padding: 8px 12px; font-family: var(--head); font-size: .82rem; font-weight: 600; color: var(--navy); background: none; border: 0; cursor: pointer; transition: color .2s; }
.nav-link:hover { color: var(--accent); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line-2); color: var(--navy); font-size: 1.2rem; cursor: pointer; margin-left: auto; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 24px; border-radius: 6px; border: 2px solid var(--navy); cursor: pointer;
  font-family: var(--head); font-size: .88rem; font-weight: 600; color: var(--navy); background: transparent; transition: background .2s, border-color .2s, color .2s, transform .15s; line-height: 1.2; }
.btn:hover { background: var(--navy); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-d); border-color: var(--accent-d); color: #fff; }
.btn-danger { color: var(--err); border-color: var(--err); }
.btn-danger:hover { background: var(--err); border-color: var(--err); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .78rem; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.on-dark .btn { color: #fff; border-color: rgba(255,255,255,.7); }
.on-dark .btn:hover { background: #fff; color: var(--navy); }
.on-dark .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.on-dark .btn-primary:hover { background: var(--accent-d); border-color: var(--accent-d); color: #fff; }

/* ---------- cartes ---------- */
.tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.tile.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.tile.dark h1, .tile.dark h2, .tile.dark h3 { color: #fff; }
.tile.dark p, .tile.dark .muted { color: rgba(255,255,255,.75); }
.tile h2, .tile h3 { font-family: var(--head); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 12px; }
.tile p { color: var(--text-2); font-size: .95rem; }
.tile p + p { margin-top: 10px; }
.tile .ico { display: none; }
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, 1fr); } .g-3 { grid-template-columns: repeat(3, 1fr); } .g-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- typographie ---------- */
.tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.tag::before { content: ""; width: 24px; height: 3px; border-radius: 2px; background: var(--accent); }
h1.title { font-family: var(--head); font-weight: 800; font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.08; letter-spacing: -.04em; margin-bottom: 22px; text-wrap: balance; color: var(--navy-d); }
h1.title em, h2.title em, .hl { font-style: normal; color: var(--accent); }
h2.title { font-family: var(--head); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.035em; line-height: 1.12; margin-bottom: 24px; text-wrap: balance; }
.lead { color: var(--text-2); max-width: 580px; margin-bottom: 30px; font-size: 1.06rem; line-height: 1.65; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.section { margin-top: 88px; }
.section.tight { margin-top: 32px; }
main > .section:first-child { margin-top: 8px; }
.muted { color: var(--muted); } .small { font-size: .84rem; } .right { text-align: right; }
.mono { font-family: var(--mono); font-size: .92em; }
.link { color: var(--accent); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(255,97,28,.35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--accent); }
.rule-title { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.rule-title .n { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--head); font-weight: 700; font-size: .85rem; }
.rule-title h2 { font-family: var(--head); font-weight: 800; font-size: clamp(1.5rem, 2.8vw, 2.1rem); letter-spacing: -.035em; line-height: 1.12; }

/* ---------- accueil : bandeau bleu nuit ---------- */
.bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.hero-band { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero-band::before { content: ""; position: absolute; right: -140px; top: -120px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(255,97,28,.22), transparent 62%); pointer-events: none; }
.hero { max-width: var(--page); margin: 0 auto; padding: 72px 28px 84px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; position: relative; }
.hero h1.title { color: #fff; font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 800; letter-spacing: -.045em; }
.hero .tag { color: rgba(255,255,255,.65); }
.hero .lead { color: rgba(255,255,255,.86); }
.band-note { background: var(--bg); border-bottom: 1px solid var(--line); }
.band-note > div { max-width: var(--page); margin: 0 auto; padding: 16px 28px; display: flex; gap: 28px; flex-wrap: wrap; align-items: center; font-family: var(--head); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.band-note i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; margin-right: 10px; }

.paper { background: #fff; color: #1d2733; border-radius: 12px; padding: 32px 32px 30px; font-family: var(--sans); font-size: .93rem; line-height: 1.7;
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.6); position: relative; }
.paper .meta { font-family: var(--head); font-weight: 600; font-size: .66rem; letter-spacing: .14em; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 18px; display: flex; justify-content: space-between; gap: 10px; }
.paper p { margin-bottom: 10px; }
.paper .ref { font-size: .8rem; color: var(--muted); margin-top: 16px; }
.bar { display: inline-block; height: .95em; vertical-align: -.12em; background: var(--navy); border-radius: 3px; transform-origin: left; animation: wipe .7s var(--ease) both; }
.bar.w1 { width: 7.5em; } .bar.w2 { width: 11em; animation-delay: .15s; } .bar.w3 { width: 5em; animation-delay: .3s; } .bar.w4 { width: 9em; animation-delay: .45s; }
@keyframes wipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.stamp { position: absolute; right: 24px; bottom: 22px; font-family: var(--head); font-weight: 700; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); border: 2px solid var(--accent); padding: 5px 12px; border-radius: 6px; transform: rotate(-4deg); background: #fff; }

/* cartes d'explication (3 colonnes) */
.cols { display: grid; gap: 20px; }
.cols.c3 { grid-template-columns: repeat(3, 1fr); } .cols.c2 { grid-template-columns: repeat(2, 1fr); }
.cols > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 32px; box-shadow: var(--shadow); }
.cols h3 { font-family: var(--head); font-weight: 700; font-size: 1.15rem; letter-spacing: -.025em; margin: 14px 0 10px; }
.cols p { color: var(--text-2); font-size: .94rem; }
.cols .n { display: inline-block; font-family: var(--head); font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 28px; }
.facts > div { display: grid; grid-template-columns: 210px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-family: var(--head); font-weight: 700; font-size: .85rem; color: var(--navy); }
.facts dd { color: var(--text-2); }
.legal li { color: var(--text-2); padding: 11px 0 11px 28px; border-bottom: 1px solid var(--line); position: relative; }
.legal li:last-child { border-bottom: 0; }
.legal li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.legal li form { display: inline; margin-left: 8px; }

/* panneau « offre » bleu nuit */
.offer { background: var(--navy); color: #fff; border-radius: 18px; padding: 48px 44px; text-align: center; box-shadow: 0 24px 50px -28px rgba(11,27,43,.7); position: relative; overflow: hidden; }
.offer::before { content: ""; position: absolute; left: 50%; top: -180px; width: 520px; height: 520px; margin-left: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,97,28,.2), transparent 65%); pointer-events: none; }
.offer > * { position: relative; }
.offer h2 { font-family: var(--head); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.04em; line-height: 1.1; color: #fff; margin-bottom: 14px; }
.offer p { color: rgba(255,255,255,.8); max-width: 520px; margin: 0 auto 26px; }
.offer .btn-row { justify-content: center; }

/* ---------- formulaires ---------- */
.auth { max-width: 460px; margin: 28px auto 0; }
.auth .tile { padding: 38px; }
.auth h1.title { font-size: 2.1rem; margin-bottom: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--head); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; color: var(--muted); }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel], .field input[type=search], .field input[type=datetime-local], .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--text);
  font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field input:hover, .field select:hover { border-color: var(--navy-2); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,97,28,.15); }
.field .hint, .hint { font-size: .82rem; color: var(--muted); margin-top: 8px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px !important; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--text-2); margin-bottom: 22px; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
.check a { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.form-foot { margin-top: 22px; font-size: .9rem; color: var(--muted); }
.form-foot a { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.code-input { text-align: center; letter-spacing: .45em; font-family: var(--mono) !important; font-size: 1.5rem !important; }

/* ---------- messages ---------- */
.flash { max-width: var(--page); margin: 0 auto; padding: 0 28px; }
.flash-item { padding: 14px 20px; border-radius: 10px; margin-bottom: 8px; font-size: .94rem; font-weight: 500; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--navy); animation: fade .4s ease-out; box-shadow: var(--shadow); }
.flash-item.ok { border-left-color: var(--ok); } .flash-item.error { border-left-color: var(--err); } .flash-item.warn { border-left-color: var(--warn); }

/* ---------- tableau de bord ---------- */
.stats { gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.stat { padding: 26px 28px 24px; display: flex; flex-direction: column; gap: 12px; background: none; border: 0; border-radius: 0; box-shadow: none; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .num { font-family: var(--head); font-weight: 800; font-size: 2.9rem; letter-spacing: -.05em; line-height: 1; color: var(--navy-d); font-variant-numeric: tabular-nums; }
.stat .num small { font-size: 1.3rem; color: var(--accent); letter-spacing: -.02em; margin-left: 2px; }
.stat .lbl { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.pct { font-family: var(--head); font-size: 3.4rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; margin-bottom: 14px; color: var(--navy-d); }
.pct small { font-size: 1.4rem; color: var(--accent); }
.seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 22px; }
.seg span { height: 8px; border-radius: 999px; background: var(--raise); }
.seg span.on { background: var(--accent); }
.checklist li { display: flex; align-items: center; gap: 14px; padding: 11px 0; font-size: .94rem; border-top: 1px solid var(--line); color: var(--text-2); }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.tick { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; font-size: .65rem; color: #fff; }
.tick.done { background: var(--ok); border-color: var(--ok); }
.checklist li:has(.tick.done) { color: var(--text); font-weight: 500; }
.empty { color: var(--muted); font-size: .94rem; }
.reply { border-top: 1px solid var(--line); padding: 14px 0; }
.reply:last-child { border-bottom: 1px solid var(--line); }
.reply summary { cursor: pointer; list-style: none; display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.reply summary::-webkit-details-marker { display: none; }
.reply summary::before { content: "+"; font-family: var(--head); font-weight: 700; color: var(--accent); width: 14px; }
.reply[open] summary::before { content: "–"; }
.reply p { margin: 10px 0 0 24px; overflow-wrap: anywhere; color: var(--text-2); font-size: .94rem; }

/* ---------- tableaux et badges ---------- */
.table-wrap { overflow-x: auto; }
.table-wrap h2 { margin-bottom: 18px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; padding: 10px 14px 10px 0; font-family: var(--head); font-weight: 600; font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); border-bottom: 2px solid var(--line); white-space: nowrap; }
td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
td.muted, td .small { font-variant-numeric: tabular-nums; }
.table td select { padding: 6px 30px 6px 10px !important; font-size: .84rem; border-radius: 6px; border: 1px solid var(--line-2); background-color: #fff; color: var(--text); font-family: inherit; }
.badge { white-space: nowrap; display: inline-block; padding: 3px 10px; border-radius: 999px; font-family: var(--head); font-size: .64rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--raise); color: var(--text-2); vertical-align: 2px; }
.badge.ok { background: var(--ok-soft); color: #0a7a53; } .badge.warn { background: var(--warn-soft); color: #8a5a00; }
.badge.info { background: #e6ecf5; color: var(--navy); }
.badge.err { background: var(--err-soft); color: #b3261e; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.filters input, .filters select { padding: 12px 15px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--text); font: inherit; font-size: .94rem; }
.filters input { flex: 1; min-width: 220px; }
.filters input:focus, .filters select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,97,28,.15); }
.tile.table-wrap { padding: 26px 28px; }

/* ---------- coffre ---------- */
.vault-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.vault-list li:last-child { border-bottom: 1px solid var(--line); }
.v-main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; flex: 1 1 260px; }
.v-val { font-family: var(--mono); font-size: .9rem; word-break: break-all; }
.v-actions { display: flex; gap: 8px; flex: none; } .v-actions form { display: inline; }
.secret { font-family: var(--mono); background: var(--raise); border: 1px solid var(--line); padding: 12px 14px; border-radius: 8px; word-break: break-all; letter-spacing: .08em; }
code { font-family: var(--mono); font-size: .88em; background: var(--raise); border: 1px solid var(--line); padding: 2px 7px; border-radius: 5px; }
.qr { background: #fff; padding: 12px; border-radius: 10px; border: 1px solid var(--line); width: 200px; margin: 6px auto 20px; } .qr svg { width: 100%; height: auto; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 20px 0 26px; }
.codes li { font-family: var(--mono); background: var(--raise); border: 1px solid var(--line); padding: 11px; border-radius: 8px; text-align: center; letter-spacing: .08em; }
.codes code { background: none; border: 0; padding: 0; font-size: 1rem; }
.tile.danger { border-color: rgba(217,56,43,.4); }

/* ---------- pages de texte ---------- */
.prose { max-width: 720px; }
.prose h1.title { font-size: clamp(2.1rem, 4.2vw, 3rem); }
.prose h2 { font-family: var(--head); font-weight: 700; font-size: 1.35rem; letter-spacing: -.03em; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--text-2); margin-bottom: 12px; }
.prose ul { padding-left: 22px; list-style: none; } .prose li { position: relative; } .prose li::before { content: ""; position: absolute; left: -20px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.prose .tag { color: var(--warn); } .prose .tag::before { background: var(--warn); }

/* ---------- pied de page bleu nuit ---------- */
footer { flex: 0 0 auto; background: var(--navy); color: rgba(255,255,255,.7); }
.foot-inner { max-width: var(--page); margin: 0 auto; padding: 34px 28px 38px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; font-size: .85rem; }
.foot-inner .logo { color: #fff; font-size: 1.3rem; }
footer a { transition: color .2s; } footer a:hover { color: var(--accent); }

/* ---------- panel en direct ---------- */
.livebar { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 20px; overflow: hidden; box-shadow: var(--shadow); }
.lcell { padding: 20px 24px 18px; } .lcell + .lcell { border-left: 1px solid var(--line); }
.llabel { font-family: var(--head); font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.lval { font-family: var(--head); font-size: 1.55rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; color: var(--navy-d); }
.lval small { font-size: 1rem; color: var(--muted); letter-spacing: 0; font-weight: 600; }
.lsub { color: var(--muted); font-size: .8rem; margin-top: 8px; line-height: 1.4; }
.lsub b { color: var(--navy); font-weight: 600; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.pulse.active { background: var(--ok); animation: beat 2.4s ease-out infinite; }
.pulse.idle { background: var(--warn); } .pulse.down { background: var(--err); }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(18,160,110,.5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(18,160,110,0); } }
.offline .livebar { opacity: .55; } .offline .tag::after { content: " · connexion perdue"; color: var(--err); }
.bump { animation: bump .9s ease-out; }
@keyframes bump { 0% { color: var(--accent); } 100% { color: inherit; } }
.live-tag { font-family: var(--head); font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #0a7a53; background: var(--ok-soft); padding: 3px 9px; border-radius: 999px; vertical-align: 3px; margin-left: 8px; }
.feed li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.feed li.empty { display: block; }
.feed li:last-child { border-bottom: 1px solid var(--line); }
.feed time { font-family: var(--mono); font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.feed .ev { color: var(--text); font-weight: 500; }
.feed li.new { animation: newrow 3s ease-out; }
@keyframes newrow { 0% { background: rgba(255,97,28,.14); } 100% { background: transparent; } }
.dl { font-family: var(--head); font-size: .7rem; font-weight: 600; letter-spacing: .03em; color: var(--text-2); }
.dl.delivered { color: #0a7a53; } .dl.bounced, .dl.blocked, .dl.spam, .dl.error { color: var(--err); } .dl.deferred, .dl.soft_bounce { color: var(--warn); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { font-family: var(--head); font-size: .74rem; font-weight: 600; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); background: var(--surface); }
.chip b { color: var(--navy-d); font-weight: 800; margin-right: 4px; }
.chip.delivered { border-color: rgba(18,160,110,.5); } .chip.bounced, .chip.blocked, .chip.spam, .chip.error { border-color: rgba(217,56,43,.5); }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; } .row-between h2 { margin: 0; }
.letter { font-family: var(--mono); font-size: .76rem; line-height: 1.6; white-space: pre-wrap; background: var(--raise); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-top: 10px; overflow-wrap: anywhere; color: var(--text-2); }
.mt { margin-top: 20px; } .inline { display: inline; margin-left: 8px; } .center { text-align: center; justify-content: center; }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline-form select { padding: 10px 36px 10px 12px; border-radius: 8px; border: 1px solid var(--line-2); background-color: #fff; color: var(--text); font: inherit; font-size: .9rem; }
.livebar.five { grid-template-columns: repeat(5, 1fr); }
td.muted:not(.small) { white-space: nowrap; }
td form { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
td form .btn-sm { padding: 6px 12px; }
@media (min-width: 981px) { .vault-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 56px 28px 64px; }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .livebar, .livebar.five { grid-template-columns: repeat(2, 1fr); } .lcell:nth-child(3) { border-left: 0; } .lcell:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .nav { padding: 16px 18px; flex-wrap: wrap; gap: 12px; min-height: 0; } .menu-btn { display: block; }
  .tabs, .nav-right { display: none; width: 100%; order: 5; flex-direction: column; align-items: stretch; }
  .tabs { margin: 0; } .nav.open .tabs, .nav.open .nav-right { display: flex; }
  .tabs a, .nav-link { padding: 13px 4px; border-bottom: 1px solid var(--line); text-align: left; font-size: .95rem; }
  .tabs a + a { border-left: 0; }
  .nav-right .btn { margin-top: 10px; }
  main { padding: 22px 18px 72px; } .flash { padding: 0 18px; }
  .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); }
  .cols.c3, .cols.c2 { grid-template-columns: 1fr; }
  .facts { padding: 4px 20px; } .facts > div { grid-template-columns: 1fr; gap: 4px; }
  .section { margin-top: 64px; }
  .stat { padding: 20px 18px; } .stat .num { font-size: 2.4rem; }
  .paper { padding: 24px 20px 26px; }
  .tile { padding: 22px 18px; } .auth .tile { padding: 28px 20px; }
  .offer { padding: 36px 22px; }
  .livebar, .livebar.five { grid-template-columns: 1fr 1fr; } .lcell { padding: 16px; } .lval { font-size: 1.3rem; } .feed li { grid-template-columns: 1fr; gap: 2px; }
  .foot-inner { padding: 26px 18px 30px; flex-direction: column; align-items: flex-start; }
  .band-note > div { padding: 14px 18px; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { main, .flash-item { animation: none; } .bar, .pulse.active, .bump, .feed li.new { animation: none; } }

/* carte sombre : variantes des éléments internes */
.tile.dark .pct { color: #fff; }
.tile.dark .seg span { background: rgba(255,255,255,.16); }
.tile.dark .seg span.on { background: var(--accent); }
.tile.dark .checklist li { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.14); }
.tile.dark .checklist li:has(.tick.done) { color: #fff; }
.tile.dark .tick { border-color: rgba(255,255,255,.4); }
.tile.dark .btn { color: #fff; border-color: rgba(255,255,255,.7); }
.tile.dark .btn:hover { background: #fff; color: var(--navy); }
.tile.dark .btn-primary { background: var(--accent); border-color: var(--accent); }
.tile.dark .btn-primary:hover { background: var(--accent-d); border-color: var(--accent-d); color: #fff; }
.grid > *, .cols > * { min-width: 0; }
.tile table { table-layout: auto; }
@media (max-width: 760px) { .tile td, .tile th { padding-right: 10px; } td .small { white-space: normal; } }

/* sélecteur de langue */
.langsw { position: relative; }
.langsw summary { list-style: none; cursor: pointer; font-family: var(--head); font-size: .74rem; font-weight: 700; letter-spacing: .08em; color: var(--navy); padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); }
.langsw summary::-webkit-details-marker { display: none; }
.langsw summary::after { content: "▾"; margin-left: 6px; font-size: .7rem; color: var(--muted); }
.langsw[open] summary { border-color: var(--accent); }
.langmenu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 150px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; z-index: 40; }
.langmenu a { display: block; padding: 8px 12px; border-radius: 6px; font-size: .86rem; color: var(--navy); }
.langmenu a:hover { background: var(--raise); }
.langmenu a.cur { color: var(--accent); font-weight: 600; }
@media (max-width: 760px) { .langsw { order: 9; margin-top: 8px; } .langmenu { position: static; box-shadow: none; margin-top: 6px; } }

/* pages juridiques */
.draft { border-left: 4px solid var(--warn); background: var(--warn-soft); padding: 12px 18px; border-radius: 0 10px 10px 0; margin-bottom: 24px; color: var(--text-2); font-size: .92rem; }
.legaldoc { max-width: 780px; }
.legaldoc h1 { font-family: var(--head); font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -.04em; line-height: 1.1; margin-bottom: 14px; }
.legaldoc h2 { margin-top: 36px; }
.legaldoc table { margin: 14px 0 20px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: .88rem; display: block; overflow-x: auto; }
.legaldoc th { background: var(--raise); padding: 10px 12px; }
.legaldoc td { padding: 10px 12px; }
.legaldoc strong { color: var(--navy-d); }
.legaldoc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* expositions */
.expo-list { display: grid; gap: 12px; margin-top: 14px; }
.expo { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--bg); }
.expo-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 4px; }
.expo-lbl { font-family: var(--head); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.chip { font-size: .78rem; padding: 3px 10px; border-radius: 999px; background: var(--raise); border: 1px solid var(--line); color: var(--text-2); }
.chip.sens { background: var(--warn-soft); border-color: var(--warn); color: var(--navy-d); font-weight: 600; }
.expo-item { margin: 6px 0 0; overflow-wrap: anywhere; font-size: .9rem; }
.grid.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tabs a { white-space: nowrap; }
@media (max-width: 760px) { .expo { grid-template-columns: minmax(0, 1fr); } .grid.g-3 { grid-template-columns: minmax(0, 1fr); } }
