/* ==========================================================================
   Direction artistique : sombre, bleu néon + violet.
   Règle : les accents néon restent rares (boutons principaux, éléments actifs,
   chiffres clés). Le reste est sobre : gris froids, bordures fines.
   ========================================================================== */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument/instrument-sans-latin-wght-normal.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #07070d;
  --bg-2: #0b0b14;
  --surface: #10101a;
  --surface-2: #161624;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --text: #eceef6;
  --text-2: #c3c6d6;
  --muted: #858aa3;
  --blue: #3d7bff;
  --blue-soft: #7aa3ff;
  --violet: #9d5cff;
  --violet-soft: #c4a2ff;
  --grad: linear-gradient(120deg, #3d7bff 0%, #6b6cff 45%, #9d5cff 100%);
  --ok: #3ddc97;
  --ok-bg: rgba(61, 220, 151, 0.1);
  --danger: #ff6b7a;
  --err-bg: rgba(255, 107, 122, 0.1);
  --warn: #ffc24b;
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;
  font-family: var(--font-body);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); font-size: 15px; line-height: 1.55; accent-color: var(--blue); }
a { color: var(--blue-soft); text-decoration-color: rgba(122, 163, 255, 0.4); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 12px; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: 28px; }
h2 { font-size: 18px; letter-spacing: -0.01em; }
h3 { font-size: 15px; letter-spacing: 0; }
p { margin: 0 0 12px; }
img { max-width: 100%; }
code { font-family: var(--font-mono); font-size: 0.9em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
::selection { background: rgba(157, 92, 255, 0.45); color: #fff; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.hidden { display: none !important; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-soft); }

/* ---------- Icônes SVG (src/icons.js) : jamais d'emoji dans l'interface ---------- */
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.btn .icon { width: 17px; height: 17px; }
.btn-sm .icon { width: 15px; height: 15px; }
.flash .icon, .toast .icon { width: 19px; height: 19px; }
.with-icon { display: inline-flex; align-items: center; gap: 8px; }
h3.with-icon, p.with-icon, .callout.with-icon { display: flex; }
.callout.with-icon, .callout .with-icon { align-items: flex-start; }
.callout .icon { margin-top: 2px; color: var(--blue-soft); }
.brand-mark .icon { width: 20px; height: 20px; }
.big-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: rgba(61, 123, 255, 0.12); color: var(--blue-soft); display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(61, 123, 255, 0.25); }
.big-icon .icon { width: 28px; height: 28px; }

/* ---------- Marque ---------- */
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; color: #fff; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 16px -4px rgba(107, 108, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25); }

/* ---------- Mise en page back-office ---------- */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  background: var(--bg-2); border-right: 1px solid var(--border); padding: 20px 14px;
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px;
}
.sidebar .brand { padding: 0 6px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-weight: 500; white-space: nowrap; transition: color 0.15s, background 0.15s;
}
.nav a:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.nav a.active { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav a.active::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--grad); }
.nav svg { width: 18px; height: 18px; flex: none; }
.nav a.nav-scan {
  background: var(--grad); color: #fff; font-weight: 600; margin-bottom: 10px;
  box-shadow: 0 8px 24px -10px rgba(107, 108, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.nav a.nav-scan::before { display: none; }
.nav a.nav-scan:hover { filter: brightness(1.1); }
.sidebar-foot { margin-top: auto; font-size: 13px; color: var(--muted); padding: 12px 8px 0; border-top: 1px solid var(--border); }
.sidebar-foot strong { color: var(--text-2); font-weight: 600; }
.sidebar-foot button { background: none; border: 0; color: var(--blue-soft); padding: 0; margin-top: 6px; cursor: pointer; font: inherit; }
.main { padding: 30px 36px 70px; max-width: 1200px; width: 100%; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { margin: 0; }

@media (max-width: 880px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: sticky; z-index: 20; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; gap: 10px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .brand span:last-child, .sidebar-foot { display: none; }
  .nav { flex-direction: row; }
  .nav a { padding: 8px 10px; }
  .nav a span { display: none; }
  .nav a.nav-scan span { display: inline; }
  .nav a.nav-scan { margin: 0; }
  .nav a.active::before { display: none; }
  .main { padding: 20px 16px 60px; }
}

/* ---------- Composants ---------- */
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.panel-head h2 { margin: 0; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .editor-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; position: relative; overflow: hidden; }
.stat .label { color: var(--muted); font-size: 13px; }
.stat .value { font-family: var(--font-display); font-size: 32px; font-weight: 600; letter-spacing: -0.03em; margin: 2px 0; }
.stat .hint { color: var(--muted); font-size: 12.5px; }
.stat:first-child::after { content: ''; position: absolute; inset: auto -30% -60% auto; width: 160px; height: 160px; background: radial-gradient(circle, rgba(61, 123, 255, 0.25), transparent 70%); pointer-events: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.03);
  color: var(--text); font: inherit; font-weight: 600; font-size: 14.5px; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background 0.15s, border-color 0.15s, filter 0.15s, transform 0.1s;
}
.btn:hover { border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: 0 8px 26px -10px rgba(107, 108, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover { background: var(--grad); filter: brightness(1.12); border-color: transparent; }
.btn-accent, .btn-white { background: #fff; border-color: #fff; color: #0b0b14; }
.btn-accent:hover, .btn-white:hover { background: #e9ecff; border-color: #e9ecff; color: #0b0b14; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); color: var(--danger); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.inline-form { display: inline; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label, .label-text { font-weight: 600; font-size: 13.5px; color: var(--text-2); }
.field .hint { font-size: 12.5px; color: var(--muted); }
input:not([type]), input[type='text'], input[type='email'], input[type='password'], input[type='tel'], input[type='number'], input[type='date'], input[type='url'], input[type='search'], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font: inherit;
  background: var(--bg-2); color: var(--text); transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: #5b5f78; }
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61, 123, 255, 0.22); }
input[type='color'] { width: 100%; height: 44px; padding: 4px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-2); cursor: pointer; }
input[type='file'] { color: var(--muted); font: inherit; font-size: 13px; }
input[type='file']::file-selector-button { font: inherit; font-weight: 600; background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); border-radius: 999px; padding: 6px 12px; margin-right: 10px; cursor: pointer; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 14px; color: var(--text-2); }
.check input { margin-top: 3px; width: 17px; height: 17px; flex: none; }
.segmented { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--bg-2); }
.segmented label { padding: 7px 16px; cursor: pointer; font-weight: 600; font-size: 14px; border-radius: 999px; color: var(--muted); }
.segmented input { display: none; }
.segmented label:has(input:checked) { background: #fff; color: #0b0b14; }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.04em; }
.table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.table tr:last-child td { border-bottom: 0; }
.table a.rowlink { color: var(--text); font-weight: 600; text-decoration: none; }
.table a.rowlink:hover { color: var(--blue-soft); }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, 0.06); color: var(--text-2); border: 1px solid var(--border); }
.badge-ok { background: var(--ok-bg); color: var(--ok); border-color: rgba(61, 220, 151, 0.2); }
.badge-warn { background: rgba(255, 194, 75, 0.1); color: var(--warn); border-color: rgba(255, 194, 75, 0.2); }
.badge-err { background: var(--err-bg); color: var(--danger); border-color: rgba(255, 107, 122, 0.2); }

.flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; font-weight: 500; border: 1px solid transparent; }
.flash-ok { background: var(--ok-bg); color: var(--ok); border-color: rgba(61, 220, 151, 0.2); }
.flash-error { background: var(--err-bg); color: var(--danger); border-color: rgba(255, 107, 122, 0.2); }
.callout { background: linear-gradient(120deg, rgba(61, 123, 255, 0.1), rgba(157, 92, 255, 0.08)); border: 1px solid rgba(107, 108, 255, 0.25); border-radius: 12px; padding: 13px 15px; font-size: 14px; color: var(--text-2); }
.callout strong { color: #fff; }
.empty { text-align: center; color: var(--muted); padding: 34px 10px; }

.chart { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-top: 10px; }
.chart .bar { flex: 1; background: linear-gradient(180deg, var(--violet), var(--blue)); border-radius: 4px 4px 1px 1px; min-height: 3px; opacity: 0.8; transition: opacity 0.15s; }
.chart .bar:hover { opacity: 1; box-shadow: 0 0 16px rgba(107, 108, 255, 0.6); }
.chart-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 8px; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.timeline li:last-child { border-bottom: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: #4a4e66; }
.dot-visit { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.dot-reward { background: var(--violet); box-shadow: 0 0 8px var(--violet); }
.dot-redeem { background: var(--ok); }
.dot-enroll { background: #fff; }

/* ---------- Aperçu de carte Wallet (couleurs choisies par le commerçant) ---------- */
.wpass {
  --bg: #1f2a44; --fg: #ffffff; --accent: #f5b942;
  width: 100%; max-width: 340px; margin: 0 auto; border-radius: 18px; overflow: hidden;
  background: var(--bg); color: var(--fg); border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  font-family: -apple-system, 'SF Pro Text', 'Segoe UI', Roboto, Arial, sans-serif;
}
.wpass-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; min-height: 56px; }
.wpass-logo { flex: 1; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; min-width: 0; }
.wpass-logo img { max-height: 34px; max-width: 130px; object-fit: contain; }
.wpass-logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpass-balance { text-align: right; }
.wpass small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); text-transform: uppercase; }
.wpass-balance strong { font-size: 18px; }
.wpass-strip {
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 88%, #fff), color-mix(in srgb, var(--bg) 82%, #000));
  aspect-ratio: 375 / 123; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 4% 2.5%; padding: 3% 5%;
}
/* --per-row = nombre de tampons par ligne, --max = taille max (1 ligne : 14 %, 2 lignes : 11 %) */
.stamp { width: min(var(--max, 13%), calc((100% - (var(--per-row, 5) - 1) * 2.5%) / var(--per-row, 5))); aspect-ratio: 1; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); background: rgba(255, 255, 255, 0.1); display: grid; place-items: center; }
.stamp.filled { background: var(--accent); border-color: var(--accent); }
.stamp.filled::after { content: ''; width: 34%; height: 18%; border-left: 3px solid var(--bg); border-bottom: 3px solid var(--bg); transform: rotate(-45deg) translate(8%, -18%); }
.stamp.last:not(.filled) { border-style: dashed; }
.stamp.last:not(.filled)::after { content: ''; width: 52%; height: 52%; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7M7.5 8a2.5 2.5 0 0 1 0-5C9.5 3 11.5 5 12 8c.5-3 2.5-5 4.5-5a2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7M7.5 8a2.5 2.5 0 0 1 0-5C9.5 3 11.5 5 12 8c.5-3 2.5-5 4.5-5a2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E") center / contain no-repeat; }
.points-box { width: 100%; text-align: center; }
.points-box strong { font-size: 22px; }
.points-bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.18); margin-top: 8px; overflow: hidden; }
.points-bar div { height: 100%; background: var(--accent); border-radius: 99px; }
.wpass-fields { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; }
.wpass-fields .right { text-align: right; }
.wpass-fields span { font-size: 14px; }
.wpass-qr { padding: 6px 16px 18px; display: flex; justify-content: center; }
.wpass-qr .qr-box { background: #fff; border-radius: 10px; padding: 10px; width: 150px; }
.wpass-qr .qr-box img { display: block; width: 100%; }
.wpass-qr .qr-placeholder { aspect-ratio: 1; background: repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 0 / 14px 14px; opacity: 0.85; border-radius: 4px; }
.wpass-qr .qr-code { text-align: center; color: #111; font-size: 10px; margin-top: 4px; letter-spacing: 0.05em; }

/* ---------- Pages publiques ---------- */
.public { min-height: 100vh; display: flex; flex-direction: column; position: relative; overflow-x: clip; }
.public-top { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(7, 7, 13, 0.72); border-bottom: 1px solid var(--border); }
.public-top-inner { display: flex; align-items: center; gap: 28px; padding: 14px 24px; max-width: 1180px; margin: 0 auto; }
.public-links { display: flex; gap: 26px; }
.public-links a { color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.public-links a:hover { color: #fff; }
@media (max-width: 860px) { .public-links { display: none; } }
.public-main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 24px 24px 60px; }
.narrow { max-width: 460px; margin: 0 auto; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 30px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.auth-card h1 { font-size: 26px; }
.public-foot { color: var(--muted); font-size: 13px; padding: 22px; text-align: center; border-top: 1px solid var(--border); }
.public-foot a { color: var(--text-2); }

.wallet-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; border-radius: 14px; font-weight: 600; font-size: 16px; text-decoration: none; border: 0; }
.wallet-apple { background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); }
.wallet-google { background: #fff; color: #1f1f1f; }
.wallet-btn:hover { filter: brightness(1.08); color: inherit; }
.wallet-btn svg { width: 22px; height: 22px; }

.enroll-head { text-align: center; margin-bottom: 20px; }
.enroll-head img { max-height: 64px; margin-bottom: 8px; }
.enroll-head h1 { font-size: 30px; }
.reward-pill { display: inline-flex; align-items: center; gap: 7px; background: var(--accent); color: var(--primary); font-weight: 700; padding: 7px 15px; border-radius: 999px; }

/* ---------- Page d'accueil (landing) ---------- */
.lp-glow { position: absolute; inset: 0 0 auto; height: 1100px; pointer-events: none; z-index: 0; overflow: hidden; }
.lp-glow::before { /* grille discrète, estompée vers le bas */
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px; background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 70% 55% at 60% 30%, #000 30%, transparent 75%);
}
.lp-glow::after { /* halo néon à l'horizon */
  content: ''; position: absolute; left: -10%; right: -10%; top: 640px; height: 420px;
  background: radial-gradient(ellipse 45% 55% at 30% 50%, rgba(61, 123, 255, 0.45), transparent 70%), radial-gradient(ellipse 40% 50% at 72% 55%, rgba(157, 92, 255, 0.4), transparent 70%);
  filter: blur(40px);
}
.lp { position: relative; z-index: 1; }
.lp-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding: 70px 0 40px; }
.lp-hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; margin: 18px 0 22px; }
.lp-hero h1 .line-accent { display: flex; align-items: center; gap: 12px; }
.lp-hero h1 .line-accent .icon { width: 0.8em; height: 0.8em; color: var(--blue); stroke-width: 2.5; }
.lp-lead { font-size: 18px; color: var(--text-2); max-width: 520px; }
.lp-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.lp-reassure { margin-top: 14px; font-size: 13px; color: var(--muted); font-family: var(--font-mono); }
.lp-stats { display: flex; gap: 44px; margin-top: 48px; flex-wrap: wrap; }
.lp-stats strong { display: block; font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -0.03em; }
.lp-stats span { color: var(--muted); font-size: 14px; }

.lp-visual { position: relative; height: 560px; }
.lp-visual .pass-a, .lp-visual .pass-b { position: absolute; width: 290px; }
.lp-visual .wpass { box-shadow: 0 50px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.lp-visual .wpass-qr .qr-box { width: 120px; }
.lp-visual .pass-a { top: 0; left: 2%; transform: rotate(-8deg); z-index: 1; }
.lp-visual .pass-b { top: 90px; right: 0; transform: rotate(6deg); z-index: 2; }
.lp-notif {
  position: absolute; left: 12%; bottom: 36px; width: 330px; z-index: 3;
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 18px;
  background: rgba(30, 30, 46, 0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
  font-family: -apple-system, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif; font-size: 13px; line-height: 1.35;
}
.lp-notif .app-ic { width: 34px; height: 34px; border-radius: 9px; background: #000; display: grid; place-items: center; flex: none; border: 1px solid rgba(255, 255, 255, 0.15); }
.lp-notif .app-ic svg { width: 20px; height: 20px; }
.lp-notif b { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 1px; }
.lp-notif b span { font-weight: 400; color: #9a9db2; font-size: 12px; }

.lp-trust { padding: 70px 0 30px; text-align: center; }
.lp-trust p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.lp-trust-row { display: flex; justify-content: center; align-items: center; gap: 14px 40px; flex-wrap: wrap; color: var(--text-2); font-family: var(--font-display); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.lp-trust-row .sep { width: 4px; height: 4px; border-radius: 50%; background: #3a3d52; }
.lp-wallets { display: flex; justify-content: center; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.lp-wallet-chip { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 10px; border: 1px solid var(--border-strong); border-radius: 999px; font-weight: 600; font-size: 14px; background: rgba(255, 255, 255, 0.03); }
.lp-wallet-chip svg { width: 20px; height: 20px; }

.lp-section { padding: 100px 0 20px; }
.lp-section-head { max-width: 640px; margin-bottom: 44px; }
.lp-section-head.center { margin-left: auto; margin-right: auto; }
.lp-section-head h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: -0.035em; margin: 14px 0 14px; }
.lp-section-head p { color: var(--text-2); font-size: 17px; }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { grid-column: span 2; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px; position: relative; overflow: hidden; min-height: 230px; display: flex; flex-direction: column; }
.tile.wide { grid-column: span 3; }
.tile h3 { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em; margin: auto 0 8px; }
.tile p { color: var(--muted); margin: 0; font-size: 14.5px; }
.tile-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--blue-soft); background: rgba(61, 123, 255, 0.1); border: 1px solid rgba(61, 123, 255, 0.22); margin-bottom: 26px; }
.tile-ic.violet { color: var(--violet-soft); background: rgba(157, 92, 255, 0.1); border-color: rgba(157, 92, 255, 0.25); }
.tile-ic .icon { width: 20px; height: 20px; }
.tile.highlight { background: radial-gradient(120% 90% at 100% 0%, rgba(107, 108, 255, 0.22), transparent 60%), var(--surface); border-color: rgba(107, 108, 255, 0.3); }
.mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 70px; margin-bottom: 20px; }
.mini-bars i { flex: 1; border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, var(--violet), var(--blue)); opacity: 0.85; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .tile, .tile.wide { grid-column: auto; } }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { border-top: 1px solid var(--border-strong); padding-top: 22px; }
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--violet-soft); }
.step h3 { font-family: var(--font-display); font-size: 21px; letter-spacing: -0.02em; margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.pricing-wrap { background: linear-gradient(180deg, #0d0d18, #08080f); border: 1px solid var(--border); border-radius: 28px; padding: 64px 40px 48px; position: relative; overflow: hidden; }
.pricing-wrap::before { content: ''; position: absolute; left: 50%; top: -220px; width: 700px; height: 400px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(107, 108, 255, 0.2), transparent 70%); pointer-events: none; }
.billing-toggle { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--border-strong); border-radius: 999px; background: rgba(255, 255, 255, 0.03); margin: 6px 0 40px; }
.billing-toggle button { border: 0; background: none; color: var(--text-2); font: inherit; font-weight: 600; font-size: 14px; padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.billing-toggle button.on { background: #fff; color: #0b0b14; }
.billing-toggle em { font-style: normal; color: var(--ok); font-weight: 500; margin-left: 4px; }
.billing-toggle button.on em { color: #12805c; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; text-align: left; position: relative; }
.plan { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; }
.plan-name { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.plan-desc { color: var(--muted); font-size: 14px; min-height: 44px; margin: 8px 0 22px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan-price strong { font-family: var(--font-display); font-size: 46px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.plan-price span { color: var(--muted); }
.plan-note { color: var(--muted); font-size: 12.5px; min-height: 19px; margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; font-size: 14px; color: var(--text-2); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .icon { color: var(--blue-soft); margin-top: 2px; width: 16px; height: 16px; }
.plan-list-title { font-weight: 600; font-size: 14px; margin-top: 24px; }
.plan.featured {
  background: radial-gradient(130% 60% at 50% 0%, rgba(61, 123, 255, 0.35), transparent 60%), #0f1020;
  border-color: rgba(92, 120, 255, 0.55); box-shadow: 0 0 0 1px rgba(92, 120, 255, 0.25), 0 30px 70px -30px rgba(61, 123, 255, 0.7);
}
.plan.featured .plan-desc { color: #a9b7ff; }
.plan-tag { font-family: var(--font-body); font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(160, 180, 255, 0.4); color: #cdd7ff; background: rgba(61, 123, 255, 0.15); }
.pricing-foot { color: var(--muted); font-size: 13px; margin-top: 26px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } .pricing-wrap { padding: 44px 18px 30px; } }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary .icon { transform: rotate(180deg); color: var(--blue-soft); }
.faq details p { color: var(--text-2); margin: -4px 0 20px; max-width: 680px; }

.lp-final { margin: 110px 0 40px; padding: 60px 40px; border-radius: 28px; text-align: center; position: relative; overflow: hidden; border: 1px solid rgba(107, 108, 255, 0.35); background: radial-gradient(80% 120% at 50% 120%, rgba(157, 92, 255, 0.35), transparent 60%), radial-gradient(60% 90% at 15% -20%, rgba(61, 123, 255, 0.3), transparent 60%), #0c0c18; }
.lp-final h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.035em; line-height: 1.05; }
.lp-final p { color: var(--text-2); font-size: 17px; }

.lp-footer { border-top: 1px solid var(--border); padding: 40px 24px; }
.lp-footer-inner { max-width: 1180px; margin: 0 auto; display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; color: var(--muted); font-size: 14px; }
.lp-footer-inner nav { display: flex; flex-direction: column; gap: 8px; }
.lp-footer-inner nav a { color: var(--text-2); text-decoration: none; }
.lp-footer-inner nav b { color: var(--text); font-weight: 600; margin-bottom: 4px; }

@media (max-width: 960px) {
  .lp-hero { grid-template-columns: 1fr; padding-top: 40px; }
  .lp-visual { height: 520px; max-width: 460px; width: 100%; margin: 0 auto; }
  .lp-visual .pass-a { left: 0; }
}
@media (max-width: 520px) {
  .lp-visual { height: 470px; }
  .lp-visual .pass-a, .lp-visual .pass-b { width: 230px; }
  .lp-visual .pass-b { top: 110px; }
  .lp-notif { left: 0; right: 0; width: auto; bottom: 10px; }
  .lp-stats { gap: 28px; }
}

/* ---------- Accueil : animations (esprit Ressort, DA Rebond) ---------- */
/* Trame de points bleus, une vague violette passe et repasse (aller-retour : jamais de raccord). */
.lp-trame { position: absolute; inset: -6% -4%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(61, 123, 255, 0.7) 0 1.7px, transparent 2.1px) 0 0 / 16px 16px;
  -webkit-mask: radial-gradient(ellipse 60% 55% at 50% 50%, #000 30%, transparent 80%); mask: radial-gradient(ellipse 60% 55% at 50% 50%, #000 30%, transparent 80%); }
.lp-trame::before { content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle, #9d5cff 0 1.8px, transparent 2.2px) 8px 8px / 16px 16px;
  -webkit-mask: linear-gradient(90deg, transparent 25%, #000 50%, transparent 75%) 100% 0 / 260% 100% no-repeat;
  mask: linear-gradient(90deg, transparent 25%, #000 50%, transparent 75%) 100% 0 / 260% 100% no-repeat;
  animation: lp-vague 7s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
@keyframes lp-vague { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }

.lp-ressort-pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 12px 6px 10px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.03); color: var(--text-2); font-size: 13px; text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.lp-ressort-pill b { color: #fff; font-weight: 600; }
.lp-ressort-pill .icon { width: 14px; height: 14px; color: var(--muted); transition: transform 0.2s; }
.lp-ressort-pill:hover { border-color: rgba(122, 163, 255, 0.5); color: #fff; }
.lp-ressort-pill:hover .icon { transform: translate(2px, -2px); color: var(--blue-soft); }
.lp-ressort-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px rgba(107, 108, 255, 0.9); animation: lp-pulse 2.4s ease-in-out infinite; }
@keyframes lp-pulse { 50% { opacity: 0.45; transform: scale(0.75); } }
.lp-hero .eyebrow { display: block; }

.lp-visual { transition: transform 0.4s ease-out; }
.lp-visual .pass-a > .wpass { animation: lp-flotte 7s ease-in-out infinite; }
.lp-visual .pass-b > .wpass { animation: lp-flotte 8s -3s ease-in-out infinite; }
@keyframes lp-flotte { 50% { transform: translateY(-12px); } }
.lp-visual .stamp { transition: background-color 0.3s, border-color 0.3s; }
.lp-visual .stamp.pop { animation: lp-tampon 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 70%, transparent); }
@keyframes lp-tampon { 0% { transform: scale(0.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.lp-visual .pass-a.complete .wpass { box-shadow: 0 50px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(165, 124, 255, 0.6), 0 0 40px rgba(157, 92, 255, 0.45); }
.lp-notif.arrive { animation: lp-notif 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes lp-notif { from { opacity: 0; transform: translateY(-14px) scale(0.96); } }

.lp-defile { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.lp-defile .piste { display: flex; width: max-content; animation: lp-defile 38s linear infinite; }
.lp-defile .lot { display: flex; align-items: center; gap: 36px; padding-right: 36px; color: var(--text-2); font-family: var(--font-display); font-size: 21px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.lp-defile .sep { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); opacity: 0.8; }
.lp-defile:hover .piste { animation-play-state: paused; }
@keyframes lp-defile { to { transform: translateX(-50%); } }

/* Tuiles : halo qui suit le pointeur, petites animations d'icônes. */
.tile { transition: border-color 0.3s, transform 0.3s; }
.tile::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(107, 108, 255, 0.16), transparent 70%); }
.tile:hover { border-color: rgba(122, 163, 255, 0.3); transform: translateY(-3px); }
.tile:hover::before { opacity: 1; }
.tile > * { position: relative; }
.tile-scan { overflow: hidden; }
.tile-scan::after { content: ''; position: absolute; left: 6px; right: 6px; height: 2px; top: 8px; border-radius: 2px; background: var(--blue-soft); box-shadow: 0 0 10px var(--blue); animation: lp-scan 2.6s ease-in-out infinite; }
@keyframes lp-scan { 50% { top: calc(100% - 10px); } }
.tile-bell .icon { transform-origin: 50% 10%; animation: lp-cloche 4s ease-in-out infinite; }
@keyframes lp-cloche { 0%, 70%, 100% { transform: none; } 76% { transform: rotate(14deg); } 82% { transform: rotate(-12deg); } 88% { transform: rotate(7deg); } 94% { transform: rotate(-4deg); } }
.mini-bars i { transform-origin: bottom; }
.js .tile.revele .mini-bars i { transform: scaleY(0.05); transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .tile.vu .mini-bars i { transform: none; }
.mini-bars i:nth-child(2) { transition-delay: 0.08s; } .mini-bars i:nth-child(3) { transition-delay: 0.16s; } .mini-bars i:nth-child(4) { transition-delay: 0.24s; }
.mini-bars i:nth-child(5) { transition-delay: 0.32s; } .mini-bars i:nth-child(6) { transition-delay: 0.4s; } .mini-bars i:nth-child(7) { transition-delay: 0.48s; }

/* Étapes : le trait se dessine de gauche à droite. */
.step { position: relative; }
.step::before { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--d, 0s) + 0.2s); }
.step.vu::before { transform: scaleX(1); }

/* Offre recommandée : liseré lumineux qui tourne. */
.plan { transition: transform 0.3s, border-color 0.3s; }
.plan:hover { transform: translateY(-4px); }
@property --lp-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.plan.featured { position: relative; }
.plan.featured::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--lp-angle), transparent 0 70%, #3d7bff 80%, #9d5cff 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: lp-tour 5s linear infinite; }
@keyframes lp-tour { to { --lp-angle: 360deg; } }

/* Bandeau Ressort Studio */
.lp-ressort { position: relative; margin-top: 110px; padding: 64px 48px; border-radius: 28px; overflow: hidden; border: 1px solid var(--border); background: #0a0a14; }
.lp-ressort .lp-trame { inset: 0; -webkit-mask: linear-gradient(90deg, transparent 35%, #000 100%); mask: linear-gradient(90deg, transparent 35%, #000 100%); opacity: 0.7; }
.lp-ressort-in { position: relative; max-width: 620px; }
.lp-ressort h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.035em; line-height: 1.05; margin: 14px 0; }
.lp-ressort p { color: var(--text-2); font-size: 17px; }
.lp-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; color: #fff; text-decoration: none; }
.lp-link .icon { width: 17px; height: 17px; color: var(--blue-soft); transition: transform 0.2s; }
.lp-link:hover .icon { transform: translate(3px, -3px); }
.lp-by { font-size: 13px; }
.lp-by a { color: var(--text-2); }

/* Appel final : le logo rebondit. */
.lp-final-logo { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 18px; background: var(--grad); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 40px -8px rgba(107, 108, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.lp-final-logo .icon { width: 40px; height: 40px; overflow: visible; }
.lp-final-logo path { stroke-dasharray: 100; stroke-dashoffset: 0; }
.lp-final.vu .lp-final-logo path { animation: lp-trace 1.4s cubic-bezier(0.5, 0, 0.2, 1) both; }
.lp-final-logo circle { animation: lp-balle 1.6s cubic-bezier(0.5, 0, 0.5, 1) infinite; transform-box: fill-box; transform-origin: center bottom; }
@keyframes lp-trace { from { stroke-dashoffset: 100; } }
@keyframes lp-balle { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(14px) scaleY(0.85); } 55% { transform: translateY(14px) scale(1.1, 0.8); } }

/* Apparition (seulement si le JavaScript tourne) */
.js .lp-hero .mot { display: inline-block; opacity: 0; transform: translateY(0.4em); animation: lp-arrive 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: var(--d); }
.js .lp-hero .line-accent.mot { display: flex; }
.js .lp-hero .lp-in, .js .lp-visual > div:not(.lp-trame, .lp-notif) { opacity: 0; transform: translateY(14px); animation: lp-arrive 0.8s 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.js .lp-hero .lp-ctas { animation-delay: 0.7s; }
.js .lp-hero .lp-reassure, .js .lp-hero .lp-stats { animation-delay: 0.82s; }
.js .lp-visual .pass-a { animation-delay: 0.3s; }
.js .lp-visual .pass-b { animation-delay: 0.45s; }
.js .lp-notif:not(.arrive) { opacity: 0; }
@keyframes lp-arrive { to { opacity: 1; transform: var(--t-fin, none); } }
.lp-visual .pass-a { --t-fin: rotate(-8deg); }
.lp-visual .pass-b { --t-fin: rotate(6deg); }
.js .revele { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s; transition-delay: var(--d, 0s); }
.js .revele.vu { opacity: 1; transform: none; }
.js .tile.revele.vu:hover, .js .plan.revele.vu:hover { transition-delay: 0s; }
.js .tile.revele.vu:hover { transform: translateY(-3px); }
.js .plan.revele.vu:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  .lp-trame::before, .lp-ressort-pill .dot, .lp-visual .wpass, .lp-defile .piste, .tile-scan::after, .tile-bell .icon, .plan.featured::after, .lp-final-logo circle, .lp-final-logo path { animation: none !important; }
  .js .lp-hero .mot, .js .lp-hero .lp-in, .js .lp-visual > div { opacity: 1; animation: none; transform: var(--t-fin, none); }
  .js .lp-notif:not(.arrive) { opacity: 1; }
  .lp-defile .piste { flex-wrap: wrap; width: auto; justify-content: center; }
  .lp-defile .lot[aria-hidden] { display: none; }
  .lp-defile .lot { flex-wrap: wrap; justify-content: center; white-space: normal; gap: 14px 36px; }
  .lp-defile { -webkit-mask: none; mask: none; }
}
@media (max-width: 640px) { .lp-ressort { padding: 40px 24px; } }

/* ---------- Scanner ---------- */
.scan-page { max-width: 520px; margin: 0 auto; }
.scanner { position: relative; background: #000; border-radius: 20px; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--border-strong); }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner .frame { position: absolute; inset: 18%; border: 2px solid rgba(122, 163, 255, 0.9); border-radius: 20px; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.45), 0 0 24px rgba(61, 123, 255, 0.6), inset 0 0 24px rgba(61, 123, 255, 0.35); }
.scanner .scan-msg { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: #fff; font-size: 14px; text-shadow: 0 1px 3px #000; }
.scanner .start { position: absolute; inset: 0; display: grid; place-items: center; }
.result-card { margin-top: 16px; border-color: rgba(107, 108, 255, 0.35); }
.result-name { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.big-balance { font-family: var(--font-display); font-size: 44px; font-weight: 600; letter-spacing: -0.04em; }
.search-results { list-style: none; padding: 0; margin: 10px 0 0; }
.search-results li button { width: 100%; text-align: left; background: var(--bg-2); color: var(--text); border: 1px solid var(--border-strong); border-radius: 12px; padding: 11px 13px; margin-bottom: 6px; cursor: pointer; font: inherit; }
.search-results li button:hover { border-color: var(--blue); }
.toast { display: flex; align-items: center; gap: 10px; position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #151528; border: 1px solid rgba(107, 108, 255, 0.45); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(61, 123, 255, 0.25); z-index: 50; max-width: 90vw; }
.toast .icon { color: var(--blue-soft); }
.toast.error { border-color: rgba(255, 107, 122, 0.5); }
.toast.error .icon { color: var(--danger); }

/* ---------- Affiche imprimable (toujours en clair) ---------- */
.poster-page { min-height: 100vh; padding-bottom: 20px; }
.poster { background: #fff; color: #111; width: 148mm; min-height: 210mm; margin: 10px auto; padding: 14mm 12mm; text-align: center; border-radius: 6px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--font-body); }
.poster h1, .poster h2 { color: #111; }
.poster h1 { font-size: 30px; }
.poster .muted { color: #666; }
.poster .qr { width: 95mm; }
@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
  .poster { margin: 0 auto; }
}
