/* ADMOV Ads Manager : système de design « Vibrant Pulse ». Sombre par défaut, variante claire. Polices hébergées sur le site. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jakarta"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/jakarta-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jakarta"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/jakarta-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Jakarta", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --red: #ff3b30; --yellow: #ffcc00; --amber: #ffb800; --green: #00e599;
  --blue: #0099ff; --blue-d: #0b7fd6; --link: #0b7fd6;
  --bg: #f3f5fa; --bg2: #e9eef6; --surface: #ffffff; --surface2: #f5f7fb; --field: #ffffff;
  --text: #0f172a; --muted: #5b6478; --line: #dfe5ef; --line2: rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px -8px rgba(15, 23, 42, .12); --glass: rgba(255, 255, 255, .82);
  --ok: #00915f; --okbg: #e3f8ef; --warn: #d92d20; --warnbg: #fdecea; --infobg: #e6f3ff; --amber-t: #a86400; --amberbg: #fff4dc;
  --glow: 0 8px 24px -4px rgba(0, 153, 255, .45);
  --radius: 16px; --ease: cubic-bezier(.2, .8, .2, 1);
  --side-w: 272px; --top-h: 68px;
}
html[data-theme="dark"] {
  --link: #4db8ff; --blue-d: #4db8ff;
  --bg: #0b0d13; --bg2: #0e121b; --surface: #131722; --surface2: #1a2030; --field: #0e121b;
  --text: #f8fafc; --muted: #94a3b8; --line: #222b3d; --line2: rgba(255, 255, 255, .06);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 12px 32px -8px rgba(0, 0, 0, .6); --glass: rgba(19, 23, 34, .78);
  --ok: #00e599; --okbg: rgba(0, 229, 153, .12); --warn: #ff5a4f; --warnbg: rgba(255, 59, 48, .13); --infobg: rgba(0, 153, 255, .13);
  --amber-t: #ffb800; --amberbg: rgba(255, 184, 0, .12);
}
* { box-sizing: border-box; }
/* Taille de base du texte (toute la plateforme) : 13 px. Toutes les tailles sont en rem et suivent. */
html { font-size: 13px; color-scheme: light; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
/* Téléphones : champs à 16 px pour éviter le zoom automatique d'iPhone à la saisie */
@media (hover: none) and (pointer: coarse) { input, select, textarea, .input input, .input select { font-size: 16px; } }
html[data-theme="dark"] { color-scheme: dark; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; transition: background .3s, color .3s; }
a { color: var(--link); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -.015em; }
h1 { font-size: clamp(1.65rem, 5vw, 2.25rem); line-height: 1.15; margin: 0 0 .35rem; font-weight: 800; letter-spacing: -.03em; }
.num, .tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" on, "cv05" on; }
.ic { width: 20px; height: 20px; flex: none; }
.page { position: relative; min-height: 100dvh; display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
::selection { background: rgba(0, 153, 255, .3); }

/* Transitions entre pages + apparition */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .22s ease both; } ::view-transition-new(root) { animation: vtIn .38s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-8px); } } @keyframes vtIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes fadeIn { from { opacity: 0; } } @keyframes fadeOut { to { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { *, ::before, ::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Logos */
.logo { height: auto; display: block; } .logo.small { width: 112px; } .logo.hero-logo { width: 220px; margin: 0 auto 6px; }
html[data-theme="dark"] .logo-for-light, html[data-theme="light"] .logo-for-dark { display: none; }


/* ---------- Boutons, puces ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 20px; border-radius: 10px;
  font: 600 .95rem/1 var(--font); border: 1px solid transparent; cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s, color .2s; }
.btn:active { transform: translateY(1px) scale(.98); } .btn .ic { width: 18px; height: 18px; }
.btn.primary { color: #fff; background: var(--blue); box-shadow: var(--glow); }
.btn.primary:hover { background: #1aa3ff; box-shadow: 0 10px 30px -4px rgba(0, 153, 255, .6); transform: translateY(-1px); }
.btn.ghost { color: var(--text); background: var(--surface2); border-color: var(--line); } .btn.ghost:hover { border-color: var(--blue); }
.btn.soft { color: var(--text); background: rgba(127, 140, 170, .1); border-color: transparent; } .btn.soft:hover { background: rgba(127, 140, 170, .18); }
.btn.green { color: #002112; background: var(--green); box-shadow: 0 8px 24px -6px rgba(0, 229, 153, .5); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: .82rem; border-radius: 9px; }
.btn.block { width: 100%; margin-top: 6px; } .btn[disabled] { opacity: .7; cursor: progress; }
.btn.busy::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.danger { color: #fff; background: var(--red); box-shadow: 0 8px 22px -6px rgba(255, 59, 48, .5); } .btn.ghost.alt { color: var(--warn); }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: 600 .82rem/1 var(--font); cursor: pointer; text-decoration: none !important; transition: background .2s, border-color .2s, transform .15s; }
.chip:hover { border-color: var(--blue); } .chip:active { transform: scale(.95); } .chip.icon-only { width: 38px; padding: 0; justify-content: center; }
.chip.danger { color: var(--warn); } .chip .ic { width: 18px; height: 18px; }
html[data-theme="dark"] .when-dark, html[data-theme="light"] .when-light { display: inline-flex; }
html[data-theme="dark"] .when-light, html[data-theme="light"] .when-dark { display: none; }
.lang-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line); }
.lang-seg a, .lang-seg span { display: grid; place-items: center; min-width: 34px; height: 30px; padding: 0 8px; border-radius: 7px; font: 700 .74rem/1 var(--font); color: var(--muted); text-decoration: none !important; }
.lang-seg .on { background: var(--blue); color: #fff; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font: 700 .68rem/1.2 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.tag.blue { background: var(--infobg); color: var(--blue-d); } .tag.green { background: var(--okbg); color: var(--ok); } .tag.amber { background: var(--amberbg); color: var(--amber-t); }
.tag .dot, .pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; } .dot.live { animation: pulse 1.6s infinite; }
.overline { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 700 .7rem/1.3 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-d); }

/* ---------- Formulaires ---------- */
.field { margin-bottom: 16px; } .field label { display: block; font-size: .84rem; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.input { position: relative; display: flex; align-items: center; background: var(--field); border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 153, 255, .2); }
.input .lead { position: absolute; left: 13px; color: var(--blue); opacity: .85; pointer-events: none; width: 18px; height: 18px; }
.input input, .input select { width: 100%; height: 48px; padding: 0 44px 0 42px; background: transparent; border: 0; outline: 0; color: var(--text); font: 500 .95rem var(--font); border-radius: 10px; }
.input input::placeholder { color: var(--muted); opacity: .7; }
.eye { position: absolute; right: 4px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.eye:hover { color: var(--text); } .eye .e-hide, .eye.shown .e-show { display: none; } .eye.shown .e-hide { display: block; }
.hint { display: block; margin-top: 6px; color: var(--muted); font-size: .78rem; } .err { display: block; margin-top: 6px; color: var(--warn); font-size: .8rem; font-weight: 600; }
.err:empty { display: none; } .has-error .input { border-color: var(--warn); }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; } .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.meter { display: flex; gap: 4px; margin-top: 8px; } .meter i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background .25s; }
.meter[data-level="1"] i:nth-child(-n+1) { background: var(--red); } .meter[data-level="2"] i:nth-child(-n+2) { background: var(--amber); }
.meter[data-level="3"] i:nth-child(-n+3) { background: #7bc043; } .meter[data-level="4"] i { background: var(--green); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-size: .9rem; font-weight: 500; border: 1px solid transparent; }
.alert .ic { margin-top: 1px; } .alert.ok { background: var(--okbg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.alert.warn { background: var(--warnbg); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); } .alert.info { background: var(--infobg); color: var(--blue-d); }

/* ---------- Pages publiques : connexion, inscription ---------- */
html[data-theme="dark"] .preloader, html[data-theme="dark"] .auth { background: #070a10; }
.auth, .preloader { background: #eef3fb; }
html[data-theme="dark"] .preloader, html[data-theme="dark"] .auth { --bg: #070a10; --surface: #12161f; --surface2: #191f2c; --field: #f8fafc; --text: #f8fafc; --muted: #94a3b8; --line: #263045; --link: #4db8ff; --blue-d: #4db8ff;
  --okbg: rgba(0, 229, 153, .12); --ok: #00e599; --warnbg: rgba(255, 59, 48, .14); --warn: #ff6b61; --infobg: rgba(0, 153, 255, .14); --amber-t: #ffb800; --amberbg: rgba(255, 184, 0, .12); --line2: rgba(255, 255, 255, .06); color-scheme: dark; }
html[data-theme="dark"] .auth .input input { color: #0f172a; } html[data-theme="dark"] .auth .input input::placeholder { color: #64748b; }
.sky { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; display: block;
  background: radial-gradient(70rem 40rem at 50% -20%, rgba(0, 153, 255, .16), transparent 60%), radial-gradient(40rem 30rem at 100% 100%, rgba(0, 229, 153, .1), transparent 60%), #eef3fb; }
html[data-theme="dark"] .sky { background: radial-gradient(70rem 40rem at 50% -20%, rgba(0, 153, 255, .14), transparent 60%), radial-gradient(40rem 30rem at 100% 100%, rgba(0, 229, 153, .07), transparent 60%), #070a10; }
.topbar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; }
.back { display: inline-flex; } .tools { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.center { position: relative; z-index: 1; flex: 1; display: grid; place-items: center; padding: 8px 16px 36px; }
.glass { background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 64px -16px rgba(15, 23, 42, .25); animation: rise .5s var(--ease) both; position: relative; overflow: hidden; }
html[data-theme="dark"] .glass { background: rgba(18, 22, 31, .92); box-shadow: 0 24px 64px -12px rgba(0, 0, 0, .85); }
.glass::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #00c2ff, #0099ff 40%, #7b61ff); }
.card { width: min(460px, 100%); padding: 30px 24px 26px; } .card.wide { width: min(680px, 100%); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 6px; }
.card-head h1 { margin: 0; } .card-logo { width: 96px; margin-bottom: 18px; }
.badge-pro { flex: none; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(0, 153, 255, .45); color: var(--blue-d); font: 700 .7rem/1 var(--font); letter-spacing: .06em; background: rgba(0, 153, 255, .08); }
.sub { color: var(--muted); margin: 0 0 20px; font-size: .95rem; }
.links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; font-size: .86rem; } .links a { color: var(--muted); } .links a:hover { color: var(--text); }
.secure-line { display: flex; justify-content: center; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.secure-line span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-size: .78rem; } .secure-line .ic { width: 15px; height: 15px; }
.switch { text-align: center; color: var(--muted); font-size: .9rem; margin: 16px 0 0; } .switch a { font-weight: 700; }


/* Écrans d'attente : bienvenue et déconnexion */
.pre { text-align: center; max-width: 440px; animation: rise .6s var(--ease) both; }
.ring { position: relative; width: 168px; height: 168px; margin: 0 auto 22px; display: grid; place-items: center; }
.ring > svg { position: absolute; inset: 0; transform: rotate(-90deg); overflow: visible; filter: drop-shadow(0 0 7px rgba(0, 153, 255, .55)); } .ring circle { fill: none; stroke-width: 5; }
/* halo rond derrière le logo (la lueur est sur le cercle entier : plus de zone carrée autour du trait) */
.ring::before { content: ''; position: absolute; inset: 14px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 153, 255, .12), rgba(0, 153, 255, 0) 70%); pointer-events: none; }
.ring .track { stroke: var(--line); } .ring .bar { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; }
.pre.run .ring .bar { animation: fill var(--dur, 10s) linear forwards; } @keyframes fill { to { stroke-dashoffset: 0; } }
.ring-logo { position: relative; width: 104px; } .big-check { color: var(--ok); } .big-check .ic { width: 54px; height: 54px; animation: pop .6s var(--ease) .2s both; }
@keyframes pop { from { transform: scale(.2); opacity: 0; } 70% { transform: scale(1.12); } }
.ring.done { animation: glow 1.4s ease-out both; } @keyframes glow { 50% { filter: drop-shadow(0 0 22px rgba(0, 229, 153, .55)); } }
.step { color: var(--muted); min-height: 1.6em; transition: opacity .22s, transform .22s; } .step.swap { opacity: 0; transform: translateY(6px); }
.pre-bar { width: min(260px, 70vw); height: 4px; margin: 18px auto 0; border-radius: 99px; background: var(--line); overflow: hidden; }
.pre-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--blue), #00e599); }
.pre.run .pre-bar i { animation: barFill var(--dur, 10s) linear forwards; } .pre-bar.ok i { background: linear-gradient(90deg, #00e599, var(--blue)); }
@keyframes barFill { to { transform: scaleX(1); } }
.pct { margin-top: 8px; font: 700 .82rem/1 var(--font-head, inherit); letter-spacing: .08em; color: var(--blue-d); font-variant-numeric: tabular-nums; }
.pre .step::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--blue); vertical-align: middle; animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .pre .step::after { animation: none; } }
.idline { margin-top: 14px; font-size: .9rem; color: var(--muted); } .idline strong { color: var(--text); letter-spacing: .06em; }
body.leaving .page { opacity: 0; transform: scale(.98); transition: opacity .45s ease, transform .45s ease; }
/* Écrans d'attente : jamais de barre de défilement (animations d'entrée/sortie comprises) */
html:has(body.preloader), body.preloader { overflow: hidden; height: 100%; }
body.preloader .page { min-height: 100dvh; overflow: hidden; }

/* ---------- Coque de l'application ---------- */
body.app .page { display: block; }
.side { display: none; }
.app-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; height: var(--top-h); padding: 0 14px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.app-top::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--red) 0 18%, var(--amber) 18% 36%, var(--blue) 36% 70%, var(--green) 70%); opacity: .9; }
.clock { display: none; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--text); } .clock .ic { color: var(--amber); width: 18px; height: 18px; }
.grow { flex: 1; } .inline { display: inline; margin: 0; }
.menu { position: relative; } .menu > summary { list-style: none; cursor: pointer; } .menu > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 64px -12px rgba(0, 0, 0, .55); z-index: 40; animation: rise .18s var(--ease) both; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 9px; background: none; color: var(--text); font: 600 .88rem var(--font); text-align: left; cursor: pointer; text-decoration: none !important; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface2); } .menu-pop .danger { color: var(--warn); }
.menu-pop .who { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; } .menu-pop .who b { display: block; } .menu-pop .who small { color: var(--muted); font-family: var(--mono); font-size: .75rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #0099ff, #7b61ff); color: #fff; font: 800 .95rem/1 var(--font-head); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgba(0, 153, 255, .5); }
.support-chip { color: var(--text); } .support-chip .ic { color: var(--green); } .wa { color: #25d366 !important; }
.app-main { padding: 22px 16px calc(100px + env(safe-area-inset-bottom)); max-width: 1320px; width: 100%; margin: 0 auto; animation: rise .45s var(--ease) both; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around; gap: 2px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tabbar a, .tabbar .soon { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; border-radius: 12px; color: var(--muted); font-size: .66rem; font-weight: 600; text-decoration: none !important; position: relative; }
.tabbar .ic { width: 22px; height: 22px; } .tabbar .on { color: var(--blue-d); } .tabbar .on::before { content: ""; position: absolute; top: -6px; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--blue); }
.tabbar .soon { opacity: .45; } .tabbar em { display: none; }
.help-fab { position: fixed; right: 16px; bottom: calc(82px + env(safe-area-inset-bottom)); z-index: 25; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 99px;
  background: var(--blue); color: #fff !important; font-weight: 700; font-size: .86rem; box-shadow: var(--glow); text-decoration: none !important; }
.help-fab::after { content: ""; position: absolute; right: 2px; top: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--green); border: 2px solid var(--bg); }
.help-fab span { display: none; }
.hide-sm { display: none; }

/* En-tête de page */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; } .page-head .sub { margin: 0; max-width: 68ch; }
.page-head > .btn { flex: none; }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; margin-bottom: 10px; color: var(--muted); } .crumb .flip, .btn .flip { transform: scaleX(-1); }

/* Panneaux et cartes */
.panel, .tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { padding: 18px; } .tile { position: relative; padding: 18px; }
.cards { display: grid; gap: 14px; margin-top: 16px; grid-template-columns: 1fr; }
.tile > .ic { width: 26px; height: 26px; color: var(--blue); } .tile h2 { font-size: 1rem; margin: 10px 0 4px; } .tile p { margin: 0; color: var(--muted); font-size: .9rem; }
.badge { position: absolute; top: 16px; right: 16px; background: var(--infobg); color: var(--blue-d); font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.muted { color: var(--muted); } .small { font-size: .82rem; }

/* Bandeau de conseils */
.tips { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--amber); box-shadow: var(--shadow); }
.tips-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--amberbg); color: var(--amber-t); }
.tips-body { flex: 1; min-width: 0; font-size: .88rem; } .tips-body b { display: block; color: var(--amber-t); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.tips-body p { margin: 2px 0 0; } .tips-nav { display: flex; gap: 6px; align-items: center; flex: none; }
.tips-nav button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface2); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.tips-nav button .ic { width: 16px; height: 16px; } .tips-nav span { font-size: .75rem; color: var(--muted); font-weight: 700; min-width: 30px; text-align: center; }

/* Statistiques (KPI) */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-bottom: 18px; }
.kpi { position: relative; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.kpi-label { display: block; font: 700 .68rem/1.3 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-right: 34px; }
.kpi-ic { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface2); color: var(--muted); }
.kpi-ic .ic { width: 16px; height: 16px; } .kpi-ic.green { background: var(--okbg); color: var(--ok); } .kpi-ic.amber { background: var(--amberbg); color: var(--amber-t); } .kpi-ic.red { background: var(--warnbg); color: var(--warn); } .kpi-ic.blue { background: var(--infobg); color: var(--blue-d); }
.kpi-val { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 10px; font: 800 1.75rem/1.1 var(--font-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-val small { font: 700 .78rem/1 var(--font); letter-spacing: 0; } .kpi-sub { display: block; margin-top: 6px; color: var(--muted); font-size: .8rem; }
.c-green { color: var(--ok); } .c-amber { color: var(--amber-t); } .c-red { color: var(--warn); } .c-blue { color: var(--blue-d); }
.wallet { grid-column: 1 / -1; padding: 20px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #00a8ff, #0077e6); box-shadow: 0 18px 40px -12px rgba(0, 153, 255, .6); position: relative; overflow: hidden; }
.wallet::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.wallet .kpi-label { color: rgba(255, 255, 255, .85); display: flex; align-items: center; gap: 8px; padding: 0 104px 0 0; } .wallet .kpi-label .ic { width: 18px; height: 18px; }
.wallet .kpi-val { font-size: 2.3rem; margin-top: 12px; } .wallet .kpi-sub { color: rgba(255, 255, 255, .85); }
.wallet .tag { position: absolute; top: 16px; right: 16px; background: rgba(255, 255, 255, .2); color: #fff; z-index: 1; }
/* Bouton blanc sur la carte bleue du solde : « Ajouter des fonds » */
.btn.light { background: #fff; color: #0062c4; font-weight: 800; box-shadow: 0 8px 20px -8px rgba(0, 30, 80, .55); }
.btn.light:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(0, 30, 80, .7); } .btn.light .ic { color: #0077e6; }
.wallet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: auto; padding-top: 14px; position: relative; z-index: 1; }
.wallet-actions .link { color: rgba(255, 255, 255, .92); font-size: .82rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.wallet-exp { display: block; margin-top: 6px; color: rgba(255, 255, 255, .85); font-size: .78rem; font-weight: 600; }

/* Cartes d'action */
.duo { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 18px; }
.action-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); text-decoration: none !important; }
.action-head { display: flex; align-items: center; gap: 12px; } .action-head b { display: block; font-family: var(--font-head); font-size: .98rem; }
.action-head small { display: block; font: 700 .68rem/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; }
.action-ic { flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--infobg); color: var(--blue-d); } .action-ic.amber { background: var(--amberbg); color: var(--amber-t); }
.action-card p { margin: 0; color: var(--muted); font-size: .9rem; } .action-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 4px; font-size: .78rem; color: var(--muted); font-weight: 600; }

/* ---------- Tableaux qui deviennent des cartes sur mobile ---------- */
.table-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.table-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px; border-bottom: 1px solid var(--line); }
.table-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.12rem; } .table-head h2 .ic { color: var(--blue); }
.count { display: inline-block; background: var(--surface2); border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; font: 700 .72rem/1.3 var(--font); color: var(--muted); }
.filters { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: 600 .8rem/1 var(--font); cursor: pointer; white-space: nowrap; }
.filters button.on { background: var(--blue); color: #fff; } .filters button em { font-style: normal; font-size: .7rem; padding: 2px 6px; border-radius: 99px; background: rgba(127, 140, 170, .2); }
.filters button.on em { background: rgba(255, 255, 255, .25); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .search { flex: 1 1 260px; } .search input { height: 44px; }
.dtable { width: 100%; border-collapse: collapse; }
.dtable thead { display: none; }
.dtable tbody { display: grid; gap: 0; }
.dtable tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); position: relative; }
.dtable tr:last-child { border-bottom: 0; } .dtable tr[hidden] { display: none; }
.dtable td { display: block; padding: 0; min-width: 0; font-size: .86rem; }
.dtable td[data-label]::before { content: attr(data-label); display: block; font: 700 .64rem/1.4 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.dtable .td-main { grid-column: 1 / -1; } .dtable .td-main::before { display: none !important; }
.dtable .td-act { position: absolute; top: 12px; right: 12px; } .dtable .td-act::before { display: none !important; }
.dtable .td-main.has-act { padding-right: 44px; }
/* Actions d'une ligne (payer, modifier, supprimer…) */
.row-acts { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; } .row-acts form { margin: 0; display: inline-flex; }
.icon-act { gap: 6px; text-decoration: none; } .icon-act .act-lbl { display: none; }
.icon-act.primary { color: #fff; background: var(--blue); border-color: transparent; }
.icon-act.is-off { opacity: .4; cursor: not-allowed; } .icon-act.is-off:hover { color: var(--blue-d); border-color: var(--line); }
.dtable .td-act.multi { position: relative; top: auto; right: auto; grid-column: 1 / -1; padding-top: 10px; border-top: 1px dashed var(--line); }
.dtable .td-act.multi .row-acts { display: flex; flex-wrap: wrap; }
.dtable .td-act.multi .icon-act { width: auto; padding: 0 12px; display: inline-flex; align-items: center; font-weight: 600; font-size: .8rem; } .dtable .td-act.multi .act-lbl { display: inline; }
.dtable .td-main.has-act.multi-act { padding-right: 0; }
.row-link { position: absolute; inset: 0; z-index: 0; } .dtable tr > td > *:not(.row-link) { position: relative; z-index: 1; }
.dtable tr:hover { background: var(--line2); }
.cell-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cell-title b { display: block; font-family: var(--font-head); font-size: .95rem; overflow-wrap: anywhere; }
.cell-title small { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.cell-title small .ic { width: 13px; height: 13px; }
.cell-strong { display: block; font-weight: 700; font-variant-numeric: tabular-nums; } .cell-sub { display: block; color: var(--muted); font-size: .76rem; font-weight: 600; }
.thumb-sm { position: relative; flex: none; width: 76px; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: var(--surface2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.thumb-sm img, .thumb-sm video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb-sm i { position: absolute; left: 4px; bottom: 4px; padding: 1px 5px; border-radius: 4px; background: rgba(0, 0, 0, .7); color: #fff; font: 700 .55rem/1.4 var(--font); font-style: normal; letter-spacing: .04em; }
.zones { display: flex; flex-wrap: wrap; gap: 4px; } .zone-tag { padding: 2px 7px; border-radius: 6px; background: var(--surface2); border: 1px solid var(--line); font-size: .72rem; font-weight: 700; }
.table-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.pager { display: flex; gap: 4px; align-items: center; } .pager button { min-width: 34px; height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface2); color: var(--text); font: 700 .8rem var(--font); cursor: pointer; }
.pager button.on { background: var(--blue); border-color: var(--blue); color: #fff; } .pager button[disabled] { opacity: .4; cursor: default; }
.no-match { padding: 30px 16px; text-align: center; color: var(--muted); }
.icon-act { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface2); color: var(--blue-d); display: inline-grid; place-items: center; cursor: pointer; }
.icon-act .ic { width: 17px; height: 17px; } .icon-act.danger:hover { color: var(--warn); border-color: var(--warn); } .icon-act form { margin: 0; }

/* Barre d'information en bas de page */
.infobar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 18px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.infobar span { display: inline-flex; align-items: center; gap: 8px; } .infobar b { color: var(--text); } .infobar .ic { width: 17px; height: 17px; } .infobar .btn { margin-left: auto; }

/* ---------- Tablette ---------- */
@media (min-width: 640px) {
  .grid2 { grid-template-columns: 1fr 1fr; } .cards { grid-template-columns: repeat(2, 1fr); } .hide-sm { display: inline; } .card { padding: 36px 34px 30px; }
  .kpis { grid-template-columns: repeat(3, 1fr); } .duo { grid-template-columns: 1fr 1fr; }
  .help-fab span { display: inline; }
}
/* ---------- Ordinateur : menu latéral + vrais tableaux ---------- */
@media (min-width: 1024px) {
  body.app .page { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); }
  .side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; background: var(--surface); border-right: 1px solid var(--line); grid-row: 1 / span 2; overflow-y: auto; }
  html[data-theme="dark"] .side { background: #0f131c; }
  .side-logo { display: flex; align-items: center; height: var(--top-h); padding: 0 20px; border-bottom: 1px solid var(--line); } .side-logo .logo { width: 118px; }
  .side-label { margin: 22px 20px 8px; font: 700 .68rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .side nav { display: grid; gap: 4px; padding: 0 10px; }
  .side nav a, .side nav .soon { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: .93rem; text-decoration: none !important; }
  .side nav a:hover { background: var(--surface2); } .side nav .ic { color: var(--muted); }
  .side nav a.on { background: linear-gradient(90deg, rgba(0, 153, 255, .18), rgba(0, 153, 255, .04)); color: var(--blue-d); }
  .side nav a.on::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); } .side nav a.on .ic { color: var(--blue-d); }
  .side nav .soon { opacity: .5; cursor: default; } .side nav em { margin-left: auto; font-style: normal; font-size: .62rem; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); }
  .side-user { margin: auto 10px 12px; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); }
  .side-user .avatar { width: 34px; height: 34px; flex: none; font-size: .85rem; box-shadow: none; }
  .side-user div { flex: 1; min-width: 0; } .side-user b { display: block; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .side-user small { color: var(--muted); font: 600 .72rem var(--mono); }
  .side-user button { width: 34px; height: 34px; border-radius: 9px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; } .side-user button:hover { color: var(--warn); background: var(--warnbg); }
  .app-top { grid-column: 2; padding: 0 28px; } .app-top .top-logo { display: none; } .clock { display: inline-flex; }
  .app-main { grid-column: 2; padding: 28px 32px 48px; } .tabbar { display: none; } .help-fab { bottom: 24px; right: 24px; }
  .kpis.dash { grid-template-columns: 1.35fr 1fr 1fr 1fr; } .kpis.dash .wallet { grid-column: 1; grid-row: span 2; display: flex; flex-direction: column; }
  .kpis.dash .wide2 { grid-column: span 2; } .kpis.four { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  /* Tableaux */
  .dtable { display: table; } .dtable thead { display: table-header-group; } .dtable tbody { display: table-row-group; }
  .dtable tr { display: table-row; padding: 0; } .dtable th { padding: 12px 14px; text-align: left; font: 700 .68rem/1.3 var(--font); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); background: var(--surface2); border-bottom: 1px solid var(--line); white-space: nowrap; }
  .dtable td { display: table-cell; padding: 13px 14px; vertical-align: middle; border-bottom: 1px solid var(--line); position: relative; }
  .dtable tr:last-child td { border-bottom: 0; } .dtable td[data-label]::before { display: none; }
  .dtable .td-act { position: relative; top: auto; right: auto; text-align: right; width: 1%; white-space: nowrap; } .dtable .td-main.has-act { padding-right: 14px; }
  .dtable .td-act.multi { border-top: 0; padding-top: 13px; } .dtable .td-act.multi .row-acts { flex-wrap: nowrap; }
  .dtable .td-act.multi .icon-act { width: 36px; padding: 0; justify-content: center; } .dtable .td-act.multi .act-lbl { display: none; }
  .dtable th.r, .dtable td.r { text-align: right; } .dtable tr[hidden] { display: none; }
}
@media (min-width: 1280px) { .app-main { padding: 32px 40px 56px; } }

/* ---------- Boîtes de dialogue et notifications ---------- */
.modal-back { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(5, 7, 12, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .18s; }
.modal-back.show { opacity: 1; }
.modal { width: min(420px, 100%); background: var(--surface); color: var(--text); border: 1px solid rgba(0, 153, 255, .35); border-radius: 18px; padding: 26px 22px 18px; box-shadow: 0 24px 64px -12px rgba(0, 0, 0, .85); text-align: center; transform: translateY(14px) scale(.97); transition: transform .22s var(--ease); }
.modal-back.show .modal { transform: none; }
.modal-ic { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; } .modal-ic svg { width: 28px; height: 28px; }
.modal-ic.info { background: var(--infobg); color: var(--blue-d); } .modal-ic.danger { background: var(--warnbg); color: var(--warn); }
.modal h3 { margin: 0 0 6px; font-size: 1.15rem; } .modal p { margin: 0 0 20px; color: var(--muted); font-size: .92rem; }
.modal-actions { display: flex; flex-direction: column-reverse; gap: 8px; } .modal-actions .btn { width: 100%; }
body.modal-open { overflow: hidden; }
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 120; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: 0 16px 40px -8px rgba(0, 0, 0, .5); font-weight: 600; font-size: .9rem; opacity: 0; transform: translateY(12px); transition: all .3s var(--ease); }
.toast.show { opacity: 1; transform: none; } .toast i { display: grid; } .toast i svg { width: 20px; height: 20px; } .toast.ok i { color: var(--ok); } .toast.warn i { color: var(--amber); }
@media (min-width: 1024px) { .toasts { bottom: 28px; } }
.show-sm-only { padding: 4px 12px 8px; } @media (min-width: 640px) { .show-sm-only { display: none; } }
.flip { transform: scaleX(-1); }
/* Ajustements */
.kpis .wide2 { grid-column: span 2; }
.table-scroll { width: 100%; }
.cell-title small .ref { text-transform: none; margin-right: 4px; }
.analytics-text { margin: -4px 0 0; }
@media (max-width: 639px) {
  .tips { flex-wrap: wrap; } .tips-body { flex: 1 1 calc(100% - 60px); } .tips-nav { margin-left: auto; }
  .page-head > .btn { width: 100%; }
}
@media (min-width: 1024px) {
  .table-scroll { overflow-x: auto; }
  .dtable td:nth-child(2) .cell-strong, .dtable td:nth-child(3) .cell-strong, .dtable td.r .cell-strong { white-space: nowrap; }
  .dtable td .pill { white-space: nowrap; }
}
.dtable tbody tr:has(.row-link) { cursor: pointer; }
@media (min-width: 640px) and (max-width: 1023px) { .dtable tr { grid-template-columns: repeat(4, minmax(0, 1fr)); } .dtable td.r { text-align: left; } }
/* Cartes de statistiques colorées (toujours lisibles) + effets au survol */
.kpi { transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.kpi:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .45); }
.kpi[class*="tone-"] { color: #fff; border-color: transparent; overflow: hidden; }
.kpi[class*="tone-"]::after { content: ""; position: absolute; right: -36px; top: -36px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, .12); transition: transform .4s var(--ease); pointer-events: none; }
.kpi[class*="tone-"]:hover::after { transform: scale(1.25); }
.kpi[class*="tone-"] .kpi-label, .kpi[class*="tone-"] .kpi-sub { color: rgba(255, 255, 255, .88); }
.kpi[class*="tone-"] .kpi-val, .kpi[class*="tone-"] .kpi-val small { color: #fff; }
.kpi[class*="tone-"] .kpi-ic { background: rgba(255, 255, 255, .2); color: #fff; z-index: 1; }
.tone-green { background: linear-gradient(135deg, #00c27f, #008f5d); } .tone-green:hover { box-shadow: 0 18px 40px -12px rgba(0, 194, 127, .55); }
.tone-amber { background: linear-gradient(135deg, #f5b100, #c98a00); } .tone-amber:hover { box-shadow: 0 18px 40px -12px rgba(245, 177, 0, .55); }
.tone-orange { background: linear-gradient(135deg, #ff8a1f, #e0620b); } .tone-orange:hover { box-shadow: 0 18px 40px -12px rgba(255, 138, 31, .55); }
.tone-red { background: linear-gradient(135deg, #ff4d43, #c9241a); } .tone-red:hover { box-shadow: 0 18px 40px -12px rgba(255, 77, 67, .55); }
.tone-blue { background: linear-gradient(135deg, #1aa3ff, #0071d6); } .tone-blue:hover { box-shadow: 0 18px 40px -12px rgba(26, 163, 255, .55); }
.tone-violet { background: linear-gradient(135deg, #7b61ff, #5136d6); } .tone-violet:hover { box-shadow: 0 18px 40px -12px rgba(123, 97, 255, .55); }
.wallet { transition: transform .25s var(--ease), box-shadow .25s; } .wallet:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -14px rgba(0, 153, 255, .7); }
.action-card { transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; } a.action-card:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 16px 36px -14px rgba(0, 153, 255, .45); }
@media (prefers-reduced-motion: reduce) { .kpi:hover, .wallet:hover, a.action-card:hover { transform: none; } }
[data-tip-text] { transition: opacity .22s ease, transform .22s ease; } [data-tip-text].tip-out { opacity: 0; transform: translateY(6px); }
.tips { position: relative; overflow: hidden; }

/* Pages de connexion : compactes (sans défilement sur la plupart des écrans) */
.auth .topbar { padding: 12px 16px; } .auth .center { padding: 4px 16px 18px; }
.auth .card { padding: 22px 22px 18px; } .auth .card-logo { width: 84px; margin-bottom: 10px; }
.auth h1 { font-size: clamp(1.5rem, 4.6vw, 1.85rem); } .auth .sub { margin-bottom: 14px; font-size: .9rem; }
.auth .field { margin-bottom: 11px; } .auth .field label { margin-bottom: 5px; } .auth .input input { height: 45px; }
.auth .links { margin-top: 12px; } .auth .secure-line { margin-top: 14px; padding-top: 12px; } .auth .switch { margin-top: 12px; }
.auth .hint { margin-top: 4px; font-size: .74rem; }
@media (min-width: 640px) { .auth .card { padding: 26px 30px 22px; } }
@media (max-height: 760px) { .auth .card-logo { display: none; } .auth .secure-line { display: none; } }
/* Inscription en étapes */
.reg-card { width: min(560px, 100%); }
.reg-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; list-style: none; padding: 0; margin: 10px 0 14px; }
.reg-steps li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line); color: var(--muted); font-size: .78rem; font-weight: 700; cursor: pointer; transition: all .25s var(--ease); }
.reg-steps i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--text); font-style: normal; font-size: .72rem; }
.reg-steps li.on { border-color: var(--blue); color: var(--text); background: var(--infobg); } .reg-steps li.on i { background: var(--blue); color: #fff; }
.reg-steps li.done { color: var(--ok); } .reg-steps li.done i { background: var(--green); color: #002112; }
.reg-steps span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reg-pane { border: 0; padding: 0; margin: 0; min-width: 0; } .reg-pane.enter { animation: slideIn .35s var(--ease) both; }
@keyframes slideIn { from { opacity: 0; transform: translateX(18px); } }
.reg-nav { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 6px; } .reg-nav [hidden] { display: none !important; }
.reg-nav [data-reg-prev][hidden] ~ .btn { grid-column: 1 / -1; }
.terms-line .check { display: flex; align-items: flex-start; gap: 10px; font-size: .84rem; font-weight: 500; color: var(--text); cursor: pointer; margin: 0; }
.terms-line .check input { position: absolute; opacity: 0; } .terms-line .check > i { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line); background: var(--field); margin-top: 1px; display: grid; place-items: center; }
.terms-line .check input:checked + i { background: var(--blue); border-color: var(--blue); }
.terms-line .check input:checked + i::after { content: ""; width: 11px; height: 11px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Moyens de paiement : logos des opérateurs et bouton Mobile Money */
.pay-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 2px; }
.pay-logos img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 4px 10px -6px rgba(0, 0, 0, .35); transition: transform .2s; }
.pay-logos img:hover { transform: translateY(-2px); }
.btn.mm { color: #fff; background: linear-gradient(135deg, #ff7a00, #ff9f1c 55%, #ffcc00); box-shadow: 0 8px 22px -4px rgba(255, 122, 0, .5); font-weight: 700; }
.btn.mm:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -4px rgba(255, 122, 0, .65); }
.btn.mm + .btn.wave { margin-top: 8px; }

/* Mobile Money : numéro du payeur (page de la campagne, ajout de fonds) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mm-ask { margin: 10px 0; padding: 14px; border: 1px solid rgba(255, 122, 0, .35); border-radius: 14px; background: linear-gradient(180deg, rgba(255, 122, 0, .07), transparent 70%); text-align: left; animation: rise .35s var(--ease) both; }
.mm-ask-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.mm-ask-title .ic { width: 18px; height: 18px; color: #ff7a00; }
.mm-input .mm-cc { padding: 0 4px 0 12px; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.mm-input input { padding: 0 12px 0 6px; font-size: 1.05rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.mm-input.is-bad { border-color: var(--warn); }
.mm-ask [data-mm-op].on { color: var(--ok); font-weight: 600; }
.mm-ask .btn { margin-top: 10px; }
.mm-ask .btn.ghost { margin-top: 6px; }
.mm-ask .note { margin-top: 10px; }
.mm-ask.is-wave { border-color: rgba(29, 200, 255, .4); background: linear-gradient(180deg, rgba(29, 200, 255, .08), transparent 70%); }
.mm-ask.is-wave .mm-ask-title .ic { color: #1ab0e8; }

/* ---- Type de compte : pour mon entreprise / pour mes clients (inscription, Mon compte) ---- */
.acct-type > .label { display: block; font-size: .84rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.acct-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field .acct-opt { position: relative; display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 34px 12px 12px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface2); font-weight: 400; transition: border-color .2s, box-shadow .2s, background .2s; }
.acct-opt:hover { border-color: var(--blue); }
.acct-opt input { position: absolute; opacity: 0; pointer-events: none; }
.acct-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--line2); color: var(--muted); transition: background .2s, color .2s; }
.acct-ic .ic { width: 18px; height: 18px; margin: 0; }
.acct-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .acct-tx b { font-size: .86rem; line-height: 1.25; color: var(--text); }
.acct-tx small { font-size: .72rem; line-height: 1.4; color: var(--muted); }
.acct-check { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: transparent; transition: all .2s; }
.acct-check .ic { width: 11px; height: 11px; margin: 0; stroke-width: 3; }
.acct-opt:has(input:checked) { border-color: var(--blue); background: var(--infobg); box-shadow: 0 0 0 1px var(--blue) inset; }
.acct-opt:has(input:checked) .acct-ic { background: var(--blue); color: #fff; }
.acct-opt:has(input:checked) .acct-check { background: var(--blue); border-color: var(--blue); color: #fff; }
.acct-opt:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 480px) { .acct-opts { grid-template-columns: 1fr; } }
