/* ============================================================
   APPEL 112 — structure applicative, topbar, navigation, carte
   ============================================================ */

.app { height: 100dvh; display: flex; flex-direction: column; position: relative; z-index: 1; }

/* ── Topbar ───────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  flex: none;
  display: flex; align-items: center; gap: 14px;
  padding: 0 16px 0 18px;
  background: var(--panel-glass);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 30;
}
.topbar .brand { display: flex; align-items: center; gap: 11px; min-width: 0; cursor: pointer; }
.topbar .vrule { width: 1px; height: 26px; background: var(--line); flex: none; }
.topbar-clock { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.topbar-clock .date { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.topbar-clock .time { font-family: var(--mono); font-size: 14px; letter-spacing: .03em; color: var(--text-2); }
.topbar-spacer { flex: 1; }
.topbar-tools { display: flex; align-items: center; gap: 6px; }
.topbar-div { width: 1px; height: 24px; background: var(--line); margin: 0 6px; flex: none; }

.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 11px; border-radius: 8px;
  border: 1px solid rgba(34, 197, 94, .25); background: rgba(34, 197, 94, .09);
  color: #57e08d; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(34,197,94,.16); animation: pulse-soft 2.4s infinite; }
.status-pill.off { border-color: rgba(239,68,68,.3); background: rgba(239,68,68,.09); color: #ff7a7a; }
.status-pill.off i { animation: blink 1.2s infinite; }

.credits-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px 0 10px; border-radius: 9px;
  background: var(--gold-soft); border: 1px solid rgba(243, 201, 105, .22);
  color: var(--gold); font-weight: 700; font-size: 13px;
  font-variant-numeric: tabular-nums;
  transition: var(--fast);
}
.credits-pill:hover { background: rgba(243, 201, 105, .18); }
.credits-pill svg { width: 15px; height: 15px; }
.credits-pill small { font-size: 10px; font-weight: 700; letter-spacing: .06em; opacity: .75; }

.weather-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 11px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--panel-2);
  font-size: 11.5px; color: var(--text-2); white-space: nowrap;
}
.weather-chip svg { width: 15px; height: 15px; }
.weather-chip .vg { width: 6px; height: 6px; border-radius: 50%; }
.vg.vert { background: #22c55e; }
.vg.jaune { background: #eab308; }
.vg.orange { background: #f97316; }
.vg.rouge { background: #ef4444; }

.online-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.online-pill svg { width: 15px; height: 15px; color: var(--ok); }

.avatar {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #1d3d5c, #0b1c2c);
  border: 1px solid var(--line-2);
  color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.profile-btn { display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px 4px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text); }
.profile-btn:hover { background: var(--panel-2); border-color: var(--line); }
.profile-btn .pseudo { display: block; font-size: 12.5px; font-weight: 600; max-width: 120px; }
.profile-btn .lvl { font-size: 10px; color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }

/* ── Shell ────────────────────────────────────────────────── */
.shell {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: var(--nav-w) minmax(0, 1fr) var(--rail-w);
}
.sidenav {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 20, 32, .5), transparent 40%);
  padding: 18px 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
  min-height: 0;
}
.nav-section { margin-top: 14px; padding: 0 10px 7px; }
.nav-section:first-child { margin-top: 0; }
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  height: 40px; padding: 0 12px; border-radius: 9px;
  color: var(--muted); font-size: 12.5px; font-weight: 600;
  border: 1px solid transparent;
  transition: var(--fast);
  text-align: left; width: 100%; background: transparent;
  white-space: nowrap;
}
.nav-item svg { width: 18px; height: 18px; flex: none; opacity: .82; }
.nav-item:hover { color: var(--text); background: var(--panel-2); }
.nav-item.active {
  color: var(--accent);
  background: linear-gradient(90deg, rgba(42, 212, 232, .13), rgba(42, 212, 232, .03));
  border-color: rgba(42, 212, 232, .18);
}
.nav-item.active::before {
  content: ""; position: absolute; left: -1px; top: 9px; bottom: 9px; width: 2px;
  border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.nav-item .n-badge { margin-left: auto; }
.nav-item span.grow { overflow: hidden; text-overflow: ellipsis; }
.nav-item .n-count {
  margin-left: auto; min-width: 20px; height: 19px; padding: 0 6px;
  display: grid; place-items: center; border-radius: 6px;
  background: var(--danger); color: #fff; font-size: 10px; font-weight: 700;
}
.nav-foot { margin-top: auto; padding-top: 14px; }

.nav-service {
  border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  padding: 12px;
}
.nav-service .ns-label { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.nav-service .ns-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.nav-service .ns-row b { color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ── Contenu ──────────────────────────────────────────────── */
.content { position: relative; min-width: 0; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.content.map-mode { overflow: hidden; }
.view-root { min-height: 100%; }
.view { padding: 20px 22px 36px; max-width: 1280px; margin: 0 auto; animation: fade-up .25s var(--ease) both; }
.view-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.view-title { display: flex; flex-direction: column; gap: 4px; }
.view-title .eyebrow { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.view-title h1 { font-size: 22px; }
.view-title p { color: var(--muted); font-size: 12.5px; }
.view-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ── Rail ─────────────────────────────────────────────────── */
.rail {
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 20, 32, .42), transparent 30%);
  overflow-y: auto;
  min-height: 0;
  padding: 16px 14px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.rail-head { display: flex; align-items: center; justify-content: space-between; }
.rail-head h3 { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.rail-head h3 svg { width: 14px; height: 14px; color: var(--accent); }
.rail-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rail-stat { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; background: var(--panel); }
.rail-stat .rs-label { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.rail-stat .rs-value { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }
.rail-stat.ok .rs-value { color: var(--ok); }
.rail-stat.warn .rs-value { color: var(--warn); }

.fac-mini { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.fac-mini + .fac-mini { margin-top: 8px; }
.fac-mini-head { display: flex; align-items: center; gap: 9px; padding: 10px 11px; border-bottom: 1px solid var(--line); }
.fac-dot { width: 8px; height: 8px; border-radius: 3px; flex: none; box-shadow: 0 0 10px currentColor; }
.fac-mini-head .fm-name { font-size: 11.5px; font-weight: 650; line-height: 1.2; }
.fac-mini-head .fm-city { font-size: 9.5px; color: var(--faint); letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.fac-mini-head .icon-btn { width: 26px; height: 26px; margin-left: auto; }
.fac-mini-head .icon-btn svg { width: 15px; height: 15px; }
.fac-veh { display: flex; flex-wrap: wrap; gap: 5px; padding: 9px 10px; }
.veh-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 7px; border-radius: 5px;
  font-size: 10px; font-weight: 650; letter-spacing: .02em;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.veh-chip::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .8; }
.veh-chip.dispo { color: #57e08d; border-color: rgba(34,197,94,.22); background: rgba(34,197,94,.07); }
.veh-chip.engage, .veh-chip.retour { color: #ffb454; border-color: rgba(245,158,11,.24); background: rgba(245,158,11,.08); }
.veh-chip.transport { color: #c084fc; border-color: rgba(168,85,247,.30); background: rgba(168,85,247,.10); }
.veh-chip.patrol { color: #7dd3fc; border-color: rgba(56,189,248,.24); background: rgba(56,189,248,.08); }
.veh-chip.indispo { color: var(--faint); opacity: .65; }
.fac-empty { padding: 10px 11px; font-size: 10.5px; color: var(--faint); }

/* ── Barre mobile ─────────────────────────────────────────── */
.bottomnav {
  display: none;
  height: calc(var(--bottom-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
  background: var(--panel-glass);
  backdrop-filter: blur(18px);
  position: relative; z-index: 25;
}
.bottomnav .bn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--faint); font-size: 9.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  background: transparent; border: 0; position: relative; height: 100%;
  transition: color var(--fast);
}
.bottomnav .bn-item svg { width: 20px; height: 20px; }
.bottomnav .bn-item.active { color: var(--accent); }
.bottomnav .bn-item.active::before {
  content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 2px;
  background: var(--accent); border-radius: 0 0 3px 3px; box-shadow: 0 0 14px var(--accent);
}
.bottomnav .bn-item .bn-dot {
  position: absolute; top: 11px; right: calc(50% - 16px);
  min-width: 15px; height: 15px; padding: 0 4px; border-radius: 6px;
  background: var(--danger); color: #fff; font-size: 9px; display: grid; place-items: center;
}

/* ── Carte ────────────────────────────────────────────────── */
.map-pane { position: absolute; inset: 0; background: var(--bg-2); }
.map-pane.hidden { display: none; }
#map { position: absolute; inset: 0; background: #0a1520; }
[data-theme="light"] #map { background: #dfe8ef; }
.leaflet-container { font-family: var(--font); background: transparent; }
.leaflet-control-attribution {
  background: var(--panel-glass) !important; color: var(--faint) !important;
  font-size: 9px !important; border-radius: 5px 0 0 0; padding: 2px 6px !important;
  border: 0 !important;
}
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-control-zoom { border: 1px solid var(--line) !important; border-radius: 9px !important; overflow: hidden; box-shadow: var(--shadow-1) !important; }
.leaflet-control-zoom a {
  width: 32px !important; height: 32px !important; line-height: 32px !important;
  background: var(--panel) !important; color: var(--text) !important; border-color: var(--line) !important;
  font-size: 17px !important;
}
.leaflet-control-zoom a:hover { background: var(--panel-3) !important; }
.leaflet-popup-content-wrapper {
  background: var(--panel) !important; color: var(--text) !important;
  border: 1px solid var(--line-2); border-radius: 11px !important;
  box-shadow: var(--shadow-2) !important;
}
.leaflet-popup-content { margin: 12px 14px !important; font-size: 12px; line-height: 1.45; }
.leaflet-popup-content b { color: var(--text); }
.leaflet-popup-tip { background: var(--panel) !important; border: 1px solid var(--line-2); }
.leaflet-popup-close-button { color: var(--muted) !important; }

.map-overlay { position: absolute; z-index: 500; pointer-events: none; }
.map-overlay > * { pointer-events: auto; }
.map-top-left { top: 14px; left: 14px; display: flex; flex-direction: column; gap: 8px; }
.map-top-right { top: 14px; right: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.map-bottom-left { bottom: 22px; left: 14px; }
.map-bottom-right { bottom: 22px; right: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }

.map-panel {
  background: var(--panel-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  box-shadow: var(--shadow-1);
  padding: 10px 12px;
}
.map-dept { min-width: 190px; }
.map-dept .md-eyebrow { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.map-dept .md-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: .01em; margin-top: 2px; }
.map-dept .md-row { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 10.5px; color: var(--muted); }

.map-layers { min-width: 158px; display: flex; flex-direction: column; gap: 2px; }
.map-layers .ml-title { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); padding: 2px 4px 5px; }
.layer-toggle {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px; border-radius: 7px;
  font-size: 11px; color: var(--text-2); background: transparent; border: 0; text-align: left;
}
.layer-toggle:hover { background: var(--panel-2); }
.layer-toggle .lt-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.layer-toggle .lt-box {
  margin-left: auto; width: 14px; height: 14px; border-radius: 4px;
  border: 1px solid var(--line-3); display: grid; place-items: center; flex: none;
}
.layer-toggle.on .lt-box { background: var(--accent); border-color: var(--accent); }
.layer-toggle.on .lt-box::after { content: ""; width: 7px; height: 4px; border-left: 1.7px solid #04141a; border-bottom: 1.7px solid #04141a; transform: rotate(-45deg) translateY(-1px); }
.layer-toggle:not(.on) { opacity: .55; }

.map-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; max-width: 270px; padding: 8px 10px; }
.map-legend .lg { display: flex; align-items: center; gap: 5px; font-size: 9.5px; color: var(--muted); letter-spacing: .03em; }
.map-legend .lg i { width: 7px; height: 7px; border-radius: 50%; }

.map-hint {
  display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--muted);
  padding: 7px 11px;
}
.map-hint svg { width: 13px; height: 13px; color: var(--accent); }

.map-fab { display: none; }

/* Marqueurs */
.mk-wrap { background: transparent; border: 0; }
.mk {
  position: relative;
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: #0b1623; border: 1.5px solid currentColor;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .5), 0 0 0 3px rgba(10, 20, 30, .55);
  transition: transform .15s var(--ease);
}
.mk svg { width: 14px; height: 14px; }
.mk.fac { width: 30px; height: 30px; border-radius: 9px; }
.mk.fac.other { width: 28px; height: 28px; border-style: dashed; opacity: .92; }
.mk.veh.other { width: 17px; height: 17px; border-style: dashed; opacity: .9; }
.mk.fac.mine { box-shadow: 0 0 0 3px rgba(255,255,255,.13), 0 4px 14px rgba(0,0,0,.55); }
.mk.fac.mine::after {
  content: ""; position: absolute; inset: -5px; border-radius: 12px;
  border: 1px dashed currentColor; opacity: .5;
}
.mk.veh { width: 19px; height: 19px; border-radius: 5px; border-width: 1px; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.mk.veh svg { width: 10px; height: 10px; }
.mk.hosp {
  width: 27px; height: 27px; border-radius: 8px; color: #fff;
  background: #dc2626; border-color: #fecaca;
  box-shadow: 0 0 0 3px rgba(220,38,38,.22), 0 4px 12px rgba(0,0,0,.55);
}
.mk.hosp svg { width: 14px; height: 14px; }
.city-label-wrap { background: transparent; border: 0; pointer-events: none; }
.city-label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  color: #dbeafe; font-size: 10px; font-weight: 600; letter-spacing: .02em;
  text-shadow: 0 1px 3px #000, 0 0 8px #000, 0 0 2px #000;
  white-space: nowrap; opacity: .85;
}
.city-label.major { font-size: 12.5px; font-weight: 800; color: #f0f9ff; opacity: 1; text-transform: uppercase; letter-spacing: .06em; }
.mk.inter {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff1;
  background: currentColor; box-shadow: 0 0 12px currentColor;
}
.mk.inter::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid currentColor; animation: pulse-ring 2s var(--ease) infinite;
}
.mk.call {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #04141a; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(42,212,232,.16), 0 0 16px rgba(42,212,232,.5);
}
.mk.call::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px solid var(--accent); animation: pulse-ring 1.6s var(--ease) infinite;
}
.mk .mk-eta {
  position: absolute; left: 50%; top: -22px; transform: translateX(-50%);
  background: var(--panel); border: 1px solid var(--line-2); color: var(--text);
  font-size: 9px; font-weight: 700; padding: 2px 5px; border-radius: 4px;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.marker-selected .mk { transform: scale(1.18); }

.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--danger);
  box-shadow: 0 0 0 4px rgba(239,68,68,.14);
  animation: blink 1.3s infinite;
}

/* ── Feuille / tiroir ─────────────────────────────────────── */
.sheet-root, .modal-root { position: relative; z-index: 80; }
.overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(2, 8, 14, .62);
  backdrop-filter: blur(3px);
  animation: fade-in .18s var(--ease) both;
  display: flex; align-items: flex-end; justify-content: center;
}
.overlay.center { align-items: center; padding: 18px; }
.overlay.drawer-right { justify-content: flex-end; align-items: stretch; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1360px) {
  :root { --rail-w: 300px; --nav-w: 220px; }
}
@media (max-width: 1180px) {
  .shell { grid-template-columns: var(--nav-w) minmax(0, 1fr); }
  .rail { display: none; }
  .rail.mobile-open { display: flex; }
}
@media (max-width: 900px) {
  :root { --topbar-h: 56px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidenav { display: none; }
  .bottomnav { display: flex; }
  .topbar { padding: 0 10px; gap: 8px; }
  .topbar .vrule, .topbar-clock, .topbar-tools .weather-chip, .online-pill, .topbar .profile-btn .lvl { display: none; }
  .topbar .brand .logo-tag { display: none; }
  .logo-word { font-size: 19px; }
  .logo-mark { width: 34px; height: 34px; border-radius: 10px; }
  .logo-mark svg { width: 19px; height: 19px; }
  .view { padding: 14px 14px 30px; }
  .view-title h1 { font-size: 19px; }
  .map-top-left { top: 10px; left: 10px; }
  .map-top-right { top: 10px; right: 10px; }
  .map-bottom-left { bottom: 12px; left: 10px; }
  .map-bottom-right { bottom: 76px; right: 12px; }
  .map-fab {
    display: inline-flex; align-items: center; gap: 8px;
    height: 42px; padding: 0 14px; border-radius: 10px;
    background: var(--panel-glass); backdrop-filter: blur(12px);
    border: 1px solid var(--line-2); color: var(--text);
    font-size: 12px; font-weight: 650; box-shadow: var(--shadow-1);
  }
  .map-fab svg { width: 16px; height: 16px; color: var(--accent); }
  .map-legend { max-width: 210px; }
  .content { padding-bottom: 0; }
}
@media (max-width: 560px) {
  .topbar .credits-pill small { display: none; }
  .credits-pill { padding: 0 10px; font-size: 12px; }
  .map-dept { min-width: 0; padding: 8px 10px; }
  .map-dept .md-name { font-size: 14px; }
  .map-layers { min-width: 132px; }
  .weather-chip span.wc-label { display: none; }
}
[data-theme="light"] .sidenav,
[data-theme="light"] .rail {
  background: linear-gradient(180deg, rgba(255, 255, 255, .72), transparent 42%);
}
[data-theme="light"] .avatar {
  background: linear-gradient(150deg, #d9f1f6, #b7dbe6);
  color: #07546a;
}
[data-theme="light"] .nav-item:hover { background: #fff; }
[data-theme="light"] .stats, [data-theme="light"] .rail-stat { background: #fff; }

/* ── Bandeau d'appel entrant ──────────────────────────────── */
.call-banner {
  position: fixed; z-index: 70; left: 50%; bottom: 18px;
  transform: translateX(-50%) translateY(18px);
  width: min(560px, calc(100vw - 28px));
  opacity: 0; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.call-banner.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.incoming-call {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 11px 10px 13px; border-radius: 14px;
  background: var(--panel-glass); backdrop-filter: blur(18px);
  border: 1px solid rgba(239, 68, 68, .38);
  box-shadow: var(--shadow-2);
}
.ic-pulse {
  position: relative; width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--danger-soft); color: #ff8f8f;
}
.ic-pulse::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--danger); animation: pulse-ring 1.5s var(--ease) infinite; }
.ic-body { flex: 1; min-width: 0; }
.ic-body b { display: block; font-size: 12.5px; letter-spacing: .02em; }
.ic-body span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 1px; }
@media (max-width: 900px) {
  .call-banner { bottom: calc(var(--bottom-h) + 10px + env(safe-area-inset-bottom)); }
}

/* ── Feuille mobile ───────────────────────────────────────── */
.modal-backdrop.sheet { align-items: flex-end; padding: 0; }
.modal.sheet {
  width: 100%; max-width: 560px; max-height: 88dvh;
  border-radius: 18px 18px 0 0; border-bottom: 0;
  animation: slide-up .24s var(--ease) both;
}
.modal.sheet .modal-head { padding-top: 6px; }
.sheet-grab { width: 38px; height: 4px; border-radius: 3px; background: var(--line-3); margin: 9px auto 2px; }
@media (min-width: 561px) {
  .modal-backdrop.sheet { align-items: center; justify-content: center; padding: 18px; }
  .modal.sheet { border-radius: 18px; border-bottom: 1px solid var(--line-2); }
  .sheet-grab { display: none; }
}

/* ── Détails de mise en page ──────────────────────────────── */
.topbar .brand { background: transparent; border: 0; padding: 0; color: var(--text); }
.menu-btn { display: none; }
.map-layers-btn { display: none; }
.table-wrap { width: 100%; }
@media (max-width: 1180px) { .rail-toggle { display: inline-flex; } }
@media (min-width: 1180px) { .rail-toggle { display: none; } }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .rail-toggle, .chat-btn, .topbar .status-pill, .topbar .weather-chip, .topbar .topbar-div { display: none; }
  .topbar .profile-btn { padding: 2px; }
  .topbar .profile-btn .pseudo { display: none; }
  .topbar-tools { gap: 4px; }
  .patrol-layout, .eco-lower, .settings-grid { grid-template-columns: 1fr !important; }
  .map-layers-btn { display: inline-flex; }
  .map-layers { display: none; }
  .map-layers.open { display: flex; }
  .map-top-right { gap: 6px; }
}
@media (max-width: 980px) {
  .patrol-layout, .eco-lower, .settings-grid, .call-layout { grid-template-columns: 1fr !important; }
}
@media (max-width: 400px) {
  .profile-btn .pseudo { display: none; }
  .topbar .credits-pill { font-size: 11.5px; }
}

