/* Shol Partenaires — fond blanc, vert de la marque */

@font-face { font-family: 'Bricolage'; src: url('fonts/bricolage-grotesque.woff2') format('woff2'); font-weight: 500 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('fonts/geist.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('fonts/geist-mono.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --deep: #0f2a1f;
  --deep-2: #143a2b;
  --deep-3: #1b4a37;
  --mint: #6bc48f;
  --lime: #dcf8b0;
  --primary: #11804b;
  --primary-hover: #0c6a3d;
  --primary-soft: #eaf6ee;
  --primary-soft-2: #d6eedd;
  --ink: #0e1d16;
  --ink-2: #4a5c54;
  --ink-3: #7b8b84;
  --line: #e3e9e5;
  --line-2: #eef2ef;
  --bg: #f6f8f7;
  --surface: #ffffff;
  --danger: #c0392b;
  --danger-soft: #fdeeec;
  --warn: #a55a00;
  --warn-soft: #fff5e3;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 31, .06);
  --shadow: 0 1px 2px rgba(15, 42, 31, .05), 0 8px 24px -12px rgba(15, 42, 31, .14);
  --shadow-lg: 0 24px 64px -24px rgba(15, 42, 31, .35), 0 2px 6px rgba(15, 42, 31, .06);
  --display: 'Bricolage', 'Geist', system-ui, sans-serif;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--ink);
  background: var(--surface); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'tnum' 0;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; }
p { margin: 0; }
svg { flex-shrink: 0; }
.ic { width: 18px; height: 18px; }
.hero-label .ic { width: 16px; height: 16px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Logo ── */
.logo {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--mint); color: var(--lime);
  font-family: var(--display); font-weight: 800; font-size: 25px; line-height: 1; letter-spacing: -.04em;
  box-shadow: inset 0 -2px 0 rgba(15, 42, 31, .12);
}
.logo-lg { width: 64px; height: 64px; border-radius: 18px; font-size: 40px; }
.logo-sm { width: 32px; height: 32px; border-radius: 9px; font-size: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; color: var(--ink); }
.brand small { font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--ink-3); letter-spacing: 0; }

/* ── Boutons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background .15s, box-shadow .15s, transform .1s, color .15s, border-color .15s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 1px 2px rgba(17, 128, 75, .3); }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-dark { background: var(--deep); color: #fff; }
.btn-dark:hover:not(:disabled) { background: var(--deep-3); }
.btn-lime { background: var(--lime); color: var(--deep); }
.btn-lime:hover:not(:disabled) { background: #cdf094; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover:not(:disabled) { border-color: #cdd6d1; background: var(--bg); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-soft:hover:not(:disabled) { background: var(--primary-soft-2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #a5301f; }
.btn-danger-ghost { color: var(--danger); border: 1px solid #f1c9c3; background: var(--surface); }
.btn-danger-ghost:hover:not(:disabled) { background: var(--danger-soft); }
.btn-lg { height: 52px; padding: 0 22px; font-size: 16px; border-radius: 14px; }
.btn-sm { height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn .spinner { width: 18px; height: 18px; border-width: 2px; }
.link { color: var(--primary); font-weight: 600; font-size: 14px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link:disabled { color: var(--ink-3); cursor: default; text-decoration: none; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--ink-2); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Champs ── */
.field { display: grid; gap: 6px; }
.field + .field, .field-row + .field, .field + .field-row { margin-top: 16px; }
.field label, .field-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field-hint { font-size: 13px; color: var(--ink-3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row .field + .field { margin-top: 0; }
.input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #a7b3ad; }
.input:hover { border-color: #cbd5d0; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(17, 128, 75, .12); }
.input.invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(192, 57, 43, .1); }
select.input { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%237b8b84' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
textarea.input { height: auto; min-height: 44px; padding: 11px 14px; resize: none; line-height: 1.45; }
.date-row { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 8px; }

.check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--ink-2); cursor: pointer; user-select: none; margin-top: 20px; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check-box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #c3cec8; display: grid; place-items: center; background: var(--surface); transition: background .15s, border-color .15s; margin-top: 1px; }
.check-box svg { width: 14px; height: 14px; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s var(--ease); }
.check input:checked + .check-box { background: var(--primary); border-color: var(--primary); }
.check input:checked + .check-box svg { opacity: 1; transform: none; }
.check input:focus-visible + .check-box { outline: 2px solid var(--primary); outline-offset: 2px; }

.form-error { display: none; align-items: flex-start; gap: 8px; margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-size: 14px; font-weight: 500; }
.form-error.show { display: flex; animation: shake .3s; }
.form-error svg { width: 18px; height: 18px; margin-top: 1px; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

/* Cases de code (invitation, vérification) */
.code-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.code-boxes.split { grid-template-columns: repeat(3, 1fr) 12px repeat(3, 1fr); }
.code-sep { align-self: center; height: 2px; background: var(--line); border-radius: 2px; }
.code-box {
  width: 100%; aspect-ratio: 1 / 1.15; max-height: 64px; border-radius: 14px; text-align: center;
  border: 1.5px solid var(--line); background: var(--surface);
  font-family: var(--mono); font-size: 24px; font-weight: 500; text-transform: uppercase; caret-color: var(--primary);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.code-box:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(17, 128, 75, .12); }
.code-box.filled { border-color: #b9d9c5; background: var(--primary-soft); }
.code-boxes.invalid .code-box { border-color: var(--danger); background: var(--danger-soft); }
.code-boxes.ok .code-box { border-color: var(--primary); background: var(--primary-soft); }
.code-boxes.busy { opacity: .6; pointer-events: none; }

/* ── Onboarding : écran partagé ── */
.auth { display: grid; grid-template-columns: minmax(380px, 46%) 1fr; min-height: 100vh; min-height: 100dvh; }
.auth-side {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: 44px 52px; background: var(--deep); color: #e6f4ec;
}
.auth-side::before, .auth-side::after {
  content: ''; position: absolute; background: var(--deep-2); border-radius: 64px; pointer-events: none;
}
.auth-side::before { width: 520px; height: 420px; left: -180px; top: -140px; transform: rotate(-14deg); }
.auth-side::after { width: 560px; height: 520px; right: -260px; bottom: -200px; transform: rotate(-10deg); }
.auth-side > * { position: relative; z-index: 1; }
.auth-side .brand { color: #fff; }
.auth-pitch { max-width: 440px; }
.auth-pitch h1 { font-size: clamp(38px, 4vw, 54px); font-weight: 750; color: #f2fbf5; letter-spacing: -.035em; }
.auth-pitch h1 em { font-style: normal; color: var(--lime); }
.auth-pitch > p { margin-top: 16px; font-size: 17px; color: #a9c7b7; line-height: 1.55; }
.auth-points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: #d4e8dc; }
.auth-points strong { color: #fff; font-weight: 600; }
.auth-points .pt-icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(220, 248, 176, .1); color: var(--lime); }
.auth-points .pt-icon svg { width: 18px; height: 18px; }
.auth-foot { font-size: 13px; color: #7fa392; display: flex; gap: 8px; align-items: center; }
.auth-foot svg { width: 15px; height: 15px; }

.auth-main { display: flex; flex-direction: column; min-width: 0; background: var(--surface); }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 40px; min-height: 88px; }
.auth-top .brand { display: none; }
.auth-top-right { margin-left: auto; font-size: 14px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.auth-body { flex: 1; display: grid; place-items: center; padding: 8px 40px 48px; }
.auth-card { width: 100%; max-width: 440px; animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.auth-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--primary); background: var(--primary-soft); padding: 5px 10px; border-radius: 999px; margin-bottom: 18px; }
.auth-eyebrow svg { width: 14px; height: 14px; }
.auth-card h2 { font-size: 34px; font-weight: 750; letter-spacing: -.03em; }
.auth-card .lead { margin-top: 10px; font-size: 16px; color: var(--ink-2); }
.auth-card .lead strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.auth-form { margin-top: 28px; }
.auth-actions { margin-top: 24px; display: grid; gap: 12px; }
.auth-alt { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); text-align: center; }
.auth-alt .link { margin-left: 4px; }
.auth-meta { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ink-3); }
.test-note { margin-top: 20px; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px dashed #cfd9d3; font-size: 13px; color: var(--ink-2); }
.test-note code { font-family: var(--mono); color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.test-note svg { width: 16px; height: 16px; color: var(--ink-3); }

.change-box { margin-top: 16px; padding: 16px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); display: none; }
.change-box.open { display: block; animation: rise .25s var(--ease) both; }
.change-box .field-hint { margin-top: 8px; }
.change-box-actions { display: flex; gap: 8px; margin-top: 12px; }

/* Progression */
.steps { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 440px; }
.steps-bar { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.steps-bar span { height: 5px; border-radius: 5px; background: var(--line); position: relative; overflow: hidden; }
.steps-bar span.done { background: var(--primary); }
.steps-bar span.active { background: var(--primary-soft-2); }
.steps-bar span.active::after { content: ''; position: absolute; inset: 0; width: 45%; background: var(--primary); border-radius: 5px; }
.steps-label { font-size: 13px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 6px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.back-btn:hover { background: var(--line-2); color: var(--ink); }
.back-btn svg { width: 18px; height: 18px; }

/* Bienvenue (après inscription) */
.success-mark { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--primary); color: #fff; margin-bottom: 22px; box-shadow: 0 10px 30px -10px rgba(17, 128, 75, .6); animation: pop .5s var(--ease) both; }
.success-mark svg { width: 32px; height: 32px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.timeline { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding-bottom: 20px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
.timeline li.done:not(:last-child)::before { background: var(--primary); }
.tl-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); background: var(--surface); color: var(--ink-3); font-size: 13px; font-weight: 700; }
.tl-dot svg { width: 16px; height: 16px; }
.timeline li.done .tl-dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.timeline li.current .tl-dot { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 5px var(--primary-soft); }
.tl-title { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 5px; }
.tl-text { font-size: 14px; color: var(--ink-2); margin-top: 2px; }

.disclosure { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.disclosure summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; font-weight: 600; font-size: 14px; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary svg { width: 18px; height: 18px; color: var(--ink-3); transition: transform .2s var(--ease); }
.disclosure[open] summary svg { transform: rotate(180deg); }
.disclosure-body { padding: 0 16px 16px; font-size: 14px; color: var(--ink-2); display: grid; gap: 8px; }

/* ── Espace partenaire ── */
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; min-height: 100dvh; background: var(--bg); }
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 6px;
  padding: 22px 16px; background: var(--surface); border-right: 1px solid var(--line);
}
.sidebar .brand { padding: 4px 8px 22px; }
.nav { display: grid; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 12px; border-radius: 12px;
  font-weight: 550; font-size: 15px; color: var(--ink-2); transition: background .15s, color .15s;
}
.nav-item svg { width: 20px; height: 20px; }
.nav-item:hover { background: var(--line-2); color: var(--ink); }
.nav-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 650; }
.nav-item .nav-tag { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--surface); border: 1px solid var(--primary-soft-2); border-radius: 999px; padding: 1px 8px; }
.sidebar-promo { margin-top: auto; padding: 16px; border-radius: var(--r); background: var(--deep); color: #cfe3d7; position: relative; overflow: hidden; }
.sidebar-promo::after { content: ''; position: absolute; width: 140px; height: 140px; right: -50px; bottom: -60px; border-radius: 36px; background: var(--deep-2); transform: rotate(-12deg); }
.sidebar-promo > * { position: relative; z-index: 1; }
.sidebar-promo strong { display: block; font-family: var(--display); font-size: 17px; color: #fff; font-weight: 700; letter-spacing: -.01em; }
.sidebar-promo p { font-size: 13px; margin-top: 4px; }
.sidebar-promo .btn { margin-top: 12px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 10px 8px 0; margin-top: 12px; border-top: 1px solid var(--line-2); }
.user-chip-text { min-width: 0; flex: 1; }
.user-chip-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip-mail { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft-2); color: var(--primary); font-weight: 700; font-size: 14px; }
.avatar-lg { width: 64px; height: 64px; font-size: 24px; font-family: var(--display); }

.topbar { display: none; }
.tabbar { display: none; }

.main { min-width: 0; padding: 36px 40px 96px; }
.page { max-width: 1040px; margin: 0 auto; animation: rise .35s var(--ease) both; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 32px; font-weight: 750; letter-spacing: -.03em; }
.page-head p { color: var(--ink-2); margin-top: 6px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-hero { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.stack { display: grid; gap: 16px; align-content: start; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); min-width: 0; }
.card-flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-flush .card-head { padding: 20px 22px 0; }
.card-title { font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -.015em; }
.card-sub { font-size: 14px; color: var(--ink-2); margin-top: 2px; }

/* Carte vedette (fond vert foncé) */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 28px; color: #d5e9dd; background: var(--deep);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 240px; box-shadow: var(--shadow);
}
.hero::before { content: ''; position: absolute; width: 360px; height: 300px; right: -120px; top: -150px; border-radius: 60px; background: var(--deep-2); transform: rotate(-16deg); }
.hero::after { content: ''; position: absolute; width: 240px; height: 240px; right: 60px; bottom: -170px; border-radius: 50px; background: var(--deep-3); opacity: .5; transform: rotate(18deg); }
.hero > * { position: relative; z-index: 1; }
.hero-label { font-size: 14px; font-weight: 600; color: #9fc1af; display: flex; align-items: center; gap: 8px; }
.hero-value { font-family: var(--display); font-size: clamp(56px, 7vw, 84px); font-weight: 800; letter-spacing: -.05em; line-height: .95; color: #fff; margin-top: 8px; }
.hero-value small { font-size: .5em; color: var(--lime); margin-left: 2px; letter-spacing: -.02em; }
.hero-text { font-size: 15px; color: #b6d2c3; max-width: 420px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .08); color: #e3f3e9; border: 1px solid rgba(255, 255, 255, .08); }
.chip b { color: var(--lime); font-weight: 700; }
.chip-add { background: rgba(220, 248, 176, .12); border-color: rgba(220, 248, 176, .2); }

.metric { display: flex; flex-direction: column; gap: 6px; }
.metric-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 550; color: var(--ink-2); }
.metric-label .m-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.metric-label .m-icon.warn { background: var(--warn-soft); color: var(--warn); }
.metric-label .m-icon svg { width: 16px; height: 16px; }
.metric-value { font-family: var(--display); font-size: 32px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.metric-note { font-size: 13px; color: var(--ink-3); }

/* Bandeau */
.notice { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); border: 1px solid #f3dcb3; background: var(--warn-soft); color: #6b3d05; }
.notice-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #ffe7bf; color: var(--warn); }
.notice-icon svg { width: 18px; height: 18px; }
.notice-text { flex: 1 1 220px; min-width: 0; font-size: 14px; }
.notice-text strong { display: block; font-size: 15px; color: #4a2a03; }
.notice.info { border-color: var(--primary-soft-2); background: var(--primary-soft); color: #23523a; }
.notice.info .notice-icon { background: var(--primary-soft-2); color: var(--primary); }
.notice.info .notice-text strong { color: var(--deep); }
.notice.danger { border-color: #f1c9c3; background: var(--danger-soft); color: #7a2219; }
.notice.danger .notice-icon { background: #fadbd6; color: var(--danger); }
.notice.danger .notice-text strong { color: #5c160f; }

/* Étapes « comment ça marche » */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: how; }
.how-step { padding: 16px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line-2); }
.how-step .how-n { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 13px; color: var(--primary); margin-bottom: 10px; }
.how-step strong { display: block; font-size: 15px; }
.how-step p { font-size: 13px; color: var(--ink-2); margin-top: 4px; }

/* Simulateur */
.sim-amount { font-family: var(--display); font-size: 28px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 14px 0 6px; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(to right, var(--primary) var(--fill, 20%), var(--line) var(--fill, 20%)); }
.range::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line); }
.range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--primary); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); margin-top: -9px; box-shadow: 0 2px 6px rgba(15, 42, 31, .2); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); box-shadow: 0 2px 6px rgba(15, 42, 31, .2); }
.range-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.split-bar { display: flex; height: 10px; border-radius: 10px; overflow: hidden; margin-top: 18px; background: var(--line); }
.split-bar .keep { background: var(--primary); }
.split-bar .back { background: #c9d4ce; }
.split-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.split-legend div { display: grid; gap: 2px; }
.split-legend span { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.split-legend span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.split-legend div + div span::before { background: #c9d4ce; }
.split-legend strong { font-size: 18px; font-variant-numeric: tabular-nums; }

/* Historique */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); padding: 12px 22px; border-bottom: 1px solid var(--line); background: #fbfcfb; }
.table td { padding: 14px 22px; border-bottom: 1px solid var(--line-2); vertical-align: middle; font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: 0; }
.table .t-right { text-align: right; }
.table .t-strong { font-weight: 650; }
.table .t-green { color: var(--primary); font-weight: 650; }
.rev-cards { display: none; }
.rev-card { padding: 16px 18px; border-top: 1px solid var(--line-2); display: grid; gap: 12px; }
.rev-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rev-card-amount { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.rev-card-date { font-size: 13px; color: var(--ink-3); }
.rev-card-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13px; color: var(--ink-2); }
.rev-card-split strong { display: block; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.rev-card-split .green { color: var(--primary); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-green { background: var(--primary-soft); color: var(--primary); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-plain::before { display: none; }

.empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 40px 24px; }
.empty-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 6px; }
.empty-icon svg { width: 24px; height: 24px; }
.empty strong { font-size: 16px; }
.empty p { font-size: 14px; color: var(--ink-2); max-width: 360px; }

.skeleton { border-radius: 8px; background: linear-gradient(90deg, var(--line-2), #f8faf9, var(--line-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; height: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Parrainage */
.ref-code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ref-code-value { font-family: var(--mono); font-size: clamp(30px, 4.5vw, 42px); font-weight: 500; letter-spacing: .12em; color: #fff; padding: 8px 16px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px dashed rgba(220, 248, 176, .35); }
.ref-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.people { display: grid; }
.person { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line-2); }
.person-text { flex: 1; min-width: 0; }
.person-name { font-weight: 600; }
.person-date { font-size: 13px; color: var(--ink-3); }
.person-gain { font-weight: 700; color: var(--primary); font-size: 14px; }

/* Compte */
.profile { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.profile-name { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.profile-meta { font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 4px; }
.rows { display: grid; }
.row { display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-2); min-height: 62px; }
.row:first-child { border-top: 0; padding-top: 0; }
.row-label { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.row-value { font-weight: 550; overflow-wrap: anywhere; min-width: 0; }
.row-value.muted { color: var(--ink-3); font-weight: 400; }
.row-edit { grid-column: 2 / 4; display: flex; gap: 8px; }
.row-edit .input { height: 42px; font-size: 15px; }
.locked { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r); background: var(--bg); border: 1px dashed #cfd9d3; }
.locked-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink-3); }
.locked-icon svg { width: 18px; height: 18px; }
.locked-text { font-size: 14px; color: var(--ink-2); flex: 1; }
.locked-text strong { display: block; color: var(--ink); font-size: 15px; }

/* ── Messagerie ── */
.chat-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 58px; height: 58px; border-radius: 18px;
  display: grid; place-items: center; background: var(--deep); color: var(--lime);
  box-shadow: 0 12px 28px -8px rgba(15, 42, 31, .55); transition: transform .2s var(--ease), background .15s;
}
.chat-fab:hover { transform: translateY(-2px); background: var(--deep-3); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-fab .dot { position: absolute; top: 10px; right: 10px; width: 11px; height: 11px; border-radius: 50%; background: var(--mint); border: 2px solid var(--deep); }
.chat-panel {
  position: fixed; right: 24px; bottom: 96px; z-index: 41; width: 380px; height: min(580px, calc(100dvh - 130px));
  display: flex; flex-direction: column; background: var(--surface); border-radius: 22px; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); overflow: hidden;
  opacity: 0; transform: translateY(12px) scale(.98); transform-origin: bottom right; pointer-events: none; visibility: hidden;
  transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.chat-panel.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .2s var(--ease), transform .25s var(--ease); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 18px; background: var(--deep); color: #cfe3d7; position: relative; overflow: hidden; }
.chat-head::after { content: ''; position: absolute; width: 160px; height: 120px; right: -40px; top: -60px; border-radius: 36px; background: var(--deep-2); transform: rotate(-14deg); }
.chat-head > * { position: relative; z-index: 1; }
.chat-head-text { flex: 1; min-width: 0; }
.chat-head-text strong { display: block; color: #fff; font-family: var(--display); font-size: 17px; font-weight: 700; }
.chat-head-text span { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.chat-head-text span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.chat-head .icon-btn { color: #cfe3d7; }
.chat-head .icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; background: #fbfcfb; overscroll-behavior: contain; }
.chat-welcome { text-align: center; margin: auto 0; padding: 12px; color: var(--ink-2); font-size: 14px; display: grid; justify-items: center; gap: 10px; }
.chat-welcome strong { color: var(--ink); font-size: 15px; }
.chat-day { align-self: center; font-size: 12px; color: var(--ink-3); font-weight: 600; margin: 8px 0 4px; }
.msg { max-width: 82%; display: grid; gap: 3px; }
.msg-bubble { padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-time { font-size: 11px; color: var(--ink-3); padding: 0 4px; }
.msg.me { align-self: flex-end; justify-items: end; }
.msg.me .msg-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 6px; }
.msg.them { align-self: flex-start; }
.msg.them .msg-bubble { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.pending .msg-bubble { opacity: .6; }
.chat-compose { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-compose textarea { flex: 1; max-height: 120px; border-radius: 14px; font-size: 15px; }
.chat-send { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--primary); color: #fff; transition: background .15s, opacity .15s; }
.chat-send:hover:not(:disabled) { background: var(--primary-hover); }
.chat-send:disabled { opacity: .4; cursor: default; }
.chat-send svg { width: 20px; height: 20px; }

/* ── Fenêtres, notifications ── */
.overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(9, 26, 19, .45); backdrop-filter: blur(3px); animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.dialog { width: 100%; max-width: 440px; background: var(--surface); border-radius: 22px; padding: 26px; box-shadow: var(--shadow-lg); animation: rise .3s var(--ease) both; }
.dialog-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 16px; }
.dialog-icon.danger { background: var(--danger-soft); color: var(--danger); }
.dialog-icon svg { width: 22px; height: 22px; }
.dialog h3 { font-size: 21px; }
.dialog p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.dialog-amount { margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--bg); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.dialog-amount strong { font-family: var(--display); font-size: 22px; color: var(--ink); letter-spacing: -.02em; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

.toasts { position: fixed; top: 20px; right: 20px; z-index: 80; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px 12px 12px; border-radius: 14px; background: var(--deep); color: #fff; font-size: 14px; font-weight: 550; box-shadow: var(--shadow-lg); animation: rise .3s var(--ease) both; max-width: 360px; }
.toast-icon { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(220, 248, 176, .15); color: var(--lime); }
.toast-icon svg { width: 16px; height: 16px; }
.toast.error .toast-icon { background: rgba(255, 140, 120, .18); color: #ffb3a6; }
.toast.out { opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s; }

.loading-screen { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; color: var(--primary); }

/* ── Tablette ── */
@media (max-width: 1100px) {
  .grid-hero { grid-template-columns: 1fr; }
  .main { padding: 32px 28px 96px; }
}

@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-top { padding: 18px 20px; min-height: 72px; border-bottom: 1px solid var(--line-2); }
  .auth-top .brand { display: inline-flex; }
  .auth-top .brand small { display: none; }
  .auth-body { place-items: start center; padding: 28px 20px 40px; }
  .auth-steps-top { padding: 16px 20px 0; }
}

/* ── Téléphone : barre du haut et onglets en bas ── */
@media (max-width: 860px) {
  .app { display: block; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
  .sidebar { display: none; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: sticky; top: 0; z-index: 30; height: 60px; padding: 0 16px;
    background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
  }
  .topbar .brand { font-size: 17px; }
  .topbar-actions { display: flex; align-items: center; gap: 4px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding: 0 8px env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-top: 1px solid var(--line);
  }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-3); position: relative; }
  .tab svg { width: 22px; height: 22px; }
  .tab.active { color: var(--primary); }
  .tab.active::before { content: ''; position: absolute; top: 0; width: 32px; height: 3px; border-radius: 0 0 3px 3px; background: var(--primary); }
  .main { padding: 22px 16px 32px; }
  .page-head { margin-bottom: 18px; }
  .page-head h1 { font-size: 27px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; }
  .how-step { display: grid; grid-template-columns: 28px 1fr; gap: 0 12px; }
  .how-step .how-n { margin: 0; grid-row: span 2; }
  .card { padding: 18px; border-radius: 18px; }
  .card-flush .card-head { padding: 18px 18px 0; }
  .hero { padding: 22px; border-radius: 22px; min-height: 0; }
  .table-wrap { display: none; }
  .rev-cards { display: block; margin-top: 8px; }
  .person { padding: 14px 18px; }
  .metric-value { font-size: 28px; }
  .chat-fab { right: 16px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 14px); width: 54px; height: 54px; border-radius: 16px; }
  .chat-panel { inset: 0; width: auto; height: auto; border-radius: 0; border: 0; transform: translateY(24px); }
  .chat-head { padding-top: calc(14px + env(safe-area-inset-top)); }
  .chat-compose { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .toasts { top: auto; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px); left: 16px; right: 16px; justify-items: center; }
  .auth ~ .toasts, .toasts.bottom { bottom: 20px; }
  .row { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .row-label { grid-column: 1 / 2; font-size: 13px; }
  .row-value { grid-column: 1 / 2; }
  .row > .icon-btn, .row > .btn { grid-column: 2; grid-row: 1 / 3; }
  .row-edit { grid-column: 1 / -1; margin-top: 8px; }
}

@media (max-width: 480px) {
  .auth-card h2 { font-size: 28px; }
  .auth-card .lead { font-size: 15px; }
  .field-row { grid-template-columns: 1fr; }
  .field-row .field + .field { margin-top: 16px; }
  .code-boxes { gap: 6px; }
  .code-boxes.split { grid-template-columns: repeat(3, 1fr) 8px repeat(3, 1fr); }
  .code-box { font-size: 21px; border-radius: 12px; }
  .dialog { padding: 22px; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .btn { width: 100%; }
  .overlay { place-items: end center; padding: 12px; }
  .ref-code-value { letter-spacing: .08em; }
  .split-legend strong { font-size: 16px; }
}

/* ── Compléments ── */
.line { height: 1px; background: var(--line-2); }
.auth-card > .steps { margin-bottom: 32px; }
.auth-card > .back-btn { margin: 0 0 18px -6px; }
.how.vertical { grid-template-columns: 1fr; gap: 10px; }
.how.vertical .how-step { display: grid; grid-template-columns: 28px 1fr; gap: 0 12px; align-items: start; }
.how.vertical .how-step .how-n { margin: 0; grid-row: span 2; }
.grid-account { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.row-edit .input { flex: 1; min-width: 0; }
.hero .chip { text-decoration: none; }
.hero .btn-dark { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.hero .btn-dark:hover:not(:disabled) { background: rgba(255, 255, 255, .14); }
.page > .stack > .notice + .notice { margin-top: -4px; }

.toasts.bottom { top: auto; bottom: 20px; }

@media (max-width: 1100px) {
  .grid-account { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  body.chat-open { overflow: hidden; }
  .card-flush { padding: 0; }
  .row-edit { flex-wrap: wrap; }
  .row-edit .input { flex: 1 1 100%; }
  .row-edit .btn { flex: 1; }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .notice { flex-wrap: wrap; }
  .notice .badge { margin-left: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .lp-float-transfer.is-in { animation: none !important; opacity: 1; }
  .lp-hero-tilt { transform: none; }
}

/* ── Landing page ── */

.lp { background: var(--surface); overflow-x: hidden; overflow-x: clip; }
.lp-wrap { max-width: 1040px; margin: 0 auto; padding: 0 32px; }
.lp-accent { color: var(--lime); }

/* Apparition au scroll : animation (et non transition) pour ne pas retarder les survols ensuite */
.lp-reveal { opacity: 0; }
.lp-reveal.lp-visible { opacity: 1; animation: lp-up .8s var(--ease) var(--d, 0s) backwards; }
.lp-reveal-pop.lp-visible { animation-name: lp-zoom; }
.lp-reveal-right.lp-visible { animation-name: lp-from-right; }
@keyframes lp-up { from { opacity: 0; transform: translateY(28px); filter: blur(4px); } }
@keyframes lp-zoom { from { opacity: 0; transform: scale(.86) translateY(14px); } }
@keyframes lp-from-right { from { opacity: 0; transform: translateX(36px); } }
@keyframes lp-pop-in { 0% { transform: scale(.4) rotate(-12deg); opacity: 0; } 70% { transform: scale(1.1) rotate(3deg); opacity: 1; } }
@keyframes lp-float-y { 50% { transform: translateY(-8px); } }

/* Bouton avec reflet qui passe */
.lp-shine { position: relative; overflow: hidden; isolation: isolate; }
.lp-shine::after {
  content: ''; position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 66%);
  transform: translateX(-120%); animation: lp-shine 4.2s var(--ease) 1.8s infinite;
}
.btn-primary.lp-shine::after { background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 48%, transparent 66%); }
@keyframes lp-shine { 0% { transform: translateX(-120%); } 32%, 100% { transform: translateX(120%); } }
.lp-hero-actions .btn svg { transition: transform .25s var(--ease); }
.lp-hero-actions .btn:hover svg { transform: translateX(3px); }

/* Kicker + accents partagés */
.lp-kicker {
  display: block; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px;
}
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  padding: 7px 14px 7px 12px; border-radius: 999px; margin-bottom: 24px;
  background: rgba(220, 248, 176, .12); color: var(--lime); border: 1px solid rgba(220, 248, 176, .18);
}
.lp-eyebrow svg { width: 15px; height: 15px; }

/* Barre de navigation fixe */
.lp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: 64px;
  display: flex; align-items: center; animation: lp-nav-in .7s var(--ease) .1s backwards;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.lp-nav-inner { width: 100%; max-width: 1184px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lp-nav-brand { display: inline-flex; }
.lp-nav .brand { color: #fff; transition: color .3s var(--ease); }
.lp-nav .brand small { color: rgba(255, 255, 255, .6); transition: color .3s var(--ease); }
.lp-nav-actions { display: flex; align-items: center; gap: 8px; }
.lp-nav-login { color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); transition: background .2s, color .2s, border-color .2s; }
.lp-nav-login:hover:not(:disabled) { background: rgba(255, 255, 255, .18); }
.lp-nav-solid { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.5) blur(12px); border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.lp-nav-solid .brand { color: var(--ink); }
.lp-nav-solid .brand small { color: var(--ink-3); }
.lp-nav-solid .lp-nav-login { color: var(--ink); background: transparent; border-color: var(--line); }
.lp-nav-solid .lp-nav-login:hover:not(:disabled) { background: var(--bg); border-color: #cdd6d1; }
@keyframes lp-nav-in { from { opacity: 0; transform: translateY(-100%); } }
.lp-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--mint), var(--lime)); opacity: 0; transition: opacity .3s;
}
.lp-nav-solid .lp-progress { opacity: 1; background: linear-gradient(90deg, var(--primary), var(--mint)); }

/* Hero */
.lp-hero {
  --mx: 0; --my: 0;
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center;
  background: radial-gradient(130% 90% at 50% -10%, var(--deep-3) 0%, var(--deep) 55%);
  position: relative; overflow: hidden; padding: 120px 32px 104px;
}
.lp-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.lp-hero-grid {
  position: absolute; inset: -40px;
  background-image: linear-gradient(rgba(220, 248, 176, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(220, 248, 176, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%);
  transform: translate(calc(var(--mx) * -14px), calc(var(--my) * -14px));
  animation: lp-grid 22s linear infinite;
}
@keyframes lp-grid { to { background-position: 56px 56px; } }
.lp-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.lp-orb-1 { width: 460px; height: 460px; left: -140px; top: -120px; background: rgba(107, 196, 143, .35); animation: lp-drift-1 18s ease-in-out infinite; }
.lp-orb-2 { width: 520px; height: 520px; right: -200px; bottom: -220px; background: rgba(17, 128, 75, .5); animation: lp-drift-2 22s ease-in-out infinite; }
.lp-orb-3 { width: 300px; height: 300px; right: 18%; top: 8%; background: rgba(220, 248, 176, .16); animation: lp-drift-3 16s ease-in-out infinite; }
@keyframes lp-drift-1 { 50% { transform: translate(120px, 80px) scale(1.15); } }
@keyframes lp-drift-2 { 50% { transform: translate(-140px, -60px) scale(.9); } }
@keyframes lp-drift-3 { 50% { transform: translate(-80px, 90px) scale(1.2); } }
.lp-hero-glow {
  position: absolute; z-index: 0; width: 760px; height: 520px; top: -120px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(107, 196, 143, .22), transparent 70%); filter: blur(8px);
  animation: lp-breathe 7s ease-in-out infinite;
}
@keyframes lp-breathe { 50% { opacity: .6; transform: translateX(-50%) scale(1.08); } }

.lp-hero-inner {
  position: relative; z-index: 1; width: 100%; max-width: 1120px;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 48px;
}
.lp-hero-copy { text-align: left; }
.lp-in { animation: lp-up .9s var(--ease) backwards; }
.lp-eyebrow.lp-in { animation-delay: .15s; }
.lp-hero-sub.lp-in { animation-delay: .75s; }
.lp-hero-actions.lp-in { animation-delay: .9s; }
.lp-hero-chips.lp-in { animation-delay: 1.05s; }
.lp-live-dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex: none;
  box-shadow: 0 0 0 0 rgba(220, 248, 176, .6); animation: lp-ping 1.8s ease-out infinite;
}
@keyframes lp-ping { 70%, 100% { box-shadow: 0 0 0 8px rgba(220, 248, 176, 0); } }
.lp-hero-title {
  font-size: clamp(40px, 5vw, 66px); font-weight: 800;
  color: #f4fdf7; letter-spacing: -.045em; line-height: 1.04;
}
.lp-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.lp-word > span { display: inline-block; animation: lp-word .9s var(--ease) calc(.3s + var(--w) * .08s) backwards; }
@keyframes lp-word { from { transform: translateY(105%) rotate(4deg); opacity: 0; } }
.lp-accent { position: relative; display: inline-block; color: var(--lime); }
.lp-accent .lp-word > span {
  background: linear-gradient(90deg, var(--lime) 0%, var(--lime) 35%, #ffffff 50%, var(--lime) 65%, var(--lime) 100%);
  background-size: 300% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: lp-word .9s var(--ease) calc(.3s + var(--w) * .08s) backwards, lp-sheen 5s ease-in-out 2s infinite;
}
@keyframes lp-sheen { 0% { background-position: 100% 0; } 40%, 100% { background-position: 0% 0; } }
.lp-underline {
  position: absolute; left: 0; right: 0; bottom: -.06em; height: .09em; border-radius: 99px;
  background: linear-gradient(90deg, var(--mint), var(--lime)); transform-origin: left;
  animation: lp-line .9s var(--ease) 1.05s backwards;
}
@keyframes lp-line { from { transform: scaleX(0); } }
.lp-hero-sub {
  margin-top: 24px; font-size: clamp(16px, 1.6vw, 19px);
  color: #aecbbb; line-height: 1.6; max-width: 520px; text-wrap: pretty;
}
.lp-hero-actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.lp-hero-actions .btn-lime { box-shadow: 0 10px 30px -10px rgba(220, 248, 176, .5); }
.lp-hero-actions .btn-lime:hover:not(:disabled) { box-shadow: 0 14px 38px -10px rgba(220, 248, 176, .7); transform: translateY(-1px); }
.lp-hero-login { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #fff; }
.lp-hero-login:hover:not(:disabled) { background: rgba(255, 255, 255, .14); }
.lp-hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 36px; }
.lp-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500;
  padding: 7px 13px; border-radius: 999px; color: #c7ddce;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09);
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.lp-chip:hover { background: rgba(255, 255, 255, .09); border-color: rgba(220, 248, 176, .25); transform: translateY(-2px); }
.lp-chip svg { width: 15px; height: 15px; color: var(--mint); }

/* Hero : carte de démonstration */
.lp-hero-visual { position: relative; perspective: 1200px; animation: lp-visual-in 1.1s var(--ease) .5s backwards; }
@keyframes lp-visual-in { from { opacity: 0; transform: translateY(40px) scale(.94); } }
.lp-hero-tilt {
  position: relative; max-width: 420px; margin-left: auto; transform-style: preserve-3d;
  transform: rotateY(calc(var(--mx) * 10deg - 4deg)) rotateX(calc(var(--my) * -8deg + 2deg));
  transition: transform .4s var(--ease);
}
.lp-demo {
  position: relative; padding: 24px; border-radius: 24px; color: #e8f6ed;
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .13); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .1);
  animation: lp-float-y 7s ease-in-out 1.6s infinite;
}
.lp-demo::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--lp-angle, 0deg), transparent 0 70%, rgba(220, 248, 176, .7) 85%, 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, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: lp-spin-border 6s linear infinite;
}
@property --lp-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes lp-spin-border { to { --lp-angle: 360deg; } }
.lp-demo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.lp-demo-title { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.lp-demo-title .logo-sm { width: 28px; height: 28px; font-size: 17px; border-radius: 8px; }
.lp-demo-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--lime); padding: 5px 10px; border-radius: 99px; background: rgba(220, 248, 176, .1); }
.lp-demo-cap { display: block; font-size: 13px; color: #9fbdad; }
.lp-demo-amount { display: block; margin-top: 2px; font-family: var(--display); font-size: clamp(34px, 4vw, 44px); font-weight: 800; letter-spacing: -.04em; color: #fff; }
.lp-demo-split { display: flex; gap: 4px; height: 10px; margin: 18px 0 16px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.lp-demo-split > span { height: 100%; border-radius: 99px; transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease); }
.lp-demo-split-keep { flex: 0 0 14%; background: var(--lime); box-shadow: 0 0 14px rgba(220, 248, 176, .6); }
.lp-demo-split-back { flex: 1; background: linear-gradient(90deg, rgba(107, 196, 143, .55), rgba(107, 196, 143, .3)); }
.lp-demo.is-1 .lp-demo-split-back { transform: none; }
.lp-demo.is-2 .lp-demo-split-keep { transform: none; }
.lp-demo-rows { display: grid; gap: 10px; }
.lp-demo-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: #c7ddce; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); transition: background .5s, box-shadow .5s; }
.lp-demo-row > span { display: inline-flex; align-items: center; gap: 9px; }
.lp-demo-row i { width: 8px; height: 8px; border-radius: 50%; background: rgba(107, 196, 143, .7); }
.lp-demo-row b { font-family: var(--display); font-size: 16px; color: #fff; }
.lp-demo-row-keep i { background: var(--lime); }
.lp-demo-row-keep b { color: var(--lime); }
.lp-demo.is-2 .lp-demo-row-keep { background: rgba(220, 248, 176, .1); box-shadow: inset 0 0 0 1px rgba(220, 248, 176, .22); }
.lp-demo-steps { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(255, 255, 255, .08); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lp-demo-step { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; color: #7fa392; transition: color .4s; }
.lp-demo-step > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); transition: background .4s, border-color .4s, color .4s, transform .4s var(--ease); }
.lp-demo-step svg { width: 16px; height: 16px; }
.lp-demo.is-1 .lp-demo-step:nth-child(1), .lp-demo.is-2 .lp-demo-step:nth-child(2), .lp-demo.is-3 .lp-demo-step:nth-child(3) { color: #e8f6ed; }
.lp-demo.is-1 .lp-demo-step:nth-child(1) > span, .lp-demo.is-2 .lp-demo-step:nth-child(2) > span, .lp-demo.is-3 .lp-demo-step:nth-child(3) > span {
  background: var(--lime); border-color: var(--lime); color: var(--deep); transform: scale(1.08);
}

.lp-float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 16px; color: var(--ink); background: #fff;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55); font-size: 13px; line-height: 1.25; transform: translateZ(40px);
}
.lp-float small { display: block; font-size: 11.5px; color: var(--ink-3); }
.lp-float b { font-family: var(--display); font-size: 15px; }
.lp-float-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.lp-float-icon svg { width: 18px; height: 18px; }
.lp-float-transfer { top: -52px; left: -40px; opacity: 0; }
.lp-float-transfer.is-in { animation: lp-toast 5.4s var(--ease) both; }
@keyframes lp-toast {
  0% { opacity: 0; transform: translate(-16px, 14px) scale(.85); }
  8%, 82% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-12px); }
}
.lp-float-ref { right: -28px; bottom: -30px; animation: lp-float-y 5s ease-in-out infinite, lp-zoom .8s var(--ease) 1.5s backwards; }
.lp-float-lock {
  left: -22px; bottom: -18px; padding: 8px 12px; gap: 7px; font-weight: 600; color: var(--lime);
  background: var(--deep-2); border: 1px solid rgba(220, 248, 176, .2);
  animation: lp-float-y 6s ease-in-out 1s infinite, lp-zoom .8s var(--ease) 1.8s backwards;
}
.lp-float-lock svg { width: 15px; height: 15px; }

.lp-scroll-cue {
  position: absolute; z-index: 1; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  color: rgba(255, 255, 255, .5); animation: lp-bounce 2s var(--ease) infinite;
}
.lp-scroll-cue:hover { color: #fff; }
.lp-scroll-cue svg { width: 22px; height: 22px; }
@keyframes lp-bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

/* Bandeau de chiffres clés */
.lp-stats-band { background: var(--deep-2); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.lp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 36px; }
.lp-stat { text-align: center; position: relative; }
.lp-stat + .lp-stat::before { content: ''; position: absolute; left: -12px; top: 10%; height: 80%; width: 1px; background: rgba(255, 255, 255, .08); }
.lp-stat strong { display: block; white-space: nowrap; font-family: var(--display); font-size: clamp(26px, 3vw, 34px); font-weight: 750; letter-spacing: -.03em; color: var(--lime); }
.lp-stat > span { display: block; margin-top: 4px; font-size: 13px; color: #9fbdad; line-height: 1.4; }

/* Sections */
.lp-section { padding: 88px 0; }
.lp-section-alt { background: var(--bg); }
.lp-section-title {
  font-size: clamp(28px, 3.6vw, 42px); font-weight: 750;
  letter-spacing: -.03em; text-align: center; margin-bottom: 52px; text-wrap: balance;
}
.lp-section-sub { text-align: center; color: var(--ink-2); font-size: 16px; margin-top: -40px; margin-bottom: 40px; }

/* Comment ça marche */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.lp-step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; position: relative; transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s;
}
.lp-step:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--primary-soft-2); }
.lp-step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.lp-step-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px;
  background: linear-gradient(145deg, var(--primary-soft), var(--primary-soft-2)); color: var(--primary);
}
.lp-step-icon svg { width: 25px; height: 25px; }
.lp-visible .lp-step-icon, .lp-trust-card.lp-visible .lp-trust-icon { animation: lp-pop-in .7s var(--ease) calc(var(--d, 0s) + .3s) backwards; }
.lp-step:hover .lp-step-icon, .lp-trust-card:hover .lp-trust-icon { transform: rotate(-6deg) scale(1.06); }
.lp-step-icon, .lp-trust-icon { transition: transform .3s var(--ease); }
.lp-step-num { transition: color .3s; }
.lp-step:hover .lp-step-num { color: var(--primary-soft-2); }
.lp-step-num { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.04em; color: var(--line-2); -webkit-text-stroke: 1px var(--primary-soft-2); }
.lp-step strong { display: block; font-size: 18px; margin-bottom: 7px; letter-spacing: -.01em; }
.lp-step p { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* Courbe de revenus */
.lp-chart-wrap { max-width: 720px; }
.lp-chart-container {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 26px 24px 18px; box-shadow: var(--shadow); overflow: hidden;
}
.lp-chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.lp-chart-cap { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.lp-chart-big { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-family: var(--display); font-size: clamp(22px, 3vw, 28px); font-weight: 750; letter-spacing: -.03em; color: var(--ink); }
.lp-chart-arrow { display: inline-grid; place-items: center; color: var(--primary); }
.lp-chart-arrow svg { width: 20px; height: 20px; }
.lp-chart-growth {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 700;
}
.lp-chart-growth svg { width: 16px; height: 16px; }
.lp-visible .lp-chart-growth { animation: lp-zoom .7s var(--ease) 1.4s backwards; }
.lp-chart { width: 100%; height: auto; display: block; }
.lp-chart-grid { stroke: var(--line-2); stroke-width: 1; }
.lp-chart-ylabel, .lp-chart-xlabel { font-family: var(--sans); font-size: 11px; fill: var(--ink-3); }
.lp-chart-line { stroke: var(--primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 4px 8px rgba(17, 128, 75, .22)); }
.lp-chart-pt { opacity: 0; transition: opacity .45s var(--ease); }
.lp-chart.is-drawn .lp-chart-pt { opacity: 1; }
.lp-chart-dot { fill: #fff; stroke: var(--primary); stroke-width: 3; }
.lp-chart-value { font-family: var(--display); font-size: 14px; font-weight: 700; fill: var(--primary); }
.lp-chart-note {
  display: inline-flex; align-items: center; gap: 8px; margin: 22px auto 0;
  padding: 10px 18px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary); font-size: 14px; font-weight: 600;
}
.lp-chart-wrap { text-align: center; }
.lp-chart-container, .lp-chart-note { text-align: left; }
.lp-chart-note svg { width: 18px; height: 18px; }

/* Pourquoi Shol */
.lp-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lp-trust-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s;
}
.lp-trust-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--primary-soft-2); }
.lp-trust-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(145deg, var(--primary-soft), var(--primary-soft-2)); color: var(--primary); margin-bottom: 18px;
}
.lp-trust-icon svg { width: 23px; height: 23px; }
.lp-trust-card strong { display: block; font-size: 17px; margin-bottom: 7px; letter-spacing: -.01em; }
.lp-trust-card p { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* Parrainage */
.lp-referral { background: linear-gradient(180deg, var(--primary-soft), var(--primary-soft-2)); padding: 84px 0; }
.lp-referral-inner { text-align: center; max-width: 620px; }
.lp-referral-badge {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 17px;
  background: var(--primary); color: #fff; margin-bottom: 22px; box-shadow: 0 12px 30px -10px rgba(17, 128, 75, .55);
}
.lp-referral-badge svg { width: 28px; height: 28px; }
.lp-referral-badge.lp-visible { animation: lp-zoom .8s var(--ease) backwards, lp-float-y 4s ease-in-out 1s infinite; }
.lp-referral { position: relative; overflow: hidden; }
.lp-referral::before {
  content: ''; position: absolute; width: 520px; height: 520px; left: 50%; top: 50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .7), transparent); transform: translate(-50%, -50%);
  animation: lp-breathe-c 8s ease-in-out infinite;
}
@keyframes lp-breathe-c { 50% { transform: translate(-50%, -50%) scale(1.25); opacity: .6; } }
.lp-referral-inner { position: relative; }
.lp-rung { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.lp-rung:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.lp-rung-lead.lp-visible { animation: lp-zoom .8s var(--ease) var(--d, 0s) backwards, lp-glow 2.8s ease-in-out 1.2s infinite; }
@keyframes lp-glow { 50% { box-shadow: 0 0 0 6px rgba(17, 128, 75, .12), var(--shadow-sm); } }
.lp-referral h2 { font-size: clamp(25px, 3.2vw, 34px); font-weight: 750; letter-spacing: -.03em; color: var(--deep); text-wrap: balance; }
.lp-referral p { margin-top: 14px; font-size: 16px; color: var(--ink-2); line-height: 1.6; }
.lp-ref-ladder { display: flex; align-items: stretch; justify-content: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.lp-rung {
  background: var(--surface); border: 1px solid var(--primary-soft-2); border-radius: var(--r);
  padding: 16px 20px; min-width: 120px; box-shadow: var(--shadow-sm);
}
.lp-rung-lead { border-color: var(--primary); }
.lp-rung strong { display: block; font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--primary); }
.lp-rung span { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.lp-ref-plus { align-self: center; font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--primary); }
.lp-ref-dots { align-self: center; display: grid; place-items: center; color: var(--primary); opacity: .6; }
.lp-ref-dots svg { width: 24px; height: 24px; }
.lp-referral .lp-ref-note { margin-top: 16px; font-size: 13px; color: var(--ink-3); }

/* Inscription : procédure d'onboarding */
.lp-onb { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.lp-onb-steps { list-style: none; margin: 0; padding: 0; }
.lp-onb-steps .lp-reveal:nth-child(2) { transition-delay: .07s; }
.lp-onb-steps .lp-reveal:nth-child(3) { transition-delay: .14s; }
.lp-onb-steps .lp-reveal:nth-child(4) { transition-delay: .21s; }
.lp-onb-steps .lp-reveal:nth-child(5) { transition-delay: .28s; }
.lp-onb-step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 18px; padding-bottom: 28px; }
.lp-onb-step:last-child { padding-bottom: 0; }
.lp-onb-step:not(:last-child)::before {
  content: ''; position: absolute; left: 21px; top: 50px; bottom: 4px; width: 2px; border-radius: 2px;
  background: linear-gradient(var(--primary), var(--primary-soft-2));
  transform: scaleY(0); transform-origin: top; transition: transform .9s var(--ease) calc(var(--d, 0s) + .35s);
}
.lp-onb-step.lp-visible::before { transform: none; }
.lp-onb-step.lp-visible .lp-onb-dot { animation: lp-pop-in .7s var(--ease) calc(var(--d, 0s) + .15s) backwards; }
.lp-onb-done.lp-visible .lp-onb-dot { animation: lp-pop-in .7s var(--ease) calc(var(--d, 0s) + .15s) backwards, lp-ring 2.4s ease-out 1.6s infinite; }
@keyframes lp-ring { 0% { box-shadow: 0 0 0 0 rgba(17, 128, 75, .35); } 70%, 100% { box-shadow: 0 0 0 12px rgba(17, 128, 75, 0); } }
.lp-onb-dot {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--primary-soft-2); color: var(--primary);
  font-family: var(--display); font-size: 17px; font-weight: 750; box-shadow: var(--shadow-sm);
}
.lp-onb-dot svg { width: 22px; height: 22px; }
.lp-onb-done .lp-onb-dot { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 6px var(--primary-soft-2); }
.lp-onb-body { padding-top: 10px; min-width: 0; }
.lp-onb-body strong { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 17px; letter-spacing: -.01em; }
.lp-onb-body > p { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.lp-onb-tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  background: var(--lime); color: var(--deep); font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0;
}
.lp-onb-tag svg { width: 13px; height: 13px; }
.lp-kyc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.lp-kyc-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; transition: border-color .2s, box-shadow .2s; }
.lp-kyc-item:hover { border-color: var(--primary-soft-2); box-shadow: var(--shadow-sm); }
.lp-kyc-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; margin-bottom: 10px; background: var(--primary-soft); color: var(--primary); }
.lp-kyc-icon svg { width: 19px; height: 19px; }
.lp-kyc-item b { display: block; font-size: 14px; font-weight: 650; }
.lp-kyc-text { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.lp-onb-body .lp-kyc-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.lp-kyc-note svg { width: 16px; height: 16px; color: var(--primary); }
.lp-onb-aside {
  position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 26px; box-shadow: var(--shadow);
}
.lp-onb-aside h3 { font-size: 19px; letter-spacing: -.015em; }
.lp-need { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.lp-need li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; line-height: 1.45; }
.lp-need-check { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; }
.lp-need-check svg { width: 13px; height: 13px; }
.lp-onb-aside.lp-visible .lp-need-check { animation: lp-pop-in .6s var(--ease) backwards; }
.lp-onb-aside.lp-visible li:nth-child(2) .lp-need-check { animation-delay: .5s; }
.lp-onb-aside.lp-visible li:nth-child(3) .lp-need-check { animation-delay: .62s; }
.lp-onb-aside.lp-visible li:nth-child(4) .lp-need-check { animation-delay: .74s; }
.lp-onb-aside.lp-visible li:nth-child(1) .lp-need-check { animation-delay: .38s; }
.lp-onb-why {
  display: flex; gap: 10px; margin-top: 20px; padding: 14px; border-radius: var(--r);
  background: var(--bg); border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); line-height: 1.55;
}
.lp-onb-why svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--primary); }
.lp-onb-aside .btn { margin-top: 20px; }

/* FAQ */
.lp-faq-wrap { max-width: 680px; }
.lp-faq { display: grid; gap: 12px; }
.lp-faq-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.lp-faq-item[open] { border-color: var(--primary-soft-2); box-shadow: var(--shadow-sm); }
.lp-faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-weight: 600; font-size: 15.5px;
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-mark {
  flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--bg); color: var(--ink-2); transition: transform .25s var(--ease), background .2s, color .2s;
}
.lp-faq-mark svg { width: 18px; height: 18px; }
.lp-faq-item[open] .lp-faq-mark { transform: rotate(180deg); background: var(--primary-soft); color: var(--primary); }
.lp-faq-body { padding: 0 20px 18px; font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }
.lp-faq-body p { max-width: 58ch; }
.lp-faq-item[open] .lp-faq-body { animation: lp-faq .4s var(--ease); }
@keyframes lp-faq { from { opacity: 0; transform: translateY(-6px); } }
.lp-faq-item:hover { border-color: var(--primary-soft-2); }

/* CTA final + code */
.lp-cta { background: radial-gradient(120% 100% at 50% 0%, var(--deep-3) 0%, var(--deep) 60%); padding: 88px 0; text-align: center; position: relative; overflow: hidden; }
.lp-cta-glow { position: absolute; z-index: 0; width: 560px; height: 420px; border-radius: 45% 55%; background: rgba(107, 196, 143, .09); right: -180px; top: -120px; transform: rotate(10deg); pointer-events: none; animation: lp-morph 14s ease-in-out infinite; }
.lp-cta-glow-2 { right: auto; top: auto; left: -220px; bottom: -200px; background: rgba(220, 248, 176, .05); animation-duration: 18s; animation-direction: reverse; }
@keyframes lp-morph { 50% { border-radius: 58% 42% 50% 50%; transform: rotate(40deg) translate(-40px, 30px) scale(1.1); } }
.lp-cta-inner { position: relative; z-index: 1; max-width: 520px; }
.lp-cta h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 750; letter-spacing: -.03em; color: #f4fdf7; }
.lp-cta-sub { margin-top: 12px; font-size: 16px; color: #aecbbb; margin-bottom: 32px; }
.lp-code-card {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-xl);
  padding: 28px; backdrop-filter: blur(6px); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .6);
}
.lp-code-form { margin-bottom: 20px; }
.lp-code-form .code-box { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #fff; }
.lp-code-form .code-box::placeholder { color: rgba(255, 255, 255, .25); }
.lp-code-form .code-box:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(220, 248, 176, .18); }
.lp-code-form .code-box.filled { border-color: var(--mint); background: rgba(107, 196, 143, .14); color: #fff; }
.lp-code-form .code-boxes.invalid .code-box { border-color: var(--danger); background: rgba(192, 57, 43, .18); }
.lp-code-form .code-boxes.ok .code-box { border-color: var(--mint); background: rgba(107, 196, 143, .2); }
.lp-code-form .code-sep { background: rgba(255, 255, 255, .2); }
.lp-code-form .form-error { background: rgba(192, 57, 43, .18); color: #f1a29a; }
.lp-code-alt { margin-top: 18px; font-size: 14px; color: #aecbbb; }
.lp-code-login { color: var(--lime); }
.lp-code-login:hover { color: #fff; }

/* Footer */
.lp-footer { background: var(--deep); padding: 48px 0 40px; border-top: 1px solid rgba(255, 255, 255, .07); }
.lp-footer-inner { display: grid; gap: 22px; }
.lp-footer-brand .brand { color: #fff; }
.lp-footer-brand .brand small { color: rgba(255, 255, 255, .55); }
.lp-footer-brand p { margin-top: 8px; font-size: 14px; color: #8fb09f; }
.lp-footer-secure { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #7fa392; }
.lp-footer-secure svg { width: 15px; height: 15px; }
.lp-footer-legal { display: grid; gap: 4px; font-size: 12px; color: #5f8071; line-height: 1.55; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .06); }
.lp-footer-copy { color: #4c6a5c; margin-top: 4px; }

/* Landing responsive */
@media (max-width: 900px) {
  .lp-stats { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .lp-stat + .lp-stat::before { display: none; }
}

@media (max-width: 980px) {
  .lp-hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .lp-hero-copy { text-align: center; }
  .lp-hero-sub { margin-inline: auto; }
  .lp-hero-actions, .lp-hero-chips { justify-content: center; }
  .lp-hero-tilt { margin: 0 auto; transform: none; }
  .lp-hero-visual { padding: 0 24px; }
}

@media (max-width: 860px) {
  .lp-nav { height: 60px; }
  .lp-nav-inner { padding: 0 20px; }
  .lp-nav-login { display: none; }
  .lp-hero { padding: 100px 20px 88px; min-height: 100dvh; }
  .lp-wrap { padding: 0 20px; }
  .lp-section { padding: 60px 0; }
  .lp-section-title { margin-bottom: 40px; }
  .lp-steps { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .lp-trust { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .lp-referral { padding: 56px 0; }
  .lp-chart-head { flex-direction: column; gap: 10px; }
  .lp-onb { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .lp-onb-aside { position: static; }
}

@media (max-width: 480px) {
  .lp-hero { padding: 92px 16px 80px; }
  .lp-hero-visual { padding: 0 6px; }
  .lp-demo { padding: 18px; }
  .lp-float-transfer { left: -4px; top: -34px; }
  .lp-float-ref { right: -4px; bottom: -34px; }
  .lp-float-lock { left: 6px; }
  .lp-word { padding-bottom: .1em; }
  .lp-hero-actions { flex-direction: column; align-items: stretch; }
  .lp-hero-chips { gap: 8px; margin-top: 32px; }
  .lp-wrap { padding: 0 16px; }
  .lp-nav-inner { padding: 0 16px; }
  .lp-stats { grid-template-columns: repeat(2, 1fr); }
  .lp-chart-container { padding: 18px 12px 10px; }
  .lp-chart-ylabel, .lp-chart-xlabel { font-size: 10px; }
  .lp-code-card { padding: 20px 16px; }
  .lp-code-form .code-box { font-size: 20px; border-radius: 12px; }
  .lp-ref-ladder { gap: 8px; }
  .lp-rung { min-width: 0; flex: 1; padding: 14px 10px; }
  .lp-rung strong { font-size: 22px; }
  .lp-onb-step { grid-template-columns: 38px minmax(0, 1fr); gap: 0 14px; }
  .lp-onb-step:not(:last-child)::before { left: 18px; top: 44px; }
  .lp-onb-dot { width: 38px; height: 38px; font-size: 15px; }
  .lp-onb-body { padding-top: 7px; }
  .lp-kyc { grid-template-columns: 1fr; }
  .lp-kyc-item { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0 12px; align-items: center; padding: 12px; }
  .lp-kyc-icon { grid-row: span 2; margin: 0; }
  .lp-onb-aside { padding: 20px; }
}

/* ── Vérification d'identité (KYC) ── */
/* Sur téléphone, en plein écran fixe : la page ne défile jamais ; seul le milieu d'un écran trop petit défile */
html.kyc-open, html.kyc-open body { overflow: hidden; overscroll-behavior: none; }
.kyc-screen { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; background: var(--surface); }
.kyc-loading { flex: 1; display: grid; place-items: center; color: var(--primary); }
.kyc-bar { flex: none; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 12px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); }
.kyc-bar > .brand { justify-self: center; }
.kyc-steps { display: flex; gap: 6px; width: 100%; max-width: 200px; justify-self: center; }
.kyc-steps i { flex: 1; height: 5px; border-radius: 5px; background: var(--line); transition: background .3s; }
.kyc-steps i.done { background: var(--primary); }
.kyc-steps i.now { background: var(--mint); }
.kyc-steps.dark i { background: rgba(255, 255, 255, .3); }
.kyc-steps.dark i.done { background: #fff; }
.kyc-steps.dark i.now { background: var(--lime); }
.kyc-main { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 28px 20px; text-align: center; animation: rise .35s var(--ease) both; }
.kyc-main > :first-child { margin-top: auto; }
.kyc-main > :last-child { margin-bottom: auto; }
.kyc-main h2 { max-width: 340px; font-size: 28px; font-weight: 750; letter-spacing: -.03em; }
.kyc-text { max-width: 320px; font-size: 16px; color: var(--ink-2); }
.kyc-main .success-mark { margin: 0 0 6px; }
.kyc-actions { flex: none; display: grid; justify-items: center; gap: 2px; width: 100%; max-width: 480px; margin: 0 auto; padding: 12px 20px; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
.kyc-link-btn { min-height: 44px; padding: 0 16px; font-size: 15px; font-weight: 600; color: var(--primary); }
.kyc-link-btn:disabled { color: var(--ink-3); cursor: default; }
.kyc-badge { width: 76px; height: 76px; margin-bottom: 6px; border-radius: 24px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.kyc-badge svg { width: 34px; height: 34px; }
.kyc-badge.danger { background: var(--danger-soft); color: var(--danger); }

/* Illustrations (art() de app.js) */
.kyc-art { width: min(220px, 62vw); height: auto; margin-bottom: 8px; }
.a-card { fill: #fff; stroke: var(--primary-soft-2); stroke-width: 2.5; }
.a-soft { fill: var(--primary-soft); }
.a-ink, .a-badge { fill: var(--primary); }
.a-line { fill: var(--line); }
.a-check { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.a-oval { fill: var(--primary-soft); stroke: var(--primary); stroke-width: 3; stroke-dasharray: 9 7; }
.a-face { fill: var(--mint); }
.a-arrow { fill: none; stroke: var(--primary); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.a-left { animation: kyc-left 1.6s var(--ease) infinite; }
.a-right { animation: kyc-right 1.6s var(--ease) infinite; }
.a-book { fill: var(--deep); }
.a-emblem { fill: none; stroke: var(--lime); stroke-width: 2.5; }
.a-emblem-fill { fill: var(--lime); }
@keyframes kyc-left { 50% { transform: translateX(-7px); } }
@keyframes kyc-right { 50% { transform: translateX(7px); } }
@keyframes kyc-up { 50% { transform: translateY(-7px); } }
@keyframes kyc-beat { 50% { transform: scale(1.12); } }

/* Choix de la pièce */
.kyc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 360px; margin-top: 12px; }
.kyc-tile { min-height: 168px; padding: 18px 10px; display: grid; justify-items: center; align-content: center; gap: 14px; border-radius: var(--r-lg); border: 1.5px solid var(--line); background: var(--surface); font-size: 15px; transition: border-color .15s, background .15s, transform .15s; }
.kyc-tile:hover, .kyc-tile:focus-visible { border-color: var(--primary); background: var(--primary-soft); }
.kyc-tile:active { transform: scale(.97); }
.kyc-tile strong { font-weight: 650; }
.kyc-tile-art { width: auto; height: 64px; }
.kyc-tile-art .a-card { stroke: var(--mint); }
.kyc-tile-art .a-soft { fill: var(--primary-soft-2); }

/* Relecture d'une capture */
.kyc-photo { display: block; max-width: 100%; max-height: 44vh; max-height: 44dvh; margin-bottom: 8px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); object-fit: contain; }
video.kyc-photo { border: 0; background: #000; }
.kyc-photo.mirror { transform: scaleX(-1); }
.kyc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.kyc-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 550; color: var(--ink-2); }
.kyc-chips svg { width: 16px; height: 16px; color: var(--primary); }

/* Caméra plein écran : cadre de la pièce ou ovale du visage, le reste assombri */
.kyc-camera { position: fixed; inset: 0; z-index: 50; overflow: hidden; background: #000; color: #fff; touch-action: none; }
.kyc-feed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kyc-feed.mirror { transform: scaleX(-1); }
/* Caméra avant qui continue de filmer pendant la relecture du selfie, sans être montrée */
.kyc-hidden-feed { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.kyc-frame-zone { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: 0 7%; pointer-events: none; }
.kyc-frame { position: relative; width: 100%; max-width: 560px; border-radius: 16px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55); }
.kyc-frame.id_card { aspect-ratio: 85.6 / 54; }
.kyc-frame.passport { aspect-ratio: 125 / 88; }
.kyc-frame::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(255, 255, 255, .45); }
.kyc-frame::after {
  content: ''; position: absolute; inset: -4px; background-repeat: no-repeat; animation: kyc-breathe 2s ease-in-out infinite;
  background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff);
  background-size: 30px 4px, 4px 30px, 30px 4px, 4px 30px, 30px 4px, 4px 30px, 30px 4px, 4px 30px;
  background-position: left top, left top, right top, right top, left bottom, left bottom, right bottom, right bottom;
}
@keyframes kyc-breathe { 50% { opacity: .5; } }
.kyc-oval { width: min(70vw, 300px); aspect-ratio: 3 / 4; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .92); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .5); transition: border-color .2s; }
.kyc-oval.rec { border-color: var(--lime); }
.kyc-cam-top { position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 12px; padding: 10px 12px 32px; padding-top: max(10px, env(safe-area-inset-top)); background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); }
.kyc-cam-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .16); }
.kyc-cam-btn svg { width: 20px; height: 20px; }
.kyc-cam-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; justify-items: center; gap: 14px; padding: 48px 24px 24px; padding-bottom: max(28px, env(safe-area-inset-bottom)); text-align: center; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .75)); }
.kyc-pill { padding: 6px 16px; border-radius: 999px; background: var(--lime); color: var(--deep); font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.kyc-cam-hint { font-size: 17px; font-weight: 550; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.kyc-shutter { position: relative; width: 78px; height: 78px; border-radius: 50%; border: 4px solid #fff; display: grid; place-items: center; }
.kyc-shutter::after { content: ''; width: 60px; height: 60px; border-radius: 50%; background: #fff; transition: transform .12s; }
.kyc-shutter:not(:disabled)::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid var(--lime); animation: kyc-ring 1.8s ease-out infinite; }
@keyframes kyc-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.kyc-shutter:active:not(:disabled)::after { transform: scale(.86); }
.kyc-shutter:disabled { opacity: .4; cursor: default; }
.kyc-flash { position: absolute; inset: 0; z-index: 4; background: #fff; pointer-events: none; animation: kyc-flash .35s ease-out both; }
@keyframes kyc-flash { from { opacity: .85; } to { opacity: 0; } }
.kyc-center { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; }
.kyc-count { font-family: var(--display); font-size: 96px; font-weight: 800; text-shadow: 0 4px 24px rgba(0, 0, 0, .5); animation: pop .4s var(--ease) both; }
.kyc-prompt { display: grid; justify-items: center; gap: 12px; min-height: 28px; }
.kyc-move { display: grid; justify-items: center; gap: 10px; animation: pop .35s var(--ease) both; }
.kyc-move strong { font-family: var(--display); font-size: 26px; font-weight: 750; letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.kyc-move-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--deep); }
.kyc-move-icon svg { width: 34px; height: 34px; stroke-width: 2.2; }
.kyc-move.left svg { animation: kyc-left 1s ease-in-out infinite; }
.kyc-move.right svg { animation: kyc-right 1s ease-in-out infinite; }
.kyc-move.up svg { animation: kyc-up 1s ease-in-out infinite; }
.kyc-move.face svg, .kyc-move.smile svg { animation: kyc-beat 1.2s ease-in-out infinite; }
.kyc-dots { display: flex; gap: 8px; }
.kyc-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .35); transition: background .2s, transform .2s; }
.kyc-dots i.done { background: #fff; }
.kyc-dots i.now { background: var(--lime); transform: scale(1.3); }
.kyc-start { min-width: 220px; }
.kyc-cam-error { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; align-content: center; gap: 16px; padding: 32px; text-align: center; background: var(--deep); }
.kyc-cam-error p { max-width: 300px; font-size: 16px; color: #d4e8dc; }

/* Ordinateur : QR code vers le téléphone */
.kyc-handoff { max-width: 400px; text-align: center; }
.kyc-qr { width: 200px; aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.kyc-qr svg { display: block; width: 100%; height: 100%; }
.kyc-handoff .kyc-qr { margin: 20px auto 0; }
.kyc-qr-lg { width: min(240px, 66vw); margin-bottom: 8px; }
.kyc-wait { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 14px; border-radius: 999px; background: var(--bg); color: var(--ink-2); font-size: 14px; font-weight: 550; }
.kyc-wait .spinner { width: 15px; height: 15px; border-width: 2px; color: var(--primary); }
.kyc-wait > svg { width: 18px; height: 18px; }
.kyc-wait.done { background: var(--primary-soft); color: var(--primary); }
.kyc-wait.expired { border-radius: var(--r); background: var(--warn-soft); color: #4a2a03; }
.kyc-wait.expired > svg { color: var(--warn); }
.kyc-handoff-foot { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
