@font-face { font-family: 'Clash Display'; src: url('fonts/Z3MGHFHX6DCTLQ55LJYRJ5MDCZPMFZU6.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('fonts/KFIAZD4RUMEZIYV6FQ3T3GP5PDBDB6JY.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('fonts/GHM6WVH6MILNYOOCXHXB5GTSGNTMGXZR.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #06090d;
  --surface: #0e141b;
  --raised: #151d27;
  --raised-2: #1c2530;
  --line: #212c38;
  --fg: #f2f5f8;
  --muted: #95a0ac;
  --blue: #1b7bee;
  --blue-bright: #4a9bff;
  --blue-deep: #0e47a8;
  --route: #2fbf71;
  --ralenti: #f5a524;
  --gare: #8b95a1;
  --danger: #ef4444;
  --radius: 14px;
  --display: 'Clash Display', ui-sans-serif, system-ui, sans-serif;
  --body: 'Satoshi', ui-sans-serif, system-ui, sans-serif;
  --top-h: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--fg); font: 400 15px/1.5 var(--body); font-synthesis-weight: none; -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; }
.ic { width: 20px; height: 20px; fill: currentColor; flex: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.sur { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-bright); }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ en-tête */
.top { height: var(--top-h); display: flex; align-items: center; gap: 16px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--surface); position: relative; z-index: 20; }
.marque { display: flex; align-items: center; gap: 10px; }
.marque-t { display: flex; flex-direction: column; line-height: 1.1; }
.marque-t b { font: 600 19px var(--display); }
.marque-t span { font-size: 12px; color: var(--muted); }
.bascule { display: flex; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; margin: 0 auto; }
.bascule-b { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); transition: background .2s, color .2s; }
.bascule-b.on { background: var(--blue); color: #fff; }
.bascule-b .court { display: none; }
.demo-tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }

main { height: calc(100dvh - var(--top-h)); position: relative; }
.mode { display: none; height: 100%; }
.mode.on { display: flex; }

/* ------------------------------------------------------------- mode client */
#mode-client { align-items: center; justify-content: center; gap: 64px; padding: 24px; background: radial-gradient(1200px 600px at 70% 40%, rgba(27,123,238,.14), transparent 60%), var(--bg); }
.explique { max-width: 380px; }
.explique h1 { font-size: 34px; margin: 10px 0 14px; }
.explique .lead { color: var(--muted); font-size: 16px; }
.points { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.points .ic { color: var(--blue-bright); margin-top: 2px; }
.qui { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.qui button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; }
.qui button.on { border-color: var(--blue); color: var(--blue-bright); background: rgba(27,123,238,.1); }

.phone { width: 390px; height: min(844px, calc(100dvh - var(--top-h) - 48px)); border-radius: 46px; border: 10px solid #1c2530; box-shadow: 0 40px 80px rgba(0,0,0,.6), 0 0 0 1px #2a3542; overflow: hidden; flex: none; background: var(--bg); }
.app { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--bg); overflow: hidden; }
.app-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px 10px; background: var(--surface); border-bottom: 1px solid var(--line); z-index: 5; }
.app-hello { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.app-hello span { font-size: 12px; color: var(--muted); }
.app-hello b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rond { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--line); position: relative; flex: none; }
.rond.clair { background: rgba(14,20,27,.88); backdrop-filter: blur(6px); }
.rond.bleu { background: var(--blue); border-color: var(--blue); color: #fff; }
.pastille { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font: 700 12px/20px var(--body); font-style: normal; text-align: center; }
.app-body { flex: 1; position: relative; min-height: 0; }
.tab { display: none; position: absolute; inset: 0; flex-direction: column; }
.tab.on { display: flex; }
.map { position: absolute; inset: 0; background: #d9dde2; }
#t-carte .map { z-index: 0; }
.map-outils { position: absolute; top: 12px; right: 12px; display: grid; gap: 8px; z-index: 500; }
.style-nom { position: absolute; top: 14px; left: 12px; z-index: 500; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: rgba(14,20,27,.88); border: 1px solid var(--line); }

.chips { position: absolute; left: 12px; right: 12px; bottom: 26px; z-index: 500; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.chip { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; padding: 5px 10px 5px 5px; border-radius: 12px; background: rgba(14,20,27,.92); backdrop-filter: blur(8px); border: 1px solid var(--line); text-align: left; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.chip:last-child:nth-child(odd) { grid-column: 1 / -1; }
.chip.on { border-color: var(--blue); }
.chip-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--raised-2); color: var(--etat, var(--gare)); flex: none; }
.chips .chip-ic { width: 32px; height: 32px; border-radius: 9px; background: color-mix(in srgb, var(--etat, var(--gare)) 16%, transparent); }
.chips .chip-ic .ic { width: 17px; height: 17px; }
.chip > div:last-child { min-width: 0; }
.chip b { display: block; font-size: 13px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip span { display: block; font-size: 12px; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 600; background: var(--surface); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; padding: 10px 16px 16px; box-shadow: 0 -18px 40px rgba(0,0,0,.45); animation: monte .25s ease-out; }
@keyframes monte { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-poignee { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 10px; }
.sheet-h { display: flex; align-items: center; gap: 12px; }
.sheet-h .t { flex: 1; min-width: 0; }
.sheet-h b { font: 600 19px var(--display); display: block; }
.sheet-h span { font-size: 13px; color: var(--muted); }
.etat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--etat) 16%, transparent); color: var(--etat); white-space: nowrap; }
.etat::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-route { --etat: var(--route); } .s-ralenti { --etat: var(--ralenti); } .s-gare { --etat: var(--gare); } .s-muet, .s-coupe { --etat: var(--danger); }
.mesures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 10px; }
.mesure { background: var(--raised); border-radius: 12px; padding: 10px; }
.mesure b { display: block; font: 600 20px var(--display); }
.mesure span { font-size: 12px; color: var(--muted); }
.adresse { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--fg); }
.adresse .ic { color: var(--blue-bright); margin-top: 1px; width: 18px; height: 18px; }
.maj { font-size: 12px; color: var(--muted); margin: 4px 0 12px 26px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 12px; font-weight: 700; font-size: 14px; background: var(--raised); border: 1px solid var(--line); white-space: nowrap; }
.btn.bleu { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.rouge { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.vert { background: var(--route); border-color: var(--route); color: #04130a; }
.btn.plein { grid-column: 1 / -1; }
.btn:disabled { opacity: .5; cursor: default; }

.tab-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 16px 10px; }
.tab-h h2 { font-size: 24px; }
.seg { display: flex; gap: 4px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.seg-b { min-height: 44px; padding: 0 14px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--muted); }
.seg-b.on { background: var(--raised-2); color: var(--fg); }
.defile { flex: 1; overflow-y: auto; padding: 0 16px 16px; min-height: 0; }
.defile.court { flex: 1; }
.lien { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; font-size: 13px; color: var(--blue-bright); }

.alerte { display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 8px; }
.alerte.nouv { animation: arrive .5s ease-out; }
@keyframes arrive { from { background: rgba(27,123,238,.25); } }
.alerte.grave { border-color: rgba(239,68,68,.6); background: linear-gradient(90deg, rgba(239,68,68,.12), var(--surface) 60%); }
.al-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--raised-2); color: var(--blue-bright); }
.alerte.grave .al-ic { color: var(--danger); background: rgba(239,68,68,.14); }
.al-t { flex: 1; min-width: 0; }
.al-t b { display: block; font-size: 14px; }
.al-t p { font-size: 13px; color: var(--muted); }
.al-heure { font-size: 12px; color: var(--muted); white-space: nowrap; }
.al-statut { font-size: 12px; margin-top: 4px; color: var(--route); font-weight: 700; }
.al-actions { margin-top: 8px; }

.zone { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 8px; }
.zone .t { flex: 1; } .zone b { display: block; font-size: 14px; } .zone span { font-size: 12px; color: var(--muted); }
.inter { width: 52px; height: 44px; position: relative; flex: none; }
.inter::before { content: ''; position: absolute; left: 0; top: 10px; width: 48px; height: 26px; border-radius: 999px; background: var(--raised-2); border: 1px solid var(--line); transition: background .2s; }
.inter::after { content: ''; position: absolute; left: 4px; top: 14px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.inter[aria-checked="true"]::before { background: var(--blue); border-color: var(--blue); }
.inter[aria-checked="true"]::after { transform: translateX(20px); background: #fff; }

.rp-choix { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.rp-choix button { flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 13px; }
.rp-choix button.on { border-color: var(--blue); color: var(--blue-bright); }
.rp-carte { position: relative; height: 34%; min-height: 170px; margin: 0 16px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); flex: none; }
.rp-heure { position: absolute; left: 10px; bottom: 10px; z-index: 500; font: 600 16px var(--display); padding: 4px 10px; border-radius: 10px; background: rgba(14,20,27,.9); }
.rp-lecteur { display: flex; align-items: center; gap: 10px; padding: 12px 16px 6px; }
.rp-lecteur input { flex: 1; accent-color: var(--blue); min-height: 44px; }
.vit { min-width: 52px; min-height: 44px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.rp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 4px 16px 10px; }
.rp-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; text-align: center; }
.rp-stats b { display: block; font: 600 16px var(--display); }
.rp-stats span { font-size: 12px; color: var(--muted); }
.arret { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.arret-n { width: 26px; height: 26px; border-radius: 50%; background: var(--ralenti); color: #1a1000; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.arret b { display: block; font-size: 14px; }
.arret span { color: var(--muted); }

.carte-c { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.carte-c h3 { font-size: 16px; margin-bottom: 8px; }
.ligne-c { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ligne-c:last-child { border-bottom: 0; }
.ligne-c span { color: var(--muted); }
.ligne-c b { text-align: right; }

.tabbar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 5; }
.tb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; font-size: 12px; font-weight: 700; color: var(--muted); }
.tb.on { color: var(--blue-bright); }

/* ----------------------------------------------------------- repères carte */
.vm { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--etat); border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.45); color: #fff; transition: box-shadow .2s; }
.vm svg { width: 18px; height: 18px; fill: #fff; transition: transform .9s linear; }
.vm.sel { box-shadow: 0 0 0 6px rgba(27,123,238,.45), 0 4px 12px rgba(0,0,0,.45); }
.vm.s-muet { opacity: .8; }
.vm-lab { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 700 12px var(--body); color: #0b0f14; background: #fff; padding: 2px 7px; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.leaflet-container { font-family: var(--body); }
.leaflet-control-attribution { font-size: 12px !important; background: rgba(255,255,255,.8) !important; }
.leaflet-control-attribution a { color: #0e47a8 !important; }
.leaflet-div-icon { background: none; border: 0; }

/* ------------------------------------------------------------ toasts, voiles */
.toasts { position: absolute; top: 70px; left: 12px; right: 12px; z-index: 900; display: grid; gap: 8px; pointer-events: none; }
.toasts.g { position: fixed; top: calc(var(--top-h) + 12px); left: auto; right: 16px; width: 360px; }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: rgba(21,29,39,.97); border: 1px solid var(--line); box-shadow: 0 14px 30px rgba(0,0,0,.5); animation: descend .3s ease-out; pointer-events: auto; }
.toast.grave { border-color: var(--danger); }
.toast b { display: block; font-size: 14px; } .toast p { font-size: 13px; color: var(--muted); }
.toast .ic { color: var(--blue-bright); } .toast.grave .ic { color: var(--danger); }
@keyframes descend { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
.voile { position: absolute; inset: 0; z-index: 1000; background: rgba(3,5,8,.72); display: grid; place-items: end center; }
.voile.g { position: fixed; place-items: center; padding: 16px; }
.boite { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 22px 22px 0 0; padding: 20px; max-height: 92%; overflow-y: auto; animation: monte .25s ease-out; }
.voile.g .boite { max-width: 560px; border-radius: 20px; max-height: calc(100dvh - 32px); }
.boite h3 { font-size: 21px; margin-bottom: 6px; }
.boite > p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.boite-pied { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.boite-pied .btn { flex: 1; }
.etapes { display: grid; gap: 10px; margin: 8px 0 4px; }
.etape { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--muted); }
.etape i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; }
.etape i svg { width: 14px; height: 14px; fill: #fff; opacity: 0; }
.etape.fait { color: var(--fg); } .etape.fait i { background: var(--route); border-color: var(--route); } .etape.fait i svg { opacity: 1; }
.etape.cours { color: var(--fg); } .etape.cours i { border-color: var(--blue-bright); border-top-color: transparent; animation: tourne 1s linear infinite; }
.etape.attente { color: var(--ralenti); } .etape.attente i { border-color: var(--ralenti); }
@keyframes tourne { to { transform: rotate(360deg); } }
.avert { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(245,165,36,.1); border: 1px solid rgba(245,165,36,.35); font-size: 13px; margin-top: 10px; }
.avert .ic { color: var(--ralenti); }
.champ { display: grid; gap: 6px; margin-bottom: 12px; font-size: 13px; font-weight: 700; }
.champ input, .champ select { min-height: 46px; padding: 0 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-weight: 400; font-size: 15px; }
.choix-t { display: grid; gap: 8px; }
.choix-t label { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; cursor: pointer; }
.choix-t label:has(input:checked) { border-color: var(--blue); background: rgba(27,123,238,.08); }
.choix-t input { accent-color: var(--blue); width: 18px; height: 18px; }
.choix-t span { color: var(--muted); font-size: 13px; }
.rapport { width: 100%; border-collapse: collapse; font-size: 13px; }
.rapport th { text-align: left; color: var(--muted); font-weight: 700; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.rapport td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.rapport .n { text-align: right; }

/* ----------------------------------------------------------- mode gestion */
#mode-gestion { background: var(--bg); }
.side { width: 240px; flex: none; background: var(--surface); border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.nav { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--muted); text-align: left; position: relative; }
.nav.on { background: var(--raised-2); color: var(--fg); }
.nav.on .ic { color: var(--blue-bright); }
.nav .pastille { position: static; margin-left: auto; }
.side-pied { margin-top: auto; padding: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; font-size: 14px; }
.side-pied span { font-size: 12px; color: var(--muted); }
.g-main { flex: 1; min-width: 0; overflow-y: auto; position: relative; }
.vue { display: none; padding: 24px 28px 40px; animation: entre .25s ease-out; }
.vue.on { display: block; }
@keyframes entre { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.g-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.g-h h2 { font-size: 30px; margin-top: 4px; }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.kpi b { display: block; font: 600 30px var(--display); }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi.alerte-k b { color: var(--danger); } .kpi.ok b { color: var(--route); } .kpi.orange b { color: var(--ralenti); }
.g-grille { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-top: 16px; }
.panneau { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panneau h3 { font-size: 18px; margin-bottom: 10px; }
.tache { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tache:last-child { border-bottom: 0; }
.tache .al-ic { width: 38px; height: 38px; }
.tache .t { flex: 1; min-width: 0; font-size: 14px; }
.tache .t span { display: block; color: var(--muted); font-size: 13px; }
.tache.faite .t { text-decoration: line-through; opacity: .5; }
.direct-l { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.direct-l:last-child { border-bottom: 0; }
.direct-l .t { flex: 1; min-width: 0; }
.direct-l .t span { display: block; font-size: 13px; color: var(--muted); }
.barre { display: flex; gap: 3px; }
.barre i { width: 10px; height: 22px; border-radius: 3px; background: var(--etat); }

.parc { display: grid; grid-template-columns: 320px 1fr; height: calc(100dvh - var(--top-h)); margin: -24px -28px -40px; }
.parc-liste { border-right: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 0; background: var(--surface); }
.cherche { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.cherche input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 14px; min-height: 44px; }
.cherche .ic { color: var(--muted); width: 18px; height: 18px; }
.cherche.petit { width: 280px; max-width: 100%; }
.filtres { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.parc-liste .filtres { margin-bottom: 0; }
.filtre { min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 13px; font-weight: 700; color: var(--muted); }
.filtre.on { border-color: var(--blue); color: var(--blue-bright); background: rgba(27,123,238,.1); }
.filtre i { font-style: normal; opacity: .7; margin-left: 4px; }
.pc-items { overflow-y: auto; min-height: 0; flex: 1; display: grid; align-content: start; gap: 6px; }
.pc-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid transparent; text-align: left; width: 100%; min-height: 56px; }
.pc-item:hover { background: var(--raised); }
.pc-item.on { border-color: var(--blue); background: rgba(27,123,238,.08); }
.pc-item .t { flex: 1; min-width: 0; }
.pc-item b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-item span { font-size: 12px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-item .v { font: 600 15px var(--display); white-space: nowrap; flex: none; }
.parc-carte { position: relative; min-height: 0; }
.pc-fiche { position: absolute; left: 16px; bottom: 16px; z-index: 700; width: 360px; max-width: calc(100% - 32px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.pc-fiche .fermer { position: absolute; top: 10px; right: 10px; }

.table-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.tab-d { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.tab-d th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tab-d td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tab-d tr:last-child td { border-bottom: 0; }
.tab-d tbody tr { cursor: pointer; transition: background .15s; }
.tab-d tbody tr:hover { background: var(--raised); }
.tab-d td span.sub { display: block; font-size: 12px; color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--raised-2); white-space: nowrap; }
.pill.rouge { background: rgba(239,68,68,.15); color: #ff8080; }
.pill.orange { background: rgba(245,165,36,.15); color: var(--ralenti); }
.pill.vert { background: rgba(47,191,113,.15); color: var(--route); }
.pill.bleu { background: rgba(27,123,238,.15); color: var(--blue-bright); }
.nouveau-r { animation: arrive 1.2s ease-out; }
#ga-liste .alerte { padding: 14px 16px; }
#ga-liste .al-t p { font-size: 14px; }

@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1000px) {
  .explique { display: none; }
  .g-grille { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --top-h: 60px; }
  .top { padding: 0 12px; gap: 8px; }
  .demo-tag .long, .marque-t span { display: none; }
  .bascule-b { padding: 0 14px; }
  .bascule-b .long { display: none; }
  .bascule-b .court { display: inline; }
  #mode-client { padding: 0; }
  .phone { width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; }
  #mode-gestion { flex-direction: column; }
  .side { width: auto; flex-direction: row; overflow-x: auto; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .nav { flex: none; }
  .side-pied { display: none; }
  .g-main { flex: 1; min-height: 0; }
  .vue { padding: 18px 16px 32px; }
  .g-h h2 { font-size: 24px; }
  .parc { grid-template-columns: 1fr; grid-template-rows: 52% 1fr; height: calc(100dvh - var(--top-h) - 63px); margin: -18px -16px -32px; }
  .parc-liste { order: 2; border-right: 0; border-top: 1px solid var(--line); }
  .pc-fiche { left: 8px; right: 8px; bottom: 8px; width: auto; max-width: none; padding: 12px; }
  .toasts.g { left: 12px; right: 12px; width: auto; }
}
@media (max-width: 700px) {
  .table-box { background: none; border: 0; overflow: visible; }
  .table-box .tab-d { min-width: 0; }
  .table-box .tab-d thead { display: none; }
  .table-box .tab-d, .table-box .tab-d tbody { display: block; }
  .table-box .tab-d tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 14px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
  .table-box .tab-d td { display: block; padding: 0; border: 0; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
  .table-box .tab-d td.tete { grid-column: 1 / -1; font-size: 15px; }
  .table-box .tab-d td[data-l]::before { content: attr(data-l); display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi b { font-size: 26px; }
  .demo-tag { display: none; }
  .cherche.petit { width: 100%; }
}
@media (max-width: 360px) {
  .marque-t { display: none; }
  .mesure b { font-size: 17px; }
  .rp-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
