/* app.css : Eligive. Mise en page reprise de la référence (capture de la référence dans docs/ref/), jetons Hyperliquid
   (tokens.css). Graisse 500, -.012em, tabular-nums. Tout mouvement coupé sous prefers-reduced-motion. */

@font-face { font-family: "Geist"; src: url("/fonts/geist-sans-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg-body); color: var(--text-normal);
  font: var(--fw) var(--fs-md)/var(--lh) var(--sans); letter-spacing: var(--tracking);
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; letter-spacing: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
::selection { background: var(--accent-soft); color: var(--text-bright); }
h1, h2, h3 { margin: 0; color: var(--text-bright); font-weight: var(--fw); letter-spacing: -.02em; }
p { margin: 0; }
.ic { width: 18px; height: 18px; fill: currentColor; flex: none; }
.ic-s { width: 14px; height: 14px; }
.ic-l { width: 22px; height: 22px; }
.mono { font-family: var(--code); letter-spacing: 0; }
.dim { color: var(--text-muted); }
.dec { opacity: .6; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 8px 12px; background: var(--accent); color: var(--on-accent); border-radius: var(--radius-md); transition: top var(--dur); }
.skip:focus { top: 12px; }
.noscript { padding: 24px; }

/* Fond animé : trame menthe en basse opacité, apparition en flou. */
#fond { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; opacity: 0; filter: blur(4px);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 45%, rgba(0,0,0,.35), #000 75%);
  mask-image: radial-gradient(120% 90% at 50% 45%, rgba(0,0,0,.35), #000 75%);
  transition: opacity 1.8s var(--ease-soft), filter 1.8s var(--ease-soft); }
#fond.on { opacity: .11; filter: blur(0); }

/* Coquille */
.shell { position: relative; z-index: 1; display: grid; grid-template-columns: var(--sb-w, 256px) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns var(--dur-slow) var(--ease-soft); }
.shell.collapsed { --sb-w: 72px; }
.col { min-width: 0; display: flex; flex-direction: column; }

/* Barre latérale */
.sb { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 18px 14px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--hl-panel) 88%, transparent); backdrop-filter: blur(10px); overflow: hidden; z-index: 30; }
.sb-brand { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px; margin-bottom: 14px; color: var(--text-bright); font-size: var(--fs-lg); }
.sb-brand img { width: 28px; height: 28px; }
.sb-nav { position: relative; display: grid; gap: 2px; }
.sb-nav a { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: var(--radius-md); color: var(--text-muted); font-size: 15px; white-space: nowrap; transition: color var(--dur-fast); }
.sb-nav a .ic { width: 20px; height: 20px; transition: transform var(--dur) var(--ease-spring); }
.sb-nav a:hover { color: var(--text-bright); }
.sb-nav a:hover .ic { transform: scale(1.08); }
.sb-nav a[aria-current="page"] { color: var(--text-bright); }
.sb-nav a[aria-current="page"] .ic { color: var(--accent); }
.sb-ind { position: absolute; left: 0; right: 0; top: 0; height: 42px; border-radius: var(--radius-md); background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--line-card); opacity: 0; transform: translateY(var(--y, 0)); transition: transform var(--dur-slow) var(--ease-soft), opacity var(--dur); }
.sb-ind.on { opacity: 1; }
.sb-ind::before { content: ""; position: absolute; left: -14px; top: 11px; bottom: 11px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.sb-net { margin-top: auto; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; color: var(--text-faint); font-size: var(--fs-xs); white-space: nowrap; }
.sb-net .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim); flex: none; }
.sb-net.live .dot { background: var(--accent); box-shadow: 0 0 0 0 var(--accent-edge); animation: pouls 2s infinite; }
.sb-net.down .dot { background: var(--accent-error); }
.sb-net .net-block { margin-left: auto; }
.sb-net .net-block b { color: var(--text-muted); font-weight: var(--fw); }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 var(--accent-edge); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.sb-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius-lg); border: 1px solid var(--line); transition: background var(--dur-fast), border-color var(--dur-fast); }
.sb-card:hover { background: var(--bg-card); border-color: var(--line-card); }
.sb-card img { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-deep); padding: 5px; }
.sb-card span { display: grid; line-height: 1.25; min-width: 0; }
.sb-card b { color: var(--text-bright); font-weight: var(--fw); }
.sb-card small { color: var(--text-muted); font-size: var(--fs-xs); }
.sb-x { margin-left: auto; color: var(--text-muted); font-size: var(--fs-sm); }
.sb-x img { width: 14px; height: 14px; }
.shell.collapsed .sb-brand span, .shell.collapsed .sb-nav a span, .shell.collapsed .sb-net .net-name, .shell.collapsed .sb-net .net-block, .shell.collapsed .sb-card span, .shell.collapsed .sb-x { display: none; }
.shell.collapsed .sb-card { padding: 6px; justify-content: center; border-color: transparent; }
.shell.collapsed #collapse-btn .ic { transform: rotate(180deg); }

/* Barre haute */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 24px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--hl-panel) 80%, transparent); backdrop-filter: blur(12px); }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-card); background: transparent; color: var(--text-muted); transition: color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast); }
.icon-btn:hover { color: var(--text-bright); background: var(--bg-card); }
.icon-btn:active { transform: scale(var(--btn-press)); }
.icon-btn .ic { transition: transform var(--dur-slow) var(--ease-soft); }
.search { flex: 0 1 520px; margin: 0 auto; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-card); background: color-mix(in srgb, var(--hl-page) 55%, transparent); color: var(--text-faint); text-align: left; transition: border-color var(--dur-fast), color var(--dur-fast); }
.search:hover { border-color: var(--line-hi); color: var(--text-muted); }
.search span { flex: 1; }
kbd { font: var(--fw) var(--fs-2xs) var(--code); padding: 2px 6px; border-radius: var(--radius-xs); border: 1px solid var(--line-card); color: var(--text-faint); }
.top-r { display: flex; align-items: center; gap: 8px; }
.only-m { display: none; }

/* Boutons */
.btn { --b: var(--line-card); display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--btn-h); padding: 0 var(--btn-px); border-radius: var(--radius-pill); border: 1px solid var(--b); background: transparent; color: var(--text-bright); font-size: var(--btn-fs); white-space: nowrap; transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur); }
.btn:hover { background: var(--bg-card); --b: var(--line-hi); }
.btn:active { transform: scale(var(--btn-press)); }
.btn-light { background: var(--accent); --b: var(--accent); color: var(--on-accent); }
.btn-light:hover { background: var(--accent-strong); --b: var(--accent-strong); box-shadow: 0 0 0 4px var(--accent-soft); }
.btn-big { height: 46px; padding: 0 22px; font-size: var(--fs-md); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: var(--btn-disabled-o); cursor: not-allowed; transform: none; box-shadow: none; }
.btn .ic { width: 16px; height: 16px; }
.btn.busy .ic-spin { animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* Wallet */
.wallet { position: relative; }
.wallet-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 260px; padding: 6px; border-radius: var(--radius-lg); background: var(--bg-float); box-shadow: var(--shadow-float); display: grid; gap: 2px; opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top right; filter: blur(2px); pointer-events: none; transition: opacity .16s, transform .16s var(--ease-soft), filter .16s; z-index: 40; }
.wallet-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* pont de survol */
.wallet.open .wallet-menu { opacity: 1; transform: none; filter: none; pointer-events: auto; transition-duration: .22s; }
.wallet-menu button, .wallet-menu a { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 10px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--text-normal); text-align: left; font-size: var(--fs-sm); }
.wallet-menu button:hover, .wallet-menu a:hover { background: var(--bg-hover); color: var(--text-bright); }
.wallet-menu img { width: 22px; height: 22px; border-radius: 6px; }
.wallet-menu .wm-head { padding: 8px 10px 6px; color: var(--text-faint); font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: var(--tracking-caps); }
.wallet-menu .wm-empty { padding: 8px 10px 10px; color: var(--text-muted); font-size: var(--fs-sm); }
.addr { display: inline-flex; align-items: center; gap: 8px; }
.addr .bal { color: var(--text-muted); }
.pill-warn { color: var(--accent-warning); }

/* Contenu */
main { position: relative; flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px 72px; outline: none; }
.view { animation: entree .32s var(--ease-soft) both; }
@keyframes entree { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } }
.view.sortie { animation: sortie .14s var(--ease-in) both; }
@keyframes sortie { to { opacity: 0; transform: translateY(-3px); filter: blur(2px); } }

/* Accueil : hero */
.hero { display: grid; justify-items: center; gap: 18px; padding: 64px 0 40px; text-align: center; }
.hero h1 { font-size: var(--fs-hero); line-height: 1.05; letter-spacing: -.035em; }
.hero h1 em { white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--brand-mint); }
.hero p { max-width: 46ch; color: var(--text-muted); font-size: var(--fs-lg); }
.hero .acts { display: flex; gap: 10px; margin-top: 6px; }
.chain-tag { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 6px; border-radius: var(--radius-pill); border: 1px solid var(--line-card); background: color-mix(in srgb, var(--hl-page) 60%, transparent); color: var(--text-muted); font-size: var(--fs-xs); }
.chain-tag img { width: 20px; height: 20px; }
.chain-tag b { color: var(--text-bright); font-weight: var(--fw); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tile { --mx: 50%; --my: 50%; position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 280px; padding: 16px; border-radius: var(--radius-card); background: var(--bg-card); border: 1px solid var(--line-card); overflow: hidden; transition: transform var(--dur) var(--ease-soft), border-color var(--dur); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx) var(--my), var(--accent-wash), transparent 60%); opacity: 0; transition: opacity var(--dur); }
.tile:hover { transform: translateY(-2px); border-color: var(--accent-edge); }
.tile:hover::after { opacity: 1; }
.tile-1 { grid-column: span 3; } .tile-2 { grid-column: span 3; }
.tile-3, .tile-4, .tile-5 { grid-column: span 2; }
.tile-body { position: relative; flex: 1; min-height: 0; }
.tile-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; color: var(--text-bright); font-size: var(--fs-sm); }
.tile-foot span:last-child { display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); transition: color var(--dur-fast), gap var(--dur); }
.tile:hover .tile-foot span:last-child { color: var(--accent); gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: var(--badge-r); background: var(--bg-elevated); color: var(--text-muted); font-size: var(--fs-2xs); white-space: nowrap; }
.tag.acc { background: var(--accent-soft); color: var(--accent); }
.tag.warn { background: var(--warning-soft); color: var(--accent-warning); }

/* Tuile Explore : défilement de cartes d'exemple */
.marquee { position: absolute; inset: -4px -16px; display: grid; align-content: center; gap: 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mq-row { display: flex; gap: 10px; width: max-content; animation: defile var(--d, 38s) linear infinite; }
.mq-row.rev { animation-direction: reverse; }
.tile:hover .mq-row { animation-play-state: paused; }
@keyframes defile { to { transform: translateX(-50%); } }
.ex { display: flex; align-items: center; gap: 10px; width: 236px; padding: 10px; border-radius: var(--radius-lg); background: var(--bg-body); border: 1px solid var(--line-card); }
.ex .lg { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-elevated); display: grid; place-items: center; overflow: hidden; flex: none; }
.ex .lg img { width: 100%; height: 100%; object-fit: cover; }
.ex div { display: grid; min-width: 0; line-height: 1.3; }
.ex b { color: var(--text-bright); font-weight: var(--fw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex small { color: var(--text-faint); font-size: var(--fs-2xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex .tag { margin-left: auto; }

/* Tuile Payments */
.pay-rows { display: grid; gap: 8px; }
.pay-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; height: 62px; padding: 0 14px; border-radius: var(--radius-lg); background: var(--bg-body); border: 1px solid var(--line-card); opacity: 0; transform: translateY(8px); animation: monte .5s var(--ease-soft) forwards; animation-delay: calc(var(--i) * .12s + .2s); }
@keyframes monte { to { opacity: 1; transform: none; } }
.pay-row b { display: block; color: var(--text-bright); font-weight: var(--fw); font-size: var(--fs-md); }
.pay-row small { color: var(--text-muted); font-size: var(--fs-xs); }
.route { display: flex; align-items: center; gap: 6px; color: var(--text-faint); }
.route .av { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-elevated); display: grid; place-items: center; overflow: hidden; }
.route .av img { width: 100%; height: 100%; object-fit: cover; }
.route .flow-line { width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent) 0 0 / 200% 100%; animation: coule 1.6s linear infinite; }
@keyframes coule { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.state { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: var(--fs-xs); white-space: nowrap; }
.state .ic { width: 14px; height: 14px; }
.state.ok { color: var(--accent); }

/* Tuile Analytics : compteur à rouleaux */
.metric-lbl { display: flex; justify-content: space-between; color: var(--text-muted); font-size: var(--fs-xs); }
.odo { display: inline-flex; align-items: baseline; margin-top: 6px; color: var(--text-bright); font-size: var(--fs-metric); line-height: 1; letter-spacing: -.02em; }
.odo .d { display: inline-block; height: 1em; overflow: hidden; }
.odo .d > span { display: grid; transition: transform 1.4s var(--ease-land); }
.odo .d > span > i { font-style: normal; height: 1em; line-height: 1; }
.odo .u { margin-left: .3em; font-size: .5em; color: var(--text-muted); }
.spark { position: absolute; left: -16px; right: -16px; bottom: 0; height: 52%; }
.spark path.l { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 900; stroke-dashoffset: 900; animation: trace 2.4s var(--ease-soft) .3s forwards; }
.spark path.a { fill: url(#grad-spark); opacity: 0; animation: apparait 1.2s ease 1.2s forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes apparait { to { opacity: 1; } }
.note { margin-top: 8px; color: var(--text-faint); font-size: var(--fs-xs); }

/* Tuile Launch : champ qui se tape */
.typer-lbl { color: var(--text-faint); font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: var(--tracking-caps); }
.typer { display: flex; align-items: center; gap: 8px; height: 42px; margin-top: 10px; padding: 0 14px; border-radius: var(--radius-pill); border: 1.5px solid var(--accent); color: var(--text-bright); box-shadow: 0 0 0 4px var(--accent-wash); }
.typer .ic { color: var(--accent); }
.caret { width: 1.5px; height: 18px; background: var(--accent); animation: clign 1s steps(1) infinite; }
@keyframes clign { 50% { opacity: 0; } }
.sugg { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 12px; border-radius: var(--radius-lg); background: var(--bg-body); border: 1px solid var(--line-card); opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s var(--ease-soft); }
.sugg.on { opacity: 1; transform: none; }
.sugg img { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-deep); padding: 4px; }
.sugg div { display: grid; line-height: 1.25; }
.sugg b { color: var(--text-bright); font-weight: var(--fw); }
.sugg small { color: var(--text-muted); font-size: var(--fs-xs); }

/* Tuile Docs : champs du routage */
.cfg { position: absolute; inset: 0; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.cfg table { width: 100%; border-collapse: collapse; font: 12px/1.9 var(--code); color: var(--text-muted); }
.cfg th { text-align: left; color: var(--text-faint); font-weight: var(--fw); }
.cfg td:first-child { color: var(--text-bright); }
.cfg td:last-child { text-align: right; color: var(--accent); }
.cfg tr { opacity: 0; animation: apparait .4s ease forwards; animation-delay: calc(var(--i) * .09s + .3s); }

/* Bande réseau */
.netband { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; border-radius: var(--radius-card); border: 1px solid var(--line-card); background: color-mix(in srgb, var(--hl-page) 70%, transparent); overflow: hidden; }
.netband > div { padding: 14px 16px; border-right: 1px solid var(--line-card); display: grid; gap: 2px; }
.netband > div:last-child { border-right: 0; }
.netband small { color: var(--text-faint); font-size: var(--fs-xs); display: flex; align-items: center; gap: 6px; }
.netband b { color: var(--text-bright); font-weight: var(--fw); font-size: var(--fs-lg); }
.netband img { width: 14px; height: 14px; }
.tick { display: inline-block; animation: tic .35s var(--ease-soft); }
@keyframes tic { from { opacity: .3; transform: translateY(-4px); filter: blur(2px); } }

/* Sections et listes */
.sec { margin-top: 48px; }
.sec-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sec-h h2 { font-size: var(--fs-xl); }
.sec-h .pager { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--text-faint); font-size: var(--fs-xs); }
.chips { display: flex; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--radius-pill); border: 1px solid var(--line-card); background: transparent; color: var(--text-muted); font-size: var(--fs-xs); transition: all var(--dur-fast); }
.chip img { width: 16px; height: 16px; border-radius: 4px; }
.chip:hover { color: var(--text-bright); border-color: var(--line-hi); }
.chip[aria-pressed="true"] { background: var(--bg-elevated); color: var(--text-bright); border-color: var(--line-hi); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ghost { position: relative; display: grid; align-content: end; gap: 6px; aspect-ratio: 1 / 1.22; padding: 12px; border-radius: var(--radius-card); border: 1px dashed var(--line-hi); background: color-mix(in srgb, var(--hl-page) 40%, transparent); color: var(--text-faint); overflow: hidden; }
.ghost::before { content: ""; position: absolute; left: 12px; right: 12px; top: 12px; aspect-ratio: 1; border-radius: var(--radius-lg); background: linear-gradient(110deg, var(--bg-card) 30%, var(--bg-elevated) 50%, var(--bg-card) 70%) 0 0 / 300% 100%; animation: lueur 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * .2s); }
@keyframes lueur { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.ghost i { font-style: normal; height: 10px; border-radius: 5px; background: var(--bg-card); }
.ghost i:nth-child(2) { width: 60%; }
.empty { display: grid; justify-items: center; gap: 10px; padding: 36px 20px; border-radius: var(--radius-card); border: 1px solid var(--line-card); background: color-mix(in srgb, var(--hl-page) 70%, transparent); text-align: center; }
.empty .ring { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-wash); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-edge); }
.empty .ring .ic { width: 24px; height: 24px; }
.empty b { color: var(--text-bright); font-weight: var(--fw); font-size: var(--fs-lg); }
.empty p { max-width: 42ch; color: var(--text-muted); font-size: var(--fs-sm); }
.cta-over { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; background: radial-gradient(60% 70% at 50% 50%, color-mix(in srgb, var(--hl-panel) 90%, transparent), transparent); }
.cta-over b { color: var(--text-bright); font-weight: var(--fw); font-size: var(--fs-xl); }
.cta-over p { color: var(--text-muted); max-width: 36ch; }
.rel { position: relative; }

/* Pages */
.page-h { display: grid; gap: 8px; margin: 28px 0 20px; padding: 28px 32px; border-radius: var(--radius-hero); background: var(--bg-card); border: 1px solid var(--line-card); }
.page-h h1 { font-size: var(--fs-title); display: flex; align-items: center; gap: 12px; }
.page-h h1 .ic { width: 28px; height: 28px; color: var(--accent); }
.page-h p { color: var(--text-muted); max-width: 70ch; }
.card { border-radius: var(--radius-card); background: var(--bg-card); border: 1px solid var(--line-card); padding: var(--card-p); }
.card h2 { font-size: var(--fs-lg); margin-bottom: 10px; }
.card + .card { margin-top: 12px; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.field-s { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--line-card); background: var(--bg-body); color: var(--text-faint); min-width: 260px; }
.field-s input { flex: 1; border: 0; background: transparent; outline: none; color: var(--text-bright); }
.tabs { position: relative; display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--radius-pill); background: var(--bg-body); border: 1px solid var(--line-card); }
.tabs button { position: relative; z-index: 1; height: 30px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text-muted); font-size: var(--fs-sm); transition: color var(--dur); }
.tabs button[aria-selected="true"] { color: var(--on-accent); }
.tabs .tab-ind { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: var(--radius-pill); background: var(--accent); transition: transform var(--dur-slow) var(--ease-soft), width var(--dur-slow) var(--ease-soft); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { padding: 16px; border-radius: var(--radius-card); background: var(--bg-card); border: 1px solid var(--line-card); }
.stat small { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: var(--fs-xs); }
.stat small .ic { width: 14px; height: 14px; color: var(--accent); }
.stat b { display: block; margin-top: 8px; color: var(--text-bright); font-weight: var(--fw); font-size: var(--fs-metric); line-height: 1; }
.stat em { display: block; margin-top: 6px; font-style: normal; color: var(--text-faint); font-size: var(--fs-xs); }
.list { display: grid; gap: 1px; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--line-card); background: var(--line-card); }
.list > div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; background: var(--bg-card); }
.list small { color: var(--text-muted); }
.prose { display: grid; gap: 12px; max-width: 72ch; color: var(--text-normal); }
.prose h2 { margin-top: 12px; font-size: var(--fs-lg); }
.prose a { color: var(--accent); }
.prose a:not(.btn) { display: inline-flex; align-items: center; gap: 4px; }
.prose a:hover { text-decoration: underline; }
.prose ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.steps { counter-reset: s; display: grid; gap: 12px; }
.step { position: relative; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius-card); background: var(--bg-card); border: 1px solid var(--line-card); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-elevated); color: var(--text-bright); }
.step.done::before { content: ""; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-edge); }
.step.done::after { content: ""; position: absolute; left: 28px; top: 50%; width: 10px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translate(0, -70%) rotate(-45deg); }
.step b { color: var(--text-bright); font-weight: var(--fw); display: block; }
.step small { color: var(--text-muted); }
.reason { color: var(--text-faint); font-size: var(--fs-xs); margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.reason .ic { width: 14px; height: 14px; }

/* Launch */
.launch { display: grid; grid-template-columns: minmax(0, 1fr) 420px; border-radius: var(--radius-hero); border: 1px solid var(--line-card); background: var(--bg-card); overflow: hidden; }
.launch-form { padding: 32px; display: grid; gap: 18px; align-content: start; }
.launch-form > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.launch-form h2 { font-size: 26px; }
.launch-side { padding: 32px 28px; background: var(--bg-body); border-left: 1px solid var(--line-card); display: grid; gap: 16px; align-content: start; position: relative; }
.launch-side .sticky { position: sticky; top: 88px; display: grid; gap: 16px; }
.group { padding: 16px; border-radius: var(--radius-lg); border: 1px solid var(--line-card); display: grid; gap: 10px; }
.group > legend, .lbl { color: var(--text-bright); font-size: var(--fs-sm); }
fieldset.group { margin: 0; min-width: 0; }
fieldset.group > legend { padding: 0 6px; }
.hint { color: var(--text-faint); font-size: var(--fs-xs); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld { display: grid; gap: 6px; }
.inp { display: flex; align-items: center; gap: 8px; height: var(--input-h); padding: 0 var(--field-px); border-radius: var(--field-r); border: 1px solid var(--line-card); background: var(--bg-body); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.inp:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.inp.bad { border-color: var(--accent-error); box-shadow: 0 0 0 3px var(--error-soft); }
.inp input, .inp textarea { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--text-bright); }
.inp input::placeholder, .inp textarea::placeholder { color: var(--text-faint); }
.inp .ic { color: var(--text-faint); }
.inp .suf { color: var(--text-muted); font-size: var(--fs-sm); }
.inp.ta { height: auto; align-items: stretch; padding: 10px var(--field-px); }
.inp.ta textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.err { color: var(--accent-error); font-size: var(--fs-xs); min-height: 0; }
.err:empty { display: none; }
.count { justify-self: end; color: var(--text-faint); font-size: var(--fs-xs); }
.count.over { color: var(--accent-error); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--line-card); background: transparent; color: var(--text-muted); transition: all var(--dur-fast); }
.seg button:has(.lg) { padding-left: 8px; }
.seg button .lg { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-elevated); display: grid; place-items: center; overflow: hidden; color: var(--text-bright); font-size: var(--fs-xs); }
.seg button .lg img { width: 100%; height: 100%; object-fit: cover; }
.seg button:hover { color: var(--text-bright); border-color: var(--line-hi); }
.seg button[aria-pressed="true"] { color: var(--text-bright); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.cur { display: grid; grid-template-columns: 1fr; gap: 8px; }
.cur .sel { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: var(--radius-md); background: var(--text-bright); color: var(--on-accent); }
.cur .sel img { width: 22px; height: 22px; }
.upl { position: relative; display: grid; place-items: center; gap: 6px; height: 120px; border-radius: var(--radius-lg); border: 1px dashed var(--line-hi); background: var(--bg-body); color: var(--text-muted); text-align: center; cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast); }
.upl:hover, .upl.drag { border-color: var(--accent); background: var(--accent-wash); color: var(--text-bright); }
.upl input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upl img.pv { width: 88px; height: 88px; border-radius: var(--radius-lg); object-fit: cover; }
.splitbar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; }
.splitbar span { height: 100%; transform-origin: left; animation: pousse .9s var(--ease-soft) both; animation-delay: calc(var(--i) * .12s); }
@keyframes pousse { from { transform: scaleX(0); } }
.splitbar span:nth-child(1) { background: var(--accent); } .splitbar span:nth-child(2) { background: var(--hl-mint); } .splitbar span:nth-child(3) { background: var(--accent-warning); }
.legend { display: grid; gap: 6px; font-size: var(--fs-sm); }
.legend div { display: flex; align-items: center; gap: 8px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; }
.legend div:nth-child(1) i { background: var(--accent); } .legend div:nth-child(2) i { background: var(--hl-mint); } .legend div:nth-child(3) i { background: var(--accent-warning); }
.legend b { margin-left: auto; color: var(--text-bright); font-weight: var(--fw); }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--text-muted); font-size: var(--fs-sm); cursor: pointer; }
.check input { appearance: none; width: 18px; height: 18px; margin: 1px 0 0; border-radius: 5px; border: 1px solid var(--line-hi); background: var(--bg-body); display: grid; place-items: center; flex: none; transition: all var(--dur-fast); cursor: pointer; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent); transform: translateY(-1px) rotate(-45deg); }
.check a { color: var(--accent); }
.range { width: 100%; accent-color: var(--accent); }
.notif { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--line-card); box-shadow: 0 18px 40px -20px rgba(0,0,0,.7); animation: flotte 6s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translateY(-4px); } }
.notif b { color: var(--text-bright); font-weight: var(--fw); font-size: var(--fs-xl); }
.notif small { color: var(--text-muted); }
.notif small strong { color: var(--text-bright); font-weight: var(--fw); }
.notif em { font-style: normal; color: var(--text-faint); font-size: var(--fs-xs); grid-column: 1; }
.notif .when { grid-row: 1 / span 2; grid-column: 2; align-self: start; color: var(--text-faint); font-size: var(--fs-xs); }
.tcard { border-radius: var(--radius-card); background: var(--bg-card); border: 1px solid var(--line-card); padding: 12px; display: grid; gap: 10px; }
.tcard .img { aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--bg-body); border: 1px solid var(--line-card); display: grid; place-items: center; overflow: hidden; color: var(--text-dim); }
.tcard .img img { width: 100%; height: 100%; object-fit: cover; animation: pose .4s var(--ease-pop); }
@keyframes pose { from { transform: scale(.94); opacity: 0; } }
.tcard .who { display: flex; align-items: center; gap: 6px; }
.tcard .nm { color: var(--text-bright); }
.tcard .tk { color: var(--text-faint); font-family: var(--code); font-size: var(--fs-xs); text-transform: uppercase; }
.tcard .mc { display: flex; gap: 14px; color: var(--text-muted); font-size: var(--fs-xs); }
.tcard .mc b { color: var(--text-bright); font-weight: var(--fw); font-size: var(--fs-md); }
.handle-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 4px; border-radius: var(--radius-pill); background: var(--bg-body); border: 1px solid var(--line-card); color: var(--text-bright); font-size: var(--fs-xs); }
.handle-chip .xb { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--text-bright); color: var(--hl-panel); font-size: 10px; }
.handle-chip .xb img { width: 10px; height: 10px; }
.submit { display: grid; gap: 8px; }

/* Capital Flow */
.flow { width: 100%; height: auto; }
.flow .fl { fill: none; stroke-linecap: round; }
.flow .base { stroke: var(--hl-control); }
.flow .run { stroke-dasharray: 2 18; animation: flux 1.2s linear infinite; }
@keyframes flux { to { stroke-dashoffset: -20; } }
.flow text { fill: var(--text-muted); font: 500 13px var(--sans); letter-spacing: -.012em; }
.flow text.big { fill: var(--text-bright); font-size: 16px; }
.flow .node { fill: var(--bg-body); stroke: var(--line-hi); }
.flow .node.acc { stroke: var(--accent); }

/* Palette de recherche */
.palette { width: min(620px, calc(100vw - 32px)); margin: 12vh auto auto; padding: 0; border: 0; border-radius: var(--radius-hero); background: var(--bg-float); color: inherit; box-shadow: var(--shadow-float), 0 40px 80px -30px rgba(0,0,0,.8); }
.palette::backdrop { background: rgba(4, 6, 12, .55); backdrop-filter: blur(4px); }
.palette[open] { animation: entree .22s var(--ease-soft); }
.pal-field { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 18px; border-bottom: 1px solid var(--line-card); color: var(--text-faint); }
.pal-field input { flex: 1; height: 100%; border: 0; outline: none; background: transparent; color: var(--text-bright); font-size: var(--fs-lg); }
.pal-field input::-webkit-search-cancel-button { display: none; }
.pal-list { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow: auto; }
.pal-list li { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: var(--radius-md); color: var(--text-normal); cursor: pointer; }
.pal-list li .ic { color: var(--text-muted); }
.pal-list li small { margin-left: auto; color: var(--text-faint); font-size: var(--fs-xs); }
.pal-list li[aria-selected="true"] { background: var(--bg-hover); color: var(--text-bright); }
.pal-list li[aria-selected="true"] .ic { color: var(--accent); }
.pal-list .pal-empty { color: var(--text-muted); cursor: default; }

/* Toasts */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; gap: 8px; width: min(360px, calc(100vw - 40px)); }
.toast { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 12px 14px; border-radius: var(--toast-r); background: var(--bg-float); box-shadow: var(--shadow-float); animation: toast-in .28s var(--ease-soft); }
.toast.out { animation: toast-out .16s var(--ease-in) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) scale(.98); filter: blur(3px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(4px); } }
.toast .ic { grid-row: span 2; margin-top: 2px; color: var(--accent); }
.toast.error .ic { color: var(--accent-error); } .toast.warn .ic { color: var(--accent-warning); }
.toast b { color: var(--text-bright); font-weight: var(--fw); }
.toast small { color: var(--text-muted); }

/* Pied */
.foot { position: relative; z-index: 1; border-top: 1px solid var(--line); margin-top: auto; }
.foot-in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; max-width: 1180px; margin: 0 auto; padding: 40px 24px 48px; }
.foot-brand { display: grid; gap: 8px; align-content: start; }
.foot-brand b { color: var(--text-bright); font-weight: var(--fw); font-size: var(--fs-lg); }
.foot-brand small { color: var(--text-faint); font-size: var(--fs-xs); }
.foot-soc { display: flex; gap: 10px; margin: 4px 0; }
.foot-soc a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-card); color: var(--text-muted); font-size: var(--fs-xs); transition: all var(--dur-fast); }
.foot-soc a:hover { color: var(--text-bright); border-color: var(--line-hi); }
.foot-soc img { width: 13px; height: 13px; }
.foot nav { display: grid; gap: 8px; align-content: start; font-size: var(--fs-sm); }
.foot nav b { color: var(--text-bright); font-weight: var(--fw); margin-bottom: 4px; }
.foot nav a { color: var(--text-muted); transition: color var(--dur-fast); width: fit-content; }
.foot nav a:hover { color: var(--accent); }

.scrim { position: fixed; inset: 0; z-index: 25; background: rgba(4, 6, 12, .55); backdrop-filter: blur(2px); }

/* Tablette */
@media (max-width: 1100px) {
  .launch { grid-template-columns: 1fr; }
  .launch-side { border-left: 0; border-top: 1px solid var(--line-card); }
  .two { grid-template-columns: 1fr; }
  .tile-1, .tile-2 { grid-column: span 6; }
  .tile-3, .tile-4, .tile-5 { grid-column: span 2; }
}

/* Mobile */
@media (max-width: 820px) {
  .shell, .shell.collapsed { grid-template-columns: 1fr; --sb-w: 256px; }
  .sb { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; transform: translateX(-100%); transition: transform var(--dur-slow) var(--ease-soft); }
  .sb.open { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.5); }
  .only-m { display: grid; } .only-d { display: none; }
  .top { padding: 0 16px; gap: 8px; }
  .search { flex: 1; min-width: 0; }
  .search kbd { display: none; }
  .top-r .btn-light { display: none; }
  main { padding: 0 16px 56px; }
  .hero { padding: 40px 0 28px; }
  .hero p { font-size: var(--fs-md); }
  .bento { grid-template-columns: 1fr; }
  .tile-1, .tile-2, .tile-3, .tile-4, .tile-5 { grid-column: auto; min-height: 240px; }
  .pay-row { grid-template-columns: 1fr auto; }
  .pay-row .route { display: none; }
  .pay-row b { white-space: nowrap; }
  .netband { grid-template-columns: 1fr 1fr; }
  .netband > div:nth-child(2) { border-right: 0; }
  .netband > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-card); }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .page-h { padding: 22px 20px; }
  .launch-form { padding: 20px 16px; }
  .launch-side { padding: 20px 16px; }
  .row2 { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: span 2; }
  .field-s { min-width: 0; flex: 1; }
  .step { grid-template-columns: 36px 1fr; }
  .step > :last-child:not(div) { grid-column: 2; justify-self: start; }
  .wallet .btn .wl-txt { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  #fond { filter: none; }
  .mq-row { animation: none !important; }
  .marquee { overflow-x: auto; }
}
