/* Charte : toutes les couleurs se règlent ici. */
:root {
  --ink: #0a2540;
  --text: #425466;
  --muted: #697386;
  --faint: #8792a2;
  --line: #e3e8ee;
  --soft: #f6f9fc;
  --bg: #ffffff;
  --accent: #635bff;
  --accent-dark: #4b45d6;
  --accent-soft: #f0efff;
  --ok: #0e6245;
  --ok-soft: #cbf4c9;
  --warn: #983705;
  --warn-soft: #f8e5b9;
  --info: #3d4eac;
  --info-soft: #d6ecff;
  --neutral: #4f566b;
  --neutral-soft: #e3e8ee;
  --shadow-sm: 0 0 0 1px rgba(50, 50, 93, 0.06), 0 2px 5px rgba(50, 50, 93, 0.08), 0 1px 1.5px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 13px 27px -5px rgba(50, 50, 93, 0.18), 0 8px 16px -8px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 50px 100px -20px rgba(50, 50, 93, 0.3), 0 30px 60px -30px rgba(0, 0, 0, 0.35);
  --font: "Satoshi", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01", "tnum"; }
a { color: var(--accent); text-decoration: none; font-weight: 500; }
a:hover { color: var(--ink); }
h1, h2, h3 { margin: 0; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
b { color: var(--ink); font-weight: 600; }
svg { display: block; }
code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }
code { background: var(--soft); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; color: var(--ink); }
pre { background: #0a2540; color: #d4e0f0; padding: 18px 20px; border-radius: 8px; overflow-x: auto; margin: 0 0 16px; line-height: 1.7; }
pre code { background: none; border: 0; padding: 0; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.wrap { overflow-wrap: anywhere; }
.gap { height: 4px; }

/* Marque */
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -0.03em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, #7a73ff 0%, #635bff 45%, #00d4ff 130%); position: relative; flex: none; box-shadow: 0 2px 5px rgba(99, 91, 255, 0.35); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; left: 7px; height: 3px; border-radius: 2px; background: #fff; }
.brand-mark::before { top: 8px; width: 12px; }
.brand-mark::after { top: 15px; width: 7px; opacity: 0.8; }

/* Boutons et champs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; font-size: 13.5px; line-height: 20px; padding: 6px 12px; border-radius: 6px; border: 0; background: var(--accent); color: #fff; cursor: pointer; white-space: nowrap; box-shadow: 0 0 0 1px rgba(99, 91, 255, 1), 0 1px 1px rgba(0, 0, 0, 0.12), 0 2px 5px rgba(60, 66, 87, 0.12); transition: background 0.15s, box-shadow 0.15s, transform 0.08s, color 0.15s; }
.btn:hover { background: var(--accent-dark); color: #fff; box-shadow: 0 0 0 1px var(--accent-dark), 0 2px 5px rgba(60, 66, 87, 0.2), 0 4px 10px rgba(99, 91, 255, 0.25); }
.btn:active { transform: translateY(1px); }
.btn.accent { background: var(--accent); }
.btn.ghost { background: #fff; color: #3c4257; box-shadow: 0 0 0 1px rgba(60, 66, 87, 0.16), 0 1px 1px rgba(0, 0, 0, 0.08), 0 2px 5px rgba(60, 66, 87, 0.06); }
.btn.ghost:hover { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgba(60, 66, 87, 0.24), 0 2px 5px rgba(60, 66, 87, 0.12); }
.btn.sm { padding: 3px 9px; font-size: 12.5px; }
.btn.lg { padding: 9px 18px; font-size: 15px; border-radius: 999px; }
.btn.block { width: 100%; padding: 11px 16px; font-size: 15px; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.btn .arr { transition: transform 0.15s; display: inline-block; }
.btn:hover .arr { transform: translateX(3px); }
label { display: block; font-size: 13px; font-weight: 500; color: #3c4257; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], input[type=number], input[type=date], input[type=datetime-local], input[type=tel], input:not([type]), select {
  width: 100%; font: inherit; font-size: 14px; color: var(--ink); background: #fff; border: 0; border-radius: 6px; padding: 8px 11px; outline: none;
  box-shadow: 0 0 0 1px #e0e3e8, 0 1px 1px rgba(0, 0, 0, 0.03), 0 2px 4px rgba(0, 0, 0, 0.03); transition: box-shadow 0.15s;
}
input::placeholder { color: #a3acb9; }
input:focus, select:focus { box-shadow: 0 0 0 1px rgba(99, 91, 255, 0.6), 0 0 0 4px rgba(99, 91, 255, 0.18); }
.field { margin-bottom: 16px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > * { flex: 1 1 160px; }
.row > .fit { flex: 0 0 auto; }
form.inline { display: inline; }

/* Bandeaux */
.notice { background: var(--soft); border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; font-size: 13.5px; box-shadow: inset 0 0 0 1px var(--line); color: var(--text); }
.notice.ok { background: #effbf3; box-shadow: inset 0 0 0 1px #b9e8c8; color: #0e6245; }
.notice.warn { background: #fef8ec; box-shadow: inset 0 0 0 1px #f3dca4; color: #7a2f04; }
.notice.info { background: var(--accent-soft); box-shadow: inset 0 0 0 1px #d2cfff; color: #3a33a8; }
.notice b { color: inherit; }
.secret { display: block; margin-top: 8px; padding: 10px 12px; background: #fff; border-radius: 6px; box-shadow: 0 0 0 1px #d2cfff; font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; user-select: all; color: var(--ink); }

/* Badges */
.badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; line-height: 16px; padding: 1px 6px; border-radius: 4px; background: var(--neutral-soft); color: var(--neutral); white-space: nowrap; }
.badge.succeeded, .badge.delivered, .badge.active, .badge.paid, .badge.verified, .badge.resolved, .badge.ok, .badge.settled, .badge.won, .badge.done, .badge.approved, .badge.low { background: var(--ok-soft); color: var(--ok); }
.badge.failed, .badge.suspended, .badge.returned, .badge.rejected, .badge.discrepancies, .badge.lost, .badge.dead, .badge.escalated, .badge.confirmed, .badge.high { background: var(--warn-soft); color: var(--warn); }
.badge.pending, .badge.created, .badge.processing, .badge.requires_action, .badge.authorized, .badge.requested, .badge.pending_verification, .badge.open, .badge.investigating, .badge.in_review, .badge.running, .badge.medium { background: var(--info-soft); color: var(--info); }

/* ---------- Site public ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.pub-head { position: relative; z-index: 5; }
.pub-head .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.pub-head.plain { border-bottom: 1px solid var(--line); background: #fff; }
.pub-nav { display: flex; align-items: center; gap: 4px; }
.pub-nav a.link { color: var(--ink); font-weight: 600; font-size: 14.5px; padding: 6px 12px; border-radius: 999px; }
.pub-nav a.link:hover { opacity: 0.7; }
.pub-head.on-hero .brand, .pub-head.on-hero .pub-nav a.link { color: #fff; }
.pub-head.on-hero .brand-mark { background: #fff; box-shadow: none; }
.pub-head.on-hero .brand-mark::before, .pub-head.on-hero .brand-mark::after { background: var(--accent); }
.pill-btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; padding: 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.22); color: #fff; transition: background 0.15s; }
.pill-btn:hover { background: rgba(255, 255, 255, 0.36); color: #fff; }
.pub-head.plain .pill-btn { background: var(--accent); }
.pub-head.plain .pill-btn:hover { background: var(--ink); }

.hero-wrap { position: relative; overflow: hidden; margin-top: -84px; padding-top: 84px; }
.hero-bg { position: absolute; left: 0; right: 0; top: -260px; height: 1130px; transform: skewY(-10deg); transform-origin: 0 0; overflow: hidden; z-index: 0; background: #635bff; }
.hero-bg::before { content: ""; position: absolute; inset: -20%; background:
  radial-gradient(38% 46% at 86% 62%, #ffcb57 0%, rgba(255, 203, 87, 0) 70%),
  radial-gradient(34% 44% at 64% 78%, #ff7ac3 0%, rgba(255, 122, 195, 0) 72%),
  radial-gradient(40% 50% at 96% 30%, #ff9e6b 0%, rgba(255, 158, 107, 0) 70%),
  radial-gradient(36% 46% at 44% 92%, #7ad9ff 0%, rgba(122, 217, 255, 0) 70%),
  radial-gradient(60% 70% at 10% 30%, #4a3fe0 0%, rgba(74, 63, 224, 0) 75%),
  linear-gradient(120deg, #5146f0 0%, #7a5cff 45%, #b06cf0 100%);
  animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(3%, 3%, 0) scale(1.08); } }
.hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 32px; align-items: center; padding: 72px 0 170px; }
.hero h1 { font-size: 62px; font-weight: 750; letter-spacing: -0.045em; line-height: 1.02; color: #fff; margin-bottom: 26px; }
.hero p.lead { font-size: 19px; line-height: 1.55; color: rgba(255, 255, 255, 0.92); max-width: 480px; margin-bottom: 30px; font-weight: 450; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .btn.lg { background: #0a2540; box-shadow: none; }
.hero .btn.lg:hover { background: #fff; color: #0a2540; }
.hero a.more { color: #fff; font-weight: 600; font-size: 15px; padding: 9px 10px; }
.hero a.more:hover { opacity: 0.75; color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #fff; background: rgba(10, 37, 64, 0.28); border-radius: 999px; padding: 4px 12px 4px 6px; margin-bottom: 26px; backdrop-filter: blur(6px); }
.pill i { font-style: normal; background: #fff; color: var(--accent); border-radius: 999px; padding: 0 8px; font-size: 11.5px; line-height: 20px; }

/* Maquettes du héros */
.stage { position: relative; height: 500px; }
.m-dash { position: absolute; left: 150px; top: 10px; width: 580px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); padding: 18px 20px; font-size: 12px; color: var(--text); }
.m-dash .m-top { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--ink); font-weight: 600; font-size: 13px; }
.m-dash .m-top span.dot { width: 20px; height: 20px; border-radius: 6px; background: linear-gradient(135deg, #ffcb57, #ff7ac3); }
.m-dash .m-k { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 8px; }
.m-dash .m-k div span { display: block; color: var(--muted); font-size: 11.5px; }
.m-dash .m-k div b { font-size: 21px; letter-spacing: -0.03em; font-weight: 600; }
.m-dash .m-k div em { font-style: normal; color: var(--ok); font-size: 11px; font-weight: 600; margin-left: 6px; }
.m-dash svg { width: 100%; height: auto; }
.m-dash .m-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.m-dash .m-row b { font-weight: 500; }
.m-phone { position: absolute; left: -10px; top: 110px; width: 248px; background: #fff; border-radius: 28px; box-shadow: var(--shadow-lg), inset 0 0 0 6px #f6f9fc, 0 0 0 1px rgba(10, 37, 64, 0.08); padding: 26px 20px 22px; font-size: 12px; }
.m-phone .p-shop { display: flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.m-phone .p-shop span { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #7ad9ff, #635bff); }
.m-phone .p-amt { font-size: 30px; font-weight: 650; color: var(--ink); letter-spacing: -0.035em; margin-bottom: 14px; }
.m-phone .p-pay { background: #0a2540; color: #fff; border-radius: 6px; text-align: center; padding: 8px; font-weight: 600; margin-bottom: 10px; }
.m-phone .p-or { text-align: center; color: var(--faint); font-size: 11px; margin-bottom: 10px; }
.m-phone .p-in { border-radius: 6px; box-shadow: 0 0 0 1px #e0e3e8; padding: 8px 10px; color: var(--faint); margin-bottom: 8px; display: flex; justify-content: space-between; }
.m-phone .p-in b { color: var(--ink); font-weight: 500; font-family: var(--mono); font-size: 11.5px; }
.m-phone .p-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-phone .p-btn { background: var(--accent); color: #fff; border-radius: 6px; text-align: center; padding: 9px; font-weight: 600; margin-top: 6px; box-shadow: 0 4px 10px rgba(99, 91, 255, 0.35); }

.facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px dashed #d5dbe5; border-bottom: 1px dashed #d5dbe5; margin: 20px 0 0; }
.facts div { padding: 28px 24px; border-left: 1px dashed #d5dbe5; }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font-size: 30px; font-weight: 650; letter-spacing: -0.035em; }
.facts span { color: var(--text); font-size: 14.5px; }

.sec { padding: 96px 0; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; margin-bottom: 14px; letter-spacing: -0.01em; }
.sec h2.big { font-size: 40px; font-weight: 720; letter-spacing: -0.035em; line-height: 1.1; max-width: 620px; margin-bottom: 18px; }
.sec p.sub { font-size: 17.5px; line-height: 1.6; max-width: 600px; color: var(--text); margin-bottom: 48px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 36px; }
.feature .fi { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 16px; color: #fff; background: linear-gradient(135deg, #7a73ff, #635bff); box-shadow: 0 6px 12px -2px rgba(99, 91, 255, 0.35); }
.feature:nth-child(2) .fi { background: linear-gradient(135deg, #00d4ff, #3b82f6); box-shadow: 0 6px 12px -2px rgba(59, 130, 246, 0.35); }
.feature:nth-child(3) .fi { background: linear-gradient(135deg, #ffcb57, #ff9e6b); box-shadow: 0 6px 12px -2px rgba(255, 158, 107, 0.4); }
.feature:nth-child(4) .fi { background: linear-gradient(135deg, #ff7ac3, #b06cf0); box-shadow: 0 6px 12px -2px rgba(176, 108, 240, 0.35); }
.feature:nth-child(5) .fi { background: linear-gradient(135deg, #3ecf8e, #11b5a4); box-shadow: 0 6px 12px -2px rgba(17, 181, 164, 0.35); }
.feature:nth-child(6) .fi { background: linear-gradient(135deg, #0a2540, #425466); box-shadow: 0 6px 12px -2px rgba(10, 37, 64, 0.3); }
.feature h3 { font-size: 16.5px; margin-bottom: 8px; padding-left: 14px; margin-left: -15px; border-left: 1px solid var(--accent); }
.feature p { font-size: 15px; line-height: 1.6; margin: 0; }

.dark { background: #0a2540; color: #adbdcc; position: relative; overflow: hidden; }
.dark::before { content: ""; position: absolute; right: -200px; top: -200px; width: 700px; height: 700px; background: radial-gradient(closest-side, rgba(99, 91, 255, 0.45), rgba(99, 91, 255, 0)); }
.dark .container { position: relative; }
.dark .eyebrow { color: #00d4ff; }
.dark h2.big { color: #fff; }
.dark p.sub { color: #adbdcc; margin-bottom: 28px; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; }
.ticks li { position: relative; padding: 0 0 12px 28px; font-size: 15.5px; color: #cfd9e4; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #00d4ff; }
.ticks li::after { content: ""; position: absolute; left: 5px; top: 8px; width: 5px; height: 3px; border-left: 2px solid #0a2540; border-bottom: 2px solid #0a2540; transform: rotate(-45deg); }
.dark a.more { color: #00d4ff; font-weight: 600; font-size: 15px; }
.dark a.more:hover { color: #fff; }
.codewin { background: #0c2e4e; border-radius: 10px; box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.06); overflow: hidden; }
.codewin .bar { display: flex; gap: 18px; padding: 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-size: 12.5px; font-weight: 600; color: #7f95ab; }
.codewin .bar span.on { color: #fff; }
.codewin pre { background: none; margin: 0; padding: 18px 20px 22px; font-size: 13px; color: #d4e0f0; }
.codewin .k { color: #7ad9ff; }
.codewin .s { color: #ffcb8b; }
.codewin .n { color: #c4b5ff; }
.codewin .c { color: #6b88a5; }
.codewin .resp { border-top: 1px solid rgba(255, 255, 255, 0.07); background: rgba(0, 0, 0, 0.14); }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border-radius: 10px; box-shadow: var(--shadow-sm); padding: 26px 24px; }
.step .num { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 10px; display: inline-block; margin-bottom: 16px; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 15px; margin: 0; line-height: 1.6; }
.soft { background: var(--soft); }
.cta-band { position: relative; overflow: hidden; background: #635bff; color: #fff; padding: 84px 0; }
.cta-band::before { content: ""; position: absolute; inset: -40% -10%; background: radial-gradient(40% 60% at 90% 70%, #ff7ac3 0%, rgba(255, 122, 195, 0) 70%), radial-gradient(40% 60% at 70% 110%, #ffcb57 0%, rgba(255, 203, 87, 0) 70%), radial-gradient(50% 70% at 0% 0%, #4a3fe0 0%, rgba(74, 63, 224, 0) 75%); }
.cta-band .container { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 34px; font-weight: 720; letter-spacing: -0.035em; max-width: 560px; }
.cta-band .btn.lg { background: #0a2540; box-shadow: none; }
.cta-band .btn.lg:hover { background: #fff; color: #0a2540; }
.pub-foot { background: #000; color: #8a94a6; padding: 40px 0; font-size: 13.5px; }
.pub-foot .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.pub-foot .brand { color: #fff; }
.pub-foot a { color: #c9d1dd; }
.pub-foot a:hover { color: #fff; }

/* Connexion, inscription */
.auth { position: relative; min-height: calc(100vh - 71px); display: grid; place-items: start center; padding: 64px 16px; background: var(--soft); overflow: hidden; }
.auth::before { content: ""; position: absolute; left: 0; right: 0; top: -420px; height: 620px; transform: skewY(-10deg); background: linear-gradient(100deg, #635bff 0%, #9a6bf5 45%, #ff7ac3 80%, #ffcb57 110%); opacity: 0.95; }
.auth-card { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-md), 0 0 0 1px rgba(50, 50, 93, 0.05); padding: 44px 44px 36px; }
.auth-card h1 { font-size: 23px; margin-bottom: 6px; }
.auth-card > p.muted { margin-bottom: 26px; font-size: 14.5px; }
.auth-card .btn.block { margin-top: 6px; }
.auth-card p.small { margin: 22px 0 0; font-size: 13.5px; }

/* ---------- Espace commerçant ---------- */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 1px; background: #fff; border-right: 1px solid var(--line); }
.side .acct { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; color: var(--ink); font-weight: 600; font-size: 14px; min-width: 0; }
.side .acct .av { width: 26px; height: 26px; border-radius: 6px; flex: none; display: grid; place-items: center; color: #fff; font-size: 12.5px; font-weight: 700; background: linear-gradient(135deg, #7a73ff, #635bff 55%, #00d4ff 140%); }
.side .acct span.nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side a.nav { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; color: #3c4257; font-weight: 500; font-size: 14px; white-space: nowrap; }
.side a.nav svg { color: #8792a2; flex: none; }
.side a.nav:hover { background: var(--soft); color: var(--ink); }
.side a.nav.on { color: var(--accent); font-weight: 600; }
.side a.nav.on svg { color: var(--accent); }
.side .sep { margin: 14px 8px 6px; font-size: 11px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.side .spacer { flex: 1; }
.side .who { padding: 14px 8px 4px; border-top: 1px solid var(--line); font-size: 12.5px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.side .who .brand { font-size: 14px; margin-bottom: 6px; }
.side .who .brand-mark { width: 18px; height: 18px; border-radius: 5px; }
.side .who .brand-mark::before { top: 5px; left: 5px; width: 8px; height: 2px; }
.side .who .brand-mark::after { top: 10px; left: 5px; width: 5px; height: 2px; }
.main { min-width: 0; background: #fff; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 36px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px); z-index: 3; }
.testmode { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #b3540a; background: #fff4e0; border-radius: 4px; padding: 2px 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.top .tr { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.content { padding: 30px 36px 72px; max-width: 1160px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.head h1 { font-size: 26px; letter-spacing: -0.03em; }
.head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.card { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.card > h2 { margin-bottom: 16px; }
.card.flush { padding: 0; overflow-x: auto; }
.card.flush > h2 { padding: 16px 20px 12px; margin: 0; border-bottom: 1px solid var(--line); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 20px; border-radius: 8px; box-shadow: var(--shadow-sm); background: #fff; }
.kpi { padding: 18px 20px; border-left: 1px solid var(--line); }
.kpi:first-child { border-left: 0; }
.kpi .l { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi .v { font-size: 25px; font-weight: 600; color: var(--ink); letter-spacing: -0.03em; margin-top: 4px; line-height: 1.25; }
.kpi .s { font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.grid2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; }
.grid2 > .card { margin-bottom: 20px; }
.chart { width: 100%; height: auto; }
.chart .ln { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .gr { stroke: #edf0f4; stroke-width: 1; }
.chart .pt { fill: #fff; stroke: var(--accent); stroke-width: 2; }
.chart text { font-family: var(--font); font-size: 10.5px; fill: var(--faint); }

table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; padding: 9px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px 20px; border-bottom: 1px solid #eef1f5; vertical-align: middle; color: #3c4257; white-space: nowrap; }
table.t td.wrap, .docs table.t td { white-space: normal; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover td { background: #f7fafc; }
table.t td.amount { font-weight: 600; color: var(--ink); white-space: nowrap; }
table.t td a.mono { font-weight: 400; color: var(--muted); }
table.t td a.mono:hover { color: var(--accent); }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.dl { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; margin: 0; font-size: 13.5px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; padding: 12px 20px; border-bottom: 1px solid var(--line); align-items: center; }
.filters input, .filters select { width: auto; flex: 1 1 180px; max-width: 300px; padding: 5px 10px; font-size: 13.5px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 4px 0 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 16px 36px; color: var(--text); font-size: 13.5px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 12px; display: grid; place-items: center; }
.steps li b { display: block; }

/* Documentation */
.docs { display: grid; grid-template-columns: 200px 1fr; gap: 48px; padding: 40px 0 20px; align-items: start; font-size: 15px; }
.docs nav { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 1px; font-size: 14px; }
.docs nav a { color: var(--text); padding: 5px 10px; border-radius: 6px; font-weight: 500; }
.docs nav a:hover { color: var(--accent); }
.docs section { margin-bottom: 52px; min-width: 0; scroll-margin-top: 76px; }
.docs h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 14px; }
.docs h3 { margin: 24px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.docs article { min-width: 0; max-width: 760px; }
.docs table.t { box-shadow: var(--shadow-sm); border-radius: 8px; margin-bottom: 16px; }
.verb { font-family: var(--mono); font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 4px; background: var(--ok-soft); color: var(--ok); margin-right: 8px; }
.verb.post { background: var(--info-soft); color: var(--info); }

/* ---------- Page de paiement ---------- */
body.pay { background: #fff; }
.co { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.co-left { background: var(--soft); display: flex; justify-content: flex-end; position: relative; overflow: hidden; }
.co-left::before { content: ""; position: absolute; left: -30%; right: -10%; top: -340px; height: 460px; transform: skewY(-10deg); background: linear-gradient(100deg, #635bff 0%, #9a6bf5 50%, #ff7ac3 90%); opacity: 0.12; }
.co-right { background: #fff; box-shadow: -18px 0 36px -12px rgba(50, 50, 93, 0.12); display: flex; justify-content: flex-start; position: relative; }
.co-in { width: 100%; max-width: 460px; padding: 72px 56px 40px; position: relative; display: flex; flex-direction: column; }
.co-merchant { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 14.5px; margin-bottom: 44px; }
.co-merchant .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; background: linear-gradient(135deg, #7a73ff, #635bff 55%, #00d4ff 140%); box-shadow: 0 2px 5px rgba(50, 50, 93, 0.2); }
.co-merchant .tm { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; color: #b3540a; background: #ffe8c2; border-radius: 4px; padding: 1px 6px; }
.co-label { color: var(--muted); font-size: 16px; font-weight: 500; }
.co-amount { font-size: 40px; font-weight: 650; letter-spacing: -0.035em; color: var(--ink); margin: 2px 0 30px; line-height: 1.2; }
.co-lines { font-size: 14px; }
.co-lines div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid #e3e8ee; color: var(--ink); font-weight: 500; }
.co-lines div span.sub { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; }
.co-lines div.tot { font-weight: 600; }
.co-foot { margin-top: auto; padding-top: 48px; display: flex; gap: 14px; align-items: center; font-size: 12.5px; color: var(--faint); flex-wrap: wrap; }
.co-foot a { color: var(--muted); font-weight: 500; }
.co-foot .brand { font-size: 13px; }
.co-foot .brand-mark { width: 16px; height: 16px; border-radius: 4px; box-shadow: none; }
.co-foot .brand-mark::before { top: 4px; left: 4px; width: 8px; height: 2px; }
.co-foot .brand-mark::after { top: 9px; left: 4px; width: 5px; height: 2px; }
.co-in h1 { font-size: 20px; font-weight: 600; margin-bottom: 24px; letter-spacing: -0.02em; }
.cardbox { border-radius: 6px; box-shadow: 0 0 0 1px #e0e3e8, 0 1px 1px rgba(0, 0, 0, 0.03), 0 2px 4px rgba(0, 0, 0, 0.03); }
.cardbox input { box-shadow: none; border-radius: 6px 6px 0 0; position: relative; }
.cardbox input:focus { z-index: 1; }
.cardbox .two { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #e0e3e8; }
.cardbox .two input { border-radius: 0 0 0 6px; }
.cardbox .two input + input { border-left: 1px solid #e0e3e8; border-radius: 0 0 6px 0; }
.cardbox .num { position: relative; }
.cardbox .num .nets { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: flex; gap: 4px; z-index: 2; pointer-events: none; }
.cardbox .num .nets i { font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: 0.02em; border-radius: 3px; padding: 2px 4px; color: #fff; background: #1a1f71; line-height: 12px; }
.cardbox .num .nets i + i { background: #0a2540; }
.co-in .btn.block { padding: 12px 16px; font-size: 16px; margin-top: 8px; box-shadow: 0 0 0 1px var(--accent), 0 2px 5px rgba(50, 50, 93, 0.1), 0 6px 14px rgba(99, 91, 255, 0.28); }
.lock { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--faint); margin-top: 16px; }
.testcards { margin-top: 28px; border-radius: 8px; background: var(--soft); padding: 12px 16px; font-size: 12.5px; }
.testcards summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 13px; }
.testcards table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.testcards td { padding: 5px 0; border-top: 1px solid var(--line); }
.testcards td:first-child { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.pay-center { min-height: 100vh; background: var(--soft); display: grid; place-items: center; padding: 32px 16px; position: relative; overflow: hidden; }
.pay-center::before { content: ""; position: absolute; left: 0; right: 0; top: -420px; height: 620px; transform: skewY(-10deg); background: linear-gradient(100deg, #635bff 0%, #9a6bf5 45%, #ff7ac3 80%, #ffcb57 110%); opacity: 0.95; }
.pay-foot { position: relative; text-align: center; font-size: 12.5px; color: var(--muted); margin: 18px 0 0; }
.result, .tds { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-md), 0 0 0 1px rgba(50, 50, 93, 0.05); padding: 40px 36px; }
.result { text-align: center; }
.result .ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; font-size: 24px; font-weight: 700; background: var(--ok-soft); color: var(--ok); }
.result .ico.n { background: var(--neutral-soft); color: var(--neutral); }
.result .ico.w { background: #fff0e8; color: #c93f00; }
.result h1 { font-size: 22px; margin-bottom: 8px; }
.result .btn { margin-top: 8px; }
.tds .bank { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.tds h1 { font-size: 20px; margin-bottom: 6px; }
.tds .dl { margin: 20px 0 24px; padding: 16px; background: var(--soft); border-radius: 8px; grid-template-columns: 110px 1fr; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 40px 0 60px; gap: 36px; }
  .hero h1 { font-size: 44px; }
  .hero-bg { height: 1280px; }
  .stage { height: 400px; }
  .m-dash { left: 110px; top: 0; width: 440px; }
  .m-phone { left: 0; top: 60px; width: 210px; padding: 20px 16px 18px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div { padding: 20px 16px; }
  .facts b { font-size: 22px; }
  .pub-nav a.link, .pill-btn { font-size: 13.5px; padding: 5px 10px; }
  .facts div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px dashed #d5dbe5; }
  .sec { padding: 64px 0; }
  .sec h2.big { font-size: 30px; }
  .features, .split, .grid2, .docs, .steps3 { grid-template-columns: 1fr; }
  .features { gap: 32px; }
  .feature h3 { margin-left: 0; padding-left: 0; border-left: 0; }
  .cta-band h2 { font-size: 26px; }
  .docs nav { position: static; flex-direction: row; overflow-x: auto; white-space: nowrap; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(odd) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 10px; gap: 2px; }
  .side .acct { padding: 0 8px 0 2px; }
  .side .acct span.nm, .side .sep, .side .spacer, .side .who { display: none; }
  .top { padding: 10px 16px; position: static; }
  .top .tr span { display: none; }
  .content { padding: 20px 16px 48px; }
  .auth-card { padding: 32px 24px 28px; }
  .co { grid-template-columns: 1fr; min-height: 0; }
  .co-left, .co-right { justify-content: center; }
  .co-right { box-shadow: 0 -12px 28px -14px rgba(50, 50, 93, 0.14); }
  .co-in { padding: 28px 20px; max-width: 520px; }
  .co-merchant { margin-bottom: 22px; }
  .co-amount { margin-bottom: 14px; font-size: 34px; }
  .co-left .co-foot { display: none; }
  .dl { grid-template-columns: 1fr; gap: 2px 0; }
  .dl dd { margin-bottom: 10px; }
  .tds .dl { grid-template-columns: 1fr; }
  .pub-nav a.link.hide-m { display: none; }
  table.t thead { display: none; }
  table.t, table.t tbody, table.t tr, table.t td { display: block; width: 100%; }
  table.t tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  table.t tr:last-child { border-bottom: 0; }
  table.t td { white-space: normal; border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 16px; text-align: right; }
  table.t td::before { content: attr(data-l); color: var(--muted); font-size: 12.5px; font-weight: 500; text-align: left; flex: none; }
  table.t td:empty { display: none; }
}
@media (max-width: 560px) {
  .pub-head .brand { font-size: 16px; }
  .pub-head .container { padding-left: 16px; padding-right: 16px; }
  .pill-btn span { display: none; }
  .hero h1 { font-size: 38px; }
  .stage { height: 330px; }
  .m-dash { left: 90px; width: 360px; padding: 14px; }
  .m-phone { width: 180px; top: 70px; border-radius: 22px; }
  .m-phone .p-or, .m-phone .p-pay { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-bg::before { animation: none; } }

.pay-center > div { width: 100%; max-width: 440px; position: relative; }
.tds .actions { margin: 0; }
.tds .actions .btn { flex: 1 1 auto; padding: 9px 12px; }

/* ================= Identité propre (v3) : encre nuit et orange ================= */
:root {
  --ink: #0b1020;
  --text: #4a5468;
  --accent: #ff6b1a;
  --accent-dark: #e85a0c;
  --accent-text: #cf4a08;
  --accent-soft: #fff1e8;
}
a { color: var(--accent-text); }
.brand-mark { background: linear-gradient(135deg, #ff9a4d 0%, #ff6b1a 55%, #f0440a 120%); box-shadow: 0 2px 6px rgba(255, 107, 26, 0.35); border-radius: 8px; }
.btn { background: var(--ink); box-shadow: 0 0 0 1px var(--ink), 0 1px 1px rgba(0, 0, 0, 0.12), 0 2px 5px rgba(11, 16, 32, 0.14); }
.btn:hover { background: #232b42; box-shadow: 0 0 0 1px #232b42, 0 4px 12px rgba(11, 16, 32, 0.2); }
.btn.accent { background: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 2px 5px rgba(11, 16, 32, 0.1), 0 6px 16px rgba(255, 107, 26, 0.3); }
.btn.accent:hover { background: var(--accent-dark); box-shadow: 0 0 0 1px var(--accent-dark), 0 8px 20px rgba(255, 107, 26, 0.36); color: #fff; }
.btn.lg { border-radius: 10px; padding: 11px 20px; }
.btn.onDark { background: rgba(255, 255, 255, 0.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.btn.onDark:hover { background: rgba(255, 255, 255, 0.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
input:focus, select:focus { box-shadow: 0 0 0 1px rgba(255, 107, 26, 0.7), 0 0 0 4px rgba(255, 107, 26, 0.16); }
.notice.info { background: #fff7f1; box-shadow: inset 0 0 0 1px #ffd9c2; color: #8a3305; }
.secret { box-shadow: 0 0 0 1px #ffd9c2; }
.side a.nav.on, .side a.nav.on svg { color: var(--accent-text); }
.side a.nav.on { background: var(--accent-soft); }
.side .acct .av, .co-merchant .av { background: var(--ink); }
.steps li::before { color: var(--accent-text); }
.docs nav a:hover { color: var(--accent-text); }
.co-in .btn.block { box-shadow: 0 0 0 1px var(--accent), 0 6px 16px rgba(255, 107, 26, 0.3); }

/* En-tête */
.pub-head.on-hero { background: transparent; }
.pub-head.on-hero .brand-mark { background: linear-gradient(135deg, #ff9a4d 0%, #ff6b1a 55%, #f0440a 120%); }
.pub-head.on-hero .brand-mark::before, .pub-head.on-hero .brand-mark::after { background: #fff; }
.pill-btn { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); border-radius: 10px; }
.pill-btn:hover { background: rgba(255, 255, 255, 0.2); }
.pub-head.plain .pill-btn { background: var(--ink); box-shadow: none; }
.pub-head.plain .pill-btn:hover { background: #232b42; }
.pub-nav a.link { border-radius: 10px; }

/* Héros sombre centré */
.hx { position: relative; background: var(--ink); margin-top: -84px; padding-top: 84px; overflow: hidden; }
.hx::before { content: ""; position: absolute; left: 50%; top: -340px; width: 1300px; height: 900px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 107, 26, 0.34), rgba(255, 107, 26, 0.08) 55%, rgba(255, 107, 26, 0) 75%); animation: breathe 9s ease-in-out infinite alternate; }
.hx::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 190px; background: #fff; }
@keyframes breathe { from { opacity: 0.75; transform: translateX(-50%) scale(1); } to { opacity: 1; transform: translateX(-50%) scale(1.08); } }
.hx-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 100%); mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 100%); }
.hx .container { position: relative; z-index: 1; }
.hx-in { text-align: center; padding: 72px 0 64px; display: flex; flex-direction: column; align-items: center; }
.hx-in .pill { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); color: #d5dbea; margin-bottom: 28px; backdrop-filter: none; }
.pill i { background: var(--accent); color: #fff; }
.hx-in h1 { color: #fff; font-size: 70px; font-weight: 720; letter-spacing: -0.045em; line-height: 1.03; max-width: 900px; margin-bottom: 24px; }
.hx-in h1 em { font-style: normal; background: linear-gradient(95deg, #ffb37a 0%, #ff6b1a 55%, #ff8f4a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-in p.lead { color: #aab3c8; font-size: 19px; line-height: 1.6; max-width: 620px; margin-bottom: 34px; }
.hx-in .cta, .cta-card .cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hx .stage { position: relative; height: auto; max-width: 900px; margin: 0 auto; padding-bottom: 56px; }
.hx .m-dash { position: relative; left: auto; top: auto; width: auto; margin-left: 70px; border-radius: 14px; padding: 22px 26px 10px; font-size: 13px; box-shadow: 0 60px 120px -30px rgba(11, 16, 32, 0.55), 0 0 0 1px rgba(11, 16, 32, 0.08); }
.m-dash .m-top { font-size: 14px; margin-bottom: 20px; }
.m-dash .m-top span.dot { width: 24px; height: 24px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 12px; display: grid; place-items: center; }
.m-dash .m-tag { margin-left: auto; font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #b3540a; background: #fff4e0; border-radius: 4px; padding: 2px 7px; }
.hx .m-dash .m-k { grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 14px; }
.hx .m-dash .m-k div b { font-size: 25px; }
.hx .m-dash svg { height: 130px; }
.hx .m-dash .m-row { display: grid; grid-template-columns: 1.2fr 1.4fr 0.6fr auto; gap: 16px; padding: 11px 0; }
.hx .m-dash .m-row span:nth-child(2) { color: var(--muted); }
.hx .m-phone { left: 0; top: auto; bottom: 0; width: 236px; border-radius: 22px; padding: 22px 18px 18px; box-shadow: 0 40px 80px -20px rgba(11, 16, 32, 0.5), 0 0 0 1px rgba(11, 16, 32, 0.08); }
.m-phone .p-shop span { background: var(--ink); }
.m-phone .p-btn { background: var(--accent); box-shadow: 0 6px 14px rgba(255, 107, 26, 0.35); }
.m-toast { position: absolute; right: -28px; top: 64px; display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 12px; padding: 11px 14px; font-size: 12px; box-shadow: 0 24px 48px -12px rgba(11, 16, 32, 0.4), 0 0 0 1px rgba(11, 16, 32, 0.06); }
.m-toast .tk { width: 24px; height: 24px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-weight: 700; }
.m-toast b { display: block; font-family: var(--mono); font-size: 11.5px; }
.m-toast span { color: var(--muted); }
.facts { border-top: 0; margin-top: 8px; }

/* Fonctionnalités : pastilles unies */
.feature .fi, .feature:nth-child(n) .fi { background: var(--ink); color: #ff9a4d; box-shadow: none; border-radius: 11px; width: 42px; height: 42px; }
.feature h3 { border-left: 0; margin-left: 0; padding-left: 0; }
.features { gap: 0; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.feature { padding: 32px 30px; box-shadow: 0 0 0 0.5px var(--line); background: #fff; transition: background 0.2s; }
.feature:hover { background: #fafbfc; }

/* Section développeurs */
.dark { background: var(--ink); }
.dark::before { background: radial-gradient(closest-side, rgba(255, 107, 26, 0.22), rgba(255, 107, 26, 0)); }
.dark .eyebrow, .dark a.more { color: #ff9a4d; }
.ticks li::before { background: #ff9a4d; }
.ticks li::after { border-color: var(--ink); }
.codewin { background: #121930; }
.codewin .k { color: #ffb37a; }
.codewin .s { color: #a8e6c4; }
.codewin .n { color: #9ecbff; }

/* Étapes illustrées */
.flow-sec { background: #f7f8fa; }
.flow-head { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.flow-head h2.big { margin: 0; max-width: 560px; }
.flow-head p.sub { margin: 0; font-size: 16.5px; }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.fstep { background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 12px 32px -16px rgba(11, 16, 32, 0.14); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.fstep:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px #d9dee7, 0 24px 48px -20px rgba(11, 16, 32, 0.22); }
.fvis { height: 208px; padding: 28px; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 0%, #fff1e8 0%, #f7f8fa 70%); border-bottom: 1px solid var(--line); }
.fstep:nth-child(2) .fvis { background: radial-gradient(120% 90% at 50% 0%, #e9eefb 0%, #f7f8fa 70%); }
.fstep:nth-child(3) .fvis { background: radial-gradient(120% 90% at 50% 0%, #e4f6ec 0%, #f7f8fa 70%); }
.fcard { width: 100%; max-width: 270px; background: #fff; border-radius: 12px; padding: 16px; font-size: 12.5px; box-shadow: 0 0 0 1px rgba(11, 16, 32, 0.06), 0 16px 32px -12px rgba(11, 16, 32, 0.2); display: flex; flex-direction: column; gap: 10px; }
.fcard.dark { background: var(--ink); color: #c9d1e3; }
.frow { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.flabel { font-weight: 600; color: var(--ink); }
.fmuted { color: var(--muted); font-size: 11.5px; }
.fkey { font-family: var(--mono); font-size: 12px; background: #f4f5f8; border-radius: 7px; padding: 8px 10px; color: var(--ink); }
.fchip { font-size: 11px; font-weight: 600; color: var(--ink); box-shadow: 0 0 0 1px var(--line); border-radius: 6px; padding: 2px 8px; }
.fline { font-family: var(--mono); font-size: 12px; color: #fff; display: flex; gap: 8px; align-items: center; }
.fverb { font-size: 10.5px; font-weight: 700; background: var(--accent); color: #fff; border-radius: 4px; padding: 1px 6px; }
.fcode { font-family: var(--mono); font-size: 11px; color: #8d98b3; }
.fcode span { color: #ffb37a; }
.farrow { color: #5d6884; text-align: center; font-size: 13px; line-height: 1; }
.fline.out { justify-content: space-between; background: rgba(255, 255, 255, 0.07); border-radius: 7px; padding: 7px 10px; }
.fline.out span { font-family: var(--font); font-size: 11px; font-weight: 600; color: #7fe0ac; }
.fevt { font-family: var(--mono); font-size: 12px; color: var(--ink); font-weight: 500; }
.fbig { font-size: 26px; font-weight: 650; letter-spacing: -0.03em; color: var(--ink); }
.ftxt { padding: 26px 28px 30px; }
.fnum { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 650; font-size: 13px; margin-bottom: 14px; }
.ftxt h3 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 8px; }
.ftxt p { font-size: 15px; line-height: 1.6; margin: 0; }

/* Appel à l'action */
.cta-sec { background: #f7f8fa; padding: 0 0 96px; }
.cta-card { position: relative; overflow: hidden; background: var(--ink); border-radius: 28px; padding: 76px 40px 72px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-glow { position: absolute; left: 50%; bottom: -420px; width: 1000px; height: 640px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 107, 26, 0.5), rgba(255, 107, 26, 0.1) 60%, rgba(255, 107, 26, 0)); }
.cta-card::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(60% 80% at 50% 100%, #000 0%, transparent 100%); mask-image: radial-gradient(60% 80% at 50% 100%, #000 0%, transparent 100%); }
.cta-card > * { position: relative; }
.cta-card .pill { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); color: #d5dbea; margin-bottom: 24px; backdrop-filter: none; }
.cta-card h2 { color: #fff; font-size: 44px; font-weight: 720; letter-spacing: -0.04em; line-height: 1.08; max-width: 720px; margin-bottom: 18px; }
.cta-card p { color: #aab3c8; font-size: 17px; line-height: 1.6; max-width: 560px; margin-bottom: 32px; }

/* Pied de page */
.foot { background: #000; color: #8a93a8; padding: 72px 0 36px; font-size: 14px; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.foot .brand { color: #fff; font-size: 19px; }
.foot-brand p { margin: 16px 0 18px; max-width: 300px; line-height: 1.6; color: #8a93a8; }
.foot-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: #ffb37a; box-shadow: inset 0 0 0 1px rgba(255, 154, 77, 0.35); border-radius: 999px; padding: 4px 12px; }
.foot-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff9a4d; }
.foot h4 { margin: 4px 0 16px; color: #fff; font-size: 13.5px; font-weight: 600; }
.foot-top a { display: block; color: #8a93a8; font-weight: 450; padding: 5px 0; transition: color 0.15s; }
.foot-top a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; color: #6b7388; }

/* Connexion, 3D Secure, paiement : fond sobre à la place de la bande inclinée */
.auth::before, .pay-center::before { left: 50%; right: auto; top: -520px; width: 1200px; height: 820px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 107, 26, 0.2), rgba(255, 107, 26, 0)); opacity: 1; }
.auth, .pay-center { background: #f7f8fa; }
.co-left { background: #f7f8fa; }
.co-left::before { left: -20%; right: auto; top: -380px; width: 760px; height: 620px; transform: none; background: radial-gradient(closest-side, rgba(255, 107, 26, 0.16), rgba(255, 107, 26, 0)); opacity: 1; }
.cardbox .num .nets i { background: var(--ink); }
.cardbox .num .nets i + i { background: #4a5468; }

@media (max-width: 960px) {
  .hx-in { padding: 44px 0 44px; }
  .hx-in h1 { font-size: 44px; }
  .hx .m-dash { margin-left: 0; }
  .hx .m-dash .m-k { grid-template-columns: 1fr 1fr; }
  .hx .m-dash .m-k div:nth-child(3), .hx .m-dash .m-row span:nth-child(2), .hx .m-phone, .m-toast { display: none; }
  .hx .m-dash .m-row { grid-template-columns: 1fr auto auto; }
  .hx::after { height: 120px; }
  .flow-head, .flow { grid-template-columns: 1fr; }
  .flow-head { gap: 16px; margin-bottom: 32px; }
  .cta-sec { padding-bottom: 64px; }
  .cta-card { padding: 52px 22px; border-radius: 20px; }
  .cta-card h2 { font-size: 30px; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hx-in h1 { font-size: 36px; }
  .hx-in p.lead { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) { .hx::before { animation: none; } }
.cta-card > .cta-glow { position: absolute; }
.foot-top a.brand { display: inline-flex; padding: 0; color: #fff; }
.fcard.dark::before { display: none; }
.fcard.dark { overflow: hidden; }

/* ================= Alignement sur l identité de la page d accueil (v4) ================= */
:root { --ink: #0c0c0e; --accent: #ff5b14; --accent-dark: #e64a05; --accent-text: #c93f00; --accent-soft: #fff0e8; --display: "Clash Display", "Satoshi", system-ui, sans-serif; }
.brand { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
.brand-mark { background: var(--ink); border-radius: 8px; box-shadow: none; }
.brand-mark::before { background: var(--accent); }
.brand-mark::after { background: #fff; opacity: 1; }
.pub-head.plain .pill-btn { border-radius: 999px; padding: 8px 16px; }
.auth, .pay-center, .co-left { background: #f5f2ec; }
.auth::before, .pay-center::before, .co-left::before { display: none; }
.auth-card, .result, .tds { border-radius: 22px; box-shadow: 0 40px 70px -40px rgba(12, 12, 14, 0.35), 0 0 0 1px rgba(12, 12, 14, 0.06); }
.auth-card h1, .result h1, .tds h1, .head h1, .co-amount, .kpi .v { font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; }
.auth-card h1 { font-size: 28px; }
.head h1 { font-size: 28px; }
.btn { border-radius: 9px; }
.btn.block { border-radius: 12px; }
.side a.nav.on { background: #f5f2ec; color: var(--ink); }
.side a.nav.on svg { color: var(--accent); }
.foot .brand-mark { background: #1c1c20; }
.docs h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; }

/* ================= Documentation (v2) ================= */
.docs-hero { padding: 64px 0 8px; max-width: 1000px; }
.docs-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink); margin-bottom: 18px; }
.docs-tag::before { content: ""; width: 26px; height: 1.5px; background: var(--accent); }
.docs-hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.02em; word-spacing: 0.05em; max-width: 760px; margin-bottom: 18px; }
.docs-hero > p { font-size: 18px; line-height: 1.55; max-width: 640px; margin-bottom: 36px; color: #55534e; }
.docs-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.docs-quick a { position: relative; display: block; background: #f5f2ec; border-radius: 20px; padding: 22px 56px 22px 22px; color: #55534e; font-weight: 400; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.25s, color 0.25s; }
.docs-quick a b { display: block; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; margin-bottom: 6px; transition: color 0.25s; }
.docs-quick a span { font-size: 14.5px; line-height: 1.45; display: block; }
.docs-quick a i { position: absolute; right: 20px; top: 20px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-style: normal; display: grid; place-items: center; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.25s; }
.docs-quick a:hover { transform: translateY(-4px); background: var(--ink); color: #b5b1a9; }
.docs-quick a:hover b { color: #fff; }
.docs-quick a:hover i { background: var(--accent); transform: rotate(-35deg); }

.docs { grid-template-columns: 230px minmax(0, 1fr); gap: 72px; padding: 64px 0 40px; font-size: 16px; line-height: 1.65; color: #4a4843; }
.docs nav { top: 96px; gap: 0; font-size: 14.5px; }
.docs-nav-t { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #8b877f; padding: 0 0 12px 16px; }
.docs nav a { position: relative; color: #6b6861; font-weight: 500; padding: 7px 0 7px 16px; border-radius: 0; border-left: 1.5px solid #e7e3da; transition: color 0.2s, border-color 0.2s, padding 0.25s; }
.docs nav a:hover { color: var(--ink); background: none; }
.docs nav a.on { color: var(--ink); font-weight: 700; border-left-color: var(--accent); padding-left: 20px; }
.docs article { max-width: 780px; }
.docs section { margin-bottom: 0; padding: 0 0 56px; scroll-margin-top: 96px; }
.docs section + section { padding-top: 56px; border-top: 1px solid #e7e3da; }
.docs h2 { font-size: 32px; margin-bottom: 18px; padding-top: 0; }
.docs h3 { margin: 30px 0 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: #8b877f; }
.docs p { margin-bottom: 16px; }
.docs code { font-size: 13px; background: #f5f2ec; border: 0; border-radius: 6px; padding: 2px 7px; color: var(--ink); }
.docs .steps { margin: 26px 0 28px; }
.docs .steps li { padding: 0 0 22px 52px; font-size: 15.5px; position: relative; }
.docs .steps li:last-child { padding-bottom: 0; }
.docs .steps li::before { width: 32px; height: 32px; background: var(--ink); color: #fff; font-family: var(--display); font-size: 14px; top: -3px; }
.docs .steps li:not(:last-child)::after { content: ""; position: absolute; left: 15.5px; top: 33px; bottom: 5px; width: 1.5px; background: #e7e3da; }
.docs .steps li b { font-size: 16.5px; margin-bottom: 2px; }
.docs .notice { border-radius: 14px; padding: 16px 18px 16px 50px; position: relative; font-size: 15px; line-height: 1.55; margin: 8px 0 0; background: #fff0e8; box-shadow: none; color: #7a2c04; }
.docs .notice::before { content: "i"; position: absolute; left: 16px; top: 16px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; font-family: var(--display); }

/* Blocs de code */
.cb { background: #0c0c0e; border-radius: 16px; overflow: hidden; margin: 0 0 20px; box-shadow: 0 30px 50px -34px rgba(12, 12, 14, 0.55); }
.cb-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.cb-bar span { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8b877f; }
.cb-bar button { font: inherit; font-size: 12.5px; font-weight: 500; color: #d8d5cf; background: rgba(255, 255, 255, 0.08); border: 0; border-radius: 8px; padding: 5px 12px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.cb-bar button:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.cb-bar button.ok { background: #0f8a57; color: #fff; }
.cb pre { background: none; margin: 0; border-radius: 0; padding: 18px 20px 20px; font-size: 13px; line-height: 1.75; color: #e6e3dc; }
.docs .cb code { background: none; padding: 0; color: inherit; font-size: 13px; }

/* Points d'entrée de l'API */
.docs p:has(> .verb) { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1.5px #e7e3da; padding: 14px 16px; margin: 0 0 10px; font-size: 15px; transition: box-shadow 0.2s; }
.docs p:has(> .verb):hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.docs p:has(> .verb) > code:first-of-type { background: none; padding: 0; font-size: 14px; font-weight: 500; margin-right: 6px; }
.verb { font-size: 11px; font-weight: 700; padding: 4px 0; width: 52px; text-align: center; border-radius: 7px; background: #e3f6ec; color: #0f8a57; margin: 0; }
.verb.post { background: var(--ink); color: #fff; }
.docs table.t { box-shadow: inset 0 0 0 1.5px #e7e3da; border-radius: 16px; overflow: hidden; margin: 6px 0 18px; font-size: 14.5px; }
.docs table.t th { background: #f5f2ec; border-bottom: 0; padding: 12px 18px; color: #6b6861; }
.docs table.t td { padding: 13px 18px; border-bottom-color: #efece5; }
.docs table.t tbody tr:hover td { background: #fbfaf7; }
.docs p.small.muted { margin-bottom: 26px; }

@media (max-width: 900px) {
  .docs-hero { padding-top: 36px; }
  .docs-quick { grid-template-columns: 1fr; }
  .docs { gap: 28px; padding-top: 36px; grid-template-columns: minmax(0, 1fr); }
  .docs nav { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 6px; }
  .docs-nav-t { display: none; }
  .docs nav a, .docs nav a.on { border-left: 0; padding: 7px 14px; border-radius: 999px; background: #f5f2ec; white-space: nowrap; }
  .docs nav a.on { background: var(--ink); color: #fff; }
  .docs h2 { font-size: 26px; }
  .docs section { padding-bottom: 40px; }
  .docs section + section { padding-top: 40px; }
  .cb pre { font-size: 12px; padding: 16px; }
}

/* ================= Connexion et inscription (v3) ================= */
body.au-page { background: #fff; }
.au { position: relative; min-height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.au-ribbon { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.au-ribbon g { transform-origin: 100% 0; animation: sway 14s ease-in-out infinite alternate; }
.au-ribbon .rb-a { filter: blur(26px); opacity: 0.9; animation-duration: 18s; }
.au-ribbon .rb-b { filter: blur(3px); animation-duration: 15s; animation-delay: -4s; }
.au-ribbon .rb-c { filter: blur(2px); animation-duration: 12s; animation-delay: -7s; }
.au-ribbon .rb-d { animation-duration: 16s; animation-delay: -2s; }
.au-ribbon .rb-lines { animation-duration: 15s; animation-delay: -4s; }
@keyframes sway { from { transform: rotate(-1.6deg) scale(1); } to { transform: rotate(2.2deg) scale(1.05); } }
.au-head { position: relative; z-index: 2; padding: 26px 40px; border-bottom: 1px solid rgba(12, 12, 14, 0.07); }
.au-head .brand { font-size: 22px; }
.au-head .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
.au-head .brand-mark::before { top: 9px; left: 8px; width: 14px; height: 4px; }
.au-head .brand-mark::after { top: 17px; left: 8px; width: 8px; height: 4px; }
.au-main { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; padding: 56px 16px 40px; }
.au-card { width: 100%; max-width: 540px; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 60px 100px -40px rgba(12, 12, 14, 0.4), 0 30px 50px -30px rgba(12, 12, 14, 0.25), 0 0 0 1px rgba(12, 12, 14, 0.05); animation: auIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes auIn { from { opacity: 0; transform: translateY(26px) scale(0.985); } to { opacity: 1; transform: none; } }
.au-body { padding: 56px 60px 44px; }
.au-body h1 { font-family: var(--display); font-weight: 600; font-size: 29px; line-height: 1.1; letter-spacing: -0.01em; word-spacing: 0.04em; margin-bottom: 30px; }
.au-body .au-sub { margin: -16px 0 28px; font-size: 15.5px; color: #6b6861; line-height: 1.5; }
.au-body label { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 9px; }
.au-body input[type=text], .au-body input[type=email], .au-body input[type=password], .au-body input[type=url] { height: 50px; padding: 0 15px; font-size: 16px; border-radius: 11px; box-shadow: inset 0 0 0 1.5px #e2ded5; transition: box-shadow 0.2s; }
.au-body input:hover { box-shadow: inset 0 0 0 1.5px #c9c4b9; }
.au-body input:focus { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px rgba(255, 91, 20, 0.16); }
.au-body .field { margin-bottom: 22px; }
.au-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.au-row a { font-size: 14.5px; font-weight: 500; }
.au-check { display: flex; align-items: center; gap: 11px; font-weight: 500 !important; font-size: 15px !important; cursor: pointer; margin: 2px 0 24px !important; position: relative; }
.au-check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.au-check span { width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px #c9c4b9; display: grid; place-items: center; flex: none; transition: background 0.2s, box-shadow 0.2s, transform 0.15s; }
.au-check span::after { content: ""; width: 10px; height: 5px; border-left: 2.2px solid #fff; border-bottom: 2.2px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1); }
.au-check input:checked + span { background: var(--accent); box-shadow: none; }
.au-check input:checked + span::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.au-check input:focus-visible + span { box-shadow: 0 0 0 4px rgba(255, 91, 20, 0.22); }
.au-check:active span { transform: scale(0.9); }
.au-body .btn.block { height: 52px; font-size: 16.5px; border-radius: 12px; margin: 0; transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s, box-shadow 0.2s; }
.au-body .btn.block:hover { transform: translateY(-1px); }
.au-or { display: flex; align-items: center; gap: 16px; margin: 26px 0 20px; font-size: 13.5px; color: #6b6861; }
.au-or::before, .au-or::after { content: ""; flex: 1; height: 1px; background: #e7e3da; }
.au-alt { display: grid; gap: 10px; }
.au-alt button { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); background: #fff; border: 0; border-radius: 11px; box-shadow: inset 0 0 0 1.5px #e2ded5; cursor: not-allowed; }
.au-alt button svg { flex: none; }
.au-alt button > svg[stroke] { color: var(--accent); }
.au-alt button em { position: absolute; right: 12px; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #8b877f; background: #f5f2ec; border-radius: 999px; padding: 3px 9px; }
.au-foot { background: #f7f5f1; border-top: 1px solid #ece8df; padding: 22px 24px; text-align: center; font-size: 15px; color: #55534e; }
.au-foot:empty { display: none; }
.au-legal { display: flex; align-items: center; gap: 7px; margin: 26px 0 0; font-size: 13px; color: #6b6861; background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(8px); border-radius: 999px; padding: 6px 14px; }
@media (max-width: 720px) {
  .au-head { padding: 18px 20px; }
  .au-main { padding: 28px 14px 32px; }
  .au-body { padding: 36px 24px 30px; }
  .au-body h1 { font-size: 24px; }
  .au-ribbon { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) { .au-ribbon g, .au-card { animation: none; } }

/* ================= Connexion et inscription : deux volets, sans défilement ================= */
body.sx-page { background: #fff; }
.sx { display: grid; grid-template-columns: minmax(440px, 0.92fr) 1.08fr; height: 100vh; height: 100dvh; min-height: 480px; overflow: hidden; }
.sx-form { display: flex; flex-direction: column; padding: clamp(16px, 3.2vh, 30px) clamp(24px, 4vw, 56px); min-height: 0; }
.sx-form > header { display: flex; align-items: center; justify-content: space-between; }
.sx-form .brand { font-size: 21px; }
.sx-form .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
.sx-form .brand-mark::before { top: 9px; left: 8px; width: 14px; height: 4px; }
.sx-form .brand-mark::after { top: 17px; left: 8px; width: 8px; height: 4px; }
.sx-back { font-size: 14px; font-weight: 500; color: #6b6861; }
.sx-back:hover { color: var(--ink); }
.sx-form > main { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 420px; margin: 0 auto; min-height: 0; animation: sxIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes sxIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.sx-form h1 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 4.6vh, 40px); line-height: 1.02; letter-spacing: -0.015em; word-spacing: 0.05em; margin: 0 0 clamp(6px, 1.2vh, 10px); }
.sx-sub { font-size: 15.5px; color: #6b6861; margin: 0 0 clamp(14px, 3vh, 28px); line-height: 1.45; }
.sx-form .notice { margin-bottom: clamp(10px, 2vh, 16px); padding: 9px 12px; }
.sx-form .field { margin-bottom: clamp(10px, 2.1vh, 18px); }
.sx-form label { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.sx-form label .muted { font-weight: 400; }
.sx-form input[type=text], .sx-form input[type=email], .sx-form input[type=password], .sx-form input[type=url] { height: clamp(40px, 6.4vh, 50px); padding: 0 14px; font-size: 15.5px; border-radius: 12px; background: #f7f5f1; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow 0.2s, background 0.2s; }
.sx-form input:hover { background: #f1eee8; }
.sx-form input:focus { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.sx-row { display: flex; justify-content: space-between; align-items: baseline; }
.sx-row a { font-size: 13.5px; font-weight: 500; color: #6b6861; }
.sx-row a:hover { color: var(--accent-text); }
.sx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sx-check { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; font-size: 14.5px !important; cursor: pointer; margin: 0 0 clamp(12px, 2.6vh, 22px) !important; position: relative; }
.sx-check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.sx-check span { width: 20px; height: 20px; border-radius: 7px; background: #f1eee8; display: grid; place-items: center; flex: none; transition: background 0.2s, transform 0.15s; }
.sx-check span::after { content: ""; width: 10px; height: 5px; border-left: 2.2px solid #fff; border-bottom: 2.2px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1); }
.sx-check input:checked + span { background: var(--ink); }
.sx-check input:checked + span::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.sx-check input:focus-visible + span { box-shadow: 0 0 0 4px rgba(255, 91, 20, 0.25); }
.sx-check:active span { transform: scale(0.9); }
.sx-btn { width: 100%; height: clamp(44px, 6.8vh, 54px); display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 22px; font: inherit; font-size: 16px; font-weight: 600; color: #fff; background: var(--ink); border: 0; border-radius: 999px; cursor: pointer; transition: background 0.25s, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s; }
.sx-btn i { font-style: normal; width: clamp(30px, 4.8vh, 38px); height: clamp(30px, 4.8vh, 38px); border-radius: 50%; background: var(--accent); display: grid; place-items: center; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.25s, color 0.25s; }
.sx-btn:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(255, 91, 20, 0.65); }
.sx-btn:hover i { background: #fff; color: var(--ink); transform: rotate(-35deg); }
.sx-btn:active { transform: scale(0.985); }
.sx-alt { margin: clamp(12px, 2.6vh, 22px) 0 0; font-size: 14.5px; color: #6b6861; text-align: center; }
.sx-alt a { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sx-alt a:hover { color: var(--accent-text); }
.sx-form > footer { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; color: #8b877f; }

/* Volet de marque */
.sx-art { position: relative; margin: 12px; border-radius: 30px; background: var(--ink); color: #b5b1a9; overflow: hidden; display: flex; flex-direction: column; padding: clamp(18px, 3.4vh, 34px) clamp(22px, 2.6vw, 40px); min-height: 0; }
.sx-ring { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, 0.13); animation: sxSpin 60s linear infinite; }
.sx-ring.a { width: 760px; height: 760px; right: -300px; top: -320px; }
.sx-ring.b { width: 460px; height: 460px; right: -150px; top: -170px; border-style: solid; border-color: rgba(255, 91, 20, 0.5); animation-duration: 90s; }
.sx-disc { position: absolute; width: 190px; height: 190px; border-radius: 50%; background: var(--accent); right: -40px; top: -50px; animation: sxFloat 7s ease-in-out infinite alternate; }
@keyframes sxSpin { to { transform: rotate(360deg); } }
@keyframes sxFloat { to { transform: translate(-14px, 16px) scale(1.06); } }
.sx-top { position: relative; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: #fff; }
.sx-top em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #ffb88f; box-shadow: inset 0 0 0 1px rgba(255, 91, 20, 0.6); border-radius: 999px; padding: 3px 10px; }
.sx-live { width: 8px; height: 8px; border-radius: 50%; background: #2fd58a; animation: sxPulse 1.8s infinite; }
@keyframes sxPulse { 0% { box-shadow: 0 0 0 0 rgba(47, 213, 138, 0.6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(47, 213, 138, 0); } }
.sx-feed { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: clamp(14px, 3vh, 28px) 0; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 80%, transparent 100%); }
.sx-col { min-height: 0; }
.sx-track { display: flex; flex-direction: column; gap: 14px; animation: sxUp 34s linear infinite; }
.sx-col + .sx-col .sx-track { animation-name: sxDown; animation-duration: 40s; }
.sx-art:hover .sx-track { animation-play-state: paused; }
@keyframes sxUp { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 7px)); } }
@keyframes sxDown { from { transform: translateY(calc(-50% - 7px)); } to { transform: translateY(0); } }
.sx-tx { display: flex; align-items: center; gap: 12px; background: #18181b; border-radius: 18px; padding: 15px 16px; font-size: 12.5px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.sx-tx > div { min-width: 0; flex: 1; }
.sx-tx b { display: block; color: #fff; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-tx > div > span { color: #8b877f; white-space: nowrap; }
.sx-tx .r { flex: none; text-align: right; }
.sx-tx .r b { font-family: var(--display); font-size: 15px; margin-bottom: 4px; }
.sx-tx .badge { font-size: 10.5px; }
.sx-tx .badge.succeeded { background: rgba(47, 213, 138, 0.16); color: #5ee6a8; }
.sx-tx .badge.pending { background: rgba(120, 170, 255, 0.16); color: #9ec0ff; }
.sx-tx .badge.refunded { background: rgba(255, 255, 255, 0.1); color: #c9c5bd; }
.sx-dot { width: 34px; height: 34px; border-radius: 11px; flex: none; background: rgba(47, 213, 138, 0.14); position: relative; }
.sx-dot::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #5ee6a8; font-weight: 700; font-size: 14px; }
.sx-dot.pending { background: rgba(120, 170, 255, 0.14); }
.sx-dot.pending::after { content: "…"; color: #9ec0ff; }
.sx-dot.refunded { background: rgba(255, 255, 255, 0.08); }
.sx-dot.refunded::after { content: "↩"; color: #c9c5bd; }
.sx-say { position: relative; }
.sx-say h2 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.3vw, 50px); line-height: 0.98; letter-spacing: -0.015em; word-spacing: 0.05em; color: #fff; margin: 0 0 clamp(10px, 2vh, 20px); }
.sx-say h2 em { font-style: normal; color: var(--accent); }
.sx-say ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; font-size: 14px; }
.sx-say li { display: flex; align-items: center; gap: 8px; }
.sx-say li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

@media (max-width: 1100px) { .sx-feed { grid-template-columns: 1fr; } .sx-col + .sx-col { display: none; } }
@media (max-width: 860px) {
  .sx { grid-template-columns: 1fr; }
  .sx-art { display: none; }
  .sx-two { grid-template-columns: 1fr; gap: 0; }
}
@media (max-height: 600px) { .sx-form > footer { display: none; } .sx-say ul { display: none; } }
@media (max-height: 560px) and (min-width: 861px) { .sx-sub { display: none; } .sx-form h1 { margin-bottom: 14px; } }
@media (max-width: 860px) and (max-height: 640px) { .sx { height: auto; min-height: 100dvh; overflow: visible; } }
@media (prefers-reduced-motion: reduce) { .sx-track, .sx-ring, .sx-disc, .sx-form > main { animation: none; } }
.sx-or { display: flex; align-items: center; gap: 14px; margin: clamp(10px, 2.2vh, 20px) 0 clamp(8px, 1.8vh, 14px); font-size: 13px; color: #8b877f; }
.sx-or::before, .sx-or::after { content: ""; flex: 1; height: 1px; background: #e7e3da; }
.sx-sso { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sx-sso a { display: flex; align-items: center; justify-content: center; gap: 8px; height: clamp(38px, 5.8vh, 46px); font-size: 14.5px; font-weight: 600; color: var(--ink); border-radius: 12px; box-shadow: inset 0 0 0 1.5px #e7e3da; white-space: nowrap; transition: box-shadow 0.2s, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s; }
.sx-sso a svg { flex: none; }
.sx-sso a > svg[stroke] { color: var(--accent); }
.sx-sso a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); color: var(--ink); background: #faf9f6; }
.sx-form .sx-sso + .sx-alt, .sx-alt { margin-top: clamp(10px, 2.2vh, 20px); }
@media (max-height: 600px) { .sx-form { padding-top: 14px; padding-bottom: 10px; } .sx-form .notice { font-size: 12.5px; padding: 7px 10px; margin-bottom: 8px; } }
@media (max-width: 420px) { .sx-sso a { font-size: 13px; gap: 6px; } }
/* Autres modes de connexion : empilés en pleine largeur dès que la hauteur le permet */
@media (min-height: 860px), (max-width: 860px) {
  .sx-sso { grid-template-columns: 1fr; gap: 10px; }
  .sx-sso a { height: 48px; font-size: 15.5px; gap: 10px; }
  .sx-or { margin: 22px 0 16px; font-size: 13.5px; }
  .sx-form .field { margin-bottom: 16px; }
  .sx-sub { margin-bottom: 22px; }
  .sx-check { margin-bottom: 18px !important; }
  .sx-form .sx-sso + .sx-alt, .sx-alt { margin-top: 20px; }
}

@media (max-width: 860px) { .sx { height: auto; min-height: 100dvh; overflow: visible; } .sx-form > main { padding: 28px 0; } }

/* Portefeuilles simulés : Apple Pay, Google Pay */
.wallets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 0; }
.wbtn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 48px; border: 0; border-radius: 12px; background: #0c0c0e; color: #fff; font: 600 19px/1 var(--display, system-ui), system-ui, sans-serif; letter-spacing: -0.01em; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
.wbtn:hover { transform: translateY(-1px); background: #1d1d21; box-shadow: 0 8px 20px rgba(12, 12, 14, 0.18); }
.wbtn:active { transform: translateY(0); }
.wbtn:focus-visible { outline: 2px solid #ff5b14; outline-offset: 2px; }
.wbtn svg { flex: none; }
.wor { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: #8a8a93; font-size: 13px; }
.wor::before, .wor::after { content: ''; flex: 1; height: 1px; background: #e7e4dd; }
.wsheet { border: 0; padding: 0; margin: auto; width: min(400px, calc(100vw - 24px)); border-radius: 24px; background: #fff; color: #0c0c0e; box-shadow: 0 40px 90px rgba(12, 12, 14, 0.35); overflow: hidden; }
.wsheet[open] { animation: wsRise 0.34s cubic-bezier(0.2, 0.9, 0.25, 1); }
.wsheet::backdrop { background: rgba(12, 12, 14, 0.55); backdrop-filter: blur(4px); }
.wsheet form { padding: 22px 22px 18px; margin: 0; }
.ws-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ws-logo { display: inline-flex; align-items: center; gap: 5px; font: 600 21px/1 var(--display, system-ui), system-ui, sans-serif; }
.ws-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f5f2ec; color: #0c0c0e; font-size: 20px; line-height: 1; cursor: pointer; }
.ws-x:hover { background: #ebe7df; }
.ws-card { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid #e7e4dd; border-radius: 16px; }
.ws-chip { flex: none; width: 46px; height: 31px; border-radius: 7px; background: linear-gradient(135deg, #0c0c0e 0%, #3a3a42 60%, #ff5b14 140%); }
.ws-card b { display: block; font-size: 15.5px; }
.ws-card small { color: #8a8a93; font-size: 13px; }
.ws-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 16px 2px 0; font-size: 14px; }
.ws-dl dt { color: #8a8a93; }
.ws-dl dd { margin: 0; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-total { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 2px 18px; padding-top: 16px; border-top: 1px solid #e7e4dd; font-size: 15px; }
.ws-total b { font: 600 26px/1 var(--display, system-ui), system-ui, sans-serif; letter-spacing: -0.02em; }
.ws-pay { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; border: 0; border-radius: 14px; background: #0c0c0e; color: #fff; font: 600 16px/1 inherit; font-family: inherit; cursor: pointer; transition: background 0.25s ease; }
.ws-pay:hover { background: #1d1d21; }
.ws-busy, .ws-ok { display: none; align-items: center; gap: 10px; }
.ws-busy i { width: 17px; height: 17px; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; border-radius: 50%; animation: wsSpin 0.7s linear infinite; }
.wsheet.busy .ws-idle { display: none; }
.wsheet.busy .ws-busy { display: inline-flex; }
.wsheet.busy .ws-pay { pointer-events: none; }
.wsheet.done .ws-busy { display: none; }
.wsheet.done .ws-ok { display: inline-flex; }
.wsheet.done .ws-pay { background: #12805c; }
.ws-note { margin: 12px 0 0; text-align: center; color: #8a8a93; font-size: 12.5px; }
@keyframes wsRise { from { opacity: 0; transform: translateY(26px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes wsSpin { to { transform: rotate(360deg); } }
@media (max-width: 560px) { .wsheet { margin: auto auto 12px; } }
@media (prefers-reduced-motion: reduce) { .wsheet[open] { animation: none; } .wbtn { transition: none; } }

/* Boutons portefeuilles v2 : proportions et typographie proches des boutons officiels */
.wallets { gap: 12px; }
.wbtn, .ws-logo { font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', Roboto, Arial, sans-serif; font-weight: 500; letter-spacing: -0.015em; }
.wbtn { height: 50px; gap: 4px; font-size: 22px; border-radius: 10px; background: #000; -webkit-font-smoothing: antialiased; }
.wbtn:hover { background: #18181b; }
.wbtn svg { width: 21px; height: 21px; }
.wbtn[data-wallet='apple'] svg { width: 20px; height: 20px; margin-top: -3px; }
.wbtn[data-wallet='google'] { gap: 6px; box-shadow: inset 0 0 0 1px #5f6368; }
.wbtn[data-wallet='google'] svg { width: 20px; height: 20px; }
.wbtn[data-wallet='google'] span { color: #fff; letter-spacing: 0; }
.ws-logo { font-size: 23px; gap: 4px; }
.ws-logo b { font-weight: 500; }
.ws-logo svg { width: 20px; height: 20px; }
#w-apple .ws-logo svg { margin-top: -3px; }
#w-google .ws-logo { gap: 6px; }

/* Page de paiement sur mobile : en-tête compact, montant centré, détail repliable, portefeuilles pleine largeur */
.co-tog { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.co-det, .co-mfoot { display: none; }
@media (max-width: 960px) {
  .co { background: #fff; }
  .co-left { background: #fff; overflow: visible; }
  .co-left .co-in { padding: 16px 20px 4px; }
  .co-merchant { margin-bottom: 30px; font-size: 15px; }
  .co-det { display: inline-flex; align-items: center; align-self: center; line-height: 1; gap: 6px; margin-left: auto; padding: 10px 0 10px 12px; color: #6b6b74; font-size: 14px; font-weight: 500; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .co-det svg { transition: transform 0.25s ease; }
  .co-in:has(.co-tog:checked) .co-det svg { transform: rotate(180deg); }
  .co-tog:focus-visible ~ .co-lines { outline: 2px solid #ff5b14; outline-offset: 2px; }
  .co-label { text-align: center; font-size: 15.5px; }
  .co-amount { text-align: center; font-size: 42px; margin: 4px 0 6px; }
  .co-lines { display: none; margin: 16px 0 4px; padding: 2px 16px; background: #f5f2ec; border-radius: 14px; }
  .co-tog:checked ~ .co-lines { display: block; animation: coDrop 0.28s ease; }
  .co-lines div:first-child { border-top: 0; }
  .co-right { box-shadow: none; }
  .co-right .co-in { padding: 22px 20px 28px; }
  .co-right .co-in h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }
  .wallets { grid-template-columns: 1fr; gap: 10px; margin: 0; }
  .wbtn { height: 48px; border-radius: 10px; }
  .wor { margin: 20px 0 16px; }
  .co-mfoot { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 26px; color: #8a8a93; font-size: 12.5px; }
  .co-mfoot .brand { font-size: 13px; color: #0c0c0e; }
  .co-mfoot .brand-mark { width: 16px; height: 16px; border-radius: 4px; box-shadow: none; }
  .co-mfoot .brand-mark::before { top: 4px; left: 4px; width: 8px; height: 2px; }
  .co-mfoot .brand-mark::after { top: 9px; left: 4px; width: 5px; height: 2px; }
  .co-mfoot i { width: 1px; height: 14px; background: #dcd8cf; }
}
@keyframes coDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Champs complémentaires */
textarea, input[type=date], input[type=tel] { width: 100%; font: inherit; font-size: 14px; color: var(--ink); background: #fff; border: 0; border-radius: 8px; padding: 9px 12px; box-shadow: 0 0 0 1px #dcd8cf, 0 1px 1px rgba(0, 0, 0, 0.03); outline: 0; transition: box-shadow 0.15s; }
textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
textarea:focus, input[type=date]:focus, input[type=tel]:focus { box-shadow: 0 0 0 1px rgba(255, 91, 20, 0.7), 0 0 0 4px rgba(255, 91, 20, 0.16); }
@media (max-width: 960px) { .co-in input, .kyc input, .kyc select, .kyc textarea, .cw-form input { font-size: 16px; } }

/* Dossier de vérification */
.kyc { max-width: 760px; }
.kyc-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #fff; border-radius: 14px; padding: 20px 22px; margin-bottom: 20px; box-shadow: inset 0 0 0 1.5px #ffd9c2, 0 8px 24px rgba(255, 91, 20, 0.07); }
.kyc-banner b { font-size: 15px; color: var(--ink); margin-right: 8px; }
.kyc-banner p { margin: 6px 0 12px; color: var(--muted); font-size: 13.5px; max-width: 560px; }
.kyc-banner .btn { flex: none; }
.kyc-bar { height: 6px; max-width: 360px; border-radius: 99px; background: #f1ede5; overflow: hidden; }
.kyc-bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); width: 4%; transition: width 0.4s ease; }
.kyc-bar i.w1 { width: 20%; } .kyc-bar i.w2 { width: 40%; } .kyc-bar i.w3 { width: 60%; } .kyc-bar i.w4 { width: 80%; } .kyc-bar i.w5 { width: 100%; }
.badge.kyc-draft, .badge.kyc-not_started, .badge.kyc-pending, .badge.kyc-expired { background: #f1ede5; color: #5c5a55; }
.badge.kyc-submitted, .badge.kyc-under_review, .badge.chat-waiting { background: #fff0e8; color: #c93f00; }
.badge.kyc-approved, .badge.chat-open { background: var(--ok-soft); color: var(--ok); }
.badge.kyc-rejected, .badge.kyc-suspended { background: #fef3d6; color: #8a5a00; }
.badge.chat-bot, .badge.chat-closed { background: #f1ede5; color: #5c5a55; }
.badge.chat-n { background: var(--ink); color: #fff; border-radius: 99px; padding: 1px 7px; }
.kyc-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 18px; counter-reset: none; }
.kyc-steps li { flex: 1; min-width: 0; }
.kyc-steps li > * { display: flex; align-items: center; gap: 8px; padding: 10px 0 0; border-top: 3px solid #e9e5dc; color: #8a8a93; font-size: 13px; font-weight: 500; text-decoration: none; }
.kyc-steps .n { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #f1ede5; color: #5c5a55; font-size: 12px; font-weight: 700; }
.kyc-steps .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kyc-steps li.on > * { border-color: var(--accent); color: var(--ink); font-weight: 700; }
.kyc-steps li.on .n { background: var(--accent); color: #fff; }
.kyc-steps li.done > * { border-color: var(--ink); color: var(--ink); }
.kyc-steps li.done .n { background: var(--ink); color: #fff; }
.kyc-card { padding: 28px; border-radius: 14px; }
.kyc-card > h2 { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.kyc-p { color: var(--muted); margin: 0 0 20px; font-size: 14px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.fgrid .field.full { grid-column: 1 / -1; }
.fgrid .field label, .fgrid .field .lbl { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.fgrid input, .fgrid select { height: 42px; }
.field.bad input, .field.bad select, .field.bad textarea, .field.bad .kyc-file { box-shadow: 0 0 0 1.5px #c9820a; }
.ferr { display: block; margin-top: 6px; font-size: 12.5px; color: #8a5a00; font-weight: 500; }
.kyc-file { display: flex !important; align-items: center; gap: 14px; padding: 16px; border-radius: 12px; background: #faf8f4; box-shadow: inset 0 0 0 1.5px #dcd8cf; cursor: pointer; transition: box-shadow 0.15s, background 0.15s; position: relative; margin: 0 !important; }
.kyc-file:hover { background: #fff7f1; box-shadow: inset 0 0 0 1.5px var(--accent); }
.kyc-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; height: auto; }
.kyc-file .ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 18px; }
.kyc-file b { display: block; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.kyc-file small { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.kyc-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.kyc-actions .btn { padding: 9px 18px; font-size: 14px; }
.kyc-sum { padding: 18px 0; border-top: 1px solid var(--line); }
.kyc-sum:first-of-type { border-top: 0; padding-top: 4px; }
.kyc-sum h3 { display: flex; justify-content: space-between; align-items: baseline; font-size: 14.5px; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.kyc-sum h3 a { font-size: 13px; font-weight: 600; color: var(--accent-text); }
.kyc-card.ro [data-edit] { display: none; }
.kyc-check { display: flex; gap: 12px; align-items: flex-start; padding: 16px; margin: 6px 0 4px; background: #faf8f4; border-radius: 12px; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.kyc-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: #ff5b14; flex: none; }
.adm-thread { display: flex; flex-direction: column; gap: 12px; }
.adm-msg { max-width: 76%; padding: 10px 14px; border-radius: 14px; background: #f5f2ec; }
.adm-msg p { margin: 2px 0 0; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.adm-msg .who { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.adm-msg.agent { align-self: flex-end; background: var(--ink); }
.adm-msg.agent p { color: #fff; } .adm-msg.agent .who { color: #b9b9c2; }
.adm-msg.bot { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 760px) {
  .kyc-banner { flex-direction: column; align-items: stretch; }
  .fgrid { grid-template-columns: 1fr; }
  .kyc-card { padding: 20px 16px; }
  .kyc-steps .t { display: none; } .kyc-steps li.on .t { display: inline; }
  .kyc-steps li > * { justify-content: flex-start; }
  .dl { grid-template-columns: 1fr; gap: 2px 0; } .dl dd { margin-bottom: 10px; }
}

/* Fenêtre d'assistance */
.cw { position: fixed; right: 20px; bottom: 20px; z-index: 900; font-family: "Satoshi", system-ui, sans-serif; }
.cw-launch { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; background: #0c0c0e; color: #fff; cursor: pointer; box-shadow: 0 10px 28px rgba(12, 12, 14, 0.28); transition: transform 0.2s ease, background 0.2s ease; }
.cw-launch:hover { transform: translateY(-2px) scale(1.04); background: #ff5b14; }
.cw-launch i { position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%; background: #ff5b14; box-shadow: 0 0 0 3px #fff; transform: scale(0); transition: transform 0.2s; }
.cw-launch.new i { transform: scale(1); }
.cw.open .cw-launch { transform: scale(0.9); }
.cw-panel { position: absolute; right: 0; bottom: 70px; width: 372px; max-width: calc(100vw - 24px); height: min(560px, calc(100dvh - 110px)); display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(12, 12, 14, 0.28), 0 0 0 1px rgba(12, 12, 14, 0.06); animation: cwIn 0.26s cubic-bezier(0.2, 0.9, 0.25, 1); }
.cw-panel[hidden] { display: none; }
.cw-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 16px 20px; background: #0c0c0e; color: #fff; }
.cw-title b { color: #fff; display: block; font-family: var(--display, inherit); font-size: 16.5px; font-weight: 600; }
.cw-title span { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #c9c9d1; margin-top: 2px; }
.cw-title span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #ff5b14; }
.cw-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.cw-close:hover { background: rgba(255, 255, 255, 0.2); }
.cw-list { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #faf8f4; }
.cw-msg { max-width: 84%; align-self: flex-start; animation: cwMsg 0.22s ease; }
.cw-msg p { margin: 0; padding: 10px 13px; border-radius: 4px 16px 16px 16px; background: #fff; color: #0c0c0e; font-size: 14px; line-height: 1.45; box-shadow: 0 1px 2px rgba(12, 12, 14, 0.06); white-space: pre-wrap; overflow-wrap: anywhere; }
.cw-who { display: block; font-size: 11px; font-weight: 700; color: #8a8a93; margin: 0 0 3px 4px; letter-spacing: 0.02em; }
.cw-msg.visitor { align-self: flex-end; }
.cw-msg.visitor p { background: #0c0c0e; color: #fff; border-radius: 16px 16px 4px 16px; }
.cw-msg.agent p { background: #fff0e8; box-shadow: inset 0 0 0 1px #ffd9c2; }
.cw-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px; background: #faf8f4; }
.cw-chips:not(:empty) { padding-bottom: 12px; }
.cw-chips button { border: 0; border-radius: 99px; padding: 7px 12px; background: #fff; color: #0c0c0e; font: 500 12.5px/1.2 inherit; font-family: inherit; box-shadow: inset 0 0 0 1px #dcd8cf; cursor: pointer; }
.cw-chips button:hover { box-shadow: inset 0 0 0 1.5px #ff5b14; }
.cw-agent { border: 0; border-top: 1px solid #ece8df; background: #fff; padding: 11px; color: #c93f00; font: 600 13px/1 inherit; font-family: inherit; cursor: pointer; }
.cw-agent:hover { background: #fff7f1; }
.cw-agent[hidden] { display: none; }
.cw-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #ece8df; background: #fff; }
.cw-form input { flex: 1; min-width: 0; height: 42px; border: 0; border-radius: 12px; padding: 0 14px; background: #f5f2ec; font: inherit; font-size: 14px; color: #0c0c0e; outline: 0; box-shadow: none; }
.cw-form input:focus { box-shadow: inset 0 0 0 1.5px #ff5b14; background: #fff; }
.cw-form button { flex: none; height: 42px; border: 0; border-radius: 12px; padding: 0 16px; background: #ff5b14; color: #fff; font: 700 13.5px/1 inherit; font-family: inherit; cursor: pointer; }
.cw-form button:hover { background: #e64a05; }
@keyframes cwIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes cwMsg { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .cw { right: 14px; bottom: 14px; }
  .cw-panel { position: fixed; right: 8px; left: 8px; bottom: 8px; width: auto; max-width: none; height: min(620px, calc(100dvh - 16px)); }
  .cw.open .cw-launch { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cw-panel, .cw-msg { animation: none; } }

/* Modules PSP : soldes, ledger, conformité */
.bal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.bal .kpi .v { font-size: 20px; }
.bal-cur { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--neutral); margin: 4px 0 8px; }
.num-pos { color: var(--ok); }
.num-neg { color: var(--warn); }
.mini { font-size: 12px; color: var(--neutral); }
.stack { display: grid; gap: 16px; }
.form-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.form-inline > div { min-width: 140px; flex: 1; }
.form-inline label { display: block; font-size: 12px; margin-bottom: 4px; color: var(--neutral); }
.tag { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: #f1ede5; color: #5c5a55; margin: 0 4px 4px 0; }
.legal { border-left: 3px solid var(--ink); padding: 8px 12px; background: #faf8f4; margin: 8px 0; font-size: 13px; }
pre.json { white-space: pre-wrap; word-break: break-word; font-size: 12px; background: #faf8f4; padding: 12px; border-radius: 6px; max-height: 420px; overflow: auto; }
@media (max-width: 900px) { .bal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.badge.risk_blocked, .badge.risk_rejected, .badge.HIGH, .badge.restricted { background: var(--warn-soft); color: var(--warn); }
.badge.risk_review_pending, .badge.MEDIUM { background: #fff0e8; color: #c93f00; }
.badge.risk_cleared, .badge.LOW { background: var(--ok-soft); color: var(--ok); }
.badge.superseded { background: #f1ede5; color: #5c5a55; }

.w2, .form-inline > .w2 { flex: 2 1 0; min-width: 220px; }
.w3, .form-inline > .w3 { flex: 3 1 0; min-width: 260px; }
.cell-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
table.t td .cell-stack { align-items: flex-end; text-align: right; }
.pad { padding: 12px 16px; }
.pad-x { padding: 0 16px 12px; }
.card.flush > p.mini { margin-top: 8px; }
.kyc-steps .t { font-size: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; min-width: 260px; max-width: 520px; white-space: normal; }
.tags .tag { margin: 0; }
form.decide { display: grid; gap: 6px; min-width: 260px; }
form.decide input { width: 100%; }
@media (max-width: 960px) {
  .side .acct { flex: none; }
  .app .content { padding-bottom: 112px; }
  .cw-launch { width: 44px; height: 44px; }
  .kyc-steps li:not(.on) .t { display: none; }
  .kyc-steps li.on { flex: 3; }
  table.t td .tags { min-width: 0; max-width: none; justify-content: flex-end; }
  table.t td form.decide { min-width: 0; width: 100%; }
  .form-inline > div, .form-inline > .w2, .form-inline > .w3 { flex: 1 1 100%; min-width: 0; }
  .form-inline input, .form-inline select { max-width: 100%; }
  table.t td form.inline, table.t td .form-inline { justify-content: flex-end; }
}
