:root {
  --orange: #F7870F;
  --orange-d: #E07408;
  --navy: #0A1F4D;
  --ink: #0A1F4D;
  --paper: #F3F6FE;
  --card: #FFFFFF;
  --line: #DCE3F4;
  --mute: #3F4F7C;
  --ok: #17855A;
  --bad: #B3261E;
  --warn-bg: #FDE9D2;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #E9F0FF 0, #F6F9FF 320px, #FFFFFF 900px); background-color: #fff; color: var(--ink);
  font: 16px/1.5 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; max-width: 1040px; width: 100%; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand img { border-radius: 50%; }
.banner { display: block; width: 100%; height: auto; border-radius: 18px; margin: 0 auto 16px; max-width: 480px; }
@media (min-width: 880px) { .banner { max-width: 720px; } }

main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 8px 16px 32px; }
.foot { text-align: center; color: var(--mute); font-size: .8125rem; padding: 16px 20px 24px; max-width: 520px; margin: 0 auto; }

h1 { font-size: clamp(1.5rem, 5vw, 1.875rem); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 8px; }
h2 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 12px; }
p { margin: 0 0 12px; }
.lead { color: var(--mute); margin-bottom: 20px; }
.muted { color: var(--mute); margin-bottom: 2px; font-size: .9375rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.vendor-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 480px); justify-content: center; }
.vendor-grid.has-result { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 880px) {
  .vendor-grid.has-result { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); align-items: start; }
}

/* Champs */
.field { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--mute); }
input[type=text], input[type=tel], select {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid #CFC8BE; border-radius: 12px;
  background: #fff; color: var(--ink); font: inherit;
}
textarea { width: 100%; padding: 12px 14px; border: 1px solid #CFC8BE; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; resize: vertical; min-height: 120px; }
textarea:focus, input:focus { border-color: var(--ink); outline: 3px solid rgba(255, 121, 0, .35); outline-offset: 0; }
input[aria-invalid=true] { border-color: var(--bad); }
select { appearance: auto; padding-right: 10px; }
.expiry { text-align: center; color: var(--mute); font-size: .875rem; margin: -8px 0 16px; }
.suffix { position: relative; }
.suffix input { padding-right: 64px; font-variant-numeric: tabular-nums; }
.suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--mute); font-weight: 600; font-size: .875rem; pointer-events: none; }
.hint { color: var(--mute); font-size: .8125rem; margin: 6px 0 0; }
.err { color: var(--bad); font-size: .875rem; margin: 6px 0 0; min-height: 0; }
.err:empty { display: none; }
.secret { -webkit-text-security: disc; letter-spacing: .2em; font-variant-numeric: tabular-nums; }

/* Boutons */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; color: var(--ink);
  transition: background-color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--orange); }
.btn.primary:hover { background: var(--orange-d); }
.btn.secondary { background: #fff; border-color: #CFC8BE; }
.btn.secondary:hover { border-color: var(--ink); }
.btn.ghost { background: transparent; color: var(--mute); }
.btn.ghost:hover { color: var(--ink); }
.btn.block { display: flex; width: 100%; }
.btn.big { min-height: 56px; font-size: 1.0625rem; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: .875rem; }
.btn:disabled { background: #EEE9E2; color: #8C847A; border-color: transparent; cursor: not-allowed; transform: none; }
.block + .block { margin-top: 10px; }
.linkish { display: block; margin: 14px auto 0; padding: 4px; background: none; border: 0; color: var(--mute); font: inherit; font-size: .8125rem; text-decoration: underline; cursor: pointer; }

.notice { background: var(--warn-bg); border: 1px solid #F5CFA6; border-radius: 12px; padding: 10px 14px; font-size: .875rem; margin: 16px 0 0; }

/* Résultat vendeur */
.summary { text-align: center; font-weight: 600; margin-bottom: 16px; overflow-wrap: anywhere; }
.copyrow { display: flex; gap: 8px; margin-bottom: 12px; }
.copyrow input { min-width: 0; font-size: .875rem; color: var(--mute); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.actions .btn { padding: 0 10px; font-size: .9375rem; }
.actions .btn.primary { grid-column: 1 / -1; }
.actions .btn:last-child:nth-child(even) { grid-column: 1 / -1; }

/* Vue client */
.pay-card { max-width: 480px; margin: 0 auto; padding: 28px 24px; }
.pay-card h1 { overflow-wrap: anywhere; margin-bottom: 16px; }
.amount { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; font-weight: 800; letter-spacing: -0.03em; font-size: clamp(2.5rem, 13vw, 3.75rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.amount small { font-size: 1.125rem; letter-spacing: 0; color: var(--mute); font-weight: 700; }
.desc { color: var(--mute); overflow-wrap: anywhere; }
.desc:empty { display: none; }

.route { display: flex; align-items: center; gap: 0; margin: 24px 0 8px; }
.node { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; flex: none; background: var(--paper); }
.wire { position: relative; flex: 1; height: 2px; background: var(--line); margin: 0 6px; }
.wire i { position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--orange); animation: travel 1.4s cubic-bezier(.6, 0, .2, 1) .4s both; }
.wire::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform-origin: left; animation: fill 1.4s cubic-bezier(.6, 0, .2, 1) .4s both; }
@keyframes travel { from { left: 0; } to { left: calc(100% - 10px); } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.route-label { display: flex; justify-content: space-between; gap: 12px; color: var(--mute); font-size: .8125rem; margin-bottom: 24px; }
.route-label span:last-child { text-align: right; overflow-wrap: anywhere; }

.fine { display: flex; gap: 8px; align-items: flex-start; color: var(--mute); font-size: .8125rem; margin: 14px 0 0; }
.fine .ic { width: 16px; height: 16px; margin-top: 2px; }

#step-3 h2, #step-4 h2 { margin-top: 4px; }

.center { text-align: center; }
.foot p { margin: 0 0 8px; }
.foot strong { color: var(--ink); }

/* Compte à rebours de la session */
.timer { display: flex; align-items: center; gap: 8px; font-size: .9375rem; margin-bottom: 8px; }
.timer .ic { color: var(--orange-d); }
.timer strong { margin-left: auto; font-size: 1.5rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 16px; }
.bar i { display: block; height: 100%; width: 100%; background: var(--orange); transition: width .5s linear; }

/* Confirmation par SMS */
.verdict { border-radius: 12px; padding: 14px; margin: 14px 0 6px; border: 1px solid var(--line); }
.verdict[hidden] { display: none; }
.verdict p { margin: 4px 0 0; font-size: .9375rem; }
.verdict.ok { background: #EAF6F0; border-color: #A9D8C2; }
.verdict.warn { background: var(--warn-bg); border-color: #F5CFA6; }
.verdict.bad { background: #FCEDEB; border-color: #F0B9B4; }

/* Suivi vendeur */
.state { font-weight: 700; margin: 8px 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.state:empty { display: none; }
.state.ok { background: #EAF6F0; border-color: #A9D8C2; }
.state.warn { background: var(--warn-bg); border-color: #F5CFA6; }
.proofs, .recent { list-style: none; margin: 0 0 8px; padding: 0; }
.proofs li { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.proof-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.badge { font-size: .8125rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.badge.ok { background: #D5EFE3; color: #0F5C3E; }
.badge.warn { background: #FFE6CC; color: #8A4300; }
.why { font-size: .875rem; color: var(--mute); margin-bottom: 8px; }
.sms { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: .875rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--paper); border-radius: 8px; padding: 10px; }
.recent li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.recent li:last-child { border-bottom: 0; }
.recent li span { display: flex; flex-direction: column; min-width: 0; }
.recent small { color: var(--mute); overflow-wrap: anywhere; }

/* Choix de l'opérateur */
.modal { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; background: rgba(27, 23, 19, .55); padding: 0; }
.modal[hidden] { display: none; }
.sheet { width: 100%; max-width: 480px; background: var(--card); border-radius: 20px 20px 0 0; padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); animation: rise .2s ease-out; }
.sheet h2 { margin-top: 0; }
.ops { display: grid; gap: 12px; margin-bottom: 8px; }
.btn.op-moov { color: #fff; }
.btn.op-orange { background: var(--orange); }
.btn.op-orange:hover { background: var(--orange-d); }
.btn.op-moov { background: #0B5CAD; }
.btn.op-moov:hover { background: #084A8C; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 560px) { .modal { align-items: center; padding: 20px; } .sheet { border-radius: 20px; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: .9375rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); z-index: 10; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .wire::after { transform: none; }
  .wire i { left: calc(100% - 10px); }
}

.choose { font-weight: 600; margin: 4px 0 10px; }

/* Passage obligatoire par l'application Android */
.gate { display: grid; gap: 10px; background: var(--warn-bg); border: 1px solid #F5CFA6; border-radius: 14px; padding: 14px; margin: 8px 0 12px; }
.gate p { margin: 0; }
.gate[hidden] { display: none; }
.small-note { font-size: .8125rem; }

/* Capture d'écran de confirmation */
.or { display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: .875rem; margin: 20px 0 16px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.shot-title { margin: 0 0 4px; font-size: 1.0625rem; }
.shot-help { margin: 0 0 12px; color: var(--mute); font-size: .9375rem; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
label.btn { cursor: pointer; }
.shot-preview { display: block; max-width: 100%; max-height: 280px; margin: 0 auto 12px; border-radius: 10px; border: 1px solid var(--line); }
.shot-preview[hidden], #shot-box[hidden], #send-shot[hidden] { display: none; }
#send-shot { margin-top: 10px; }
.proof-shot { margin: 8px 0 0; }
.proof-shot img { display: block; width: 100%; max-height: 420px; object-fit: contain; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(0, 0, 0, .92); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }

.hint-warn { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); border: 1px solid #F5CFA6; color: var(--ink); font-size: .875rem; }
.hint-warn .ic { width: 16px; height: 16px; margin-top: 2px; flex: none; color: var(--orange-d); }

/* Photo / logo du vendeur */
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: var(--paper); flex: none; }
.avatar.empty { display: inline-flex; align-items: center; justify-content: center; color: var(--muted, #777); }
.avatar.empty .ic { width: 24px; height: 24px; }
.avatar[hidden], .avatar.empty[hidden] { display: none; }
.big-avatar { width: 84px; height: 84px; display: block; margin: 4px 0 8px; }
.photo-row { display: flex; align-items: center; gap: 14px; }
.photo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.payer-field { margin-bottom: 14px; }

.op.selected { outline: 3px solid var(--ink); outline-offset: 2px; }
.auto { margin: 16px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.auto.bad { background: #FCEDEB; border: 1px solid var(--bad); border-left-width: 6px; color: #7A1712; }
.auto.bad .auto-title { color: var(--bad); }
.auto.bad p.muted { color: #7A1712; }
.auto.ok { background: #EAF6F0; border: 1px solid var(--ok); border-left-width: 6px; color: #0F5C3E; }
.auto.ok .auto-title { color: var(--ok); }
.auto.ok p.muted { color: #0F5C3E; }
.auto-title { margin: 0 0 4px; font-weight: 700; }
.auto p.muted { margin: 0; }
.detail { margin: 4px 0 0; font-size: .875rem; word-break: break-word; }

/* Abonnement du vendeur */
.sub-card h2 { margin-bottom: 8px; }
.sub-status { font-weight: 700; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.sub-status.ok { background: #EAF6F0; border-color: #A9D8C2; color: #0F5C3E; }
.sub-status.bad { background: #FDECEA; border-color: #F2B8B3; color: var(--bad); }
.sub-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 0 0 12px; }
.sub-facts div { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.sub-facts dt { color: var(--mute); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.sub-facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.sub-card .hint { margin: 0 0 12px; }
.sub-card .hint:empty { display: none; }


/* ===== Habillage MAYA-PAY (maquette) : logo, bannière, Montserrat, bleu nuit + orange ===== */
button, input, select, textarea { font-family: inherit; }

/* En-tête : menu + logo */
.top { max-width: none; margin: 0; padding: 10px max(16px, calc((100% - 1040px) / 2)); justify-content: flex-start; gap: 14px; background: #fff; box-shadow: 0 2px 14px rgba(10, 31, 77, .08); position: relative; z-index: 5; }
.brand img { display: block; height: 46px; width: auto; border-radius: 0; }
.menu-btn { flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--navy); display: grid; place-items: center; cursor: pointer; }
.menu-btn .ic { width: 32px; height: 32px; stroke-width: 3; }
.menu-btn:hover { background: var(--paper); }
.menu { position: absolute; z-index: 30; top: calc(env(safe-area-inset-top) + 66px); left: 12px; min-width: 250px; max-width: calc(100% - 24px); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 40px rgba(10, 31, 77, .18); padding: 8px; display: grid; gap: 2px; }
.menu[hidden] { display: none; }
.menu a, .menu-install { display: block; padding: 12px 14px; border-radius: 12px; color: var(--navy); font-weight: 600; text-decoration: none; text-align: left; background: none; border: 0; font-size: 1rem; cursor: pointer; }
.menu a:hover, .menu-install:hover { background: var(--paper); }
.menu-install { color: var(--orange-d); }

/* Bannière pleine largeur */
main { padding-top: 0; }
.banner { width: calc(100% + 32px); max-width: none; margin: 0 -16px 18px; border-radius: 0 0 28px 28px; }
@media (min-width: 880px) { .banner { width: 100%; max-width: 760px; margin: 18px auto 20px; border-radius: 28px; } }

/* Cartes */
.card { border-radius: 24px; border-color: #E3E9F7; box-shadow: 0 10px 30px rgba(10, 31, 77, .07); }
.vendor-main { display: grid; gap: 18px; align-content: start; min-width: 0; }
@media (min-width: 880px) { .vendor-grid.has-result > .vendor-main { grid-row: span 2; } }
.vendor-grid.has-result > #recent-box { grid-column: auto; }

/* Carte d'accueil : titre + Sarali */
.hero-card { padding: 18px 14px 16px; }
.hero-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; padding: 0 4px; }
.hero-ic { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(10, 31, 77, .25); }
.hero-ic .ic { width: 34px; height: 34px; stroke-width: 2.4; }
.hero-card h1 { font-size: clamp(1.3rem, 6vw, 1.7rem); font-weight: 700; color: var(--navy); margin: 6px 0 6px; }
.hero-rule { display: block; width: 60px; height: 3px; border-radius: 2px; background: var(--orange); margin-bottom: 10px; }
.hero-card .lead { margin: 0; font-size: .95rem; line-height: 1.5; color: #1D3170; }

.sarali-title { display: flex; align-items: center; gap: 10px; background: #FEEFE4; border-radius: 18px; padding: 12px 16px; margin-bottom: 8px; }
.sarali-title .ic { width: 30px; height: 30px; color: var(--orange); stroke: none; }
.sarali-title h2 { margin: 0; font-size: 1.3rem; font-weight: 700; color: var(--navy); }

.sarali-banner { display: grid; grid-template-columns: minmax(0, 1.25fr) 76px minmax(0, 1fr); align-items: center; gap: 8px; padding: 12px 16px; border-radius: 20px; color: #fff; background: linear-gradient(95deg, #FF7302 0%, #FE8702 100%); margin-bottom: 8px; }
.sarali-banner p { margin: 0; font-weight: 700; line-height: 1.25; }
.sb-left { font-size: 1.02rem; }
.sb-right { font-size: 1.02rem; font-weight: 600 !important; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .6); }
.sb-art { width: 76px; height: 76px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.steps li { position: relative; display: flex; flex-direction: column; background: #F3F6FE; border: 1px solid #E3E9F7; border-radius: 18px; overflow: hidden; }
.step-n { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .8rem; display: grid; place-items: center; z-index: 1; }
.step-art { padding: 36px 6px 6px; display: grid; place-items: center; }
.step-art svg { width: 100%; max-width: 76px; height: auto; }
.steps p { margin: 0; flex: 1; background: #EEF2FC; padding: 8px 6px 10px; font-size: .7rem; line-height: 1.35; text-align: center; color: var(--navy); }
@media (max-width: 420px) { .steps { gap: 6px; } .steps p { font-size: .64rem; padding: 8px 4px 10px; } .sarali-banner { padding: 10px 12px; grid-template-columns: minmax(0, 1.2fr) 62px minmax(0, 1fr); } .sb-art { width: 62px; height: 62px; } .sb-left, .sb-right { font-size: .9rem; } }
@media (min-width: 640px) { .steps p { font-size: .8rem; } .step-art svg { max-width: 96px; } }

/* Formulaire vendeur */
.vendor-form { padding: 0 4px; }
.vendor-form .field { margin-bottom: 18px; }
label { color: var(--navy); font-weight: 700; font-size: 1.02rem; }
label .lic { display: inline-block; vertical-align: -6px; margin-right: 10px; width: 26px; height: 26px; color: var(--orange); }
label .opt { font-weight: 500; color: var(--mute); }
.inp { position: relative; }
.inp > .gic, .inp > .opicon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.inp > .gic { width: 30px; height: 30px; color: #6B7BA3; stroke-width: 2.2; }
.inp > .opicon { width: 34px; height: 34px; }
.inp input { padding-left: 58px; }
input[type=text], input[type=tel], select { height: 58px; border: 2px solid #D3DCF1; border-radius: 18px; font-size: 1.02rem; color: var(--navy); box-shadow: 0 1px 0 rgba(10, 31, 77, .03); }
input::placeholder { color: #7A89B0; }
input:focus, select:focus { border-color: var(--navy); outline: 3px solid rgba(247, 135, 15, .35); outline-offset: 0; }
.hint { color: var(--mute); }
.hint-warn { padding: 12px 14px; border-radius: 16px; background: #FDE9D2; border: 1px solid #F5C48A; color: var(--navy); font-size: .98rem; line-height: 1.45; margin-top: 10px; }
.hint-warn .ic { width: 26px; height: 26px; margin-top: 2px; color: var(--orange); }
.hint-warn strong { color: var(--navy); }

/* Boutons */
.btn { border-radius: 16px; font-family: inherit; }
.btn.primary { background: linear-gradient(95deg, #FF7302, #FE8702); color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .15); box-shadow: 0 8px 18px rgba(247, 135, 15, .3); }
.btn.primary:hover { background: linear-gradient(95deg, #EE6A00, #F27F00); }
.btn.secondary { border-color: #CBD6F2; color: var(--navy); }
.btn.secondary:hover { border-color: var(--navy); }
.btn:disabled { text-shadow: none; box-shadow: none; }
.btn.op-orange { background: linear-gradient(95deg, #FF7302, #FE8702); color: #fff; }
.btn.op-moov { background: #1B5EAB; }
.btn.op-moov:hover { background: #154C8C; }
.avatar { border-color: #D3DCF1; }

/* Abonnement : même charte */
.sub-card { padding: 20px 18px; }
.sub-card h2 { color: var(--navy); }

/* Pied de page : vague bleu nuit + liseré orange */
.foot { max-width: none; margin: 36px 0 0; padding: 40px 24px calc(24px + env(safe-area-inset-bottom)); background: var(--navy); color: #C9D3EE; border-radius: 50% 50% 0 0 / 26px 26px 0 0; box-shadow: 0 -8px 0 var(--orange); position: relative; }
.foot p { max-width: 560px; margin-left: auto; margin-right: auto; }
.foot strong { color: #fff; }

/* Ajustements d'échelle (maquette 424 px) */
.brand img { height: 40px; }
.hero-ic { width: 52px; height: 52px; }
.hero-ic .ic { width: 28px; height: 28px; }
.hero-card h1 { font-size: clamp(1.1rem, 5.2vw, 1.6rem); margin: 2px 0 6px; }
.hero-card .lead { font-size: .84rem; }
.hero-head { gap: 12px; }
.sarali-title h2 { font-size: 1.1rem; }
.sarali-title .ic { width: 26px; height: 26px; }
.sarali-banner { grid-template-columns: minmax(0, 1.5fr) 58px minmax(0, 1fr); gap: 8px; padding: 10px 14px; }
.sb-left { font-size: .82rem; }
.sb-right { font-size: .78rem; padding-left: 10px; }
.sb-art { width: 58px; height: 58px; }
.steps p { font-size: .66rem; }
@media (min-width: 640px) { .sb-left { font-size: 1.05rem; } .sb-right { font-size: 1rem; } .hero-card .lead { font-size: 1rem; } }

.consent { display: flex; gap: 12px; align-items: flex-start; text-align: left; background: #fff; border: 1.5px solid var(--line); border-left: 4px solid var(--orange); border-radius: 12px; padding: 14px 14px 14px 12px; margin: 6px 0 8px; transition: border-color .15s; }
.consent input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--orange); cursor: pointer; }
.consent label { display: block; cursor: pointer; font-weight: 400; }
.consent .c-main { display: block; font-weight: 700; font-size: .9375rem; line-height: 1.35; color: var(--ink); margin-bottom: 4px; }
.consent .c-sub { display: block; font-size: .8125rem; line-height: 1.45; color: var(--mute); }
.consent a { color: var(--orange-d); font-weight: 600; }
.consent:has(input:checked) { border-color: var(--ok); background: #F2FBF6; }
.consent:has(+ #e-consent:not(:empty)) { border-color: var(--bad); border-left-color: var(--bad); background: #FFF6F5; }
#e-consent { margin: 0 0 10px; }
.initiates { margin: 4px 0 18px; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-size: .875rem; line-height: 1.4; }
.initiates .ic { color: var(--orange-d); width: 18px; height: 18px; }
.consent .c-body { flex: 1; min-width: 0; }
.consent .c-more { margin-top: 6px; font-size: .8125rem; color: var(--mute); }
.consent .c-more summary { cursor: pointer; color: var(--orange-d); font-weight: 600; list-style: none; padding: 4px 0; }
.consent .c-more summary::-webkit-details-marker { display: none; }
.consent .c-more summary::after { content: " ▾"; }
.consent .c-more[open] summary::after { content: " ▴"; }
.consent .c-more p { margin: 4px 0 0; line-height: 1.45; }
.consent .c-saved { margin: 6px 0 0; font-size: .75rem; color: var(--ok); font-weight: 600; }


/* ===== Attente du SMS : « Gardez votre téléphone allumé ! » ===== */
.auto { display: flex; gap: 14px; align-items: flex-start; }
.auto-body { flex: 1; min-width: 0; }
.auto-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: none; align-items: center; justify-content: center; background: #1E1E21; color: #F2C75C; }
.auto-ic .ic { width: 24px; height: 24px; }
.auto.wait { background: linear-gradient(135deg, #1E1E21, #2B2620); border-color: #5A4A24; color: #fff; box-shadow: 0 0 0 1px rgba(242, 199, 92, .15), 0 10px 30px -12px rgba(242, 199, 92, .45); }
.auto.wait .auto-ic { display: inline-flex; background: rgba(242, 199, 92, .14); animation: ring 1.8s ease-out infinite; }
.auto.wait .auto-title { font-size: 1.25rem; line-height: 1.25; color: #F2C75C; letter-spacing: -.01em; }
.auto.wait p.muted { color: #D9D2C6; font-size: .9375rem; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(242, 199, 92, .55); } 100% { box-shadow: 0 0 0 16px rgba(242, 199, 92, 0); } }

/* ===== Détecteur compact ===== */
.scan { position: relative; display: flex; align-items: center; gap: 14px; text-align: left; margin: 4px 0 14px; padding: 12px 16px; border-radius: 16px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #171B22 0%, #0F1217 100%); border: 1px solid #2A313C; box-shadow: 0 8px 22px -14px rgba(10, 31, 77, .55), inset 0 1px 0 rgba(255, 255, 255, .04); }
.scan[hidden] { display: none; }
.radar { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 199, 92, .12), rgba(242, 199, 92, 0) 70%);
  box-shadow: 0 0 0 1.5px rgba(242, 199, 92, .4), 0 0 16px rgba(242, 199, 92, .22), inset 0 0 10px rgba(0, 0, 0, .55); }
.radar i, .radar span { position: absolute; }
.rg { border: 1px solid rgba(242, 199, 92, .26); border-radius: 50%; }
.rg1 { inset: 8%; } .rg3 { inset: 30%; border-color: rgba(242, 199, 92, .45); }
.sweep { inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(242, 199, 92, 0) 0deg, rgba(242, 199, 92, 0) 250deg, rgba(242, 199, 92, .5) 345deg, rgba(255, 233, 160, .9) 360deg); animation: spin 2.4s linear infinite; -webkit-mask: radial-gradient(circle, #000 98%, transparent 100%); mask: radial-gradient(circle, #000 98%, transparent 100%); }
@keyframes spin { to { transform: rotate(360deg); } }
.blip { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: #7CF2B8; box-shadow: 0 0 8px #7CF2B8; opacity: 0; animation: blip 2.4s ease-in-out infinite; }
.b1 { left: 72%; top: 28%; animation-delay: .3s; } .b2 { left: 30%; top: 72%; animation-delay: 1.3s; }
@keyframes blip { 0%, 100% { opacity: 0; transform: scale(.5); } 15% { opacity: 1; transform: scale(1.3); } 45% { opacity: 0; transform: scale(2); } }
.core { left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #1E1E21; color: #F2C75C; box-shadow: 0 0 0 1.5px rgba(242, 199, 92, .6), 0 0 10px rgba(242, 199, 92, .45); animation: pulse 1.6s ease-in-out infinite; }
.core .ic { width: 13px; height: 13px; }
@keyframes pulse { 50% { transform: scale(1.1); box-shadow: 0 0 0 1.5px rgba(242, 199, 92, .9), 0 0 14px rgba(242, 199, 92, .7); } }
.scan-body { min-width: 0; flex: 1; }
.scan-label { margin: 0; font-size: .9375rem; font-weight: 700; line-height: 1.3; letter-spacing: .01em; color: #F2C75C; }
.scan-sub { margin: 2px 0 0; font-size: .75rem; line-height: 1.35; color: #A9B1BD; }
.scan-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 40%; background: linear-gradient(90deg, transparent, #F2C75C, transparent); animation: slide 2s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.dots::after { content: ''; animation: dots 1.4s steps(4, end) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75%, 100% { content: '...'; } }

/* ===== Reçu : opération réussie ===== */
.receipt { position: relative; margin: 6px 0 14px; padding: 26px 20px 20px; text-align: center; color: #fff; border-radius: 22px; overflow: hidden;
  background: radial-gradient(circle at 50% -10%, rgba(40, 190, 120, .28), rgba(40, 190, 120, 0) 55%), linear-gradient(180deg, #1c1f26, #12141a);
  border: 1px solid transparent; background-clip: padding-box; box-shadow: 0 0 0 1px rgba(242, 199, 92, .45), 0 18px 40px -16px rgba(0, 0, 0, .55); animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.receipt[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.rc-medal { position: relative; width: 96px; height: 96px; margin: 0 auto 12px; }
.rc-check { position: relative; width: 96px; height: 96px; }
.rc-check circle { fill: #1FB873; stroke: #7CF2B8; stroke-width: 2; filter: drop-shadow(0 0 10px rgba(31, 184, 115, .7)); transform-origin: center; animation: pop .5s .1s cubic-bezier(.3, 1.6, .5, 1) both; }
.rc-check path { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .5s ease-out forwards; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.rc-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(31, 184, 115, .55); animation: out 2.2s ease-out infinite; }
.rc-ring.r2 { animation-delay: 1.1s; }
@keyframes out { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.rc-spark { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #F2C75C; opacity: 0; animation: spark 2.4s ease-out infinite; }
.rc-spark.s1 { left: 4px; top: 14px; } .rc-spark.s2 { right: 2px; top: 22px; animation-delay: .5s; } .rc-spark.s3 { left: 14px; bottom: 2px; animation-delay: 1s; } .rc-spark.s4 { right: 10px; bottom: 6px; animation-delay: 1.5s; }
@keyframes spark { 0% { opacity: 0; transform: scale(0); } 25% { opacity: 1; transform: scale(1.4); } 60%, 100% { opacity: 0; transform: translateY(-14px) scale(.4); } }
.rc-title { margin: 0 0 2px; font-size: 1.5rem; letter-spacing: -.02em; }
.rc-sub { margin: 0 0 14px; color: #9EE6C2; font-weight: 600; }
.rc-to { margin: 0; font-size: .8125rem; color: #A9B1BD; }
.rc-merchant { margin: 2px 0 6px; font-size: 1.125rem; font-weight: 700; }
.rc-amount { margin: 0 0 16px; font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #FFE9A0, #E0A93A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 14px; text-align: left; border-top: 1px solid #2D3440; border-bottom: 1px solid #2D3440; }
.rc-col { padding: 12px 10px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rc-col + .rc-col { border-left: 1px solid #2D3440; }
.rc-k { font-size: .75rem; color: #A9B1BD; text-transform: uppercase; letter-spacing: .06em; }
.rc-v { overflow-wrap: anywhere; font-size: .9375rem; }
.rc-s { font-size: .8125rem; color: #F2C75C; }
.rc-status { margin: 0; font-weight: 700; color: #7CF2B8; }
.rc-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #1FB873; box-shadow: 0 0 8px #1FB873; vertical-align: 0; }
.rc-date { margin: 2px 0 14px; font-size: .8125rem; color: #A9B1BD; }
.rc-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 10px 2px 14px; font-size: .75rem; color: #8B93A0; border-top: 1px dashed #2D3440; }
.rc-btn { margin-top: 8px; }
.receipt .btn.secondary { background: transparent; color: #fff; border: 1px solid #4A5160; }
@media (prefers-reduced-motion: reduce) {
  .scan-bar, .sweep, .blip, .core, .rc-ring, .rc-spark, .auto.wait .auto-ic, .dots::after { animation: none; }
  .blip { opacity: .7; } .dots::after { content: '...'; }
  .rc-check path { stroke-dashoffset: 0; animation: none; } .receipt, .rc-check circle { animation: none; }
}
