/* HAITIM — feuille de style unique.
   Jetons repris du kit « EasyPay Wallet » (même système de design que l'application mobile) :
   bleu #2563EB, vert canard #164951, vert #87E64B, texte #111827, contrôles de 56 px, rayon 16, police Inter. */

@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(../fonts/inter-400Regular.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(../fonts/inter-500Medium.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(../fonts/inter-600SemiBold.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(../fonts/inter-700Bold.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(../fonts/inter-800ExtraBold.woff2) format("woff2"); }

:root {
  --primary: #2563EB; --primary-dark: #1D4ED8; --primary-soft: #EFF4FF; --primary-border: #BFD3FE;
  --teal: #164951; --teal-dark: #0F3439; --accent: #87E64B; --accent-soft: #EFFDEA;
  --text: #111827; --text-2: #4B5563; --muted: #6B7280; --faint: #9CA3AF;
  --border: #E5E7EB; --surface: #F9FAFB; --bg: #FFFFFF; --bg-subtle: #F5F7FB;
  --success: #22C55E; --success-text: #15803D; --success-soft: #ECFDF3;
  --warning: #FACC15; --warning-text: #A16207; --warning-soft: #FEFCE8;
  --error: #F75555; --error-text: #DC2626; --error-soft: #FEF2F2;
  --r-sm: 10px; --r: 16px; --r-lg: 24px; --pill: 999px;
  --control: 56px; --gutter: 24px;
  --shadow: 0 4px 24px rgba(17, 24, 39, .06); --shadow-lg: 0 12px 40px rgba(17, 24, 39, .10);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.2vw, 48px); }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }
p, dl { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--primary-border); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: none; display: inline-block; vertical-align: -0.18em; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 14px; } .caption { font-size: 12px; }
.strong { font-weight: 600; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px } .mt-4 { margin-top: 32px } .mt-6 { margin-top: 48px }
.mb-1 { margin-bottom: 8px } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px }
.row { display: flex; align-items: center; gap: 12px; } .row-wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 16px; } .stack-sm > * + * { margin-top: 8px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 480px) { :root { --gutter: 16px; } }

/* ---------- Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: .02em; }
.logo:hover { text-decoration: none; }
.logo img { height: 36px; width: auto; }

/* ---------- Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--control); padding: 0 24px;
  border-radius: var(--r); border: 1.5px solid transparent; font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .05s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-teal { background: var(--teal); color: #fff; } .btn-teal:hover { background: var(--teal-dark); }
.btn-accent { background: var(--accent); color: var(--teal-dark); } .btn-accent:hover { filter: brightness(.95); }
.btn-outline { background: #fff; border-color: var(--border); color: var(--text); } .btn-outline:hover { border-color: var(--primary-border); color: var(--primary); }
.btn-soft { background: var(--primary-soft); color: var(--primary); } .btn-soft:hover { background: #E2EBFF; }
.btn-ghost { background: transparent; color: var(--primary); padding: 0 12px; }
.btn-light { background: #fff; color: var(--text); } .btn-light:hover { background: #F3F4F6; }
.btn-on-dark { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); } .btn-on-dark:hover { background: rgba(255,255,255,.2); }
.btn-danger { background: #fff; color: var(--error-text); border-color: #FECACA; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--pill);
  border: 1px solid var(--border); background: #fff; color: var(--text); cursor: pointer; position: relative; }
.icon-btn:hover { border-color: var(--primary-border); color: var(--primary); text-decoration: none; }
.dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--error); border: 2px solid #fff; }

/* ---------- Formulaires */
.field { margin-bottom: 20px; }
.field > label, .label { display: block; font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .ic { position: absolute; left: 18px; color: var(--muted); pointer-events: none; }
.input, select.input, textarea.input { width: 100%; min-height: var(--control); padding: 14px 18px; border-radius: var(--r); border: 1.5px solid var(--border);
  background: var(--surface); font-size: 16px; transition: border-color .15s, box-shadow .15s, background .15s; -webkit-appearance: none; appearance: none; }
.input-wrap .ic + .input { padding-left: 50px; }
textarea.input { min-height: 140px; resize: vertical; line-height: 1.5; }
.input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-soft); }
.input::placeholder { color: var(--faint); }
.field.has-error .input { border-color: var(--error); background: #fff; }
.help { font-size: 12px; color: var(--muted); margin-top: 6px; }
.error-text { font-size: 13px; color: var(--error-text); margin-top: 6px; display: flex; gap: 6px; align-items: flex-start; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236B7280' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 48px; }
.code-input { letter-spacing: .5em; text-align: center; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; padding-left: .5em; }
.segmented { display: flex; gap: 8px; flex-wrap: wrap; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--pill); border: 1.5px solid var(--border);
  background: #fff; font-weight: 500; font-size: 14px; cursor: pointer; margin: 0; }
.segmented input:checked + label { background: var(--primary); border-color: var(--primary); color: #fff; }
.segmented input:focus-visible + label { box-shadow: 0 0 0 4px var(--primary-soft); }
.check-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: #D1D5DB; border-radius: 999px; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 4px var(--primary-soft); }

/* ---------- Cartes, listes */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.card-elevated { border: none; box-shadow: var(--shadow); }
.card-subtle { background: var(--surface); border-color: transparent; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-title h3 { font-size: 18px; }
.list { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.list-subtle { background: var(--surface); border-color: transparent; }
.item { display: flex; align-items: center; gap: 14px; padding: 16px 20px; color: var(--text); text-decoration: none; min-height: 72px; }
.item + .item { border-top: 1px solid var(--border); }
a.item:hover { background: var(--surface); text-decoration: none; }
.item-main { flex: 1; min-width: 0; }
.item-title { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.item-sub { font-size: 13px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.item-end { text-align: right; flex: none; }
.item-end .amount { font-weight: 700; font-size: 15px; white-space: nowrap; }
.item .chev { color: var(--faint); }
@media (max-width: 420px) {
  .item { flex-wrap: wrap; }
  .item-end { text-align: left; flex-basis: 100%; padding-left: 58px; margin-top: -6px; }
  .item.no-wrap { flex-wrap: nowrap; } .item.no-wrap .item-end { flex-basis: auto; padding-left: 0; margin-top: 0; text-align: right; }
}
.bubble { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: var(--primary-soft); color: var(--primary); }
.bubble-lg { width: 64px; height: 64px; } .bubble-xl { width: 80px; height: 80px; }
.bubble-success { background: var(--success-soft); color: var(--success-text); }
.bubble-warning { background: var(--warning-soft); color: var(--warning-text); }
.bubble-error { background: var(--error-soft); color: var(--error-text); }
.bubble-teal { background: var(--teal); color: #fff; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; flex: none; }
.ent-logo { width: 48px; height: 48px; border-radius: 14px; object-fit: contain; background: #fff; border: 1px solid var(--border); flex: none; }
.detail { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-size: 15px; }
.detail + .detail { border-top: 1px solid var(--border); }
.detail dt, .detail .k { color: var(--muted); }
.detail dd, .detail .v { margin: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.detail.total .v, .detail.total .k { font-weight: 700; color: var(--text); font-size: 16px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 32px 0 14px; gap: 12px; }
.section-title h2, .section-title h3 { font-size: 18px; font-weight: 700; }
.section-title a { font-size: 14px; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }

/* ---------- Pastilles, bandeaux, états */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--pill); font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-soft); color: var(--success-text); }
.badge-warning { background: var(--warning-soft); color: var(--warning-text); }
.badge-error { background: var(--error-soft); color: var(--error-text); }
.badge-info { background: var(--primary-soft); color: var(--primary); }
.badge-neutral { background: #F3F4F6; color: var(--text-2); }
.badge-demo { background: var(--warning-soft); color: var(--warning-text); }
.badge-demo::before { display: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--pill); border: 1.5px solid var(--border);
  background: #fff; color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: var(--primary-border); text-decoration: none; }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); font-size: 14px; line-height: 1.45; margin-bottom: 16px; }
.banner .ic { margin-top: 1px; }
.banner-info { background: var(--primary-soft); color: #1E40AF; }
.banner-success { background: var(--success-soft); color: var(--success-text); }
.banner-warning { background: var(--warning-soft); color: #854D0E; }
.banner-error { background: var(--error-soft); color: #B91C1C; }
.banner-offline { background: #FFF7ED; color: #9A3412; }
.banner-sandbox { background: repeating-linear-gradient(-45deg, #FEF9C3, #FEF9C3 12px, #FEF08A 12px, #FEF08A 24px); color: #713F12; font-weight: 600; }
.empty { text-align: center; padding: 40px 24px; }
.empty .bubble { margin: 0 auto 16px; }
.empty h3 { font-size: 17px; }
.empty p { color: var(--muted); font-size: 14px; margin-top: 6px; max-width: 360px; margin-left: auto; margin-right: auto; }
.amount-xl { font-size: clamp(32px, 6vw, 44px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; overflow-wrap: anywhere; }
.amount-lg { font-size: 28px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sandbox-strip { background: #FEF08A; color: #713F12; font-size: 13px; font-weight: 600; text-align: center; padding: 6px 12px; }

/* Étapes du suivi de paiement */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--border); }
.steps li:last-child::before { display: none; }
.steps .mark { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border); background: #fff; flex: none; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.steps li.done .mark { background: var(--success); border-color: var(--success); color: #fff; }
.steps li.done::before { background: var(--success); }
.steps li.current .mark { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.steps li.current .mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.steps .t { font-weight: 600; font-size: 15px; } .steps li.todo .t { color: var(--faint); }
.steps .d { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- En-tête et pied du site public */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.site-nav { display: flex; gap: 4px; margin-left: 16px; }
.site-nav a { padding: 10px 14px; border-radius: 12px; color: var(--text-2); font-weight: 500; font-size: 15px; }
.site-nav a:hover, .site-nav a.active { color: var(--primary); background: var(--primary-soft); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; color: var(--text-2); font-weight: 500; font-size: 14px; }
.lang-switch:hover { background: var(--surface); text-decoration: none; }
.menu-toggle { display: none; }
.mobile-nav { display: none; }
@media (max-width: 960px) {
  .site-nav, .header-actions .hide-m { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav.open { display: block; border-top: 1px solid var(--border); padding: 12px var(--gutter) 20px; background: #fff; }
  .mobile-nav a { display: flex; padding: 14px 4px; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--border); }
  .mobile-nav .btn { margin-top: 12px; }
}
.site-footer { background: var(--teal); color: rgba(255,255,255,.75); margin-top: 96px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding: 56px 0 40px; }
.footer-grid h4 { color: #fff; margin-bottom: 14px; font-size: 15px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; } .footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Accueil public */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, #DBE7FF 0%, rgba(219,231,255,0) 60%), linear-gradient(180deg, #F5F8FF 0%, #fff 100%); }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); margin-top: 20px; max-width: 560px; }
.hero .actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.trust { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 32px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.trust span { display: inline-flex; gap: 8px; align-items: center; } .trust .ic { color: var(--success); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--pill); background: #fff; border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--teal); margin-bottom: 20px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.phone { position: relative; margin: 0 auto; width: min(340px, 100%); background: var(--teal); border-radius: 40px; padding: 14px; box-shadow: var(--shadow-lg); }
.phone-screen { background: #fff; border-radius: 28px; overflow: hidden; }
.phone-top { background: linear-gradient(135deg, #3B82F6, #1D4ED8); color: #fff; padding: 22px 20px 26px; }
.phone-top .small { opacity: .85; }
.phone-body { padding: 16px; }
.phone .mini { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface); margin-bottom: 10px; font-size: 14px; }
.phone .mini b { margin-left: auto; font-size: 14px; }
.float-card { position: absolute; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 12px 16px; display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; }
.float-1 { left: -24px; bottom: 80px; } .float-2 { right: -18px; top: 70px; }
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 56px; }
  .float-1 { left: -8px; } .float-2 { right: -6px; }
}
.section { padding: 88px 0 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--text-2); margin-top: 12px; font-size: 17px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid-4, .grid-2 { grid-template-columns: 1fr; } }
.grid-2 > *, .grid-4 > * { min-width: 0; } /* un champ fichier ne doit pas élargir la colonne */
.input[type="file"] { max-width: 100%; }
.step-card { background: var(--surface); border-radius: var(--r-lg); padding: 28px 24px; }
.step-card .num { width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 18px; }
.step-card h3 { font-size: 18px; } .step-card p { color: var(--text-2); font-size: 15px; margin-top: 8px; }
.cat-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--border); background: #fff; color: var(--text); font-weight: 600; }
.cat-card:hover { border-color: var(--primary-border); box-shadow: var(--shadow); text-decoration: none; }
.cat-card .n { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 13px; }
.ent-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--border); background: #fff; color: var(--text); height: 100%; }
.ent-card:hover { border-color: var(--primary-border); box-shadow: var(--shadow); text-decoration: none; }
.ent-card .top { display: flex; gap: 12px; align-items: center; }
.ent-card p { color: var(--muted); font-size: 14px; flex: 1; }
.band { background: var(--teal); color: #fff; border-radius: 32px; padding: 56px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.band p { color: rgba(255,255,255,.8); margin-top: 14px; font-size: 17px; }
.band::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; right: -120px; bottom: -160px; background: rgba(135,230,75,.18); }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; padding: 36px 24px; border-radius: 24px; } }
.sec-card { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--border); }
.sec-card .bubble { margin-bottom: 18px; } .sec-card p { color: var(--text-2); font-size: 15px; margin-top: 8px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s; color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 0 20px; color: var(--text-2); }
.cta-final { text-align: center; padding: 64px 24px; border-radius: 32px; background: linear-gradient(135deg, #3B82F6, #1D4ED8); color: #fff; }
.cta-final p { color: rgba(255,255,255,.85); margin: 12px auto 28px; }
.page-head { padding: 56px 0 32px; background: linear-gradient(180deg, #F5F8FF 0%, #fff 100%); }
.page-head p { color: var(--text-2); margin-top: 10px; font-size: 17px; max-width: 640px; }
.prose { max-width: 760px; } .prose p + p { margin-top: 14px; }

/* ---------- Pages d'authentification */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 1fr) minmax(420px, 1fr); }
.auth-brand { background: linear-gradient(160deg, #1E3A8A 0%, #2563EB 55%, #3B82F6 100%); color: #fff; padding: 40px 56px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-brand::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -140px; bottom: -140px; background: rgba(135,230,75,.16); }
.auth-brand .pitch { margin: auto 0; max-width: 460px; position: relative; z-index: 1; }
.auth-brand h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; }
.auth-brand p { color: rgba(255,255,255,.85); margin-top: 16px; font-size: 17px; }
.auth-brand ul { list-style: none; padding: 0; margin: 28px 0 0; } .auth-brand li { display: flex; gap: 10px; margin-bottom: 12px; align-items: center; }
.auth-brand li .ic { color: var(--accent); }
.auth-main { display: flex; flex-direction: column; padding: 32px var(--gutter); }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auth-card { width: 100%; max-width: 440px; margin: auto; padding: 40px 0; }
.auth-card h1 { font-size: 30px; }
.auth-card .sub { color: var(--muted); margin: 8px 0 32px; }
.auth-foot { text-align: center; color: var(--muted); font-size: 14px; }
.auth-mobile-logo { display: none; }
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-mobile-logo { display: inline-flex; }
  .auth-card { padding: 24px 0; margin-top: 8px; }
}
.sandbox-sms { white-space: pre-line; border: 2px dashed #EAB308; background: #FEFCE8; border-radius: var(--r); padding: 14px 16px; font-size: 14px; color: #713F12; margin-bottom: 20px; }
.sandbox-sms b { font-size: 18px; letter-spacing: .1em; }

/* ---------- Espace client */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 264px 1fr; background: var(--bg-subtle); }
.sidebar { background: #fff; border-right: 1px solid var(--border); padding: 24px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.sidebar .logo { padding: 0 8px 24px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; color: var(--text-2); font-weight: 500; margin-bottom: 4px; position: relative; }
.side-nav a:hover { background: var(--surface); text-decoration: none; color: var(--text); }
.side-nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.side-nav .count { margin-left: auto; background: var(--error); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.side-foot { margin-top: auto; border-top: 1px solid var(--border); padding-top: 16px; }
.side-user { display: flex; gap: 12px; align-items: center; padding: 8px; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 16px 32px; background: rgba(245,247,251,.9); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 40; }
.topbar .page-title { font-size: 20px; font-weight: 700; }
.topbar .actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.app-content { width: 100%; max-width: 1040px; padding: 8px 32px 64px; }
.app-content.narrow { max-width: 720px; }
.tabbar { display: none; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-weight: 500; font-size: 14px; margin-bottom: 12px; }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { padding: 12px var(--gutter); background: rgba(255,255,255,.95); border-bottom: 1px solid var(--border); }
  .topbar .page-title { font-size: 17px; }
  .app-content { padding: 16px var(--gutter) calc(96px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: #fff; border-top: 1px solid var(--border);
    padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; color: var(--muted); font-size: 11.5px; font-weight: 500; }
  .tabbar a.active { color: var(--primary); } .tabbar a:hover { text-decoration: none; }
}
.hide-desktop { display: none; }
@media (max-width: 900px) { .hide-desktop { display: inline-flex; } .hide-mobile { display: none !important; } }

/* Tableau de bord */
.dash-hero { background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%); color: #fff; border-radius: var(--r-lg); padding: 28px; position: relative; overflow: hidden; }
.dash-hero::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -80px; top: -110px; background: rgba(255,255,255,.08); }
.dash-hero .label-on-dark { color: rgba(255,255,255,.8); font-size: 14px; }
.dash-hero .amount-xl { color: #fff; margin-top: 4px; }
.dash-hero .badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.dash-hero .badge { background: rgba(255,255,255,.16); color: #fff; }
.dash-hero .btn { margin-top: 22px; }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }
.fav-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.fav-row::-webkit-scrollbar { display: none; }
.fav { flex: none; width: 104px; text-align: center; color: var(--text); font-size: 13px; font-weight: 500; }
.fav .bubble { width: 56px; height: 56px; margin: 0 auto 8px; }
.fav:hover { text-decoration: none; color: var(--primary); }

/* Paiement */
.method { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r); border: 1.5px solid var(--border); background: #fff; cursor: pointer; margin-bottom: 12px; position: relative; }
.method:hover { border-color: var(--primary-border); }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #D1D5DB; flex: none; margin-left: auto; position: relative; }
.method input:checked ~ .radio { border-color: var(--primary); }
.method input:checked ~ .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--primary); }
.method:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.method input:focus-visible ~ .radio { box-shadow: 0 0 0 4px var(--primary-soft); }
.method.disabled { opacity: .6; cursor: not-allowed; background: var(--surface); }
.method .fee { font-size: 13px; color: var(--muted); }
.method .fee.free { color: var(--success-text); font-weight: 500; }
.summary-box { background: var(--surface); border-radius: var(--r); padding: 18px 20px; text-align: center; }
.pay-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.pay-aside { position: sticky; top: 96px; }
@media (max-width: 1000px) { .pay-layout { grid-template-columns: 1fr; } .pay-aside { position: static; } }
.status-hero { text-align: center; padding: 8px 0 20px; }
.status-hero .bubble { margin: 0 auto 16px; }
.status-hero .state { font-weight: 600; margin-bottom: 6px; }
.receipt { max-width: 560px; margin: 0 auto; background: #fff; border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow); }
.receipt-cut { border-top: 2px dashed var(--border); margin: 24px -32px; position: relative; }
.receipt-cut::before, .receipt-cut::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-subtle); }
.receipt-cut::before { left: -12px; } .receipt-cut::after { right: -12px; }
.qr-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-top: 20px; overflow-wrap: anywhere; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 18px; font-size: 15px; margin-bottom: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-me { margin-left: auto; background: var(--primary); color: #fff; border-bottom-right-radius: 6px; }
.msg-agent { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.msg .meta { font-size: 11px; opacity: .75; margin-top: 6px; }
.sim-card { border: 2px dashed #EAB308; }

/* ---------- Impression (reçus) */
@media print {
  .sidebar, .topbar, .tabbar, .toolbar, .site-header, .site-footer, .no-print, .sandbox-strip, .flash-area { display: none !important; }
  .app-shell { display: block; background: #fff; }
  .app-content { padding: 0; max-width: none; }
  .receipt { box-shadow: none; padding: 0; max-width: none; }
  .receipt-cut::before, .receipt-cut::after { display: none; }
  body { background: #fff; }
}

/* ---------- Ajustements petits écrans (vérifiés à 320 et 390 px) */
.btn { white-space: normal; text-align: center; line-height: 1.25; }
.badge { white-space: normal; line-height: 1.3; overflow-wrap: normal; word-break: normal; }
.detail dd, .detail .v { overflow-wrap: break-word; }
.receipt .row, .row-wrap { flex-wrap: wrap; }
.row-wrap > .grow { min-width: 200px; }
.section-title.lg h2 { font-size: clamp(22px, 3vw, 32px); }
@media (max-width: 600px) {
  .float-2 { display: none; }
  .float-1 { bottom: -14px; left: 12px; }
  .receipt { padding: 22px 18px; }
  .receipt-cut { margin: 20px -18px; }
  .card { padding: 20px; }
  .item { padding: 14px 16px; gap: 12px; }
}

/* ---------- Inscription : onglets, téléphone avec indicatif, consentement */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: #F3F4F6; border-radius: var(--r); margin-bottom: 24px; }
.tab { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 12px; color: var(--text-2); font-weight: 600; font-size: 15px; }
.tab:hover { text-decoration: none; color: var(--text); }
.tab.active { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(17,24,39,.1); }
.grid-2.gap-sm { gap: 0 14px; }
@media (max-width: 420px) { .grid-2.gap-sm { grid-template-columns: 1fr; } }
.phone-input { display: flex; align-items: stretch; border: 1.5px solid var(--border); border-radius: var(--r); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.phone-input:focus-within { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-soft); }
.phone-input .dial { display: flex; align-items: center; padding: 0 14px 0 18px; font-weight: 600; color: var(--text); border-right: 1.5px solid var(--border); min-width: 64px; justify-content: center; font-variant-numeric: tabular-nums; }
.phone-input .input { border: none; background: transparent; box-shadow: none !important; min-width: 0; }
.field.has-error .phone-input { border-color: var(--error); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--primary); }
.field.has-error .consent input { outline: 2px solid var(--error); outline-offset: 1px; }

/* ---------- Portail entreprise et console */
.app-content.wide { max-width: 1180px; }
.space-tag { display: inline-flex; align-items: center; gap: 6px; margin: -12px 8px 14px; padding: 4px 10px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 12px; font-weight: 600; align-self: flex-start; }
.ent-name { margin: 0 8px 16px; font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.ent-switch { margin: 0 4px 16px; } .ent-switch .input { min-height: 44px; padding: 8px 40px 8px 14px; font-size: 14px; }
.admin-tabs { display: none; }
@media (max-width: 900px) {
  .admin-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px var(--gutter); background: #fff; border-bottom: 1px solid var(--border); scrollbar-width: none; }
  .admin-tabs::-webkit-scrollbar { display: none; }
  .admin-tabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .admin-tabs a:last-child { margin-right: 22px; }
  .admin-tabs a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 500; }
  .admin-tabs a.active { background: var(--primary); color: #fff; }
  .admin-shell .app-content { padding-bottom: 48px; }
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat .money-line { white-space: nowrap; }
@media (max-width: 600px) { .stat.stat-wide { grid-column: span 2; } }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
.stat .k { font-size: 13px; color: var(--muted); font-weight: 500; } .stat .v { font-size: 26px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat.accent { background: var(--teal); border-color: var(--teal); color: #fff; } .stat.accent .k { color: rgba(255,255,255,.75); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; font-size: 14px; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 12px 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; overflow-wrap: anywhere; }
.table tr:last-child td { border-bottom: none; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .mono, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
@media (max-width: 760px) {
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table { border: none; background: transparent; }
  .table tr { background: #fff; border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 12px; padding: 6px 0; }
  .table td { border: none; padding: 6px 16px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table td::before { content: attr(data-label); font-weight: 600; color: var(--muted); font-size: 12px; text-align: left; flex: none; max-width: 45%; }
  .table td.num { white-space: normal; }
  .table td > .cell { min-width: 0; overflow-wrap: break-word; }
}
.toolbar-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar-row .grow { min-width: 200px; }
.code-block { background: #0F172A; color: #E2E8F0; border-radius: var(--r); padding: 16px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; overflow-x: auto; white-space: pre; line-height: 1.55; max-width: 100%; }
.secret-box { border: 2px dashed var(--success); background: var(--success-soft); border-radius: var(--r); padding: 14px 16px; font-size: 14px; }
.secret-box code { display: block; margin-top: 8px; font-size: 14px; word-break: break-all; font-weight: 700; color: var(--text); }
.mode-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .mode-cards { grid-template-columns: 1fr; } }
.mode-card { border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 20px; background: #fff; }
.mode-card.current { border-color: var(--primary); background: var(--primary-soft); }
.mode-card h4 { display: flex; align-items: center; gap: 8px; } .mode-card p { font-size: 14px; color: var(--text-2); margin-top: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
fieldset.box { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; margin: 0 0 20px; background: #fff; min-width: 0; }
fieldset.box legend { font-weight: 700; padding: 0 8px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; margin-bottom: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; }

/* ---------- Assistant d'intégration (console) */
.wiz-steps { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 12px; margin-bottom: 8px; scrollbar-width: thin; }
.wiz-step { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--surface);
  color: var(--text-2); font-size: 14px; font-weight: 500; text-decoration: none; border: 1px solid var(--border); }
.wiz-step .n { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  border: 1px solid var(--border); font-size: 12px; font-weight: 700; }
.wiz-step.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.wiz-step.current .n { color: var(--primary); border-color: #fff; }
@media (min-width: 900px) { .wiz-steps { flex-wrap: wrap; overflow: visible; } }
.wiz-step.disabled { pointer-events: none; opacity: .55; }
.field-row legend { font-weight: 600; }
.check.muted { color: var(--muted); }

/* Choix de la langue (v1.10) */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; cursor: pointer; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 50; min-width: 150px; background: var(--card, #fff); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 24px rgba(17, 24, 39, .12); padding: 6px; display: flex; flex-direction: column; }
.lang-menu-list a { padding: 10px 12px; border-radius: 8px; color: var(--text); font-size: 14px; }
.lang-menu-list a:hover { background: var(--surface); text-decoration: none; }
.lang-menu-list a[aria-current] { font-weight: 600; color: var(--primary); }
.footer-langs a + a { margin-left: 12px; }

/* Pages publiques : tarifs et textes juridiques (v1.11) */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.check-list li svg { flex: none; margin-top: 2px; color: var(--primary); }
.table-wrap { width: 100%; overflow-x: auto; }
.legal-doc h2 { font-size: 20px; margin: 28px 0 8px; }
.legal-doc .lead { font-size: 17px; color: var(--text); }
.legal-doc dl.detail { margin-top: 8px; }
