/* UPLINE WiFi Manager : interface « Clair »
   Un seul bleu, des surfaces blanches arrondies, de la typographie nette.
   Aucun violet. Les animations racontent le signal : ondes, balayage radar, compteurs, courbes qui se dessinent. */

@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(fonts/archivo-wdth.woff2) format('woff2');
}

:root {
  --mist: #F1F5FB; --surface: #FFFFFF; --surface-2: #F6F9FE; --sunk: #E8EEF8; --line: #E2E9F4; --line-2: #C9D5E8;
  --ink: #11243D; --ink-2: #485B78; --ink-3: #65789A;
  --sea: #1B4FD8; --sea-2: #2F6BFF; --sea-3: #8FB0FF; --sea-4: #D3E0FF;
  --acc: #2F6BFF; --acc-ink: #FFFFFF; --acc-soft: #E7EFFF; --acc-deep: #1B4FD8; --acc-glow: rgba(47, 107, 255, .28);
  --good: #12775D; --good-soft: #D9F0E8; --bad: #C2312B; --bad-soft: #FBE1DF;
  --rail-bg: #FFFFFF; --rail-ink: #11243D; --rail-mute: #5C6F8F; --rail-line: #E2E9F4;
  --hero-bg: #0C2557; --hero-bg-2: #123A8C; --hero-ink: #EAF1FF; --hero-mute: #A5BBE6; --hero-line: rgba(255, 255, 255, .17); --hl: #7FB0FF;
  --chart: #2F6BFF; --area: rgba(47, 107, 255, .12);
  --m-whatsapp: #2F6BFF; --m-sms: #13306F; --m-voucher: #7FA3FF; --m-click: #C9D8F5; --m-email: #1FA3B5; --m-email_code: #0B6E7D; --m-social: #C0489B; --m-return: #8A94A6;
  --shadow: 0 1px 2px rgba(17, 36, 61, .04), 0 10px 30px -14px rgba(17, 36, 61, .14);
  --shadow-up: 0 2px 4px rgba(17, 36, 61, .05), 0 22px 40px -16px rgba(30, 80, 190, .28);
  --r-hero: 24px; --r-panel: 20px; --r-ctl: 12px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.56, .64, 1); --soft: cubic-bezier(.45, 0, .2, 1);
  --rail: 256px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --mist: #0A1325; --surface: #111E36; --surface-2: #152543; --sunk: #1A2D52; --line: #20355C; --line-2: #2F4A7C;
  --ink: #E8EFFB; --ink-2: #AFC0DD; --ink-3: #8499BC;
  --sea: #7FA6FF; --sea-2: #5B8CFF; --sea-3: #3A5FB8; --sea-4: #243E7A;
  --acc: #4F82FF; --acc-soft: #182C57; --acc-deep: #8FB0FF; --acc-glow: rgba(79, 130, 255, .35);
  --good: #4FD1B0; --good-soft: #0F3329; --bad: #FF8F85; --bad-soft: #3A1816;
  --rail-bg: #0D1830; --rail-ink: #E8EFFB; --rail-mute: #8DA1C6; --rail-line: #20355C;
  --hero-bg: #0B1E47; --hero-bg-2: #12348A;
  --chart: #6C9BFF; --area: rgba(108, 155, 255, .16);
  --m-sms: #A6C0FF; --m-voucher: #4F73D0; --m-click: #2D4685; --m-email: #4FC3D4; --m-email_code: #1B8E9F; --m-social: #E070BC; --m-return: #6E7788;
  --shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 10px 30px -14px rgba(0, 0, 0, .5);
  --shadow-up: 0 2px 4px rgba(0, 0, 0, .25), 0 22px 40px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --mist: #0A1325; --surface: #111E36; --surface-2: #152543; --sunk: #1A2D52; --line: #20355C; --line-2: #2F4A7C;
    --ink: #E8EFFB; --ink-2: #AFC0DD; --ink-3: #8499BC;
    --sea: #7FA6FF; --sea-2: #5B8CFF; --sea-3: #3A5FB8; --sea-4: #243E7A;
    --acc: #4F82FF; --acc-soft: #182C57; --acc-deep: #8FB0FF; --acc-glow: rgba(79, 130, 255, .35);
    --good: #4FD1B0; --good-soft: #0F3329; --bad: #FF8F85; --bad-soft: #3A1816;
    --rail-bg: #0D1830; --rail-ink: #E8EFFB; --rail-mute: #8DA1C6; --rail-line: #20355C;
    --hero-bg: #0B1E47; --hero-bg-2: #12348A;
    --chart: #6C9BFF; --area: rgba(108, 155, 255, .16);
    --m-sms: #A6C0FF; --m-voucher: #4F73D0; --m-click: #2D4685; --m-email: #4FC3D4; --m-email_code: #1B8E9F; --m-social: #E070BC; --m-return: #6E7788;
    --shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 10px 30px -14px rgba(0, 0, 0, .5);
    --shadow-up: 0 2px 4px rgba(0, 0, 0, .25), 0 22px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--mist); color: var(--ink); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .5s var(--soft), color .5s var(--soft); }
body::before { content: ''; position: fixed; inset: 0 0 auto 0; height: 420px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 100% at 80% 0%, color-mix(in srgb, var(--acc) 11%, transparent), transparent 70%), radial-gradient(40% 80% at 10% 0%, color-mix(in srgb, var(--acc) 6%, transparent), transparent 70%); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
::selection { background: var(--acc); color: var(--acc-ink); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { margin: 0; }

/* ============ Structure : barre latérale blanche + contenu ============ */
.frame { min-height: 100vh; padding-left: var(--rail); transition: padding-left .55s var(--ease); }
body.rail-min { --rail: 84px; }

.rail { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--rail); background: var(--rail-bg); color: var(--rail-ink); display: flex; flex-direction: column; padding: 22px 16px 16px;
  border-right: 1px solid var(--rail-line); transition: width .55s var(--ease), box-shadow .4s, background .5s; overflow: hidden; animation: railIn .9s var(--ease) both; }
body.rail-min .rail:hover { width: 256px; box-shadow: 30px 0 60px -30px rgba(17, 36, 61, .3); }
@keyframes railIn { from { transform: translateX(-100%); } }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 2px 6px 0; white-space: nowrap; color: var(--rail-ink); }
.mk { width: 42px; height: 42px; flex: none; border-radius: 14px; background: linear-gradient(145deg, var(--sea-2), var(--sea)); color: #fff; display: grid; place-items: center; position: relative; box-shadow: 0 8px 18px -8px var(--acc-glow); }
.mk svg { width: 24px; height: 24px; overflow: visible; }
.mk .a1, .mk .a2 { animation: arcLight 3.6s var(--soft) infinite; }
.mk .a2 { animation-delay: .25s; }
.mk .dot { animation: dotLight 3.6s var(--soft) infinite; }
@keyframes arcLight { 0%, 100% { opacity: 1; } 8% { opacity: .15; } 30% { opacity: 1; } }
@keyframes dotLight { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.5); } }
.brand:hover .mk { animation: mkTilt .6s var(--spring); }
@keyframes mkTilt { 40% { transform: rotate(-14deg) scale(1.08); } }
.brand .wm { display: flex; flex-direction: column; line-height: 1.05; }
.brand .wm b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; }
.brand .wm span { font-size: 12.5px; color: var(--rail-mute); font-weight: 600; margin-top: 3px; letter-spacing: .01em; }

.menu { position: relative; display: flex; flex-direction: column; gap: 4px; margin-top: 30px; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.menu a { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 16px; border-radius: 14px; color: var(--rail-mute); text-decoration: none; font-weight: 600; white-space: nowrap; transition: color .3s, background .25s, padding-left .4s var(--spring); }
.menu a:hover { color: var(--rail-ink); background: var(--surface-2); padding-left: 20px; }
.menu a.on { color: #fff; background: transparent; padding-left: 16px; }
.menu a svg { width: 21px; height: 21px; flex: none; transition: transform .5s var(--spring); }
.menu a:hover svg { transform: translateY(-2px) rotate(-7deg) scale(1.1); }
.menu a .lbl { transition: opacity .3s, transform .5s var(--ease); }
body.rail-min .rail:not(:hover) .lbl { opacity: 0; transform: translateX(-8px); }
body.rail-min .menu a { padding-left: 16px; }
.menu .ind { position: absolute; z-index: 0; left: 0; top: 0; width: 100%; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--sea-2), var(--sea)); box-shadow: 0 12px 22px -10px var(--acc-glow);
  transition: transform .6s var(--spring); will-change: transform; }

.rail-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--rail-line); padding-top: 14px; position: relative; }
.rail-foot .ver { font-size: 12.5px; color: var(--rail-mute); font-weight: 600; padding-left: 8px; white-space: nowrap; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: linear-gradient(145deg, var(--sea-3), var(--sea-2)); color: #fff; flex: none; border: 0; }
.fold { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rail-line); background: none; color: var(--rail-mute); cursor: pointer; display: grid; place-items: center; transition: transform .6s var(--spring), color .2s, border-color .2s, background .2s; }
.fold:hover { color: var(--acc); border-color: var(--acc); background: var(--acc-soft); }
.fold svg { width: 16px; height: 16px; }
body.rail-min .fold { transform: rotate(180deg); }
body.rail-min .rail:not(:hover) .ver { opacity: 0; }
.ver { transition: opacity .3s; }

.drop { position: fixed; width: 252px; background: var(--surface); color: var(--ink); border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(17, 36, 61, .35); border: 1px solid var(--line); padding: 8px; transform-origin: bottom left; animation: pop .35s var(--spring); z-index: 90; }
.drop.top { transform-origin: top right; }
.drop .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.drop .who b { display: block; }
.drop .who small { color: var(--ink-3); display: block; font-size: 12.5px; }
.drop button { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 10px; border-radius: 10px; cursor: pointer; text-align: left; font-weight: 550; color: var(--ink); }
.drop button:hover { background: var(--surface-2); }
.drop svg { width: 17px; height: 17px; color: var(--ink-3); }
@keyframes pop { from { transform: scale(.9) translateY(8px); opacity: 0; } }

/* Barre du haut : recherche, thème, compte */
.strip { display: flex; align-items: center; gap: 12px; padding: 22px 44px 0; max-width: 1280px; margin: 0 auto; animation: fadeIn .8s var(--soft) .2s both; }
.gsearch { position: relative; flex: 1; max-width: 520px; }
.gsearch svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; transition: color .25s, transform .5s var(--spring); }
.gsearch input[type=search] { padding: 12px 16px 12px 46px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.gsearch input[type=search]:focus { border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-glow); }
.gsearch:focus-within svg { color: var(--acc); transform: translateY(-50%) scale(1.15); }
.strip .sp { flex: 1; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; color: var(--ink-2); transition: transform .5s var(--spring), color .25s, border-color .25s; }
.icon-btn:hover { color: var(--acc); border-color: var(--acc); transform: rotate(-14deg) scale(1.06); }
.icon-btn svg { width: 19px; height: 19px; }
.me-chip { display: flex; align-items: center; gap: 11px; padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); cursor: pointer; transition: transform .4s var(--spring), border-color .25s; }
.me-chip:hover { border-color: var(--acc); transform: translateY(-2px); }
.me-chip .who { line-height: 1.2; text-align: left; }
.me-chip .who b { display: block; font-size: 14px; }
.me-chip .who small { color: var(--ink-3); font-size: 12px; }
.me-chip .chev-s { width: 15px; height: 15px; color: var(--ink-3); }

.mobbar { display: none; }

/* ============ Page ============ */
.page { max-width: 1280px; margin: 0 auto; padding: 26px 44px 110px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.head h1 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; max-width: 22ch; }
.head h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .14em; margin-bottom: -.14em; }
.head h1 .w > span { display: inline-block; transform: translateY(112%); animation: wordUp 1s var(--ease) forwards; animation-delay: calc(var(--w) * 75ms + 60ms); }
@keyframes wordUp { to { transform: none; } }
.head p { margin: 12px 0 0; color: var(--ink-2); font-size: 16px; max-width: 58ch; animation: fadeIn 1s var(--soft) .45s both; }
@keyframes fadeIn { from { opacity: 0; } }
.tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; animation: fadeIn .8s var(--soft) .5s both; }

/* Apparition : montée douce avec un léger rebond d'échelle */
.rv { animation: rise .95s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms + 120ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.985); } }
.pg { animation: fadeIn .35s var(--soft) both; }

/* ============ Surfaces ============ */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow); position: relative; }
.glow { --mx: 50%; --my: 0%; overflow: hidden; }
.glow::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--acc) 12%, transparent), transparent 70%); }
.glow:hover::before { opacity: 1; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 24px 0; position: relative; }
.panel-h h2 { font-size: 18px; font-weight: 750; letter-spacing: -.015em; }
.panel-h .sub { color: var(--ink-3); font-size: 13.5px; display: block; margin-top: 3px; font-weight: 400; }
.panel-b { padding: 20px 24px 24px; position: relative; }
.lbl-s { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.sec { margin-top: 24px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.sec-h h2 { font-size: 20px; font-weight: 780; letter-spacing: -.02em; }

/* ============ Accueil ============ */
/* Bienvenue + illustration du point d'accès */
.welcome { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, 1fr); align-items: center; gap: 12px; padding: 30px 34px; min-height: 230px; isolation: isolate;
  background: linear-gradient(120deg, var(--surface) 0%, var(--surface) 38%, color-mix(in srgb, var(--acc) 10%, var(--surface)) 100%); }
.welcome::before, .welcome::after { content: ''; position: absolute; border-radius: 50%; z-index: -1; border: 1.5px solid color-mix(in srgb, var(--acc) 18%, transparent); right: 8%; top: 50%; translate: 0 -50%; animation: halo 7s var(--soft) infinite; }
.welcome::before { width: 340px; height: 340px; }
.welcome::after { width: 520px; height: 520px; animation-delay: 3.5s; }
@keyframes halo { 0% { scale: .6; opacity: 0; } 25% { opacity: 1; } 100% { scale: 1.08; opacity: 0; } }
.welcome .head { display: block; margin: 0; }
.welcome .head h1 { font-size: clamp(28px, 3vw, 40px); }
.welcome .tools { margin-top: 22px; }
.ap { width: 100%; max-width: 360px; justify-self: end; height: auto; overflow: visible; }
.ap .wv { fill: none; stroke: var(--acc); stroke-width: 5; stroke-linecap: round; opacity: .15; animation: wave 2.8s var(--soft) infinite; animation-delay: calc(var(--k) * .28s); }
@keyframes wave { 0%, 100% { opacity: .15; } 30% { opacity: 1; } 60% { opacity: .15; } }
.ap .fl { animation: floaty 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes floaty { 50% { transform: translateY(-7px); } }
.ap .sh { fill: var(--ink); opacity: .1; transform-box: fill-box; transform-origin: center; animation: shadowy 5s ease-in-out infinite; }
@keyframes shadowy { 50% { transform: scale(.88); opacity: .06; } }
.ap .bd { fill: var(--surface); stroke: var(--line-2); stroke-width: 2; }
.ap .bd2 { fill: color-mix(in srgb, var(--acc) 7%, var(--surface)); stroke: var(--line-2); stroke-width: 2; }
.ap .tp { fill: var(--surface); stroke: var(--line-2); stroke-width: 2; }
.ap .tp2 { fill: var(--acc-soft); stroke: var(--sea-3); stroke-width: 2; }
.ap .led { fill: var(--acc); animation: led 2.2s var(--soft) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes led { 50% { opacity: .35; transform: scale(.7); } }
.ap .ph { fill: var(--acc); opacity: .9; transform-box: fill-box; transform-origin: center; animation: phone 6s ease-in-out infinite; animation-delay: calc(var(--k) * -2s); }
@keyframes phone { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6px, -9px) scale(1.25); } }

/* Cartes de chiffres */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.kpi { padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 4px; min-height: 176px; transition: transform .6s var(--spring), box-shadow .4s, border-color .3s; }
.kpi:hover { transform: translateY(-6px); box-shadow: var(--shadow-up); border-color: color-mix(in srgb, var(--acc) 40%, var(--line)); }
.kpi .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; position: relative; transition: transform .6s var(--spring); }
.kpi:hover .ic { transform: rotate(-10deg) scale(1.1); }
.kpi .ic svg { width: 22px; height: 22px; }
.kpi .ic.live::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--acc); animation: ringPing 2.2s var(--ease) infinite; }
@keyframes ringPing { to { transform: scale(1.55); opacity: 0; } }
.kpi .t { color: var(--ink-2); font-weight: 600; font-size: 14.5px; margin-top: 12px; }
.kpi .v { font-size: clamp(32px, 3vw, 42px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpi .d { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); margin-top: 2px; min-height: 22px; }
.chipd { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: var(--good-soft); color: var(--good); font-weight: 700; font-size: 12.5px; }
.chipd svg { width: 12px; height: 12px; }
.chipd.flat { background: var(--sunk); color: var(--ink-2); }
.kpi .spk { position: absolute; right: 18px; top: 24px; width: 42%; height: 40px; overflow: visible; }
.spk path { vector-effect: non-scaling-stroke; }
.spk .l { fill: none; stroke: var(--acc); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawLine 1.8s var(--ease) .6s forwards; }
.spk .a { fill: url(#spkg); opacity: 0; animation: fadeIn 1s var(--soft) 1.4s forwards; opacity: 1; }
.ring { position: absolute; right: 20px; bottom: 18px; width: 58px; height: 58px; }
.ring circle { fill: none; stroke-width: 4.5; stroke-linecap: round; }
.ring .bg { stroke: var(--sunk); }
.ring .fg { stroke: var(--acc); stroke-dasharray: 0 100; transform: rotate(-90deg); transform-origin: center; transition: stroke-dasharray 1.6s var(--ease) .5s; }
.ring.in .fg { stroke-dasharray: var(--p) 100; }
.ring text { font-size: 15px; font-weight: 800; fill: var(--ink-2); text-anchor: middle; dominant-baseline: central; }
.ticks { position: absolute; right: 22px; bottom: 20px; display: flex; align-items: flex-end; gap: 4px; height: 38px; }
.ticks i { width: 5px; border-radius: 3px; background: var(--sea-4); height: var(--h); transform-origin: bottom; animation: tick 1.8s var(--soft) infinite; animation-delay: calc(var(--k) * 140ms); }
.ticks i:nth-child(odd) { background: var(--acc); }
@keyframes tick { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.45); } }

.roll { display: inline-flex; }
.dg { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.dg .st { display: flex; flex-direction: column; transform: translateY(calc(var(--d, 0) * -10%)); transition: transform 1.6s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.dg .st b { display: block; height: 1em; line-height: 1; font-weight: inherit; }
.dg.snap .st { transition-duration: .9s; transition-delay: 0s; }
@keyframes ping { to { transform: scale(2.4); opacity: 0; } }

/* Ligne de graphiques : courbe + anneau */
.charts { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 20px; margin-top: 24px; align-items: stretch; }
.lc { position: relative; height: 270px; margin-top: 10px; }
.lc svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lc .gl { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line-2); pointer-events: none; opacity: .7; }
.lc .gl span { position: absolute; left: 0; top: -20px; font-size: 12px; color: var(--ink-3); }
.lc .ln { fill: none; stroke: var(--chart); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.lc .ar { fill: url(#lcg); opacity: 0; }
.lc.in .ln { animation: drawLine 2s var(--ease) forwards; }
.lc.in .ar { animation: fadeIn 1.2s var(--soft) .9s forwards; opacity: 1; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.lc .cur { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px dashed var(--acc); opacity: 0; pointer-events: none; transition: opacity .2s; }
.lc .pt { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--acc); border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--acc), 0 6px 14px var(--acc-glow); pointer-events: none; opacity: 0; transition: opacity .2s, left .12s, top .12s; }
.lc.hov .cur, .lc.hov .pt { opacity: 1; }
.lc .pk { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--acc); transform: scale(0); animation: pkIn .7s var(--spring) 1.9s forwards; pointer-events: none; }
.lc .pk::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--acc); animation: ping 2.4s var(--ease) 2.6s infinite; }
@keyframes pkIn { to { transform: scale(1); } }
.xax { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--surface); padding: 9px 13px; border-radius: 12px; font-size: 13px; white-space: nowrap; transform: translate(-50%, calc(-100% - 14px)); z-index: 5; line-height: 1.3; transition: left .12s, top .12s; box-shadow: 0 14px 30px -10px rgba(17, 36, 61, .5); }
.tip b { display: block; font-size: 18px; }

/* Anneau de répartition */
.dn-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.dn { position: relative; width: 190px; height: 190px; }
.dn svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.dn circle { fill: none; stroke-width: 5.2; stroke-dasharray: 0 100; transition: stroke-dasharray 1.3s var(--ease); transition-delay: calc(var(--k) * 160ms + 300ms); cursor: pointer; transform-origin: center; }
.dn.in circle { stroke-dasharray: var(--p) var(--q); }
.dn circle.bgc { stroke: var(--sunk); stroke-dasharray: 100 0; transition: none; cursor: default; }
.dn circle:not(.bgc):hover { stroke-width: 6.4; }
.dn .mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.dn .mid b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.dn .mid span { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.keys { display: grid; width: 100%; }
.key { display: grid; grid-template-columns: 12px 1fr auto 50px; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); animation: fadeIn .8s var(--soft) both; animation-delay: calc(var(--k) * 120ms + 900ms); }
.key:last-child { border-bottom: 0; }
.key i { width: 12px; height: 12px; border-radius: 50%; }
.key .n { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.key b { font-variant-numeric: tabular-nums; text-align: right; }

/* Activité récente et colonne de droite */
.bottom { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 20px; margin-top: 24px; align-items: start; }
.stack { display: grid; gap: 20px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; align-items: center; gap: 14px; padding: 12px 10px; margin: 0 -10px; border-radius: 14px; transition: background .25s, transform .4s var(--spring); animation: feedIn .8s var(--ease) both; animation-delay: calc(var(--k) * 70ms + 400ms); }
.feed li:hover { background: var(--surface-2); transform: translateX(4px); }
@keyframes feedIn { from { opacity: 0; transform: translateX(-18px); } }
.feed .who { flex: 1; min-width: 0; }
.feed .who b { display: block; font-size: 15px; }
.feed .who span { color: var(--ink-3); font-size: 13px; }
.feed time { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; background: var(--sunk); color: var(--ink-2); }
.av.t1 { background: var(--sea); color: #fff; } .av.t2 { background: var(--sea-4); color: var(--acc-deep); } .av.t3 { background: var(--acc-soft); color: var(--acc-deep); } .av.t4 { background: var(--sea-2); color: #fff; }

/* Carte sombre : l'état du réseau (radar) */
.hero { position: relative; overflow: hidden; color: var(--hero-ink); border-radius: var(--r-hero); padding: 26px 28px; min-height: 270px; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate;
  background: linear-gradient(140deg, var(--hero-bg) 0%, var(--hero-bg-2) 130%); box-shadow: 0 30px 50px -28px rgba(12, 37, 87, .8); }
.hero .radar { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero .top { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--hero-mute); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hl); position: relative; flex: none; }
.live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--hl); animation: ping 1.9s var(--ease) infinite; }
.hero h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 10px; max-width: 14ch; line-height: 1.15; }
.hero .count { font-size: clamp(58px, 6vw, 84px); font-weight: 800; line-height: .9; letter-spacing: -.05em; margin: 14px 0 0 -.03em; font-variant-numeric: tabular-nums; }
.hero .cap { margin-top: 8px; font-size: 14.5px; color: var(--hero-mute); max-width: 22ch; line-height: 1.3; }

/* Radar : arcs, balayage et appareils */
.arc { fill: none; stroke: var(--hero-line); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawArc 1.8s var(--ease) forwards, pulseArc 5.2s var(--soft) infinite; animation-delay: calc(var(--k) * 140ms), calc(2s + var(--k) * 420ms); }
@keyframes drawArc { to { stroke-dashoffset: 0; } }
@keyframes pulseArc { 0%, 100% { stroke-opacity: 1; stroke-width: 1.5; } 12% { stroke: var(--hl); stroke-opacity: .85; stroke-width: 2.2; } 30% { stroke-opacity: 1; } }
.sweep { transform-origin: var(--ox) var(--oy); animation: sweep 4.6s linear infinite; }
.sweep line { stroke: var(--hl); stroke-width: 1.5; opacity: .9; }
.sweep path { fill: var(--hl); opacity: .1; }
@keyframes sweep { 0% { transform: rotate(0); opacity: 0; } 5% { opacity: 1; } 92% { opacity: 1; } 100% { transform: rotate(90deg); opacity: 0; } }
.dev { animation: devIn .7s var(--spring) both; animation-delay: calc(900ms + var(--n) * 55ms); transform-box: fill-box; transform-origin: center; }
@keyframes devIn { from { transform: scale(0); opacity: 0; } }
.dev circle { fill: var(--hero-ink); opacity: .55; transform-box: fill-box; transform-origin: center; animation: blip 4.6s linear infinite; animation-delay: calc(var(--p) * 0.0511s); }
@keyframes blip { 0% { fill: var(--hl); opacity: 1; transform: scale(2.6); } 24% { fill: var(--hl); opacity: .9; transform: scale(1.2); } 45%, 100% { fill: var(--hero-ink); opacity: .55; transform: scale(1); } }

/* Actions rapides */
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qa { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); text-decoration: none; font-weight: 650; font-size: 14px; line-height: 1.25; transition: transform .5s var(--spring), border-color .3s, background .3s, box-shadow .4s; position: relative; overflow: hidden; }
.qa:hover { transform: translateY(-4px); border-color: var(--acc); background: var(--surface); box-shadow: var(--shadow-up); }
.qa .qi { width: 40px; height: 40px; border-radius: 12px; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; transition: transform .6s var(--spring), background .3s, color .3s; }
.qa:hover .qi { background: var(--acc); color: #fff; transform: rotate(-8deg) scale(1.1); }
.qa .qi svg { width: 20px; height: 20px; }

/* Heures d'affluence */
.eq { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 5px; height: 190px; align-items: end; position: relative; }
.eq i { display: block; height: var(--h); min-height: 5px; border-radius: 6px 6px 3px 3px; background: var(--sea-4); transform: scaleY(0); transform-origin: bottom; animation: eqUp 1.1s var(--ease) forwards; animation-delay: calc(var(--k) * 38ms + 250ms); cursor: default; transition: background .2s, filter .2s; position: relative; }
.eq i:hover { background: var(--sea-2); }
.eq i.hi { background: var(--sea-3); }
.eq i.pk { background: var(--acc); }
.eq i.pk::after { content: ''; position: absolute; left: 0; right: 0; top: -9px; height: 5px; border-radius: 3px; background: var(--acc); opacity: .5; animation: eqBreath 2.4s var(--soft) infinite 2s; }
@keyframes eqUp { to { transform: scaleY(1); } }
@keyframes eqBreath { 50% { transform: translateY(-5px); opacity: 0; } }
.eqx { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }

/* Classement */
.rank { display: grid; gap: 18px; }
.rank .r { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.rank .nm { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank b { font-variant-numeric: tabular-nums; }
.rank .track { grid-column: 1 / 3; height: 9px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.rank .track i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--sea-3), var(--sea-2)); transition: width 1.4s var(--ease); transition-delay: calc(var(--k, 0) * 100ms + 300ms); }
.rank .r:first-child .track i { background: linear-gradient(90deg, var(--sea-2), var(--sea)); }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.two.wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }

/* ============ Boutons et champs ============ */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--line-2); background: transparent; padding: 10px 18px; border-radius: 12px; cursor: pointer; font-weight: 650; text-decoration: none; color: var(--ink); white-space: nowrap; transition: transform .35s var(--spring), background .25s, border-color .25s, color .25s; }
.btn:hover { border-color: var(--acc); color: var(--acc); background: var(--surface); }
.btn:active { transform: scale(.95); }
.btn.acc { background: linear-gradient(135deg, var(--sea-2), var(--sea)); border-color: transparent; color: var(--acc-ink); box-shadow: 0 10px 20px -10px var(--acc-glow); }
.btn.acc:hover { color: var(--acc-ink); filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 16px 26px -10px var(--acc-glow); }
.btn.acc:active { transform: scale(.95); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--mist); }
.btn.dark:hover { background: var(--ink); color: var(--mist); transform: translateY(-2px); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--acc-soft); border-color: transparent; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); }
.btn.sm { padding: 6px 13px; font-size: 13.5px; }
.btn.block { width: 100%; padding: 14px; font-size: 16px; }
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .45s var(--spring); }
.btn:hover svg { transform: scale(1.12) rotate(-6deg); }
.btn:disabled { opacity: .5; pointer-events: none; }
.rip { position: absolute; border-radius: 50%; background: currentColor; opacity: .22; transform: scale(0); animation: rip .7s var(--ease) forwards; pointer-events: none; }
@keyframes rip { to { transform: scale(1); opacity: 0; } }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field > span { font-weight: 650; font-size: 14px; }
.field small { color: var(--ink-3); font-size: 13px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--r-ctl); background: var(--surface-2); outline: none; transition: border-color .25s, box-shadow .3s, background .25s;
}
input:hover, select:hover, textarea:hover { border-color: var(--line-2); }
input:focus, select:focus, textarea:focus { border-color: var(--acc); background: var(--surface); box-shadow: 0 0 0 4px var(--acc-glow); }
textarea { resize: vertical; min-height: 80px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23587480' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; cursor: pointer; font-weight: 550; }
.toggle input { appearance: none; width: 46px; height: 26px; border-radius: 99px; background: var(--line-2); position: relative; cursor: pointer; transition: background .3s; flex: none; margin: 0; padding: 0; border: 0; }
.toggle input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .5s var(--spring), width .25s; }
.toggle input:active::after { width: 25px; }
.toggle input:checked { background: var(--acc); }
.toggle input:checked::after { transform: translateX(20px); }
.toggle input:checked:active::after { transform: translateX(15px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line-2); padding: 7px 15px; border-radius: 999px; cursor: pointer; font-weight: 600; background: transparent; transition: background .3s, border-color .3s, color .3s, transform .4s var(--spring); user-select: none; }
.chip:hover { border-color: var(--acc); }
.chip:active { transform: scale(.94); }
.chip input { display: none; }
.chip::before { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: background .3s, border-color .3s, transform .5s var(--spring); }
.chip:has(input:checked) { border-color: var(--acc); background: var(--acc); color: #fff; }
.chip:has(input:checked)::before { background: #fff; border-color: #fff; transform: scale(1.25); }
.seg { position: relative; display: inline-flex; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 999px; padding: 4px; }
.seg button { position: relative; z-index: 1; border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; cursor: pointer; font-weight: 650; color: var(--ink-2); transition: color .3s; }
.seg button.on { color: #fff; }
.seg .knob { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: linear-gradient(135deg, var(--sea-2), var(--sea)); box-shadow: 0 8px 16px -8px var(--acc-glow); transition: transform .55s var(--spring), width .55s var(--spring); }
.select-pill { width: auto; min-width: 200px; border-radius: 999px; background-color: var(--surface); border-color: var(--line); box-shadow: var(--shadow); font-weight: 600; padding-left: 18px; }

/* ============ Tableaux ============ */
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th { text-align: left; font-size: 13px; background: var(--surface-2); font-weight: 650; color: var(--ink-3); padding: 14px 20px 10px; white-space: nowrap; }
td { padding: 14px 20px; border-top: 1px solid var(--line); vertical-align: middle; }
tbody tr { transition: background .2s; animation: rowIn .7s var(--ease) both; animation-delay: calc(var(--k, 0) * 35ms + 150ms); }
@keyframes rowIn { from { opacity: 0; transform: translateX(-14px); } }
tbody tr:hover { background: var(--surface-2); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--ink-3); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; font-size: 14px; }
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 650; background: var(--sunk); color: var(--ink-2); white-space: nowrap; }
.tag.good { background: var(--good-soft); color: var(--good); } .tag.warn { background: var(--acc-soft); color: var(--acc-deep); } .tag.bad { background: var(--bad-soft); color: var(--bad); } .tag.acc { background: var(--acc); color: #fff; }
.ping { position: relative; width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.ping::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: ping 1.9s var(--ease) infinite; }
.left-bar { display: block; width: 90px; height: 5px; border-radius: 9px; background: var(--sunk); margin-top: 6px; overflow: hidden; }
.left-bar i { display: block; height: 100%; width: var(--w); border-radius: 9px; background: var(--sea-2); transform-origin: left; animation: shrinkIn 1.6s var(--ease) both; }
.left-bar i.low { background: var(--acc); }
@keyframes shrinkIn { from { transform: scaleX(0); } }

.empty { padding: 64px 24px; text-align: center; color: var(--ink-3); }
.empty .art { width: 92px; height: 92px; margin: 0 auto 18px; position: relative; display: grid; place-items: center; color: var(--sea-2); }
.empty .art::before, .empty .art::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--line-2); animation: emptyRing 3.6s var(--ease) infinite; }
.empty .art::after { animation-delay: 1.8s; }
@keyframes emptyRing { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.15); opacity: 0; } }
.empty .art svg { width: 34px; height: 34px; }
.empty strong { display: block; color: var(--ink); font-size: 19px; margin-bottom: 6px; letter-spacing: -.01em; }

/* ============ Cartes de sites et de clients ============ */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.site { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .6s var(--spring), border-color .3s; border-radius: var(--r-panel); }
.site:hover { transform: translateY(-6px); box-shadow: var(--shadow-up); border-color: color-mix(in srgb, var(--acc) 40%, var(--line)); }
.site .band { height: 96px; position: relative; display: flex; align-items: flex-end; padding: 0 22px; border-radius: var(--r-panel) var(--r-panel) 0 0; clip-path: inset(0 0 -40px 0); }
.site .band::before { content: ''; position: absolute; right: -40px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); box-shadow: 0 0 0 26px rgba(255, 255, 255, 0) , inset 0 0 0 26px rgba(255, 255, 255, .06); transition: transform .9s var(--ease); }
.site:hover .band::before { transform: scale(1.25); }
.site .logo { width: 58px; height: 58px; border-radius: 50%; background: var(--surface); border: 4px solid var(--surface); margin-bottom: -29px; display: grid; place-items: center; overflow: hidden; font-weight: 800; position: relative; z-index: 1; }
.site .logo img { width: 100%; height: 100%; object-fit: contain; }
.site .state { position: absolute; top: 14px; right: 14px; z-index: 1; }
.site .body { padding: 40px 22px 18px; flex: 1; }
.site h3 { font-size: 19px; font-weight: 780; letter-spacing: -.02em; }
.site .sub { color: var(--ink-3); font-size: 13.5px; margin-top: 3px; }
.site .nums { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.site .nums div { padding: 12px 0 12px 14px; border-left: 1px solid var(--line); }
.site .nums div:first-child { border-left: 0; padding-left: 0; }
.site .nums b { display: block; font-size: 25px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.site .nums span { font-size: 12.5px; color: var(--ink-3); }
.site .foot { display: flex; gap: 6px; padding: 0 16px 16px; flex-wrap: wrap; }
.site .ttl { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sig { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 15px; }
.sig i { width: 4px; border-radius: 2px; background: currentColor; opacity: .22; transform-origin: bottom; }
.sig i:nth-child(1) { height: 5px; } .sig i:nth-child(2) { height: 8px; } .sig i:nth-child(3) { height: 11px; } .sig i:nth-child(4) { height: 15px; }
.sig i.on { opacity: 1; animation: barUp .8s var(--spring) both; animation-delay: calc(var(--b) * 110ms + 500ms); }
@keyframes barUp { from { transform: scaleY(0); } }
.add-card { border: 2px dashed var(--line-2); border-radius: var(--r-panel); display: grid; place-items: center; min-height: 300px; cursor: pointer; color: var(--ink-2); font-weight: 700; background: transparent; transition: border-color .3s, color .3s, background .3s; }
.add-card:hover { border-color: var(--acc); color: var(--ink); background: color-mix(in srgb, var(--acc) 7%, transparent); }
.add-card .plus { width: 60px; height: 60px; border-radius: 50%; background: var(--acc); color: #fff; display: grid; place-items: center; margin: 0 auto 12px; transition: transform .7s var(--spring); }
.add-card:hover .plus { transform: rotate(180deg) scale(1.1); }
.add-card .plus svg { width: 24px; height: 24px; }

.client { padding: 22px; display: flex; flex-direction: column; gap: 18px; transition: transform .6s var(--spring), border-color .3s; }
.client:hover { transform: translateY(-5px); box-shadow: var(--shadow-up); border-color: color-mix(in srgb, var(--acc) 40%, var(--line)); }
.client .top { display: flex; gap: 14px; align-items: center; }
.client .top .av { width: 52px; height: 52px; font-size: 17px; }
.client h3 { font-size: 18px; font-weight: 750; letter-spacing: -.015em; }
.client .kv { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 14px; }
.client .kv b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1.1; }
.client .kv span { font-size: 12.5px; color: var(--ink-3); }

/* ============ Vouchers ============ */
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.ticket { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px 18px; transition: transform .6s var(--spring), border-color .3s; cursor: pointer; }
.ticket:hover { transform: translateY(-5px) rotate(-1.2deg); border-color: var(--acc); box-shadow: var(--shadow-up); }
.ticket:active { transform: scale(.97); }
.ticket::before, .ticket::after { content: ''; position: absolute; top: 61%; width: 20px; height: 20px; border-radius: 50%; background: var(--mist); border: 1px solid var(--line); transition: border-color .3s; }
.ticket::before { left: -11px; clip-path: inset(0 0 0 50%); } .ticket::after { right: -11px; clip-path: inset(0 50% 0 0); }
.ticket:hover::before, .ticket:hover::after { border-color: var(--acc); }
.ticket .st { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.ticket .code { font-size: 28px; font-weight: 800; letter-spacing: .02em; margin: 8px 0 18px; font-variant-numeric: tabular-nums; }
.ticket .cut { border-top: 2px dashed var(--line-2); margin: 0 -22px 14px; }
.ticket .meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); gap: 8px; }
.ticket.used { opacity: .5; }
.ticket.used .code { text-decoration: line-through; text-decoration-color: var(--acc); text-decoration-thickness: 3px; }
.ticket .x { position: absolute; top: 10px; right: 10px; opacity: 0; transition: opacity .2s; }
.ticket:hover .x { opacity: 1; }

/* ============ Onglets, accordéon, studio ============ */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; position: relative; }
.tabs button { position: relative; border: 0; background: none; padding: 11px 16px 14px; cursor: pointer; font-weight: 650; color: var(--ink-3); white-space: nowrap; transition: color .25s; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); }
.tabs button.on { color: var(--acc-deep); }
.tabs button.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--acc); animation: grow .6s var(--spring); transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.tabpane { animation: fadeIn .5s var(--soft) both; }

.studio { display: grid; grid-template-columns: minmax(340px, 460px) 1fr; gap: 30px; align-items: start; }
.acc { border-top: 1px solid var(--line); }
.acc:first-child { border-top: 0; }
.acc > button { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 19px 24px; cursor: pointer; font-weight: 720; font-size: 16px; text-align: left; transition: background .2s; }
.acc > button:hover { background: var(--surface-2); }
.acc > button .chev { margin-left: auto; transition: transform .6s var(--spring); color: var(--ink-3); }
.acc.open > button .chev { transform: rotate(180deg); color: var(--acc-deep); }
.acc .inner { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.acc.open .inner { grid-template-rows: 1fr; }
.acc .inner > div { overflow: hidden; padding: 0 24px; }
.acc.open .inner > div { padding-bottom: 16px; }
.stage { position: sticky; top: 28px; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 26px; border-radius: var(--r-hero); background-color: var(--sunk); background-image: radial-gradient(var(--line-2) 1.2px, transparent 1.2px); background-size: 20px 20px; }
.device { width: 372px; max-width: 100%; height: 740px; border-radius: 48px; padding: 12px; background: #0A1325; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .6); transition: width .8s var(--ease), height .8s var(--ease), border-radius .8s var(--ease); position: relative; }
.device::before { content: ''; position: absolute; top: 21px; left: 50%; width: 92px; height: 25px; margin-left: -46px; border-radius: 20px; background: #0A1325; z-index: 2; transition: opacity .3s; }
.device iframe { width: 100%; height: 100%; border: 0; border-radius: 36px; background: #fff; transition: border-radius .8s var(--ease); }
.device.desk { width: 100%; height: 640px; border-radius: 16px; padding: 8px; }
.device.desk::before { opacity: 0; }
.device.desk iframe { border-radius: 9px; }
.color { display: flex; gap: 10px; align-items: center; }
.color input[type=color] { appearance: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.color input[type=color]::-webkit-color-swatch-wrapper { padding: 0; } .color input[type=color]::-webkit-color-swatch { border: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.color input[type=color]::-moz-color-swatch { border: 0; border-radius: 50%; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; transition: transform .45s var(--spring); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.swatches button:hover { transform: scale(1.22); }
.swatches button:active { transform: scale(.9); }
.upload { display: flex; align-items: center; gap: 12px; }
.upload .thumb { width: 54px; height: 54px; border-radius: 14px; background: var(--sunk) center/contain no-repeat; border: 1.5px dashed var(--line-2); flex: none; }
.saved-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--acc-ink); display: inline-block; animation: ping 1.6s infinite; }
.btn.acc .saved-dot { box-shadow: 0 0 0 0 var(--acc-ink); }

/* ============ Fenêtres, notifications, chargement ============ */
.veil { position: fixed; inset: 0; background: rgba(10, 20, 40, .5); backdrop-filter: blur(7px); display: grid; place-items: center; padding: 16px; z-index: 70; animation: fadeIn .3s both; }
.modal { width: 100%; max-width: 600px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: 26px; box-shadow: 0 50px 110px -30px rgba(0, 0, 0, .7); animation: modalIn .7s var(--ease) both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(40px) scale(.94); } }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 24px 28px 4px; }
.modal-h h2 { font-size: 22px; font-weight: 780; letter-spacing: -.02em; }
.modal-b { padding: 18px 28px 8px; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 28px 26px; }
.toasts { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 80; align-items: flex-end; }
.toast { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--mist); padding: 13px 20px 15px 14px; border-radius: 16px; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .55); font-weight: 600; animation: toastIn .7s var(--ease) both; max-width: min(420px, calc(100vw - 32px)); }
.toast .d { width: 24px; height: 24px; border-radius: 50%; background: var(--acc); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.toast.err .d { background: var(--bad); color: #fff; }
.toast::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--acc); transform-origin: left; animation: toastBar var(--dur, 2.6s) linear forwards; }
.toast.err::after { background: var(--bad); }
.toast.out { animation: toastOut .45s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(60px) scale(.92); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px) scale(.95); } }
@keyframes toastBar { to { transform: scaleX(0); } }
.skel { border-radius: var(--r-panel); background: linear-gradient(90deg, var(--sunk) 0%, var(--surface-2) 50%, var(--sunk) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
.copy { display: flex; gap: 6px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 5px 5px 5px 14px; }
.copy code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: inherit; font-size: 14px; font-variant-numeric: tabular-nums; }
.note { border-radius: 14px; padding: 14px 16px; font-size: 14px; background: var(--surface-2); border-left: 4px solid var(--sea-2); color: var(--ink); margin: 8px 0 16px; }
.note.warn { background: var(--acc-soft); border-left-color: var(--acc); }
.steps-t { display: flex; align-items: center; gap: 10px; font-weight: 750; margin: 22px 0 12px; font-size: 15px; }
.steps-t i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: var(--acc); color: #fff; display: grid; place-items: center; font-size: 12px; flex: none; }
pre.diag { white-space: pre-wrap; background: #0A1325; color: #C6D6F5; padding: 14px 16px; border-radius: 12px; max-height: 230px; overflow: auto; margin: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }

/* ============ Connexion ============ */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.2fr 1fr; }
.login .art > div:nth-of-type(1) { margin-top: 11vh; }
.login .art .legal { margin-top: auto !important; }
.login .art { background: linear-gradient(140deg, var(--hero-bg), var(--hero-bg-2) 140%); color: var(--hero-ink); padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; isolation: isolate; }
.login .art .radar { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.login .art h2 { font-size: clamp(36px, 4.6vw, 66px); line-height: .98; letter-spacing: -.035em; font-weight: 800; max-width: 12ch; }
.login .art h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.login .art h2 .w > span { display: inline-block; transform: translateY(112%); animation: wordUp 1.1s var(--ease) forwards; animation-delay: calc(var(--w) * 90ms + 400ms); }
.login .art p { color: var(--hero-mute); max-width: 40ch; font-size: 17px; margin: 22px 0 0; animation: fadeIn 1s var(--soft) 1.2s both; }
.login .arc { stroke-width: .9; }
.login .art .legal { font-size: 13px; color: var(--hero-mute); margin: 0; }
.login .form { display: grid; place-items: center; padding: 32px 24px; }
.login form { width: 100%; max-width: 390px; animation: formIn 1.1s var(--ease) .35s both; }
@keyframes formIn { from { opacity: 0; transform: translateX(40px); } }
.login form h1 { font-size: 34px; letter-spacing: -.03em; font-weight: 800; margin: 0 0 8px; }

/* ============ Responsive ============ */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .charts, .bottom { grid-template-columns: minmax(0, 1fr); }
  .two, .two.wide { grid-template-columns: minmax(0, 1fr); }
  .studio { grid-template-columns: minmax(0, 1fr); } .stage { position: static; }
  .strip, .page { padding-left: 28px; padding-right: 28px; }
}
@media (max-width: 860px) {
  .frame { padding-left: 0; padding-bottom: 92px; }
  body.rail-min { --rail: 0px; }
  .strip { display: none; }
  .mobbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--mist) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .mobbar .brand { padding: 0; } .mobbar .brand .wm span { color: var(--ink-3); }
  .mobbar .avatar { width: 36px; height: 36px; cursor: pointer; }
  .mobbar .me { position: relative; }
  .rail { inset: auto 0 0 0; width: 100% !important; height: 74px; flex-direction: row; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; border-right: 0; border-top: 1px solid var(--rail-line); animation: dockIn .8s var(--ease) both; box-shadow: 0 -18px 40px -20px rgba(17, 36, 61, .3); }
  @keyframes dockIn { from { transform: translateY(100%); } }
  .rail .brand, .rail-foot { display: none; }
  .menu { flex-direction: row; margin: 0; gap: 2px; overflow-x: auto; scrollbar-width: none; width: 100%; }
  .menu::-webkit-scrollbar { display: none; }
  .menu a { flex: 1 0 64px; flex-direction: column; justify-content: center; gap: 3px; height: 58px; padding: 0 6px !important; font-size: 11.5px; }
  .menu a .lbl { opacity: 1 !important; transform: none !important; }
  .menu .ind { width: 64px; height: 58px; }
  body.rail-min .rail:not(:hover) .lbl { opacity: 1; transform: none; }
  .page { padding: 20px 16px 40px; }
  .head { margin-bottom: 22px; }
  .welcome { grid-template-columns: minmax(0, 1fr); padding: 24px 22px; }
  .ap { max-width: 250px; justify-self: center; order: -1; }
  .kpis { gap: 14px; }
  .kpi { padding: 18px 16px 16px; min-height: 164px; }
  .kpi .spk { width: 34%; right: 12px; } .ring { right: 12px; width: 50px; height: 50px; }
  .hero { min-height: 250px; padding: 22px; }
  .eq { gap: 3px; }
  .grid2 { grid-template-columns: 1fr; }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login { grid-template-columns: 1fr; } .login .art { min-height: 340px; padding: 32px 26px; }
  .device { height: 640px; }
  th, td { padding: 12px 14px; }
  .cards, .tickets { grid-template-columns: 1fr; }
  .toasts { right: 16px; left: 16px; bottom: 96px; align-items: stretch; }
  .lc { height: 220px; }
  .select-pill { min-width: 0; width: 100%; }
}
@media (max-width: 480px) {
  .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kpi .v { font-size: 30px; }
  .kpi .t { font-size: 13.5px; }
  .kpi .spk, .ring, .ticks { display: none; }
  .dn { width: 170px; height: 170px; }
  .feed .tag { display: none; }
  .kpi .d { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .head h1 .w > span, .login .art h2 .w > span { transform: none; }
  .arc { stroke-dashoffset: 0; } .eq i { transform: none; } .lc .ln, .spk .l { stroke-dashoffset: 0; } .lc .ar { opacity: 1; } .lc .pk { transform: scale(1); }
  .sweep { opacity: 0; } .ap .wv { opacity: .6; }
}
@media print {
  .rail, .mobbar, .strip, .tools, .no-print { display: none !important; }
  .frame { padding: 0; } body { background: #fff; } body::before { display: none; } .page { padding: 0; }
}

/* ---- v0.8 ---- */
.note.bad { background: var(--bad-soft); border-left-color: var(--bad); }
.tabs.many { flex-wrap: wrap; overflow-x: visible; margin-bottom: 18px; }
.tabs.many button { padding: 9px 13px 12px; }
.pane > .toggle { margin-bottom: 4px; }
.band.adthumb { background: var(--sunk) center / cover no-repeat; min-height: 110px; }
.band.adthumb .state { position: absolute; top: 12px; right: 12px; }
.prog { height: 8px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.prog > i { display: block; height: 100%; border-radius: 99px; background: var(--acc); transition: width .6s var(--ease); }
.mb { display: flex; align-items: flex-end; gap: 3px; height: 130px; }
.mb > i { flex: 1; min-width: 3px; height: var(--h); min-height: 2px; border-radius: 4px 4px 1px 1px; background: var(--acc); opacity: .85; }
.axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.rkpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.rk { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.rk b { font-size: 32px; letter-spacing: -.02em; line-height: 1.1; }
.rk em { font-style: normal; font-size: 13px; font-weight: 650; }
.rk em.up { color: var(--good); } .rk em.dn { color: var(--bad); }
.hb { display: grid; grid-template-columns: 120px 1fr 48px; gap: 12px; align-items: center; margin-bottom: 10px; font-size: 14px; }
.hb b { text-align: right; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; }
.facts dt { color: var(--ink-3); } .facts dd { margin: 0; font-weight: 650; text-align: right; }
.select-pill { max-width: 260px; }
.seg-wrap { display: flex; }
@media (max-width: 720px) { .hb { grid-template-columns: 90px 1fr 42px; } }

.rk.late b { color: var(--bad); }
.note.bad a { color: inherit; font-weight: 700; }

/* v0.10 : statistiques par site */
.spark { display: block; }
.rk em.up, .tbl em.up { color: #0a7a4a; font-style: normal; font-weight: 600; }
.tbl em.dn { color: #b3261e; font-style: normal; font-weight: 600; }
