/* Servicely · thème clair, mobile d'abord. */

:root {
  color-scheme: light;
  --bg: #F6F8FC;
  --surface: #FFFFFF;
  --surface-2: #FAFBFE;
  --sunken: #EEF2F8;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #64748B;
  --faint: #94A3B8;
  --line: #E2E8F0;
  --line-2: #D3DCE8;
  --primary: #2563EB;
  --primary-ink: #1D4ED8;
  --primary-soft: #E8EFFD;
  --primary-softer: #F3F7FE;
  --accent: #FF7A59;
  --accent-ink: #C2410C;
  --accent-soft: #FFEDE6;
  --success: #16A34A;
  --success-ink: #166534;
  --success-soft: #DCFCE7;
  --danger: #DC2626;
  --danger-soft: #FEF2F2;
  --radius-s: 12px;
  --radius: 18px;
  --radius-l: 24px;
  --radius-xl: 32px;
  --shadow-1: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 14px rgba(15, 23, 42, .04);
  --shadow-2: 0 6px 18px rgba(15, 23, 42, .06), 0 20px 44px rgba(15, 23, 42, .08);
  --shadow-3: 0 18px 40px rgba(15, 23, 42, .12), 0 40px 90px rgba(15, 23, 42, .14);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --display: "Bricolage Grotesque", "Plus Jakarta Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 32% at 88% 6%, rgba(147, 197, 253, .35), transparent 70%),
    radial-gradient(34% 30% at 2% 96%, rgba(255, 183, 160, .22), transparent 70%),
    radial-gradient(28% 24% at 98% 82%, rgba(191, 219, 254, .30), transparent 70%);
  animation: drift 28s ease-in-out infinite alternate;
}
body.has-sheet { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
input, textarea, select { font: inherit; }
img, svg { display: block; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 2px; }
.i { width: 20px; height: 20px; flex-shrink: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; justify-content: center; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.link { color: var(--primary-ink); font-weight: 700; text-underline-offset: 3px; }
.link:hover { text-decoration: underline; }
.fineprint { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; line-height: 1.5; color: var(--muted); margin: 10px 0 0; }
.fineprint .i { width: 14px; height: 14px; margin-top: 1px; }
.fineprint.center { justify-content: center; text-align: center; }
.noscript { padding: 24px; text-align: center; }

/* ---------------------------------------------------------------- Démarrage */
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; }
.boot-name { font-family: var(--display); font-weight: 800; font-size: 44px; letter-spacing: .01em; color: var(--primary); animation: bootPulse 1.4s var(--ease-out) infinite; }
.boot-error { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px; max-width: 460px; margin: 0 auto; }
.boot-error p { color: var(--muted); }
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.logo-mark.lg { width: 48px; height: 48px; }
.logo-mark.xl { width: 72px; height: 72px; }
.logo-mark .logo-dot { transform-origin: 20px 10.5px; animation: wave 3.2s var(--ease-spring) infinite; }

/* ---------------------------------------------------------------- Enveloppe */
.shell { min-height: 100vh; min-height: 100dvh; }
.stage { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + var(--safe-top)) 16px 10px;
  background: rgba(246, 245, 241, .78);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid rgba(233, 230, 223, .7);
}
.brand { display: inline-flex; align-items: center; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .01em; color: var(--primary); line-height: 1; }
.wordmark.lg { font-size: 34px; }
.wordmark.xl { font-size: 48px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-avatar { border-radius: 50%; }
.sim-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent-ink); font-size: 11px; font-weight: 700; white-space: nowrap;
}
.sim-pill .i { width: 13px; height: 13px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  transition: transform .2s var(--ease-spring), background .2s, box-shadow .2s;
}
.icon-btn:hover { box-shadow: var(--shadow-1); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.ghost { background: transparent; border-color: transparent; }
.icon-btn.solid { background: var(--primary); color: #fff; border-color: var(--primary); }
.icon-btn.small { width: 32px; height: 32px; border-radius: 10px; }
.icon-btn.small .i { width: 16px; height: 16px; }
.bell-badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 0 0 3px var(--bg); animation: pop .4s var(--ease-spring);
}
.bell.ring .i { animation: ring .9s var(--ease-out); transform-origin: 50% 10%; }

.view { display: block; padding: 18px 16px calc(120px + var(--safe-bottom)); outline: none; }
.shell.role-guest .view { padding-bottom: 48px; }

.tabbar {
  position: fixed; z-index: 35; left: 12px; right: 12px; bottom: calc(10px + var(--safe-bottom));
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px; border-radius: 26px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.5) blur(18px);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  border: 1px solid rgba(233, 230, 223, .9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .10);
  transition: transform .45s var(--ease-out), opacity .3s;
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 4px; color: var(--muted); font-size: 11px; font-weight: 700; border-radius: 20px; }
.tab-icon { display: grid; place-items: center; width: 52px; height: 32px; border-radius: 99px; transition: background .3s, transform .4s var(--ease-spring), color .2s; }
.tab.active { color: var(--primary-ink); }
.tab.active .tab-icon { background: var(--primary-soft); color: var(--primary); transform: scale(1.06); }
.tab:active .tab-icon { transform: scale(.9); }
.shell.focus-mode .tabbar { transform: translateY(160%); opacity: 0; pointer-events: none; }
.shell.focus-mode .view { padding-bottom: calc(130px + var(--safe-bottom)); }

.rail { display: none; }

@media (min-width: 1024px) {
  .shell:not(.role-guest) { display: grid; grid-template-columns: 256px minmax(0, 1fr); }
  .rail {
    position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px;
    padding: 22px 16px; border-right: 1px solid var(--line); background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(12px);
  }
  .rail .brand { padding: 4px 10px 10px; }
  .rail-role { padding: 0 12px 14px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
  .rail-nav { display: grid; gap: 4px; }
  .rail-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; color: var(--ink-2); font-weight: 700; transition: background .2s, transform .2s var(--ease-spring); }
  .rail-link:hover { background: var(--sunken); }
  .rail-link.active { background: var(--primary); color: #fff; }
  .rail-link.active .i { color: #fff; }
  .rail-foot { margin-top: auto; display: grid; gap: 12px; }
  .rail-foot .sim-pill { justify-self: start; }
  .rail-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
  .rail-user span { display: grid; min-width: 0; }
  .rail-user strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rail-user small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .shell:not(.role-guest) .topbar .brand, .shell:not(.role-guest) .topbar .sim-pill { display: none; }
  .shell:not(.role-guest) .topbar { justify-content: flex-end; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 16px 32px 0; }
  .tabbar { display: none; }
  .view, .shell.focus-mode .view { padding: 12px 32px 64px; }
  .shell.role-guest .view { padding: 24px 32px 64px; }
  .shell.role-guest .topbar { padding: 14px 32px; }
}

/* ---------------------------------------------------------------- Mise en page */
.page { max-width: 1120px; margin: 0 auto; display: grid; gap: 18px; align-content: start; }
.page-head { display: grid; gap: 8px; margin-top: 4px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.eyebrow .i { width: 16px; height: 16px; }
.display { font-family: var(--display); font-weight: 750; font-size: clamp(30px, 7.4vw, 50px); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.display-sm { font-family: var(--display); font-weight: 750; font-size: clamp(24px, 5.6vw, 32px); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; display: flex; align-items: center; gap: 8px; }
.lead { font-size: 16px; color: var(--ink-2); max-width: 60ch; }
.section-title { font-family: var(--display); font-weight: 750; font-size: 26px; letter-spacing: -.02em; }
.block { display: grid; gap: 12px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.block-head h2 { font-family: var(--display); font-size: 21px; font-weight: 750; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 8px; }
.card { background: var(--surface); border: 1px solid rgba(15, 23, 42, .06); border-radius: var(--radius-l); padding: 18px; box-shadow: var(--shadow-1); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2, .card-title { font-family: var(--display); font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.card-title { margin-bottom: 10px; }
.card-head > .service-bubble + h2 { margin-right: auto; }
.card-list { display: grid; gap: 10px; }
.stack { display: grid; gap: 18px; align-content: start; }
.label { display: block; font-size: 13px; font-weight: 800; margin: 20px 0 10px; }
.label em { font-style: normal; font-weight: 600; color: var(--muted); margin-left: 6px; }

/* ---------------------------------------------------------------- Animations d'entrée */
.rise { animation: rise .62s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 55ms); }
.is-refresh .rise:not(.fresh, .fresh .rise) { animation: none; }
.fresh:not(.rise) { animation: rise .5s var(--ease-out) both; }

/* ---------------------------------------------------------------- Boutons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 20px; border-radius: 16px; font-weight: 750; font-size: 15px; white-space: nowrap;
  border: 1.5px solid transparent; overflow: hidden; isolation: isolate;
  transition: transform .2s var(--ease-spring), box-shadow .25s, background .2s, opacity .2s;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .42; }
.btn .i { transition: transform .3s var(--ease-spring); }
.btn:hover:not(:disabled) .i:last-child { transform: translateX(2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .6); }
.btn-primary:hover:not(:disabled) { background: var(--primary-ink); box-shadow: 0 14px 28px -10px rgba(37, 99, 235, .65); }
.btn-lime { background: linear-gradient(135deg, #2563EB, #3B82F6); color: #fff; box-shadow: 0 12px 26px -10px rgba(37, 99, 235, .7); }
.btn-lime::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .7) 45%, transparent 70%);
  transform: translateX(-120%); animation: sheen 3.6s ease-in-out infinite 1.2s;
}
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.btn-danger { background: var(--danger); color: #fff; }
.btn.danger { color: var(--danger); }
.btn-block { width: 100%; }
.btn-small { min-height: 40px; padding: 0 14px; border-radius: 12px; font-size: 13px; }
.btn-small .i { width: 16px; height: 16px; }
.btn-grow { flex: 1; min-width: 0; }
.btn > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.btn[aria-busy="true"] > * { opacity: 0; }
.btn[aria-busy="true"]::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}

/* ---------------------------------------------------------------- Pastilles */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-size: 12px; font-weight: 750; white-space: nowrap; width: fit-content; }
.chip .i { width: 14px; height: 14px; }
.chip-violet { background: var(--primary-soft); color: var(--primary-ink); }
.chip-sky { background: #E4EFFF; color: #2759B8; }
.chip-butter { background: #FFF3C4; color: #7D5B00; }
.chip-mint { background: #DDF6E8; color: #177245; }
.chip-muted { background: var(--sunken); color: var(--muted); }
.chip-lime { background: var(--accent-soft); color: var(--accent-ink); }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: dotPulse 1.6s ease-in-out infinite; }
.sim-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11px; font-weight: 750; white-space: nowrap; vertical-align: middle; }
.sim-badge .i { width: 12px; height: 12px; }
.count-badge { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 99px; background: var(--accent); color: #fff; font-family: var(--font); font-size: 13px; font-weight: 800; animation: pop .45s var(--ease-spring); }
.live-label { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 750; color: #177245; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #1FB768; box-shadow: 0 0 0 0 rgba(31, 183, 104, .5); animation: liveRing 1.8s ease-out infinite; }

/* ---------------------------------------------------------------- Avatars */
.avatar {
  display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--avatar, var(--ink)); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .02em;
  box-shadow: 0 0 0 3px var(--surface);
}
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.avatar.xl { width: 84px; height: 84px; font-size: 28px; box-shadow: 0 0 0 5px var(--surface), var(--shadow-2); }
.avatar-stack { display: flex; }
.avatar-stack .avatar + .avatar { margin-left: -10px; }

/* ---------------------------------------------------------------- Tons des services */
.tone-cleaning { --tone-bg: #E3EDFD; --tone-fg: #2563EB; }
.tone-gardening { --tone-bg: #DFF5E7; --tone-fg: #1E8A55; }
.tone-assembly { --tone-bg: #FFEADB; --tone-fg: #D5602A; }
.tone-plumbing { --tone-bg: #DCF3F5; --tone-fg: #12808C; }
.tone-electrical { --tone-bg: #FFF3C4; --tone-fg: #A07400; }
.tone-repairs { --tone-bg: #EDEBFE; --tone-fg: #6D28D9; }
.tone-tip { --tone-bg: #FFEDE6; --tone-fg: #C2410C; }
.service-bubble { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 15px; background: var(--tone-bg, var(--sunken)); color: var(--tone-fg, var(--ink)); }
.service-bubble .i { width: 22px; height: 22px; }
.service-bubble.xs { width: 26px; height: 26px; border-radius: 9px; }
.service-bubble.xs .i { width: 14px; height: 14px; }

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.service-tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 164px; padding: 16px;
  border-radius: var(--radius-l); background: var(--tone-bg); color: var(--ink); text-align: left; overflow: hidden;
  border: 2px solid transparent; isolation: isolate;
  transition: transform .4s var(--ease-spring), box-shadow .3s, border-color .2s;
}
.service-tile::after {
  content: ""; position: absolute; z-index: -1; right: -34px; bottom: -34px; width: 120px; height: 120px; border-radius: 50%;
  background: color-mix(in srgb, var(--tone-fg) 13%, transparent); transition: transform .6s var(--ease-out);
}
.service-tile:hover { transform: translateY(-4px); box-shadow: 0 18px 32px -14px color-mix(in srgb, var(--tone-fg) 55%, transparent); }
.service-tile:hover::after { transform: scale(1.35); }
.service-tile:active { transform: scale(.97); }
.service-tile .service-bubble { background: #fff; margin-bottom: auto; box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--tone-fg) 45%, transparent); }
.service-tile strong { font-size: 16px; font-weight: 800; letter-spacing: -.01em; margin-top: 14px; }
.tile-tagline { font-size: 12px; line-height: 1.35; color: color-mix(in srgb, var(--ink) 62%, var(--tone-fg)); }
.tile-price { margin-top: 6px; font-weight: 800; font-size: 15px; color: var(--tone-fg); }
.tile-price small { font-weight: 700; }
.tile-arrow, .tile-check { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.tile-arrow { background: rgba(255, 255, 255, .75); transition: transform .4s var(--ease-spring); }
.tile-arrow .i, .tile-check .i { width: 16px; height: 16px; }
.service-tile:hover .tile-arrow { transform: rotate(45deg) scale(1.08); }
.tile-check { background: var(--primary); color: #fff; transform: scale(0); transition: transform .4s var(--ease-spring); }
.service-tile.selected { border-color: var(--primary); }
.service-tile.selected .tile-check { transform: scale(1); }

/* ---------------------------------------------------------------- Accueil public */
.welcome { gap: 30px; }
.hero { display: grid; gap: 24px; align-items: center; }
.hero-copy { display: grid; gap: 16px; align-content: start; }
.hero-title { font-size: clamp(42px, 11vw, 78px); }
.hl {
  padding: 0 .06em; border-radius: 6px;
  background: linear-gradient(100deg, #FFD3C4, #FFE7DE) no-repeat 0 90% / 0% 38%;
  animation: marker .9s .7s var(--ease-out) forwards;
}
.role-cards { display: grid; gap: 10px; margin-top: 4px; }
.role-card {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 22px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: transform .35s var(--ease-spring), box-shadow .3s;
}
.role-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.role-card:active { transform: scale(.98); }
.role-card.pro { background: var(--primary); color: #fff; border-color: var(--primary); }
.role-icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); flex-shrink: 0; }
.role-card.pro .role-icon { background: rgba(255, 255, 255, .16); color: #fff; }
.role-text { display: grid; flex: 1; }
.role-text strong { font-size: 17px; font-weight: 800; }
.role-text small { font-size: 13px; opacity: .72; }
.role-arrow { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--sunken); transition: transform .4s var(--ease-spring); }
.role-card.pro .role-arrow { background: rgba(255, 255, 255, .12); }
.role-card:hover .role-arrow { transform: rotate(45deg); }
.hero-visual { position: relative; }
.map-hero { height: 360px; border-radius: var(--radius-xl); box-shadow: var(--shadow-2); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); box-shadow: var(--shadow-2); font-size: 13px;
  animation: floaty 6s ease-in-out infinite;
}
.float-card div { display: grid; line-height: 1.3; }
.float-card small { color: var(--muted); font-size: 12px; }
.float-card .avatar { box-shadow: none; }
.float-ok { width: 26px; height: 26px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; }
.float-ok .i { width: 14px; height: 14px; }
.fc-1 { top: 16px; left: 12px; animation-delay: -1s; }
.fc-2 { bottom: 64px; right: 12px; animation-delay: -3s; }
.fc-3 { bottom: 14px; left: 18px; animation-delay: -4.5s; flex-direction: column; align-items: flex-start; gap: 4px; }
.fc-2 .service-bubble { width: 38px; height: 38px; border-radius: 12px; }
.price-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; background: var(--primary); color: #fff; padding: 5px 10px; border-radius: 99px; font-size: 12px; }
.price-pill .i { width: 13px; height: 13px; }
.service-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.service-strip::-webkit-scrollbar { display: none; }
.strip-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 99px; background: var(--tone-bg); color: var(--ink); font-weight: 700; font-size: 13px; white-space: nowrap; }
.strip-chip .i { width: 16px; height: 16px; color: var(--tone-fg); }
.demo-block { display: grid; gap: 16px; padding: 20px; border-radius: var(--radius-xl); background: linear-gradient(135deg, #EEF4FF, #FFFFFF 60%); border: 1px solid #D6E4FF; }
.demo-head { display: grid; gap: 6px; }
.demo-head h2 { font-family: var(--display); font-size: 26px; letter-spacing: -.02em; }
.demo-head p { color: var(--muted); font-size: 14px; max-width: 70ch; }
.demo-groups { display: grid; gap: 16px; }
.demo-groups h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.demo-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.demo-list.compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 12px 0; }
.demo-account {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  text-align: left; transition: transform .3s var(--ease-spring), box-shadow .2s;
}
.demo-account:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.demo-account:active { transform: scale(.98); }
.demo-account span { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.demo-account strong { font-size: 14px; }
.demo-account small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-account[aria-busy="true"] { opacity: .6; }
.demo-split { justify-self: start; }
.how { display: grid; gap: 14px; }
.how-grid { display: grid; gap: 12px; }
.how-card { position: relative; display: grid; gap: 8px; padding: 20px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.how-card > .i { width: 26px; height: 26px; color: var(--primary); }
.how-card h3 { font-family: var(--display); font-size: 20px; letter-spacing: -.02em; }
.how-card p { color: var(--muted); font-size: 14px; }
.how-num { position: absolute; top: -18px; right: 8px; font-family: var(--display); font-size: 96px; font-weight: 800; color: var(--sunken); line-height: 1; }
.welcome-foot { display: grid; gap: 6px; font-size: 12px; color: var(--muted); text-align: center; padding: 10px 0 0; }
.welcome-foot p { display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; }
.welcome-foot .i { width: 14px; height: 14px; }

@media (min-width: 760px) {
  .role-cards { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: repeat(3, 1fr); }
  .demo-groups { grid-template-columns: 1fr 1.6fr; }
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; min-height: 560px; }
  .map-hero { height: 540px; }
}

/* ---------------------------------------------------------------- Authentification */
.auth { max-width: 460px; }
.auth-card { display: grid; gap: 12px; padding: 24px 20px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.auth-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--muted); width: fit-content; }
.auth-back .i { width: 16px; height: 16px; }
.form { display: grid; gap: 2px; }
.field { display: grid; gap: 7px; margin: 12px 0 0; }
.field > span { font-size: 13px; font-weight: 800; }
.field em { font-style: normal; font-weight: 600; color: var(--muted); margin-left: 6px; }
input:not([type="checkbox"]):not([type="radio"]), textarea, select {
  width: 100%; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink); font-size: 16px; transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { resize: vertical; min-height: 92px; line-height: 1.45; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
input::placeholder, textarea::placeholder { color: var(--faint); }
.input-icon { position: relative; display: block; }
.input-icon > .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon input { padding-left: 44px !important; }
.form-error { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 11px 13px; border-radius: 14px; background: var(--danger-soft); color: #B3312B; font-size: 13px; font-weight: 700; animation: shake .45s; }
.form-error .i { width: 17px; height: 17px; margin-top: 1px; }
.auth .btn-block { margin-top: 18px; }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.role-option { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface-2); text-align: left; transition: border-color .2s, background .2s, transform .3s var(--ease-spring); }
.role-option span { display: grid; line-height: 1.25; }
.role-option small { font-size: 11px; color: var(--muted); }
.role-option .i { color: var(--muted); }
.role-option.selected { border-color: var(--primary); background: var(--primary-softer); box-shadow: var(--shadow-1); }
.role-option.selected .i { color: var(--primary); }
.role-option:active { transform: scale(.97); }

/* ---------------------------------------------------------------- Succès */
.success-mark {
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 26px; background: var(--success-soft); color: var(--success);
  animation: pop .7s var(--ease-spring) both; box-shadow: 0 16px 32px -14px rgba(22, 163, 74, .55);
}
.success-mark .i { width: 36px; height: 36px; stroke-width: 2.6; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .7s .3s var(--ease-out) forwards; }
.success-mark.small { width: 56px; height: 56px; border-radius: 20px; }
.success-mark.small .i { width: 28px; height: 28px; }
.success-mark.heart { background: #FFE4EA; color: #E0567A; box-shadow: 0 16px 32px -14px rgba(224, 86, 122, .6); }
.success-mark.heart .i { fill: currentColor; stroke-dasharray: none; stroke-dashoffset: 0; animation: heartbeat 1.4s .4s ease-in-out infinite; }
.success-mark.neutral { background: var(--sunken); color: var(--muted); box-shadow: none; }

/* ---------------------------------------------------------------- Accueil client */
.home-grid { display: grid; gap: 18px; }
.map-card { position: relative; border-radius: var(--radius-l); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.map-card .map { border-radius: 0; }
.map-medium { height: 240px; }
@media (min-width: 1024px) { .map-medium { height: 300px; } }
.map-card-foot { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.map-card-foot > div:not(.avatar-stack) { display: grid; flex: 1; line-height: 1.3; }
.map-card-foot small { color: var(--muted); font-size: 12px; }
.trust-list { display: grid; gap: 10px; margin-top: 14px; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .6); border: 1px solid var(--line); }
.trust-item > .i { width: 22px; height: 22px; color: var(--primary); margin-top: 2px; }
.trust-item div { display: grid; }
.trust-item small { color: var(--muted); font-size: 13px; }
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .home-grid { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); align-items: start; }
  .home-grid > aside { position: sticky; top: 80px; }
}

/* ---------------------------------------------------------------- Cartes de mission */
.mission-card {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 22px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: transform .3s var(--ease-spring), box-shadow .25s;
}
.mission-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.mission-card:active { transform: scale(.985); }
.mission-card-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mission-card-text strong { font-size: 15px; }
.mission-card-text .muted { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mission-card-text .chip { margin-top: 5px; }
.mission-card-side { display: grid; justify-items: end; gap: 2px; text-align: right; }
.mission-card-side strong { font-family: var(--display); font-size: 18px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mission-card-side .muted { font-size: 11px; }
.card-list.highlight .mission-card { border-color: #D6E4FF; background: linear-gradient(135deg, #FFFFFF 60%, #F3F7FE); }

/* ---------------------------------------------------------------- Carte (plan) */
.map { position: relative; overflow: hidden; background: #ECEEE6; border-radius: 22px; isolation: isolate; }
.map-canvas, .map-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-streets-casing { fill: none; stroke: #DCDFD4; stroke-width: 6.5px; stroke-linecap: round; stroke-linejoin: round; }
.map-streets { fill: none; stroke: #FFFFFF; stroke-width: 3.6px; stroke-linecap: round; stroke-linejoin: round; }
.map-zone { fill: rgba(37, 99, 235, .12); stroke: rgba(37, 99, 235, .55); stroke-width: 2px; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; animation: zone 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.map-pins { position: absolute; inset: 0; pointer-events: none; }
.map.tappable { cursor: crosshair; }
.map-attrib { position: absolute; right: 8px; bottom: 6px; z-index: 2; font-size: 10px; color: var(--muted); background: rgba(255, 255, 255, .8); padding: 2px 7px; border-radius: 99px; }
.pin { position: absolute; left: 0; top: 0; will-change: transform; }
.pin-home .pin-dot { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--primary); border: 3.5px solid #fff; box-shadow: 0 4px 12px rgba(15, 23, 42, .35); animation: pop .6s var(--ease-spring) both; }
.pin-halo { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: rgba(37, 99, 235, .28); animation: halo 2.6s var(--ease-out) infinite; }
.pin-home:not(.radar) .pin-halo { animation-name: haloSmall; }
.pin-home:not(.radar) .pin-halo.two, .pin-home:not(.radar) .pin-halo.three { display: none; }
.pin-halo.two { animation-delay: .85s; }
.pin-halo.three { animation-delay: 1.7s; }
.pin-caption { position: absolute; top: 16px; left: 0; transform: translateX(-50%); white-space: nowrap; background: #fff; color: var(--ink); font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 99px; box-shadow: var(--shadow-1); }
.pin-area .pin-dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(37, 99, 235, .5); }
.pin-body {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 6px; padding: 3px; border-radius: 99px;
  background: #fff; box-shadow: 0 6px 16px rgba(15, 23, 42, .18); transform: translate(-50%, calc(-100% - 8px));
  animation: pinDrop .7s var(--ease-spring) both; animation-delay: var(--pin-delay, 0ms);
}
.pin-body::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; z-index: -1; }
.pin-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--pin-color); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.pin-label { font-size: 12px; font-weight: 800; padding-right: 8px; white-space: nowrap; }
.pin-pro.selected .pin-body { background: var(--primary); color: #fff; }
.pin-pro.dim .pin-body { opacity: .62; }
.pin-pro.pulse .pin-avatar { animation: avatarPulse 1.9s ease-out infinite; animation-delay: var(--pin-delay, 0ms); }

/* ---------------------------------------------------------------- Réservation */
.booking { gap: 16px; }
.booking-top { display: flex; align-items: center; gap: 12px; }
.progress { flex: 1; display: flex; gap: 6px; }
.progress-seg { flex: 1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress-seg span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--primary); transition: width .6s var(--ease-out); }
.progress-seg.done span { width: 100%; }
.progress-seg.current span { width: 100%; background: linear-gradient(90deg, var(--primary), #93C5FD); }
.progress-label { font-size: 12px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.booking-grid { display: grid; gap: 20px; }
.booking-main { min-width: 0; }
.booking-aside { display: none; }
.step { display: grid; gap: 4px; }
.step-head { display: grid; gap: 6px; margin-bottom: 8px; }
.service-grid.pick .service-tile { min-height: 150px; }
.map-picker { position: relative; margin-top: 16px; }
.map-picker-map { height: 280px; }
.map-locate { position: absolute; left: 10px; top: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; background: #fff; font-size: 13px; font-weight: 800; box-shadow: var(--shadow-1); transition: transform .25s var(--ease-spring); }
.map-locate .i { width: 16px; height: 16px; color: var(--primary); }
.map-locate:active { transform: scale(.95); }
.map-hint { position: absolute; right: 10px; top: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 99px; background: rgba(15, 23, 42, .82); color: #fff; font-size: 12px; font-weight: 700; pointer-events: none; animation: hintFade 4s 2.5s forwards; }
.map-hint .i { width: 14px; height: 14px; }
.date-scroller { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -2px; scroll-snap-type: x proximity; scrollbar-width: none; }
.date-scroller::-webkit-scrollbar { display: none; }
.date-chip {
  position: relative; flex: 0 0 auto; width: 64px; min-height: 88px; padding: 10px 4px; display: grid; justify-items: center; align-content: center; gap: 1px;
  border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line); scroll-snap-align: start; cursor: pointer;
  transition: transform .35s var(--ease-spring), background .2s, border-color .2s, color .2s;
}
.date-chip small { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: capitalize; }
.date-chip strong { font-family: var(--display); font-size: 22px; line-height: 1.1; }
.date-chip em { position: absolute; top: -8px; right: -4px; font-style: normal; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 99px; background: var(--accent); color: #fff; }
.date-chip .i { width: 20px; height: 20px; margin: 3px 0; }
.date-chip:active { transform: scale(.94); }
.date-chip.selected { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(37, 99, 235, .7); }
.date-chip.selected small { color: rgba(255, 255, 255, .7); }
.date-chip.disabled { opacity: .4; cursor: not-allowed; }
.date-chip.other input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; padding: 0; cursor: pointer; }
.picked-date { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.picked-date .i { color: var(--primary); }
.time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.time-chip { min-height: 46px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); font-weight: 750; font-variant-numeric: tabular-nums; transition: transform .3s var(--ease-spring), background .2s, color .2s, border-color .2s; }
.time-chip:active:not(:disabled) { transform: scale(.94); }
.time-chip.selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.time-chip:disabled { opacity: .35; text-decoration: line-through; }
.segmented { display: flex; gap: 4px; padding: 4px; border-radius: 18px; background: var(--sunken); }
.seg { flex: 1; min-height: 44px; border-radius: 14px; font-weight: 750; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .25s, color .2s, box-shadow .25s, transform .3s var(--ease-spring); }
.seg.selected { background: var(--surface); color: var(--primary-ink); box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }
.seg:active { transform: scale(.96); }
.seg-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--primary); color: #fff; font-size: 11px; display: inline-grid; place-items: center; }
.seg:not(.selected) .seg-count { background: var(--line-2); color: var(--ink); }
.slot-summary { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 14px 16px; border-radius: 18px; background: var(--primary-soft); color: var(--primary-ink); }
.slot-summary strong { color: var(--ink); }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 13px 14px; border-radius: 16px; background: var(--surface-2); border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 13px; }
.note .i { width: 18px; height: 18px; color: var(--primary); margin-top: 1px; }
.note.warn { background: #FFF8E1; border-color: #F2DC8C; }
.note.warn .i { color: #A07400; }
.recap { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; }
.recap-text { flex: 1; display: grid; gap: 2px; min-width: 0; font-size: 14px; }
.recap-text strong { font-size: 16px; }
.pay-block { display: grid; gap: 16px; margin-top: 16px; }
.demo-card {
  position: relative; overflow: hidden; width: 100%; max-width: 340px; aspect-ratio: 1.586; padding: 18px 20px; border-radius: 22px;
  display: flex; flex-direction: column; justify-content: space-between; color: var(--ink);
  background: linear-gradient(135deg, #DCE8FF 0%, #EEF4FF 50%, #FFE3D8 100%);
  box-shadow: 0 20px 40px -18px rgba(37, 99, 235, .5); transform: rotate(-2deg);
}
.demo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .7) 48%, transparent 64%); transform: translateX(-100%); animation: sheen 4.5s ease-in-out infinite 1s; }
.demo-card-top { display: flex; justify-content: space-between; align-items: center; }
.demo-card-chip { width: 42px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #F4DC8E, #D6AE45); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.demo-card-brand { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.demo-card-number { font-size: 19px; font-weight: 750; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.demo-card-foot { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.pay-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pay-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.pay-points .i { width: 18px; height: 18px; color: var(--primary); margin-top: 2px; }
.action-bar {
  position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px calc(12px + var(--safe-bottom)); background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); border-top: 1px solid var(--line);
  animation: barIn .5s var(--ease-out) both;
}
.action-total { display: grid; line-height: 1.15; min-width: 92px; }
.action-total small { font-size: 11px; font-weight: 700; color: var(--muted); }
.action-total strong { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.aside-service { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; font-size: 16px; }
.aside-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 8px 0; color: var(--ink-2); }
.aside-line .i { width: 18px; height: 18px; color: var(--muted); margin-top: 1px; }
.booking-aside .price { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (min-width: 1024px) {
  .booking-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
  .booking-aside { display: block; }
  .sticky { position: sticky; top: 80px; }
  .action-bar, .action-bar.static { position: sticky; bottom: 20px; margin-top: 24px; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-2); padding: 12px 12px 12px 20px; }
  .time-grid { grid-template-columns: repeat(6, 1fr); }
  .map-picker-map { height: 340px; }
}

/* ---------------------------------------------------------------- Prix */
.price { display: grid; }
.price-title { font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; font-size: 14px; color: var(--muted); }
.price-row span { display: inline-flex; align-items: center; gap: 6px; }
.price-row .i { width: 15px; height: 15px; color: var(--accent); }
.price-row strong { color: var(--ink); font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-row.tip { color: var(--ink-2); }
.price-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 8px; padding-top: 12px; border-top: 1.5px dashed var(--line-2); font-weight: 800; }
.price-total strong { font-family: var(--display); font-size: 30px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price.compact .price-row { font-size: 13px; padding: 5px 0; }
.price.compact .price-total strong { font-size: 22px; }
.price-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 11px 13px; border-radius: 14px; background: var(--primary-softer); font-size: 13px; color: var(--ink-2); }
.price-note .i { width: 17px; height: 17px; color: var(--primary); margin-top: 1px; }

/* ---------------------------------------------------------------- Paiement simulé */
.sheet-pay .sheet { text-align: center; }
.paying { display: grid; justify-items: center; gap: 18px; padding: 12px 0 8px; }
.paying-card { position: relative; width: 200px; aspect-ratio: 1.586; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #DCE8FF, #EEF4FF 50%, #FFE3D8); box-shadow: 0 18px 36px -16px rgba(37, 99, 235, .55); animation: cardFloat 1.6s ease-in-out infinite; }
.paying-card .demo-card-chip { position: absolute; left: 16px; top: 18px; }
.paying-shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .8) 50%, transparent 70%); animation: sheen 1.2s ease-in-out infinite; transform: translateX(-100%); }
.paying-state { display: grid; justify-items: center; gap: 6px; min-height: 96px; }
.paying-state small { color: var(--muted); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3.5px solid var(--line); border-top-color: var(--primary); animation: spin .8s linear infinite; }
.sheet.done .paying-card { animation: none; transform: scale(.96); opacity: .7; transition: all .4s; }

/* ---------------------------------------------------------------- Mission */
.mission-page { gap: 14px; }
.mission-top { display: flex; align-items: center; gap: 12px; }
.mission-top-text { flex: 1; display: grid; line-height: 1.25; min-width: 0; }
.mission-top-text strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mission-top-text .muted { font-size: 12px; font-variant-numeric: tabular-nums; }
.mission-layout { display: grid; gap: 14px; }
.mission-side, .mission-main { display: grid; gap: 14px; align-content: start; min-width: 0; }
.mission-hero { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-2); }
.map-mission { height: 470px; border-radius: 0; }
.hero-overlay {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3; display: grid; gap: 6px; padding: 16px;
  border-radius: 22px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-2); animation: rise .6s .15s var(--ease-out) both;
}
.hero-overlay p { color: var(--ink-2); font-size: 14px; }
.celebrate { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 28px 20px; background: linear-gradient(180deg, #F0FDF4, #FFFFFF 70%); }
.celebrate.muted-card { background: var(--surface); }
.celebrate blockquote { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); font-style: italic; max-width: 40ch; }
.offer-hero-amount { display: flex; align-items: baseline; gap: 8px; }
.offer-hero-amount strong { font-family: var(--display); font-size: 42px; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.offer-hero-amount span { font-weight: 700; color: var(--muted); }
.offer-hero-amount.center { justify-content: center; }
.facts { display: grid; gap: 14px; }
.fact { display: flex; gap: 12px; align-items: flex-start; }
.fact > .i { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--sunken); color: var(--ink-2); }
.fact div { display: grid; min-width: 0; line-height: 1.35; }
.fact small { font-size: 12px; color: var(--muted); font-weight: 600; }
.fact strong { font-size: 14px; font-weight: 700; }
.fact em { font-style: normal; font-size: 12px; color: var(--primary-ink); font-weight: 600; margin-top: 2px; }
.client-line { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.client-line div { display: grid; line-height: 1.3; }
.client-line .muted { font-size: 12px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 8px 0; color: var(--muted); font-size: 14px; }
.timeline li + li::before { content: ""; position: absolute; left: 13px; top: -9px; height: 18px; width: 2px; border-radius: 2px; background: var(--line); }
.timeline li.done::before { background: var(--primary); }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); display: grid; place-items: center; transition: all .3s; }
.tl-dot .i { width: 14px; height: 14px; stroke-width: 3; }
.timeline li.done { color: var(--ink); font-weight: 650; }
.timeline li.done .tl-dot { background: var(--primary); border-color: var(--primary); color: #fff; animation: pop .5s var(--ease-spring); }
.timeline li.current .tl-dot { border-color: var(--primary); box-shadow: 0 0 0 5px rgba(37, 99, 235, .14); animation: currentPulse 2s ease-in-out infinite; }
.timeline li.current { color: var(--ink); }
.timeline li.cancelled .tl-dot { background: var(--sunken); border-color: var(--sunken); color: var(--muted); }
.tl-time { font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.checks { display: grid; gap: 8px; margin: 12px 0 14px; }
.check-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; font-weight: 650; transition: background .3s, border-color .3s; }
.check-row small { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 700; }
.check-mark { width: 26px; height: 26px; border-radius: 50%; border: 2px dashed var(--line-2); display: grid; place-items: center; flex-shrink: 0; }
.check-mark .i { width: 14px; height: 14px; stroke-width: 3; }
.check-row.done { background: var(--success-soft); border-color: #BBF7D0; }
.check-row.done .check-mark { border: 0; background: var(--success); color: #fff; animation: pop .5s var(--ease-spring); }
.check-row.done small { color: var(--success-ink); }
.waiting { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: 16px; background: var(--primary-soft); color: var(--primary-ink); font-weight: 700; font-size: 14px; }
.waiting .i { animation: tick 2s ease-in-out infinite; }
.ledger { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.ledger summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 750; list-style: none; padding: 4px 0; }
.ledger summary::-webkit-details-marker { display: none; }
.ledger summary .i { width: 16px; height: 16px; color: var(--muted); }
.ledger summary .muted { margin-left: auto; font-weight: 600; font-size: 12px; }
.ledger ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ledger li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; font-size: 13px; align-items: center; }
.ledger li .muted { font-size: 11px; }
.ledger li strong { font-variant-numeric: tabular-nums; }
.pro-card { display: flex; align-items: center; gap: 14px; }
.pro-card-text { display: grid; gap: 1px; min-width: 0; flex: 1; }
.pro-card-text strong { font-size: 17px; font-weight: 800; }
.pro-card-text .muted { font-size: 13px; }
.pro-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 12px; color: var(--muted); font-weight: 650; }
.pro-meta .rating { display: inline-flex; align-items: center; gap: 3px; color: var(--ink); font-weight: 800; }
.pro-meta .rating .i, .stat-rating .i { width: 14px; height: 14px; color: #F2B400; fill: #F2B400; }
.pro-card.compact { padding: 10px; border-radius: 18px; background: var(--surface-2); margin: 10px 0 4px; }
.review-card { display: grid; gap: 4px; }
.rating-input { display: flex; justify-content: center; gap: 8px; margin: 14px 0 4px; }
.star-btn { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--sunken); color: #C9C5BA; transition: transform .35s var(--ease-spring), background .25s, color .25s; }
.star-btn .i { width: 28px; height: 28px; }
.star-btn:hover { transform: translateY(-3px) scale(1.05); }
.star-btn:active { transform: scale(.9); }
.star-btn.on { background: #FFF4C9; color: #F59E0B; }
.star-btn.on .i { fill: currentColor; animation: starPop .5s var(--ease-spring) both; animation-delay: var(--d, 0ms); }
.rating-caption { text-align: center; font-weight: 800; font-size: 14px; color: var(--muted); min-height: 21px; }
.tip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tip-chip { flex: 1 1 64px; min-height: 46px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 750; transition: transform .3s var(--ease-spring), background .2s, color .2s, border-color .2s; }
.tip-chip.selected { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-ink); }
.tip-chip:active { transform: scale(.94); }
.review-total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 12px; padding-top: 12px; border-top: 1.5px dashed var(--line-2); font-weight: 800; }
.review-total strong { font-family: var(--display); font-size: 24px; font-variant-numeric: tabular-nums; }
.stars { display: inline-flex; gap: 2px; }
.star .i { width: 20px; height: 20px; color: #DAD6CB; }
.star.on .i { color: #F2B400; fill: #F2B400; }
.payout-card { display: grid; gap: 4px; background: linear-gradient(135deg, #F0FDF4, #FFFFFF 70%); }
.payout-card small { font-weight: 700; color: var(--muted); }
.payout-card strong { font-family: var(--display); font-size: 34px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.payout-card p { color: var(--ink-2); font-size: 14px; }
.offer-actions { display: flex; gap: 8px; align-items: center; }
.offer-actions.big .btn { min-height: 56px; }
@media (min-width: 1024px) {
  .mission-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .mission-side { position: sticky; top: 76px; }
  .map-mission { height: calc(100vh - 150px); min-height: 460px; max-height: 720px; }
}

/* ---------------------------------------------------------------- Espace pro */
.banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; background: var(--primary-soft); color: var(--primary-ink); }
.banner span { display: grid; flex: 1; line-height: 1.3; }
.banner strong { color: var(--ink); }
.banner small { font-size: 13px; }
.pro-grid { display: grid; gap: 18px; }
.pro-col { display: grid; gap: 18px; align-content: start; min-width: 0; }
.online-card {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius-l); text-align: left;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transition: background .5s var(--ease-out), box-shadow .3s, transform .3s var(--ease-spring);
}
.online-card:active { transform: scale(.98); }
.online-card.on { background: linear-gradient(135deg, #EEF4FF 0%, #D9E6FF 100%); border-color: #BFD3FE; box-shadow: 0 16px 34px -18px rgba(37, 99, 235, .7); }
.online-orb { position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--sunken); display: grid; place-items: center; flex-shrink: 0; }
.online-orb span { width: 16px; height: 16px; border-radius: 50%; background: var(--faint); transition: background .3s; }
.online-card.on .online-orb { background: rgba(255, 255, 255, .55); }
.online-card.on .online-orb span { background: #1FB768; animation: liveRing 1.8s ease-out infinite; }
.online-text { display: grid; flex: 1; line-height: 1.3; }
.online-text strong { font-family: var(--display); font-size: 20px; letter-spacing: -.02em; }
.online-text small { font-size: 13px; color: var(--ink-2); }
.switch { position: relative; width: 56px; height: 32px; border-radius: 99px; background: var(--line-2); flex-shrink: 0; transition: background .3s; }
.switch.on { background: var(--primary); }
.switch-knob { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .45s var(--ease-spring), background .3s; }
.switch.on .switch-knob { transform: translateX(24px); background: #fff; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { display: grid; gap: 2px; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); min-width: 0; transition: transform .3s var(--ease-spring); }
a.stat:hover { transform: translateY(-2px); }
.stat small { font-size: 12px; color: var(--muted); font-weight: 700; }
.stat strong { font-family: var(--display); font-size: clamp(17px, 4.6vw, 22px); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat em { font-style: normal; font-size: 11px; color: var(--muted); }
.stat-rating { display: inline-flex; align-items: center; gap: 4px; }
.offer-list { display: grid; gap: 12px; }
.offer-card { display: grid; gap: 10px; padding: 16px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.offer-card.fresh { animation: offerIn .8s var(--ease-spring) both; }
.offer-card.leaving { animation: leave .32s ease forwards; pointer-events: none; }
.offer-top { display: flex; align-items: center; gap: 12px; }
.offer-title { flex: 1; display: grid; min-width: 0; line-height: 1.3; }
.offer-title strong { font-size: 16px; }
.offer-title .muted { font-size: 13px; }
.offer-amount { display: grid; justify-items: end; line-height: 1.1; }
.offer-amount strong { font-family: var(--display); font-size: 24px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.offer-amount small { font-size: 11px; color: var(--muted); font-weight: 700; }
.offer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; font-weight: 650; }
.offer-meta > span:first-child { display: inline-flex; align-items: center; gap: 4px; }
.offer-meta .i { width: 15px; height: 15px; color: var(--primary); }
.offer-meta .muted { margin-left: auto; font-size: 11px; font-variant-numeric: tabular-nums; }
.offer-details { font-size: 13px; color: var(--ink-2); background: var(--surface-2); padding: 10px 12px; border-radius: 14px; overflow-wrap: anywhere; }
.offer-warn { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #8A5A00; }
.offer-warn .i { width: 16px; height: 16px; }
.radar-empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 28px 18px; border-radius: var(--radius-l); background: var(--surface); border: 1px dashed var(--line-2); }
.radar-empty p { color: var(--muted); font-size: 14px; max-width: 36ch; }
.radar { position: relative; width: 120px; height: 120px; margin-bottom: 8px; }
.radar span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(37, 99, 235, .4); animation: radar 2.8s var(--ease-out) infinite; }
.radar span:nth-child(2) { animation-delay: .93s; }
.radar span:nth-child(3) { animation-delay: 1.86s; }
.radar i { position: absolute; inset: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; }
.radar i .i { width: 22px; height: 22px; animation: ring 2.8s ease-in-out infinite; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.svc-chip strong { color: var(--muted); font-weight: 700; }
@media (min-width: 1024px) {
  .pro-grid { grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); align-items: start; gap: 24px; }
}

/* ---------------------------------------------------------------- Revenus */
.wallet-grid { display: grid; gap: 14px; }
.wallet-hero {
  position: relative; overflow: hidden; display: grid; gap: 6px; padding: 22px; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #E8EFFD 0%, #F3F7FE 55%, #FFEDE6 100%); border: 1px solid #D6E4FF; box-shadow: var(--shadow-2);
}
.wallet-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.wallet-hero-top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: var(--ink-2); position: relative; z-index: 1; }
.wallet-total { font-family: var(--display); font-size: clamp(40px, 11vw, 56px); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.wallet-sub { font-size: 13px; color: var(--ink-2); position: relative; z-index: 1; }
.wallet-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; position: relative; z-index: 1; }
.wallet-pills span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: rgba(255, 255, 255, .75); font-size: 13px; }
.wallet-pills .i { width: 15px; height: 15px; color: var(--primary); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.bar { width: 100%; max-width: 38px; height: var(--h); border-radius: 10px 10px 6px 6px; background: var(--sunken); transform-origin: bottom; animation: grow .8s var(--ease-spring) both; animation-delay: var(--d); }
.bar.filled { background: linear-gradient(180deg, #93C5FD, var(--primary)); }
.bar-value { font-size: 10px; font-weight: 800; color: var(--primary-ink); min-height: 14px; white-space: nowrap; }
.bar-col small { font-size: 11px; color: var(--muted); font-weight: 700; }
.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.entry a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease-spring); }
.entry a:hover { transform: translateX(3px); }
.entry-text { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.entry-text strong { font-size: 14px; }
.entry-text small { font-size: 12px; color: var(--muted); }
.entry-amount { font-family: var(--display); font-size: 17px; color: #177245; font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) {
  .wallet-grid { grid-template-columns: 1.1fr 1fr; }
  .wallet-grid .stats { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- Profil */
.profile-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 22px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.profile-id { display: grid; gap: 4px; flex: 1; min-width: 200px; }
.profile-id .muted { font-size: 14px; overflow-wrap: anywhere; }
.profile-id .chip { margin-top: 4px; }
.name-form { display: flex; gap: 8px; align-items: center; }
.name-form input { padding: 10px 12px; }
.profile-stats { display: flex; gap: 10px; }
.profile-stats div { display: grid; justify-items: center; padding: 10px 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.profile-stats strong { display: inline-flex; align-items: center; gap: 4px; font-family: var(--display); font-size: 20px; }
.profile-stats strong .i { width: 16px; height: 16px; color: #F2B400; fill: #F2B400; }
.profile-stats small { font-size: 11px; color: var(--muted); font-weight: 700; }
.profile-grid { display: grid; gap: 18px; }
.svc-list { display: grid; gap: 8px; }
.svc-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--surface); transition: background .3s, border-color .3s; animation: rise .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
.is-refresh .svc-row { animation: none; }
.svc-row.on { background: var(--tone-bg); border-color: color-mix(in srgb, var(--tone-fg) 40%, transparent); }
.svc-toggle { position: relative; flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; cursor: pointer; }
.svc-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.svc-toggle span:not(.check-box):not(.service-bubble) { display: grid; min-width: 0; line-height: 1.3; }
.svc-toggle strong { font-size: 14px; }
.svc-toggle small { font-size: 11px; color: var(--muted); }
.svc-toggle:focus-within { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 3px; border-radius: 14px; }
.svc-row .service-bubble { width: 40px; height: 40px; border-radius: 13px; background: #fff; }
.check-box { margin-left: auto; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line-2); display: grid; place-items: center; color: transparent; flex-shrink: 0; background: #fff; transition: all .3s var(--ease-spring); }
.check-box .i { width: 15px; height: 15px; stroke-width: 3; }
.svc-row.on .check-box { background: var(--primary); border-color: var(--primary); color: #fff; transform: scale(1.05); }
.svc-rate { display: flex; align-items: center; gap: 6px; width: 108px; flex-shrink: 0; font-size: 12px; font-weight: 800; color: var(--muted); }
.svc-rate input { padding: 10px !important; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.svc-rate.hidden { display: none; }
.map-small { height: 220px; }
.save-bar {
  position: fixed; z-index: 36; left: 12px; right: 12px; bottom: calc(96px + var(--safe-bottom)); display: flex; align-items: center; gap: 8px;
  padding: 10px 10px 10px 16px; border-radius: 20px; background: var(--ink); color: #fff; box-shadow: var(--shadow-3); font-size: 13px; font-weight: 700;
  transform: translateY(160%); opacity: 0; pointer-events: none; transition: transform .5s var(--ease-spring), opacity .3s;
}
.save-bar span { flex: 1; }
.save-bar.visible { transform: none; opacity: 1; pointer-events: auto; }
.save-bar .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.save-bar .btn-primary { background: #fff; color: var(--primary-ink); }
.about-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.about-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.about-list .i { width: 18px; height: 18px; color: var(--primary); margin-top: 2px; }
.onboarding { max-width: 720px; }
.action-bar.static { gap: 10px; }
@media (min-width: 1024px) {
  .profile-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
  .save-bar { left: auto; right: 32px; bottom: 24px; width: 460px; }
}

/* ---------------------------------------------------------------- États vides et chargement */
.empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 34px 18px; border-radius: var(--radius-l); background: rgba(255, 255, 255, .6); border: 1px dashed var(--line-2); }
.empty-icon { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 4px; animation: floaty 5s ease-in-out infinite; }
.empty-icon .i { width: 28px; height: 28px; }
.empty strong { font-family: var(--display); font-size: 20px; letter-spacing: -.02em; }
.empty p { color: var(--muted); font-size: 14px; max-width: 40ch; }
.empty .btn { margin-top: 8px; }
.skeleton-page { gap: 14px; }
.sk { border-radius: 18px; background: linear-gradient(90deg, #ECEAE3 25%, #F6F5F1 50%, #ECEAE3 75%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.sk-title { height: 42px; width: 70%; border-radius: 14px; }
.sk-sub { height: 18px; width: 45%; border-radius: 10px; }
.sk-card { height: 120px; }

/* ---------------------------------------------------------------- Feuilles modales */
#overlay-root { position: relative; z-index: 50; }
.sheet-layer { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .34); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 88vh; max-height: 88dvh; overflow: auto; overscroll-behavior: contain;
  padding: 8px 20px calc(20px + var(--safe-bottom)); background: var(--surface); border-radius: 30px 30px 0 0;
  box-shadow: var(--shadow-3); transform: translateY(105%); transition: transform .45s var(--ease-sheet);
}
.sheet-handle { width: 44px; height: 5px; border-radius: 99px; background: var(--line-2); margin: 4px auto 10px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sheet-head h2 { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; }
.sheet-actions { display: flex; gap: 10px; margin-top: 18px; }
.sheet-actions .btn { flex: 1; }
.sheet-layer.open .sheet-backdrop { opacity: 1; }
.sheet-layer.open .sheet { transform: none; }
.sheet-layer.closing .sheet-backdrop { opacity: 0; }
.sheet-layer.closing .sheet { transform: translateY(105%); }
.confirm-body { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 6px 0; }
.confirm-body p { color: var(--ink-2); font-size: 15px; max-width: 40ch; }
.confirm-icon { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); animation: pop .5s var(--ease-spring); }
.confirm-icon .i { width: 28px; height: 28px; }
@media (min-width: 760px) {
  .sheet-layer { align-items: center; padding: 24px; }
  .sheet { border-radius: 30px; transform: translateY(26px) scale(.96); opacity: 0; transition: transform .4s var(--ease-spring), opacity .25s; padding-bottom: 22px; }
  .sheet-handle { display: none; }
  .sheet-layer.open .sheet { transform: none; opacity: 1; }
  .sheet-layer.closing .sheet { transform: translateY(16px) scale(.97); opacity: 0; }
  .sheet-layer.sheet-side { justify-content: flex-end; align-items: stretch; padding: 12px; }
  .sheet-side .sheet { max-width: 420px; max-height: none; height: 100%; transform: translateX(110%); opacity: 1; transition: transform .45s var(--ease-sheet); }
  .sheet-layer.sheet-side.open .sheet { transform: none; }
  .sheet-layer.sheet-side.closing .sheet { transform: translateX(110%); }
}

/* ---------------------------------------------------------------- Notifications */
.notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.notif button { width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px; border-radius: 18px; transition: background .2s; }
.notif button:hover { background: var(--surface-2); }
.notif.unread button { background: var(--primary-softer); }
.notif-icon { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; background: var(--sunken); color: var(--ink-2); }
.notif-icon .i { width: 18px; height: 18px; }
.notif-icon.k-offer { background: var(--accent-soft); color: var(--accent-ink); }
.notif-icon.k-accepted, .notif-icon.k-released { background: #DDF6E8; color: #177245; }
.notif-icon.k-review { background: #FFF4C9; color: #A07400; }
.notif-icon.k-no_provider { background: #FFF0EE; color: var(--danger); }
.notif-text { display: grid; gap: 2px; min-width: 0; line-height: 1.35; }
.notif-text strong { font-size: 14px; }
.notif-text span { font-size: 13px; color: var(--ink-2); }
.notif-text small { font-size: 11px; color: var(--muted); }

/* ---------------------------------------------------------------- Toasts */
#toast-root { position: fixed; z-index: 60; top: calc(10px + var(--safe-top)); left: 50%; transform: translateX(-50%); width: min(430px, calc(100vw - 20px)); display: grid; gap: 8px; pointer-events: none; }
.toast {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 12px; border-radius: 20px;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); box-shadow: var(--shadow-3); pointer-events: auto; cursor: pointer;
  opacity: 0; transform: translateY(-24px) scale(.95); transition: opacity .35s, transform .55s var(--ease-spring);
}
.toast.in { opacity: 1; transform: none; }
.toast.out { opacity: 0; transform: translateY(-14px) scale(.97); transition-duration: .3s; }
.toast-icon { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.toast-text { display: grid; flex: 1; min-width: 0; line-height: 1.35; }
.toast-text strong { font-size: 14px; }
.toast-text p { font-size: 13px; color: var(--ink-2); }
.toast-action { padding: 9px 13px; border-radius: 12px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 800; }
.toast-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--primary); opacity: .35; transform-origin: left; animation: shrink linear forwards; }
.toast-offer { background: var(--primary); border-color: var(--primary); color: #fff; }
.toast-offer .toast-icon { background: #fff; color: var(--primary); animation: ring 1s var(--ease-out); }
.toast-offer .toast-text p { color: rgba(255, 255, 255, .75); }
.toast-offer .toast-action { background: #fff; color: var(--primary-ink); }
.toast-offer .toast-progress { background: #fff; opacity: .8; }
.toast-error .toast-icon { background: var(--danger-soft); color: var(--danger); }
.toast-error .toast-progress { background: var(--danger); }

/* ---------------------------------------------------------------- Confettis */
.confetti-layer { position: fixed; z-index: 70; width: 0; height: 0; pointer-events: none; }
.confetti-layer span { position: absolute; width: 8px; height: 13px; margin: -6px 0 0 -4px; border-radius: 2px; animation: confetti 1.3s cubic-bezier(.15, .7, .3, 1) var(--delay) both; }
.confetti-layer span.round { width: 9px; height: 9px; border-radius: 50%; }

/* ---------------------------------------------------------------- Adresses et carte interactive */
.field > label { font-size: 13px; font-weight: 800; }
.field-hint { font-size: 12px; color: var(--muted); }
.address-field { position: relative; }
.address-spinner { position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--primary); opacity: 0; transition: opacity .2s; animation: spin .7s linear infinite; }
.address-field.loading .address-spinner { opacity: 1; }
.suggestions {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-3);
  max-height: 300px; overflow: auto; animation: rise .25s var(--ease-out);
}
.suggestion { display: grid; gap: 1px; padding: 10px 12px; border-radius: 12px; cursor: pointer; line-height: 1.3; }
.suggestion strong { font-size: 14px; }
.suggestion small { font-size: 12px; color: var(--muted); }
.suggestion.active, .suggestion:hover { background: var(--primary-softer); }
.suggestion.active strong { color: var(--primary-ink); }
.suggestion.empty { cursor: default; color: var(--muted); font-size: 13px; background: none; }
.coverage { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: 16px; font-size: 14px; background: var(--sunken); color: var(--ink-2); animation: rise .4s var(--ease-out); }
.coverage .i { width: 18px; height: 18px; margin-top: 1px; }
.coverage.ok { background: var(--success-soft); color: var(--success-ink); }
.coverage.none { background: #FFF7ED; color: #9A3412; }
.check-line { display: flex; gap: 10px; align-items: center; margin: 14px 0 0; font-size: 14px; font-weight: 600; cursor: pointer; }
.check-line input { width: 20px; height: 20px; accent-color: var(--primary); }
.soon { font-size: 12px; font-weight: 700; color: var(--muted); }
.address-picker .map-picker { margin-top: 12px; }
.map-loading { position: absolute; inset: 0; background: linear-gradient(90deg, #E9EEF6 25%, #F4F7FB 50%, #E9EEF6 75%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.map-error { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; font-size: 13px; color: var(--muted); }
.map.map-ready { background: #F4F7FB; }
.map .maplibregl-canvas { outline: none; }
.map .maplibregl-ctrl-attrib { font-size: 10px; background: rgba(255, 255, 255, .8); border-radius: 10px 0 0 0; }
.map .maplibregl-ctrl-attrib.maplibregl-compact { border-radius: 12px; margin: 6px; }
.map .maplibregl-ctrl-group { border-radius: 12px; box-shadow: var(--shadow-1); border: 1px solid var(--line); }
.map .maplibregl-cooperative-gesture-screen { font-family: var(--font); font-size: 14px; font-weight: 700; background: rgba(15, 23, 42, .55); }
.map .maplibregl-marker { will-change: transform; }
.pin-home.draggable { cursor: grab; }
.pin-home.draggable .pin-dot { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.pin-home.dragging { cursor: grabbing; }
.pin-home.dragging .pin-dot { transform: scale(1.25); box-shadow: 0 10px 24px rgba(37, 99, 235, .45); }
.map-locate.busy { opacity: .7; pointer-events: none; }

/* ---------------------------------------------------------------- Images clés */
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes sheen { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(120%); } }
@keyframes marker { to { background-size: 100% 36%; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes drift { from { transform: translate3d(0, 0, 0) rotate(0); } to { transform: translate3d(-3%, 2%, 0) rotate(4deg); } }
@keyframes bootPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(.92); } }
@keyframes wave { 0%, 60%, 100% { transform: translate(0, 0); } 70% { transform: translate(-1.5px, -1.5px); } 80% { transform: translate(1.5px, -1px); } 90% { transform: translate(-1px, 0); } }
@keyframes dotPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.7); } }
@keyframes liveRing { 0% { box-shadow: 0 0 0 0 rgba(31, 183, 104, .55); } 100% { box-shadow: 0 0 0 10px rgba(31, 183, 104, 0); } }
@keyframes ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 75% { transform: rotate(2deg); } }
@keyframes halo { from { transform: scale(1); opacity: .75; } to { transform: scale(9); opacity: 0; } }
@keyframes haloSmall { from { transform: scale(1); opacity: .6; } to { transform: scale(3.2); opacity: 0; } }
@keyframes pinDrop { 0% { opacity: 0; transform: translate(-50%, calc(-100% - 44px)) scale(.6); } 100% { opacity: 1; transform: translate(-50%, calc(-100% - 8px)) scale(1); } }
@keyframes avatarPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pin-color) 55%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
@keyframes zone { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes hintFade { to { opacity: 0; transform: translateY(-6px); } }
@keyframes barIn { from { transform: translateY(100%); } to { transform: none; } }
@keyframes cardFloat { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
@keyframes starPop { 0% { transform: scale(.6) rotate(-20deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes currentPulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(37, 99, 235, .16); } 50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, .06); } }
@keyframes tick { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(180deg); } }
@keyframes radar { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@keyframes offerIn { 0% { opacity: 0; transform: translateX(46px) scale(.95); } 60% { opacity: 1; box-shadow: 0 0 0 6px rgba(212, 244, 106, .7), var(--shadow-2); } 100% { transform: none; box-shadow: var(--shadow-1); } }
@keyframes leave { to { opacity: 0; transform: translateX(-40px) scale(.96); } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes shrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes confetti {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  60% { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--rot) * .6)); opacity: 1; }
  100% { transform: translate(calc(var(--dx) * 1.15), calc(var(--dy) + 190px)) rotate(var(--rot)); opacity: 0; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- Identité, entreprise, localisation (01/10) */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-row .field { margin-top: 0; }
.perks { list-style: none; display: grid; gap: 8px; margin: 16px 0 4px; padding: 14px 16px; border-radius: 18px; background: var(--primary-softer); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.perks li { display: flex; gap: 8px; align-items: flex-start; }
.perks .i { width: 16px; height: 16px; color: var(--success); flex: none; margin-top: 1px; }
.field-hint { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.field-hint .i { width: 15px; height: 15px; flex: none; }
.field-hint.ok { color: var(--success-ink); }
.field-hint.bad { color: var(--danger); }
.field-hint.warn { color: #8A6300; }
.company-found { display: flex; gap: 10px; align-items: center; margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: var(--success-soft); color: var(--success-ink); animation: rise .45s var(--ease-out); }
.company-found .i { width: 20px; height: 20px; flex: none; }
.company-found span { display: grid; line-height: 1.3; min-width: 0; }
.company-found strong { color: var(--ink); }
.company-found small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.company-found.closed { background: var(--danger-soft); color: var(--danger); }
.status-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.status-option { padding: 9px 13px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 700; color: var(--ink-2); transition: background .2s, border-color .2s, color .2s, transform .3s var(--ease-spring); }
.status-option:active { transform: scale(.95); }
.status-option.selected { background: var(--primary); border-color: var(--primary); color: #fff; }
.check-line span { display: grid; gap: 2px; line-height: 1.35; }
.check-line small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.check-line input { flex: none; align-self: flex-start; margin-top: 2px; }
.mode-switch { display: grid; gap: 10px; margin: 14px 0; }
.mode-option { display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); transition: border-color .2s, background .2s, transform .3s var(--ease-spring); }
.mode-option > .i { width: 26px; height: 26px; padding: 6px; box-sizing: content-box; border-radius: 12px; background: var(--sunken); color: var(--muted); flex: none; transition: background .2s, color .2s; }
.mode-option span { display: grid; gap: 2px; line-height: 1.3; }
.mode-option small { color: var(--muted); font-size: 12.5px; }
.mode-option.selected { border-color: var(--primary); background: var(--primary-softer); }
.mode-option.selected > .i { background: var(--primary); color: #fff; }
.mode-option:active { transform: scale(.98); }
@media (min-width: 640px) { .mode-switch { grid-template-columns: 1fr 1fr; } }
.gps-box { display: grid; gap: 12px; }
.gps-ok { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--success-soft); color: var(--success-ink); }
.gps-ok > .i { width: 22px; height: 22px; flex: none; }
.gps-ok span { display: grid; flex: 1; line-height: 1.3; min-width: 0; }
.gps-ok strong { color: var(--ink); }
.gps-ok small { font-size: 12.5px; }
.geo-status { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.geo-status > span:nth-child(2) { display: grid; flex: 1; line-height: 1.3; min-width: 0; }
.geo-status strong { font-size: 14px; }
.geo-status small { font-size: 12.5px; color: var(--muted); }
.geo-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--faint); flex: none; }
.geo-live .geo-dot { background: var(--success); animation: liveRing 1.6s infinite; }
.geo-pending .geo-dot { background: var(--primary); animation: dotPulse 1.2s infinite; }
.geo-warn { background: #FFF8E1; border-color: #F2DC8C; }
.geo-warn .geo-dot { background: #E0A800; }
.card .geo-status { box-shadow: none; margin-bottom: 4px; }
.banner.warn { background: #FFF3C4; color: #7D5B00; }
.chip-rose { background: #FDE8EE; color: #B4234B; }
.chip-live { background: var(--success-soft); color: var(--success-ink); }
.chip-live .chip-dot { background: var(--success); }
.profile-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.zone-card .map-medium { border-radius: 16px; overflow: hidden; }

/* Confiance et contact */
.trust { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.trust-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 99px; background: var(--sunken); color: var(--ink-2); font-size: 11.5px; font-weight: 750; }
.trust-badge .i { width: 13px; height: 13px; }
.trust-badge.ok { background: var(--success-soft); color: var(--success-ink); }
.trust-badge.sap { background: var(--primary-soft); color: var(--primary-ink); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.contact-actions .btn { flex: 1; min-width: 110px; }
.contact-number { width: 100%; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.client-line + .contact-actions { margin-bottom: 6px; }

/* ---------------------------------------------------------------- Administration */
.admin-page { display: grid; gap: 18px; }
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.admin-head .display { font-size: clamp(30px, 6vw, 44px); }
.admin-head-side { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.admin-head .segmented { min-width: 210px; }
.admin-head .seg { min-height: 38px; font-size: 13px; }
.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .kpi-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kpi { position: relative; display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid rgba(15, 23, 42, .06); box-shadow: var(--shadow-1); overflow: hidden; min-width: 0; }
.kpi::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 120px; height: 120px; border-radius: 50%; background: var(--kpi-glow, var(--primary-softer)); opacity: .7; pointer-events: none; }
.kpi > * { position: relative; z-index: 1; }
.kpi small { font-size: 12px; font-weight: 700; color: var(--muted); }
.kpi strong { font-family: var(--display); font-size: clamp(20px, 4.6vw, 26px); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-icon { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--sunken); color: var(--ink-2); margin-bottom: 6px; }
.kpi-icon .i { width: 18px; height: 18px; }
.kpi-sub { font-size: 12px; color: var(--muted); line-height: 1.35; }
.kpi-blue { --kpi-glow: #DCE8FD; }
.kpi-blue .kpi-icon { background: var(--primary); color: #fff; }
.kpi-coral { --kpi-glow: var(--accent-soft); }
.kpi-coral .kpi-icon { background: var(--accent); color: #fff; }
.kpi-green { --kpi-glow: var(--success-soft); }
.kpi-green .kpi-icon { background: var(--success-soft); color: var(--success-ink); }
.kpi-amber { --kpi-glow: #FFF3C4; }
.kpi-amber .kpi-icon { background: #FFF3C4; color: #A07400; }
.delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; color: var(--muted); }
.delta .i { width: 13px; height: 13px; }
.delta.up { color: var(--success); }
.delta.down { color: var(--danger); }
.admin-grid { display: grid; gap: 18px; }
@media (min-width: 1024px) {
  .admin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-grid .chart-card, .admin-grid .map-card { grid-column: span 2; }
}
.chart { display: grid; gap: 8px; }
.chart-plot { position: relative; height: 190px; border-radius: 14px; background: linear-gradient(to top, var(--line) 1px, transparent 1px) 0 0 / 100% 25%; }
.abars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.abar-wrap { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.abar { width: 100%; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #5B8DEF, var(--primary)); transform-origin: bottom; animation: grow .7s var(--ease-out) both; animation-delay: var(--d); transition: filter .2s; }
.abar.zero { background: var(--line-2); }
.abar-wrap:hover .abar { filter: brightness(1.1) saturate(1.2); }
.chart-line { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--accent); pointer-events: none; overflow: visible; }
.chart-line polyline { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 1.6s .35s var(--ease-out) forwards; }
.chart-axis { display: flex; gap: 2px; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.chart-axis span { flex: 1; min-width: 0; white-space: nowrap; overflow: visible; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); font-weight: 600; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-bar { width: 10px; height: 10px; border-radius: 3px; background: var(--primary); }
.lg-line { width: 14px; height: 3px; border-radius: 2px; background: var(--accent); }
.donut-wrap { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: center; }
.donut { width: 132px; height: 132px; }
.donut-arc { animation: donutIn .9s var(--ease-out) both; }
.donut-total { font-family: var(--display); font-size: 9px; font-weight: 800; fill: var(--ink); }
.donut-label { font-size: 3.6px; fill: var(--muted); font-weight: 700; }
.legend { list-style: none; display: grid; gap: 7px; font-size: 13px; min-width: 0; }
.legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; column-gap: 8px; align-items: center; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend small { grid-column: 2 / 4; color: var(--muted); font-size: 11.5px; margin-top: -2px; }
@keyframes donutIn { from { stroke-dasharray: 0 100; } }
.funnel { display: grid; gap: 10px; }
.funnel-step { position: relative; display: grid; grid-template-columns: 1fr auto 44px; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; overflow: hidden; background: var(--surface-2); font-size: 13.5px; }
.funnel-bar { position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, var(--primary-soft), #DCE8FD); border-radius: 14px; transform-origin: left; animation: growX .8s var(--ease-out) both; animation-delay: var(--d); }
.funnel-label, .funnel-step strong, .funnel-step small { position: relative; }
.funnel-label { font-weight: 700; }
.funnel-step strong { font-family: var(--display); font-size: 17px; font-variant-numeric: tabular-nums; }
.funnel-step small { color: var(--muted); font-weight: 700; text-align: right; }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.todo-list { display: grid; gap: 8px; }
.todo { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); transition: transform .3s var(--ease-spring), box-shadow .2s, border-color .2s; }
.todo:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); transform: translateY(-1px); }
.todo > span:nth-child(2) { display: grid; flex: 1; line-height: 1.3; min-width: 0; }
.todo small { color: var(--muted); font-size: 12px; }
.todo > .i { width: 18px; height: 18px; color: var(--faint); }
.todo-icon { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--sunken); color: var(--ink-2); flex: none; }
.todo-icon .i { width: 18px; height: 18px; }
.todo-icon.amber { background: #FFF3C4; color: #A07400; }
.todo-icon.blue { background: var(--primary-soft); color: var(--primary); }
.todo-icon.red { background: #FDE8EE; color: #B4234B; }
.map-card .map-medium { border-radius: 16px; overflow: hidden; }
@media (min-width: 1024px) { .map-card .map-medium { height: 340px; } }
.map-legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); font-weight: 600; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot-pro, .dot-mission { width: 10px; height: 10px; border-radius: 50%; }
.dot-pro { background: var(--primary); }
.dot-mission { background: var(--accent); }
.top-list { list-style: none; display: grid; gap: 10px; }
.top-list li { display: flex; align-items: center; gap: 10px; }
.rank { width: 22px; font-family: var(--display); font-weight: 800; color: var(--faint); text-align: center; }
.top-list li:first-child .rank { color: var(--accent); }
.top-text { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.top-text small { color: var(--muted); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.top-text small .i { width: 12px; height: 12px; color: #E0A800; }
.top-value { display: grid; text-align: right; line-height: 1.3; }
.top-value small { color: var(--muted); font-size: 11.5px; }
.table-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
.admin-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 750; padding: 0 10px 10px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr { transition: background .15s; }
.admin-table tbody tr:hover { background: var(--primary-softer); }
.admin-table .num { text-align: right; }
.admin-table td.num small { display: block; color: var(--muted); font-size: 11px; }
.row-link { display: flex; align-items: center; gap: 10px; }
.row-link span { display: grid; line-height: 1.3; }
.row-link small { color: var(--muted); font-size: 11.5px; }
.admin-toolbar { display: grid; gap: 12px; }
.search-field { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 48px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.search-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.search-field .i { width: 18px; height: 18px; color: var(--muted); }
.search-field input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; min-width: 0; }
.filter-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 750; white-space: nowrap; color: var(--ink-2); transition: background .2s, color .2s, border-color .2s; }
.filter-chip span { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--sunken); display: inline-grid; place-items: center; font-size: 11px; }
.filter-chip.selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-chip.selected span { background: rgba(255, 255, 255, .2); }
.account-list { display: grid; gap: 12px; }
@media (min-width: 1100px) { .account-list { grid-template-columns: 1fr 1fr; } }
.account { display: grid; gap: 12px; align-content: start; padding: 16px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid rgba(15, 23, 42, .06); box-shadow: var(--shadow-1); min-width: 0; }
.account.is-suspended { background: repeating-linear-gradient(135deg, #FFFFFF 0 12px, #FBF6F7 12px 24px); }
.account-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.account-id { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.account-id .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.account-pro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface-2); }
@media (min-width: 640px) { .account-pro { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kv { display: grid; gap: 2px; min-width: 0; align-content: start; }
.kv small { font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.kv strong { font-size: 13.5px; overflow-wrap: anywhere; display: inline-flex; align-items: center; gap: 4px; }
.kv strong .i { width: 13px; height: 13px; color: #E0A800; }
.kv strong.bad { color: var(--danger); }
.kv .chip { margin-top: 2px; }
.account-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.account-foot .small { display: inline-flex; align-items: center; gap: 5px; }
.account-foot .small .i { width: 14px; height: 14px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Accueil : arguments de confiance */
.welcome-trust { display: grid; gap: 12px; margin-top: 8px; }
@media (min-width: 760px) { .welcome-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .welcome-trust { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust-card { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid rgba(15, 23, 42, .06); box-shadow: var(--shadow-1); }
.trust-card > .i { width: 38px; height: 38px; padding: 9px; box-sizing: border-box; border-radius: 13px; background: var(--primary-soft); color: var(--primary); }
.trust-card h3 { font-family: var(--display); font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
.trust-card p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.radius-picker .label { margin-top: 4px; }
.radius-picker { margin-bottom: 6px; }
