[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;
}
* { 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); } } }

.orbit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wchip { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); padding: 8px 6px; border-radius: 12px; font-family: var(--font-display); font-weight: 700; font-size: 12px; min-width: 0; white-space: nowrap; }
.wchip i { font-style: normal; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 11px; }
@media (prefers-reduced-motion: no-preference) {
  .wchip { animation: wfloat 3.6s ease-in-out infinite, wglow 6s linear infinite; animation-delay: calc(var(--i) * -.6s), calc(var(--i) * 1s); }
  @keyframes wfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
  @keyframes wglow { 0%, 16%, 100% { background: rgba(255,255,255,.1); box-shadow: none; } 4%, 12% { background: rgba(242,177,52,.28); box-shadow: 0 0 0 1.5px var(--accent); } }
}

/* ===== Refonte visuelle : aurore, bento, navigation flottante ===== */
:root { --r-lg: 28px; --r-md: 20px; --r-sm: 14px; --shadow: 0 1px 2px rgba(7,29,59,.06), 0 8px 24px -8px rgba(7,29,59,.14); }
body { background: radial-gradient(120% 60% at 50% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%), var(--bg); background-attachment: fixed; }
header.top { padding-block: 18px 2px; }
.logo { background: linear-gradient(145deg, var(--hero-to), var(--hero-from)); color: var(--accent); border-radius: 12px; font-family: var(--font-display); font-weight: 800; box-shadow: var(--shadow); }
.tag { text-transform: none; letter-spacing: 0; font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

.hero { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); padding: 30px 22px 24px; gap: 18px;
  background: radial-gradient(60% 50% at 88% 6%, rgba(25,195,177,.38), transparent 70%), radial-gradient(55% 45% at 4% 38%, rgba(124,58,237,.30), transparent 70%), radial-gradient(60% 50% at 70% 100%, rgba(242,177,52,.26), transparent 70%), linear-gradient(160deg, var(--hero-from), var(--hero-to)); box-shadow: 0 24px 48px -24px rgba(7,29,59,.55); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.2px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
.hero .eyebrow { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(8px); }
.hero .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.25); }
.hero h1 { font-size: clamp(34px, 10.5vw, 46px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
.hero p { font-size: 17px; max-width: 34ch; }

.orbit { gap: 8px; }
.wchip { background: rgba(255,255,255,.09); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); backdrop-filter: blur(10px); border-radius: 16px; padding: 9px 8px; font-size: 12.5px; }
.wchip i { box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
@media (prefers-reduced-motion: no-preference) {
  .wchip { animation: wglow 6s linear infinite; animation-delay: calc(var(--i) * 1s); }
  @keyframes wglow { 0%, 18%, 100% { background: rgba(255,255,255,.09); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); transform: none; }
    4%, 14% { background: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7), 0 8px 24px -6px var(--c); transform: translateY(-3px) scale(1.03); } }
}

.btn { border-radius: 999px; padding: 15px 22px; font-weight: 700; transition: transform .12s ease, box-shadow .2s ease, filter .2s ease; }
.hero .btn:not(.ghost), .btn:not(.ghost):not(.sec) { background: linear-gradient(180deg, #ffc75a, var(--accent)); box-shadow: 0 10px 22px -10px rgba(242,177,52,.9), inset 0 1px 0 rgba(255,255,255,.5); }
.btn:hover:not(:disabled) { filter: brightness(1.05); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.ghost { background: rgba(255,255,255,.08); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn.sec { box-shadow: inset 0 0 0 1px var(--line); }

h2 { font-size: 26px; letter-spacing: -0.03em; }
.grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.wallet { position: relative; overflow: hidden; flex-direction: column; align-items: flex-start; gap: 22px; padding: 16px; border: 0; border-radius: var(--r-md); box-shadow: var(--shadow); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, var(--surface)), var(--surface) 70%); }
.wallet i { width: 44px; height: 44px; border-radius: 14px; font-size: 15px; background: var(--c) !important; box-shadow: 0 8px 18px -8px var(--c); }
.wallet strong { font-family: var(--font-display); font-size: 17px; letter-spacing: -0.02em; }
.wallet:first-child, .wallet:nth-child(5) { }
@media (min-width: 520px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.steps { gap: 0; }
.steps li { position: relative; padding-bottom: 22px; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: repeating-linear-gradient(180deg, var(--line) 0 5px, transparent 5px 10px); }
.steps .n { background: linear-gradient(145deg, var(--hero-to), var(--hero-from)); color: var(--accent); box-shadow: var(--shadow); }
.steps h3 { margin-bottom: 2px; }

.facts { grid-template-columns: 1fr 1fr; gap: 10px; }
.fact { border: 0; border-radius: var(--r-md); box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.fact:first-child { grid-column: 1 / -1; padding: 20px; color: var(--hero-fg); background: radial-gradient(70% 90% at 100% 0%, rgba(25,195,177,.35), transparent 70%), linear-gradient(150deg, var(--hero-from), var(--hero-to)); }
.fact:first-child b { font-size: clamp(32px, 10vw, 42px); letter-spacing: -0.03em; }
.fact:first-child span { color: #cfe0f8; }
.fact:last-child { grid-column: 1 / -1; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface)); }

.card { border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px 18px; }
input, select { border-radius: var(--r-sm); background: var(--surface-2); border-color: transparent; transition: border-color .15s, background .15s; }
input:focus, select:focus { border-color: var(--link); background: var(--surface); }
.sum { border-radius: var(--r-md); }
.item { border: 0; box-shadow: var(--shadow); border-radius: var(--r-md); transition: transform .12s ease; }
.item:active { transform: scale(.985); }
.badge { padding: 4px 12px; }
.bignum { font-size: 34px; letter-spacing: -0.02em; }

nav.tabs { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 536px; margin-inline: auto; border: 0; border-radius: 999px; padding: 6px;
  background: color-mix(in srgb, var(--surface) 78%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 12px 32px -10px rgba(7,29,59,.35), inset 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent); }
nav.tabs button { border-radius: 999px; min-height: 44px; transition: background .2s, color .2s; }
nav.tabs button[aria-current="page"] { background: var(--fg); color: var(--bg); }
body { padding-bottom: 104px; }
.brand { white-space: nowrap; font-size: 20px; }
.tag { white-space: nowrap; }
@media (max-width: 400px) { .tag { display: none; } }
.fact:last-child { grid-column: auto; }
.fact:nth-child(3) b { font-size: 20px; }
#tform { max-width: none; margin: 0; padding: 0; width: 100%; }

/* ===== Ordinateur : mise en page large ===== */
@media (min-width: 900px) {
  body { padding-bottom: 120px; }
  body > .app, #v-home { max-width: 1080px; }
  #v-transfer, #v-track, #v-history { max-width: 600px; margin-inline: auto; }
  header.top { padding-block: 24px 4px; }
  .brand { font-size: 24px; }
  #v-home { gap: 56px !important; }
  .hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 56px; row-gap: 20px; align-content: center; padding: 64px 56px; border-radius: 36px; }
  .hero > * { grid-column: 1; }
  .hero .eyebrow { justify-self: start; }
  .hero h1 { font-size: 60px; }
  .hero p { font-size: 19px; max-width: 40ch; }
  .hero .row { max-width: 460px; }
  .hero .orbit { grid-column: 2; grid-row: 1 / span 6; align-self: center; grid-template-columns: 1fr 1fr; gap: 14px; }
  .wchip { padding: 18px 16px; font-size: 16px; gap: 12px; border-radius: 22px; }
  .wchip i { width: 36px; height: 36px; font-size: 14px; }
  h2 { font-size: 34px; }
  .grid { grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .wallet { padding: 20px 16px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 20px !important; }
  .steps li { grid-template-columns: 1fr; gap: 14px; padding: 24px; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow); }
  .steps li:not(:last-child)::before { display: none; }
  .steps .n { width: 44px; height: 44px; }
  .steps li { align-content: start; }
  .facts { grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
  .fact:first-child { grid-column: auto; }
  .fact b { font-size: 26px; }
  .fact:first-child b { font-size: 46px; }
  nav.tabs { max-width: 460px; }
}

/* ===== Thème A : Lagon de nuit ===== */
:root { --bg:#060d1a; --surface:#0f1b30; --surface-2:#16264a; --fg:#eaf6ff; --muted:#9fb4cf; --line:#1d3358; --accent:#3ef0c8; --accent-fg:#04201a; --link:#5eead4; --hero-from:#07203a; --hero-to:#0b3b57; --shadow:0 1px 2px rgba(0,0,0,.4),0 10px 30px -10px rgba(0,0,0,.6); color-scheme:dark; }
:root .hero { background: radial-gradient(60% 55% at 90% 0%, rgba(62,240,200,.45), transparent 70%), radial-gradient(55% 50% at 0% 45%, rgba(99,102,241,.40), transparent 70%), linear-gradient(160deg,#07203a,#06122a); }
:root .hero .btn:not(.ghost), :root .btn:not(.ghost):not(.sec) { background: linear-gradient(180deg,#7bf7de,#3ef0c8); color:#04201a; box-shadow:0 10px 26px -10px rgba(62,240,200,.8); }
:root .wallet { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 22%, var(--surface)), var(--surface) 75%); }
:root .fact:first-child { background: radial-gradient(70% 90% at 100% 0%, rgba(62,240,200,.35), transparent 70%), linear-gradient(150deg,#07203a,#0b3b57); }
:root .fact:last-child { background: linear-gradient(135deg, rgba(62,240,200,.16), var(--surface)); }
:root nav.tabs button[aria-current="page"] { background:#3ef0c8; color:#04201a; }
:root .logo { color:#3ef0c8; } :root .steps .n { color:#3ef0c8; background:#0b3b57; }

/* ===== A : animations ===== */
:root .hero::before { content: ""; position: absolute; inset: -30%; z-index: -1; pointer-events: none; filter: blur(30px);
  background: radial-gradient(circle at 30% 30%, rgba(62,240,200,.24) 0 14%, transparent 38%), radial-gradient(circle at 75% 60%, rgba(99,102,241,.30) 0 16%, transparent 40%), radial-gradient(circle at 50% 90%, rgba(244,114,182,.14) 0 12%, transparent 36%); }
:root .hero .btn:not(.ghost) { position: relative; overflow: hidden; }
:root .hero .btn:not(.ghost)::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent); transform: skewX(-20deg); }
@media (prefers-reduced-motion: no-preference) {
  :root .hero::before { animation: aur 16s ease-in-out infinite alternate; }
  @keyframes aur { 0% { transform: translate3d(-6%, -4%, 0) rotate(0deg) scale(1); } 100% { transform: translate3d(7%, 6%, 0) rotate(25deg) scale(1.15); } }
  :root .hero > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  :root .hero > :nth-child(1) { animation-delay: .05s; } :root .hero > :nth-child(2) { animation-delay: .15s; } :root .hero > :nth-child(3) { animation-delay: .28s; }
  :root .hero > :nth-child(4) { animation-delay: .4s; } :root .hero > :nth-child(5) { animation-delay: .55s; } :root .hero > :nth-child(6) { animation-delay: .65s; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
  :root .wchip { animation: wglowA 6s linear infinite, wfloatA 5s ease-in-out infinite; animation-delay: calc(var(--i) * 1s), calc(var(--i) * -.8s); }
  @keyframes wfloatA { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
  @keyframes wglowA { 0%, 18%, 100% { background: rgba(255,255,255,.09); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
    4%, 14% { background: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7), 0 8px 26px -4px var(--c); } }
  :root .hero .btn:not(.ghost)::after { animation: shine 3.8s ease-in-out 1.4s infinite; }
  @keyframes shine { 0% { left: -60%; } 35%, 100% { left: 130%; } }
  :root .reveal { opacity: 0; transform: translateY(26px) scale(.97); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 80ms); }
  :root .reveal.in { opacity: 1; transform: none; }
  :root .wallet { transition: transform .25s ease, box-shadow .25s ease; }
  :root .wallet:hover { transform: translateY(-5px) rotate(-.6deg); box-shadow: 0 18px 34px -14px var(--c); }
  :root .steps .n { animation: pulsen 3s ease-in-out infinite; animation-delay: calc(var(--k, 0) * .5s); }
  @keyframes pulsen { 0%, 100% { box-shadow: 0 0 0 0 rgba(62,240,200,.45); } 50% { box-shadow: 0 0 0 9px rgba(62,240,200,0); } }
}

/* ===== Chat super-héros 3D ===== */
.runway { position: relative; height: 190px; border-radius: var(--r-md); overflow: hidden; background: radial-gradient(60% 90% at 50% 100%, rgba(62,240,200,.16), transparent 70%), linear-gradient(180deg, transparent, rgba(62,240,200,.05)); box-shadow: inset 0 0 0 1px var(--line); }
.runway .glow { position: absolute; left: 6%; right: 6%; bottom: 14px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .6; }
#catBox { position: absolute; inset: 0; }
.card form.app, .card .app { max-width: none; margin: 0; width: 100%; }

/* Compatibilité téléphones */
@supports (-webkit-touch-callout: none) { body { background-attachment: scroll; } }
.wallet { background-color: var(--surface); }

/* Invitation d'installation */
.install { position: fixed; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); max-width: 536px; margin-inline: auto; z-index: 6; display: grid; grid-template-columns: 44px 1fr; gap: 10px 12px; align-items: center; padding: 14px; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 18px 40px -12px rgba(0,0,0,.6), inset 0 0 0 1px var(--line); }
.install img { border-radius: 12px; }
.install .itxt { display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.install .itxt strong { font-family: var(--font-display); font-size: 16px; color: var(--fg); }
.install .iact { grid-column: 1 / -1; display: flex; gap: 8px; }
.install .iact .btn { flex: 1; min-height: 44px; padding: 10px 14px; }
@media (prefers-reduced-motion: no-preference) { .install:not([hidden]) { animation: slideup .45s cubic-bezier(.2,.7,.2,1); } @keyframes slideup { from { transform: translateY(30px); opacity: 0; } } }
