/* Mosika — maquette dynamique (Answer Labs) */
@font-face { font-family: 'Jakarta'; src: url('fonts/jakarta-latin.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --em-950: #04241D; --em-900: #063A2F; --em-800: #084A3C; --em-700: #0B5D4B; --em-600: #0E7A61; --em-500: #14987A;
  --em-200: #BFE6D9; --em-100: #DDF3EC; --em-50: #EFF8F5;
  --amber: #F5A623; --amber-600: #D98A0B; --amber-100: #FFF1D6;
  --ink: #0F1F1B; --ink-2: #2A3A36; --muted: #63736E; --faint: #95A39F;
  --line: #E4EBE8; --bg: #F4F7F6; --surface: #FFFFFF;
  --red: #D64545; --red-100: #FDE8E8; --blue: #2F6FD6; --blue-100: #E5EEFC; --violet: #7A4FD1; --violet-100: #EFE8FC;
  --r-sm: 10px; --r: 16px; --r-lg: 22px;
  --sh: 0 1px 2px rgba(6,58,47,.06), 0 4px 14px rgba(6,58,47,.06);
  --sh-lg: 0 10px 40px rgba(6,58,47,.18);
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { font-family: 'Jakarta', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: #E9EFEC; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
svg.i { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Scène bureau ---------- */
.stage { min-height: 100vh; display: grid; grid-template-columns: minmax(300px, 440px) auto; gap: 64px; align-items: center; justify-content: center; padding: 40px 32px;
  background: radial-gradient(1200px 600px at 10% 0%, #DCEFE7 0%, transparent 60%), radial-gradient(900px 500px at 100% 100%, #FBEBCB 0%, transparent 55%), #EEF3F1; }
.intro .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.intro .brand img { width: 52px; height: 52px; }
.intro .brand b { font-size: 30px; letter-spacing: -.02em; color: var(--em-900); }
.intro h1 { font-size: 40px; line-height: 1.08; letter-spacing: -.03em; color: var(--em-950); margin-bottom: 14px; }
.intro h1 em { font-style: normal; color: var(--em-600); }
.intro p.lead { color: var(--ink-2); font-size: 16px; line-height: 1.55; margin-bottom: 26px; }
.intro .tour { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.intro .tour button { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; font-size: 13px; font-weight: 600; color: var(--em-800); transition: .2s var(--ease); }
.intro .tour button:hover { border-color: var(--em-500); background: var(--em-50); }
.intro .meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.intro .btn-bo { display: inline-flex; align-items: center; gap: 8px; background: var(--em-900); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; text-decoration: none; }
.intro .btn-ghost { display: inline-flex; align-items: center; gap: 8px; color: var(--em-800); padding: 12px 6px; font-weight: 700; font-size: 14px; }
.intro small { display: block; margin-top: 26px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.intro small a { color: var(--em-700); }

.phone { width: 390px; height: 820px; border-radius: 54px; background: #0B1512; padding: 12px; box-shadow: 0 40px 80px rgba(4,36,29,.28), inset 0 0 0 2px #26332F; position: relative; }
.phone::before { content: ''; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 110px; height: 30px; border-radius: 20px; background: #000; z-index: 30; }
.screen { width: 100%; height: 100%; border-radius: 43px; overflow: hidden; position: relative; background: var(--bg); }
.statusbar { position: absolute; top: 0; left: 0; right: 0; height: 50px; display: flex; justify-content: space-between; align-items: center; padding: 6px 30px 0; font-size: 14px; font-weight: 700; z-index: 25; pointer-events: none; color: var(--ink); }
.statusbar .sb-r { display: flex; gap: 6px; align-items: center; }
.statusbar.light { color: #fff; }
#app { position: absolute; inset: 0; }

@media (max-width: 980px) { .stage { grid-template-columns: 1fr; justify-items: center; } .intro { max-width: 520px; text-align: center; } .intro .brand, .intro .tour, .intro .meta { justify-content: center; } }
/* Téléphone réel : l'app en plein écran */
@media (max-width: 560px) {
  body { background: var(--bg); }
  .stage { display: block; padding: 0; min-height: 0; background: none; }
  .intro { display: none; }
  .phone { width: 100%; height: 100dvh; border-radius: 0; padding: 0; box-shadow: none; background: none; }
  .phone::before, .statusbar { display: none; }
  .screen { border-radius: 0; }
  .phone .scr { --top-pad: calc(8px + env(safe-area-inset-top)); }
  .nav { padding-bottom: calc(14px + env(safe-area-inset-bottom)); height: auto; min-height: 76px; }
}

/* ---------- Structure d'un écran ---------- */
.scr { --top-pad: 50px; position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); animation: scrIn .32s var(--ease) both; }
.scr.back-anim { animation-name: scrBack; }
@keyframes scrIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes scrBack { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
.top { padding: calc(var(--top-pad) + 8px) 16px 10px; display: flex; align-items: center; gap: 10px; background: var(--bg); flex: none; }
.top h2 { font-size: 18px; letter-spacing: -.01em; flex: 1; }
.top .ib { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--sh); color: var(--ink); }
.body { flex: 1; overflow-y: auto; padding: 4px 16px 24px; scrollbar-width: none; }
.body::-webkit-scrollbar { display: none; }
.body.pad-nav { padding-bottom: 100px; }
.foot { padding: 12px 16px 22px; background: var(--bg); flex: none; }

/* ---------- Composants ---------- */
.btn { width: 100%; height: 54px; border-radius: 16px; background: var(--em-700); color: #fff; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s var(--ease), background .2s; }
.btn:active { transform: scale(.98); }
.btn:hover { background: var(--em-800); }
.btn[disabled] { background: #B9C7C2; cursor: not-allowed; }
.btn.amber { background: var(--amber); color: var(--em-950); }
.btn.light { background: var(--surface); color: var(--em-800); box-shadow: var(--sh); }
.btn.outline { background: transparent; color: var(--em-800); border: 1.5px solid var(--em-200); }
.btn.danger { background: var(--red); }
.btn + .btn { margin-top: 10px; }
.link { color: var(--em-700); font-weight: 700; font-size: 14px; }

.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--sh); padding: 16px; }
.card + .card { margin-top: 12px; }
.sec { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 2px 10px; }
.sec h3 { font-size: 15px; letter-spacing: -.01em; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.5; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--em-100); color: var(--em-800); }
.tag.amber { background: var(--amber-100); color: #8A5A00; }
.tag.red { background: var(--red-100); color: var(--red); }
.tag.blue { background: var(--blue-100); color: var(--blue); }
.tag.gray { background: #EEF1F0; color: var(--muted); }

.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.list .row + .row { border-top: 1px solid var(--line); }
.row .ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--em-50); color: var(--em-700); flex: none; }
.row .ico.amber { background: var(--amber-100); color: var(--amber-600); }
.row .ico.red { background: var(--red-100); color: var(--red); }
.row .ico.blue { background: var(--blue-100); color: var(--blue); }
.row .ico.violet { background: var(--violet-100); color: var(--violet); }
.row .ico.gray { background: #EEF1F0; color: var(--ink-2); }
.row .tx { flex: 1; min-width: 0; }
.row .tx b { display: block; font-size: 14.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .tx span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .amt { font-weight: 700; font-size: 14.5px; text-align: right; white-space: nowrap; }
.row .amt.in { color: var(--em-600); }
.row .amt small { display: block; font-weight: 500; font-size: 11.5px; color: var(--faint); }
button.row { width: 100%; text-align: left; }
.chev { color: var(--faint); }

.av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; flex: none; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.chip.on { background: var(--em-700); border-color: var(--em-700); color: #fff; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 650; color: var(--ink-2); margin-bottom: 6px; }
.input { width: 100%; height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 14px; font-size: 16px; outline: none; transition: border .2s; }
.input:focus { border-color: var(--em-500); }
.input-pre { display: flex; align-items: center; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); height: 56px; overflow: hidden; }
.input-pre:focus-within { border-color: var(--em-500); }
.input-pre .pre { padding: 0 12px 0 14px; font-weight: 700; color: var(--ink-2); border-right: 1px solid var(--line); height: 100%; display: flex; align-items: center; gap: 6px; }
.input-pre input { border: 0; outline: none; flex: 1; height: 100%; padding: 0 14px; font-size: 18px; font-weight: 600; letter-spacing: .04em; background: none; }

.switch { width: 48px; height: 28px; border-radius: 999px; background: #CBD5D1; position: relative; flex: none; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.switch.on { background: var(--em-600); }
.switch.on::after { transform: translateX(20px); }

.bar { height: 8px; border-radius: 99px; background: var(--em-100); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--em-600); transition: width .6s var(--ease); }
.bar.amber { background: var(--amber-100); } .bar.amber i { background: var(--amber); }

.seg { display: flex; background: #E6ECE9; border-radius: 13px; padding: 4px; gap: 4px; }
.seg button { flex: 1; height: 38px; border-radius: 10px; font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--em-800); box-shadow: var(--sh); }

.banner { border-radius: var(--r); padding: 16px; display: flex; gap: 14px; align-items: center; background: linear-gradient(120deg, var(--amber-100), #FFE4B0); color: #5C3B00; }
.banner b { display: block; font-size: 14.5px; color: #3D2700; }
.banner span { font-size: 12.5px; }
.banner .bi { width: 46px; height: 46px; border-radius: 14px; background: var(--amber); color: var(--em-950); display: grid; place-items: center; flex: none; }

/* ---------- Navigation basse ---------- */
.nav { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; padding: 0 10px 18px; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-around; z-index: 20; }
.nav button { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 650; color: var(--faint); width: 64px; padding-top: 6px; }
.nav button.on { color: var(--em-700); }
.nav .scan { width: 58px; height: 58px; border-radius: 20px; background: var(--em-700); color: #fff; display: grid; place-items: center; margin-top: -26px; box-shadow: 0 8px 20px rgba(11,93,75,.35); padding: 0; }
.nav .scan svg { width: 26px; height: 26px; }

/* ---------- Accueil ---------- */
.home-head { display: flex; align-items: center; gap: 12px; padding: calc(var(--top-pad) + 8px) 16px 14px; }
.home-head .who { flex: 1; }
.home-head .who span { font-size: 13px; color: var(--muted); }
.home-head .who b { display: block; font-size: 18px; letter-spacing: -.01em; }
.bell { position: relative; }
.bell .dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); border: 2px solid #fff; }

.balance { border-radius: var(--r-lg); padding: 20px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(260px 160px at 100% 0%, rgba(245,166,35,.35), transparent 70%), linear-gradient(140deg, var(--em-700), var(--em-900)); box-shadow: 0 14px 30px rgba(6,58,47,.28); }
.balance::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 28px solid rgba(255,255,255,.05); }
.balance .lbl { display: flex; align-items: center; gap: 8px; font-size: 13px; opacity: .85; }
.balance .lbl button { color: #fff; opacity: .9; display: grid; }
.balance .lbl svg { width: 18px; height: 18px; }
.balance .val { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 4px; }
.balance .val small { font-size: 16px; font-weight: 600; opacity: .8; margin-left: 4px; }
.balance .id { font-size: 12.5px; opacity: .75; }
.balance .acts { display: flex; gap: 8px; margin-top: 18px; position: relative; z-index: 1; }
.balance .acts button { flex: 1; height: 40px; border-radius: 12px; background: rgba(255,255,255,.14); color: #fff; font-weight: 700; font-size: 13.5px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.balance .acts button:first-child { background: var(--amber); color: var(--em-950); }
.balance .acts svg { width: 18px; height: 18px; }

.qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; margin-top: 18px; }
.qa button { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; font-weight: 650; color: var(--ink-2); }
.qa .qi { width: 54px; height: 54px; border-radius: 18px; background: var(--surface); box-shadow: var(--sh); display: grid; place-items: center; color: var(--em-700); transition: transform .15s var(--ease); }
.qa button:active .qi { transform: scale(.94); }
.qa .qi svg { width: 24px; height: 24px; }

.vaults-mini { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
.vaults-mini::-webkit-scrollbar { display: none; }
.vm { flex: none; width: 150px; background: var(--surface); border-radius: var(--r); box-shadow: var(--sh); padding: 14px; text-align: left; }
.vm .vi { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 10px; }
.vm b { display: block; font-size: 13.5px; } .vm span { display: block; font-size: 12px; color: var(--muted); margin: 2px 0 8px; }

/* ---------- Onboarding ---------- */
.welcome { background: linear-gradient(180deg, var(--em-900), var(--em-950)); color: #fff; }
.welcome .slides { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.welcome .slides::-webkit-scrollbar { display: none; }
.welcome .slide { flex: none; width: 100%; scroll-snap-align: center; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 28px 10px; }
.welcome .art { flex: 1; display: grid; place-items: center; padding-top: 60px; }
.welcome h1 { font-size: 30px; line-height: 1.12; letter-spacing: -.03em; margin-bottom: 10px; }
.welcome h1 em { font-style: normal; color: var(--amber); }
.welcome p { color: rgba(255,255,255,.75); font-size: 15px; line-height: 1.5; }
.welcome .dots { display: flex; gap: 6px; padding: 18px 28px; }
.welcome .dots i { width: 8px; height: 8px; border-radius: 9px; background: rgba(255,255,255,.25); transition: .3s var(--ease); }
.welcome .dots i.on { width: 24px; background: var(--amber); }
.welcome .foot { background: none; padding: 0 24px 30px; }
.welcome .btn.light { background: rgba(255,255,255,.1); color: #fff; box-shadow: none; }

.steps { display: flex; gap: 6px; margin: 2px 0 20px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps i.on { background: var(--em-600); }
.big-t { font-size: 26px; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 8px; }

.otp { display: flex; gap: 8px; justify-content: space-between; margin: 26px 0 16px; }
.otp span { flex: 1; height: 58px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 24px; font-weight: 800; transition: .2s; }
.otp span.f { border-color: var(--em-500); background: var(--em-50); }

.capture { border: 2px dashed var(--em-200); border-radius: var(--r); height: 150px; display: grid; place-items: center; text-align: center; background: var(--surface); color: var(--muted); font-size: 13px; transition: .3s var(--ease); width: 100%; }
.capture svg { width: 30px; height: 30px; color: var(--em-600); margin: 0 auto 6px; display: block; }
.capture.ok { border-style: solid; border-color: var(--em-500); background: var(--em-50); color: var(--em-800); font-weight: 700; }
.selfie { width: 190px; height: 230px; margin: 10px auto 16px; border-radius: 50%; border: 3px dashed var(--em-200); display: grid; place-items: center; color: var(--em-600); background: var(--surface); transition: .3s; }
.selfie.ok { border-style: solid; border-color: var(--em-500); background: var(--em-50); }
.selfie svg { width: 70px; height: 70px; stroke-width: 1.3; }

/* ---------- Pavé numérique / montants ---------- */
.amount-box { text-align: center; padding: 22px 0 8px; }
.amount-box .to { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); padding: 8px 14px 8px 8px; border-radius: 999px; box-shadow: var(--sh); margin-bottom: 22px; text-align: left; }
.amount-box .to .av { width: 34px; height: 34px; font-size: 12px; }
.amount-box .to b { display: block; font-size: 14px; } .amount-box .to span { font-size: 12px; color: var(--muted); }
.amount-box .big { font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.amount-box .big small { font-size: 20px; color: var(--muted); font-weight: 700; margin-left: 4px; letter-spacing: 0; }
.amount-box .fee { margin-top: 10px; font-size: 13px; color: var(--muted); min-height: 20px; }
.amount-box .fee.err { color: var(--red); font-weight: 600; }
.quick { display: flex; gap: 8px; justify-content: center; margin: 14px 0 6px; flex-wrap: wrap; }
.quick button { padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 650; }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px 4px; }
.pad button { height: 54px; border-radius: 14px; font-size: 24px; font-weight: 650; display: grid; place-items: center; transition: background .12s; }
.pad button:active { background: #E3EAE7; }

.summary .row { padding: 10px 0; }
.summary .k { color: var(--muted); font-size: 14px; flex: 1; }
.summary .v { font-weight: 650; font-size: 14.5px; text-align: right; }
.summary .total .k, .summary .total .v { color: var(--ink); font-weight: 800; font-size: 16px; }
.summary .row + .row { border-top: 1px solid var(--line); }

/* ---------- Feuilles (bottom sheet) ---------- */
.sheet-wrap { position: absolute; inset: 0; z-index: 40; background: rgba(4,36,29,.45); display: flex; align-items: flex-end; animation: fade .2s ease both; }
.sheet { width: 100%; background: var(--surface); border-radius: 26px 26px 0 0; padding: 10px 20px 26px; animation: up .32s var(--ease) both; max-height: 88%; overflow-y: auto; }
.sheet .grab { width: 42px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 14px; }
.sheet h3 { font-size: 19px; letter-spacing: -.01em; margin-bottom: 4px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }
.pin-dots { display: flex; gap: 16px; justify-content: center; margin: 22px 0 14px; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--em-200); transition: .15s; }
.pin-dots i.f { background: var(--em-700); border-color: var(--em-700); transform: scale(1.1); }
.pin-dots.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

/* ---------- Succès ---------- */
.done { background: linear-gradient(180deg, var(--em-700), var(--em-900)); color: #fff; }
.done .body { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 40px; }
.check { width: 96px; height: 96px; border-radius: 50%; background: var(--amber); color: var(--em-950); display: grid; place-items: center; margin-bottom: 22px; animation: pop .5s var(--ease) both; box-shadow: 0 0 0 14px rgba(245,166,35,.18); }
.check svg { width: 46px; height: 46px; stroke-width: 3; }
.check svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .25s ease forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h2 { font-size: 22px; } .done .amt-big { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 4px; }
.done p { color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.5; }
.done .rcpt { background: rgba(255,255,255,.1); border-radius: var(--r); padding: 14px 16px; width: 100%; margin-top: 24px; text-align: left; font-size: 13.5px; }
.done .rcpt div { display: flex; justify-content: space-between; padding: 5px 0; gap: 10px; } .done .rcpt span { opacity: .7; }
.done .foot { background: none; }
.done .btn.light { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.code-big { font-size: 40px; font-weight: 800; letter-spacing: .18em; background: rgba(255,255,255,.12); border-radius: 16px; padding: 14px 20px; margin: 16px 0 6px; }

/* ---------- QR / scan ---------- */
.qr-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh); padding: 22px; text-align: center; }
.qr-card svg.qr { width: 210px; height: 210px; display: block; margin: 6px auto 14px; }
.scanner { background: #08120F; color: #fff; }
.scanner .top { background: none; } .scanner .top .ib { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; } .scanner .top h2 { color: #fff; }
.viewfinder { position: relative; width: 250px; height: 250px; margin: 40px auto 26px; }
.viewfinder::before { content: ''; position: absolute; inset: 0; border-radius: 26px; background: radial-gradient(circle at 40% 40%, #1E2E29, #0B1714); }
.viewfinder .c { position: absolute; width: 46px; height: 46px; border: 4px solid var(--amber); }
.viewfinder .c1 { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 22px 0 0 0; } .viewfinder .c2 { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 22px 0 0; }
.viewfinder .c3 { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 22px; } .viewfinder .c4 { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 22px 0; }
.viewfinder .line { position: absolute; left: 16px; right: 16px; height: 3px; border-radius: 3px; background: var(--amber); box-shadow: 0 0 18px var(--amber); animation: scanl 1.8s ease-in-out infinite alternate; }
.viewfinder .ghost { position: absolute; inset: 55px; opacity: .25; }
@keyframes scanl { from { top: 18px; } to { top: calc(100% - 20px); } }
.scanner .hint { color: rgba(255,255,255,.7); text-align: center; }

/* ---------- Grilles services ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { background: var(--surface); border-radius: var(--r); box-shadow: var(--sh); padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 650; text-align: center; color: var(--ink-2); line-height: 1.25; position: relative; }
.tile .ti { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--em-50); color: var(--em-700); }
.tile .new { position: absolute; top: 8px; right: 8px; font-size: 9.5px; font-weight: 800; background: var(--amber); color: var(--em-950); padding: 2px 6px; border-radius: 6px; }

/* ---------- Carte Visa ---------- */
.vcard { aspect-ratio: 1.586; border-radius: 20px; padding: 20px; color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(300px 200px at 110% -10%, rgba(245,166,35,.55), transparent 60%), linear-gradient(135deg, #0E2B24 0%, #0B5D4B 55%, #0E7A61 100%); box-shadow: 0 16px 34px rgba(6,58,47,.35); transition: filter .4s; }
.vcard.frozen { filter: grayscale(1) brightness(.85); }
.vcard .t { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 17px; }
.vcard .t span { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.15); }
.vcard .pan { font-size: 19px; font-weight: 700; letter-spacing: .14em; }
.vcard .b { display: flex; justify-content: space-between; align-items: flex-end; font-size: 12px; }
.vcard .b small { display: block; opacity: .65; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.vcard .visa { font-size: 24px; font-style: italic; font-weight: 800; letter-spacing: -.02em; }
.vcard .frz { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.25); font-weight: 800; letter-spacing: .1em; font-size: 14px; }

/* ---------- Chat IA ---------- */
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 84%; padding: 11px 14px; border-radius: 18px; font-size: 14px; line-height: 1.5; animation: msgIn .3s var(--ease) both; }
.msg.bot { background: var(--surface); box-shadow: var(--sh); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.me { background: var(--em-700); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.msg b { font-weight: 750; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.typing { display: inline-flex; gap: 4px; } .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.composer { display: flex; gap: 8px; align-items: center; }
.composer input { flex: 1; height: 48px; border-radius: 14px; border: 1.5px solid var(--line); padding: 0 14px; outline: none; background: var(--surface); }
.composer button { width: 48px; height: 48px; border-radius: 14px; background: var(--em-700); color: #fff; display: grid; place-items: center; }

/* ---------- Divers ---------- */
.ring { width: 54px; height: 54px; flex: none; }
.toast { position: absolute; left: 16px; right: 16px; top: 58px; z-index: 60; background: var(--em-950); color: #fff; padding: 13px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; box-shadow: var(--sh-lg); animation: toastIn .35s var(--ease) both; }
.toast svg { color: var(--amber); }
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-14px); } }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; font-size: 14px; }
.kv { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 6px; }
.kv b { color: var(--ink); }
.slider { width: 100%; accent-color: var(--em-600); height: 28px; }
.stat2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat2 .card { padding: 14px; } .stat2 small { font-size: 12px; color: var(--muted); display: block; } .stat2 b { font-size: 18px; letter-spacing: -.02em; }
.demo-note { font-size: 11.5px; color: var(--faint); text-align: center; margin-top: 12px; }
.mt { margin-top: 14px; } .mt2 { margin-top: 22px; }
.center { text-align: center; }
.flag { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: #EEF1F0; color: var(--ink-2); flex: none; }
.op { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: #EEF1F0; color: var(--ink-2); flex: none; letter-spacing: -.02em; }
.op.mo { background: var(--em-700); color: #fff; }
