[hidden] { display: none !important; }
/* Concept : application mobile en colonne unique, onglets en bas, bleu nuit du site d'origine avec un accent or */
:root {
  --bg: #f2f5fa;
  --surface: #ffffff;
  --surface-2: #e8eef8;
  --fg: #071d3b;
  --muted: #4d607c;
  --line: #d3dcea;
  --accent: #f2b134;
  --accent-fg: #071d3b;
  --link: #0b4a9e;
  --ok: #0f7a4a;
  --ok-bg: #dcf3e6;
  --warn: #8a5a00;
  --warn-bg: #fdf0d2;
  --bad: #b3261e;
  --hero-from: #071d3b;
  --hero-to: #0d3a73;
  --hero-fg: #ffffff;
  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #061326; --surface: #0c2140; --surface-2: #11305a; --fg: #eaf1fb; --muted: #9db1cf;
    --line: #1c3a66; --link: #8fbaff; --ok: #5fd39a; --ok-bg: #0f3a2a; --warn: #f2c35e; --warn-bg: #3a2c0a;
    --bad: #ff8a80; --hero-from: #0c2a52; --hero-to: #123e78; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #061326; --surface: #0c2140; --surface-2: #11305a; --fg: #eaf1fb; --muted: #9db1cf;
  --line: #1c3a66; --link: #8fbaff; --ok: #5fd39a; --ok-bg: #0f3a2a; --warn: #f2c35e; --warn-bg: #3a2c0a;
  --bad: #ff8a80; --hero-from: #0c2a52; --hero-to: #123e78; color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 96px;
}
.app { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px 0; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.brand b { color: var(--link); font-weight: 800; }
.logo { width: 34px; height: 34px; border-radius: 10px; background: var(--fg); color: var(--bg); display: grid; place-items: center; font-size: 18px; }
.tag { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; text-wrap: balance; line-height: 1.15; }
h2 { font-size: 24px; }
h3 { font-size: 17px; }
p { margin: 0; }
.hero { background: linear-gradient(150deg, var(--hero-from), var(--hero-to)); color: var(--hero-fg); border-radius: 20px; padding: 24px 20px; display: flex; flex-direction: column; gap: 16px; }
.hero .eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--accent); }
.hero h1 { font-size: 32px; }
.hero p { color: #d3e1f7; }
.flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--font-display); font-weight: 700; }
.flow span.chip { background: rgba(255,255,255,.12); padding: 6px 12px; border-radius: 999px; font-size: 14px; }
.flow .arrow { color: var(--accent); }
.btn { font: inherit; font-weight: 600; border: 0; border-radius: 12px; padding: 14px 18px; cursor: pointer; min-height: 48px; background: var(--accent); color: var(--accent-fg); text-align: center; text-decoration: none; display: inline-block; }
.btn.ghost { background: transparent; color: var(--hero-fg); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.btn.sec { background: var(--surface-2); color: var(--fg); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 160px; min-width: 0; }
.note { font-size: 14px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.wallet { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; gap: 10px; align-items: center; min-width: 0; }
.wallet i { font-style: normal; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 13px; color: #fff; flex: none; }
.wallet strong { display: block; font-size: 15px; }
.wallet small { color: var(--muted); font-size: 12px; }
.steps { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.steps .n { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-width: 0; }
.fact b { display: block; font-family: var(--font-display); font-size: 22px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fact span { font-size: 13px; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 6px; }
input, select { font: inherit; width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--fg); }
input:focus-visible, select:focus-visible, .btn:focus-visible, nav.tabs button:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.err { color: var(--bad); font-size: 14px; min-height: 20px; }
.sum { background: var(--surface-2); border-radius: 12px; padding: 14px; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum .tot { font-family: var(--font-display); font-weight: 800; font-size: 20px; border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 4px; }
.pay { text-align: center; gap: 10px; }
.bignum { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.ex { background: var(--surface-2); color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.timeline li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.timeline li.now .dot { border-color: var(--accent); background: var(--accent); color: var(--accent-fg); }
.timeline li.todo { color: var(--muted); }
.list { display: grid; gap: 10px; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 6px; cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.item .l1 { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.item .l1 b { font-family: var(--font-display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.item .l2 { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
nav.tabs { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; z-index: 5;
  padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
nav.tabs button { font: inherit; font-size: 13px; font-weight: 600; background: transparent; color: var(--muted); border: 0; border-radius: 10px; padding: 8px 4px; min-height: 48px; cursor: pointer; }
nav.tabs button[aria-current="page"] { background: var(--surface-2); color: var(--fg); }
.foot { font-size: 13px; color: var(--muted); text-align: center; padding-block: 8px; }
.empty { text-align: center; color: var(--muted); padding: 20px 8px; }
@media (prefers-reduced-motion: no-preference) { section:not([hidden]) { animation: in .25s ease-out; } @keyframes in { from { opacity: .0; transform: translateY(6px); } } }
