/* ALERTE 112 V10 — mission panels and pictograms. */
:root {--v10-blue:#0976e6}
#panel-left,#v5-calls-panel{top:calc(var(--sat) + 5px)!important;bottom:calc(var(--sab) + 5px)!important;height:auto!important;max-height:none!important;min-height:0;overflow:hidden}
#panel-left{display:flex;flex-direction:column;}
#panel-left.collapsed{display:flex;}
#panel-left .panel-head,#v5-calls-panel .panel-head{flex-shrink:0}
#panel-left .panel-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
#panel-left .counts,#panel-left .pause-note{flex:none}
/* The main actions remain above the map, but do not displace the full-height mission panel. */
.quick-bottom-left{z-index:66}
.v10-services-container {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  margin: 6px 0 8px;
  padding: 8px 6px;
  backdrop-filter: blur(8px);
}
.v10-service-icons {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 4px 2px 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.4) transparent;
}
.v10-service-button {
  width: 56px;
  min-width: 56px;
  border: 0;
  background: transparent;
  padding: 3px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  border-radius: 10px;
  filter: brightness(0.9);
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.v10-service-button:hover {
  transform: translateY(-2px) scale(1.05);
  filter: brightness(1.25);
  background: rgba(255, 255, 255, 0.08);
}
.v10-service-button svg {
  display: block;
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: transform 0.15s ease;
}
.v10-service-button.selected {
  filter: brightness(1.2);
  background: rgba(56, 189, 248, 0.18);
  outline: 2px solid #38bdf8;
  outline-offset: 1px;
}
.v10-service-button.selected svg {
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.8));
  transform: scale(1.06);
}
.v10-service-name {
  font-size: 10px;
  font-weight: 700;
  color: #cbd5e1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 56px;
  line-height: 1.1;
}
.v10-service-button.selected .v10-service-name {
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.v10-families-label{font-size:11px;color:#eee;font-weight:750;padding:2px 7px 5px}
.v42-service-symbol svg,.v42-mission-service svg{width:100%;height:100%}
.v42-service-symbol,.v42-mission-service{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
.v42-service-symbol svg{width:25px;height:25px}
.v42-mission-service svg{width:50px;height:50px}
/* Only map sprite — the vehicle's code is accessible by hover, never printed on streets. */
.vehicle-marker-name{display:none!important}
.vehicle-map-v2{background:transparent!important;border:0!important;box-shadow:none!important}
.vehicle-map-v2 .vehicle-topview{width:28px!important;height:40px!important;filter:drop-shadow(0 2px 2px #0009)}
.vehicle-map-v2 .vehicle-topview.vehicle-isometric{width:46px!important;height:28px!important;object-fit:contain!important;filter:drop-shadow(0 3px 6px rgba(0,0,0,0.65))!important;transition:transform 0.18s ease-out!important;will-change:transform}
/* Buildings resemble the reference's recognizable map POI shields, with original SVG art. */
.marker-station.v10-building-pin,.marker-callcenter.v10-cta-pin{border:0!important;background:transparent!important;box-shadow:none!important;width:38px!important;height:38px!important;display:grid!important;place-items:center!important;border-radius:0!important;position:absolute!important;top:0!important;left:0!important;margin:0!important;cursor:pointer}
.marker-station.v10-building-pin svg,.marker-callcenter.v10-cta-pin svg{display:block;width:26px;height:26px;filter:drop-shadow(0 2px 4px rgba(0,0,0,0.6));transition:transform .12s}
.marker-station.v10-building-pin:hover svg,.marker-callcenter.v10-cta-pin:hover svg{transform:scale(1.12)}
.marker-station.v10-building-pin .station-tooltip,.marker-callcenter.v10-cta-pin .station-tooltip{position:absolute;bottom:100%;left:50%;transform:translateX(-50%) translateY(-3px);background:rgba(15,23,42,0.92);border:1px solid #38bdf8;color:#f8fafc;padding:2px 7px;border-radius:4px;font:700 11px system-ui;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .15s ease;box-shadow:0 3px 8px rgba(0,0,0,0.5);z-index:90}
.marker-station.v10-building-pin:hover .station-tooltip,.marker-callcenter.v10-cta-pin:hover .station-tooltip{opacity:1}

/* HUD Bas Droite & Bas Gauche : Refonte épurée PC V11 (sans texte superflu sous les icônes) */
.quick-bottom-right {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;
  z-index: 25 !important;
}
.quick-bottom-right .orb,
.quick-bottom-left .orb {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
  cursor: pointer !important;
  position: relative !important;
  transition: transform 0.15s ease, filter 0.15s ease !important;
}
.quick-bottom-right .orb:hover,
.quick-bottom-left .orb:hover {
  transform: translateY(-2px) scale(1.06) !important;
  filter: brightness(1.1) !important;
}
.orb-season {
  background: radial-gradient(circle at 35% 35%, #4ade80, #15803d) !important;
  color: #fff !important;
}
.orb-quests {
  background: radial-gradient(circle at 35% 35%, #fbbf24, #b45309) !important;
  color: #fff !important;
}
.orb-shop {
  background: radial-gradient(circle at 35% 35%, #fb923c, #c2410c) !important;
  color: #fff !important;
}
.orb-clan {
  background: radial-gradient(circle at 35% 35%, #818cf8, #4338ca) !important;
  color: #fff !important;
}
.orb-stations {
  background: radial-gradient(circle at 35% 35%, #38bdf8, #0369a1) !important;
  color: #fff !important;
}
.orb-badge {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  border: 1.5px solid #ffffff !important;
  font: 800 10px system-ui !important;
  min-width: 18px !important;
  height: 18px !important;
  border-radius: 9px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5) !important;
  padding: 0 3px !important;
  box-sizing: border-box !important;
}

/* HUD Currency Plus Button */
.billets-plus-btn{background:#10b981;color:#fff;border:none;border-radius:50%;width:18px;height:18px;min-width:18px;display:inline-flex;align-items:center;justify-content:center;font:800 13px system-ui;cursor:pointer;margin-left:6px;line-height:1;box-shadow:0 1px 3px rgba(0,0,0,0.4);transition:transform .1s,background .1s}
.billets-plus-btn:hover{background:#059669;transform:scale(1.1)}

/* Pause button inside panel-head */
.mission-pause-btn{width:26px!important;height:26px!important;border-radius:4px!important;display:grid!important;place-items:center!important;font-size:13px!important;background:rgba(255,255,255,0.15)!important;border:1px solid rgba(255,255,255,0.3)!important;color:#fff!important;cursor:pointer!important}
.mission-pause-btn.paused{background:#f59e0b!important;color:#000!important;border-color:#fde68a!important}

/* Tactical dark map filter for Leaflet raster tiles */
.map-tactical .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) saturate(.8) brightness(.9) contrast(.92)}
.marker-mission.v10-mission-pin:not(.v9-work-active){border:0!important;background:transparent!important;box-shadow:none!important;width:22px!important;height:22px!important;display:grid!important;place-items:center!important;border-radius:0!important;}
.marker-mission.v10-mission-pin:not(.v9-work-active) svg{width:22px!important;height:22px!important;filter:drop-shadow(0 1px 2px #0009)}
.marker-mission.v9-work-active .v9-work-center svg{width:18px!important;height:18px!important}
.v10-end-now{background:linear-gradient(180deg,#7d5ec1,#5a3c9a);border:1px solid #c3b0ff;color:#fff;border-radius:5px;min-height:30px;padding:5px 10px;font:700 11px system-ui;cursor:pointer;white-space:nowrap}
.v10-end-now:disabled{opacity:.4;cursor:not-allowed}
.v42-top-action{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end}
@media(max-height:520px){
 #panel-left,#v5-calls-panel{top:calc(var(--sat) + 3px)!important;bottom:calc(var(--sab) + 3px)!important;max-height:none!important}
 .v10-service-icons{gap:5px;min-height:34px;padding:2px 2px 4px}
 .v10-service-button{width:34px;height:34px;min-width:34px}
 .v10-service-button svg{width:32px;height:32px}
 .v42-mission-service svg{width:36px;height:36px}
 .v10-families-label{font-size:10px}
 .v10-end-now{min-height:27px;padding:3px 6px;font-size:10px}
 .marker-station.v10-building-pin,.marker-callcenter.v10-cta-pin{width:33px!important;height:37px!important}
 .marker-station.v10-building-pin svg,.marker-callcenter.v10-cta-pin svg{width:33px;height:37px}
}
/* Quêtes & Navigation V11 */
.orb-quests { background: linear-gradient(145deg, #f59e0b, #b45309) !important; border: 2px solid #fde68a !important; color: #fff !important; }
.orb-badge { position: absolute; top: -4px; right: -4px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 900; min-width: 17px; height: 17px; line-height: 17px; border-radius: 9999px; text-align: center; border: 1.5px solid #fff; padding: 0 3px; box-shadow: 0 1px 4px rgba(0,0,0,0.5); }

/* Passe de Saison Horizontal à Deux Pistes (V11) */
.season-track-container {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 14px 6px;
  display: flex;
  gap: 12px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 10px;
}
.season-track-container::-webkit-scrollbar { height: 8px; }
.season-track-container::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 4px; }
.season-track-container::-webkit-scrollbar-thumb { background: #475569; border-radius: 4px; }
.season-track-container::-webkit-scrollbar-thumb:hover { background: #64748b; }

.season-tier-col {
  flex: 0 0 136px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.season-card {
  width: 100%;
  box-sizing: border-box;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 108px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.season-card.premium-card {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95), rgba(88, 28, 135, 0.25));
  border-color: rgba(168, 85, 247, 0.35);
}
.season-card.free-card {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95), rgba(6, 182, 212, 0.2));
  border-color: rgba(6, 182, 212, 0.35);
}
.season-card.claimable {
  border-color: #22c55e !important;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.35);
  animation: v11-pulse 1.8s infinite;
}
.season-card.claimed {
  opacity: 0.6;
  border-color: #475569;
}
.season-node-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}
.season-node-wrap::before {
  display: none;
}
.season-tier-node {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #64748b;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.season-tier-node.reached {
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
  border-color: #93c5fd;
  color: #fff;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

@keyframes v11-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.3); }
  50% { box-shadow: 0 0 18px rgba(34, 197, 94, 0.6); }
}

/* Quêtes (V11) */
.quest-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.15s ease;
}
.quest-card.ready {
  border-color: #22c55e;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.9), rgba(34, 197, 94, 0.12));
}
.quest-card.completed {
  opacity: 0.65;
}
.quest-info { flex: 1; }
.quest-progress-wrap {
  width: 100%;
  height: 7px;
  background: #0f172a;
  border-radius: 4px;
  overflow: hidden;
  margin: 6px 0 2px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.quest-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #22c55e);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Recherche de ville dans les Paramètres (V11) */
.settings-city-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  max-height: 170px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 4px 14px rgba(0,0,0,0.6);
}
.settings-city-item {
  padding: 8px 12px;
  border-bottom: 1px solid #1e293b;
  cursor: pointer;
  font-size: 13px;
  color: #f1f5f9;
}
.settings-city-item:hover {
  background: #1e293b;
  color: #38bdf8;
}

/* Bouton Google désactivé */
.btn-google {
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  font-weight: 700;
  border-radius: 6px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-google:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #334155;
  color: #94a3b8;
  border-color: #475569;
}

/* Barre d'XP et Profil HUD haut gauche (Refonte conforme aux photos 10 & 13) */
.hud-player-bar {
  display: flex !important;
  align-items: center !important;
  cursor: pointer !important;
  position: relative !important;
  user-select: none !important;
}
.player-corner .stat-pill.stat-level,
.hud-player-bar {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.level-badge {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 35%, #3b82f6, #1d4ed8) !important;
  box-shadow: 0 0 0 2.5px rgba(255,255,255,0.4), 0 3px 10px rgba(0,0,0,0.5) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font: 900 22px system-ui, -apple-system, sans-serif !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9) !important;
  position: relative !important;
  z-index: 4 !important;
  transition: transform 0.15s ease !important;
}
.level-badge:hover {
  transform: scale(1.05) !important;
}
.level-badge.has-avatar {
  background: #0f172a !important;
  overflow: visible !important;
}
.hud-avatar-img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}
.hud-level-mini-badge {
  position: absolute !important;
  bottom: -3px !important;
  right: -3px !important;
  background: #2563eb !important;
  color: #ffffff !important;
  font: 800 10px system-ui !important;
  padding: 1px 5px !important;
  border-radius: 9px !important;
  border: 1.5px solid #ffffff !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.6) !important;
}
.level-stack {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  margin-left: -12px !important;
  z-index: 3 !important;
}
.player-pseudo-row {
  display: flex !important;
  align-items: center !important;
  padding-left: 18px !important;
}
#hud-pseudo {
  font: 800 14px system-ui, -apple-system, sans-serif !important;
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.95), 0 0 3px rgba(0,0,0,0.8) !important;
  letter-spacing: 0.3px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  max-width: 180px !important;
}
.xp-bar-container {
  position: relative !important;
  width: 180px !important;
  height: 20px !important;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45) !important;
  display: flex !important;
  align-items: center !important;
  padding-left: 14px !important;
  box-sizing: border-box !important;
}
.xp-bar-fill {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  height: 100% !important;
  background: linear-gradient(90deg, #1d4ed8, #0ea5e9) !important;
  border-radius: 9px !important;
  transition: width 0.35s ease !important;
  z-index: 1 !important;
}
.xp-text {
  position: relative !important;
  z-index: 2 !important;
  font: 800 11px system-ui, -apple-system, sans-serif !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95) !important;
  margin-left: auto !important;
  padding-right: 8px !important;
  pointer-events: none !important;
}

/* ==========================================================================
   ALERTE 112 V11 : RECALAGE PC ET HIÉRARCHIE DES COUCHES D'AFFICHAGE
   ========================================================================== */

/* 1. Couche Carte de Base */
#map, .leaflet-container {
  z-index: 0 !important;
}

/* 2. Couche HUD de repos (profil XP, devises, orbes de navigation) */
.hud-top, .player-corner, .currency-corner, .quick-left, .quick-bottom-left, .quick-bottom-right {
  z-index: 25 !important;
}

/* Placement PC précis du HUD */
.hud-top {
  position: fixed !important;
  top: 16px !important;
  left: 18px !important;
  right: 18px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  pointer-events: none !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}
.hud-top > * {
  pointer-events: auto !important;
}
.player-corner {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
.brand-inline {
  font-weight: 800 !important;
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.8) !important;
  letter-spacing: 0.5px !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8) !important;
}
.quick-left {
  position: fixed !important;
  top: 78px !important;
  left: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  z-index: 25 !important;
}
.quick-left .orb {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  background: radial-gradient(circle at 35% 35%, #475569, #1e293b) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45) !important;
  color: #f8fafc !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, filter 0.15s ease !important;
}
.quick-left .orb:hover {
  transform: translateY(-2px) scale(1.06) !important;
  filter: brightness(1.15) !important;
}

/* 3. Transmissions Radio : bas-centre, lisible, discrète */
.radio-banner {
  position: fixed !important;
  bottom: 18px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  top: auto !important;
  right: auto !important;
  z-index: 35 !important;
  width: min(500px, calc(100vw - 360px)) !important;
  max-width: calc(100vw - 30px) !important;
  background: rgba(15, 23, 42, 0.94) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  border-radius: 12px !important;
  padding: 8px 16px !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.65) !important;
  text-align: center !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, transform 0.25s ease !important;
}

/* 4. Couche Panneaux Latéraux Ouverts (Missions, Appels, Détails) — Pleine hauteur */
#panel-left, #v5-calls-panel, #panel-right {
  z-index: 120 !important;
  top: calc(var(--sat) + 54px) !important; bottom: 0px !important; height: calc(100vh - var(--sat) - 54px) !important;
  height: calc(100dvh - var(--sat) - var(--sab) - 80px) !important;
  max-height: none !important;
  background: #0f172a !important;
  border: 2px solid #1e293b !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 6px 0 24px rgba(0, 0, 0, 0.5) !important;
}
#panel-violet-phone {
  max-height: calc(100dvh - 140px) !important;
}

/* Priorité visuelle complète : quand un panneau gauche est ouvert, masquer les orbes en dessous */
body.panel-calls-open .quick-bottom-left,
body:has(#panel-left:not(.collapsed)) .quick-bottom-left,
body:has(#v5-calls-panel:not(.hidden)) .quick-bottom-left {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* 5. Couche Focus Intervention / Ordre de Départ */
#mission-focus, .mission-focus {
  z-index: 160 !important;
  background: #0f172a !important;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.9) !important;
}

/* 6. Couche Modales & Fenêtres Plein Écran (Paramètres, Quêtes, Passe, Caserne, Boutique) */
.modal-backdrop, #shop-screen, .shop-screen, #v8-building-screen, .v8-building-screen {
  z-index: 250 !important;
  background: rgba(5, 10, 20, 0.82) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

/* 7. Dialogues de confirmation prioritaires */
#confirm-modal {
  z-index: 320 !important;
}

/* 8. Toasts de notification */
.toast-wrap {
  z-index: 400 !important;
}

/* Styles Paramètres Simplifiés V11 */
.settings-simple-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.settings-row + .settings-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.settings-label {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
}
.switch-group {
  display: inline-flex;
  background: #090d16;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.switch-btn {
  border: none;
  background: transparent;
  color: #94a3b8;
  font: 800 11px system-ui, sans-serif;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.switch-btn.active {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
}
.settings-search-box {
  display: flex;
  align-items: center;
  background: #090d16;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0 10px;
  gap: 8px;
}
.settings-search-box .search-loupe {
  font-size: 14px;
  opacity: 0.7;
}
.settings-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
  outline: none;
}
.settings-row-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Vibration / alerte animation visuelle */
@keyframes alertPulseGlow {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  50% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.vibrate-pulse {
  animation: alertPulseGlow 0.4s ease 2 !important;
}

/* Avatar dans les paramètres */
.avatar-preview-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #38bdf8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0f172a;
  font-size: 26px;
  flex: none;
}
.avatar-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Masquage complet de l'attribution cartographique (OpenStreetMap / CARTO) selon consigne utilisateur */
.leaflet-bottom.leaflet-right,
.maplibregl-ctrl-bottom-right,
.leaflet-control-attribution,
.maplibregl-ctrl-attrib,
.maplibregl-ctrl-attrib-button,
.maplibregl-compact,
.maplibregl-compact-show {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  max-width: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

/* Masquage et suppression totale du bouton loupe sous les paramètres */
#btn-map-menu,
.orb-search,
.quick-left .orb-search,
[data-action="map-search"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* Style des nouvelles icônes vectorielles SVG pour les orbes */
.orb-icon-svg {
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

/* Boutons de compte rouges */
.btn-danger-solid {
  background: #dc2626 !important;
  color: #ffffff !important;
  border: 1px solid #ef4444 !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  transition: all 0.15s ease !important;
}
.btn-danger-solid:hover {
  background: #b91c1c !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.5) !important;
}
.btn-danger-dark {
  background: #7f1d1d !important;
  color: #fecaca !important;
  border: 1px solid #dc2626 !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  transition: all 0.15s ease !important;
}
.btn-danger-dark:hover {
  background: #991b1b !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.5) !important;
}

/* Suppression définitive du texte explicatif de pause */
#pause-note {
  display: none !important;
}

@media(prefers-reduced-motion:reduce){.v10-service-button{transition:none}}


/* Groupement des véhicules par famille dans la liste d'intervention (V11) */
.v11-family-group {
  margin-bottom: 12px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.v11-family-group:hover {
  border-color: rgba(56, 189, 248, 0.25);
}
.v11-family-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(30, 41, 59, 0.6);
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
}
.v11-family-header:hover {
  background: rgba(51, 65, 85, 0.6);
}
.v11-family-group.collapsed .v11-family-header {
  border-bottom: none;
}
.v11-family-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.v11-family-thumb {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v11-family-thumb svg {
  width: 100%;
  height: 100%;
}
.v11-family-name {
  font-weight: 800;
  font-size: 13px;
  color: #f1f5f9;
  letter-spacing: 0.3px;
}
.v11-family-badge {
  background: #0284c7;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  min-width: 18px;
  text-align: center;
}
.v11-family-toggle {
  font-size: 12px;
  color: #94a3b8;
  padding-left: 8px;
}
.v11-family-table-wrap {
  overflow-x: auto;
}
.v11-empty-service {
  padding: 28px 16px;
  text-align: center;
  background: rgba(15, 23, 42, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  margin: 10px 0;
}
.v11-empty-title {
  font-size: 14px;
  font-weight: 800;
  color: #cbd5e1;
  margin-bottom: 6px;
}
.v11-empty-subtitle {
  font-size: 12px;
  color: #94a3b8;
}

/* ==========================================================================
   ALERTE 112 V12 — MODE AUTOMATIQUE
   ========================================================================== */
.v12-auto-mode-bar {
  margin: 6px 4px 10px;
  padding: 8px 12px;
  background: rgba(22, 19, 33, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}
.v12-auto-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.v12-auto-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  border-radius: 9px;
  padding: 8px 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.v12-auto-btn.start {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #ffffff;
  border-color: #c084fc;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
}
.v12-auto-btn.start:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
}
.v12-auto-btn.stop {
  background: #7f1d1d;
  color: #fecaca;
  border-color: #f87171;
}
.v12-auto-btn.stop:hover {
  background: #991b1b;
}
.v12-auto-btn.summary {
  background: #1e293b;
  color: #cbd5e1;
  border-color: #475569;
}
.v12-auto-btn.summary:hover {
  background: #334155;
  color: #ffffff;
}
.v12-auto-hint {
  font-size: 11px;
  color: #cbd5e1;
  font-weight: 600;
}
.v12-auto-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.v12-auto-badge.active {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 900;
  color: #86efac;
  background: rgba(22, 101, 52, 0.45);
  border: 1px solid #22c55e;
  border-radius: 9999px;
  padding: 3px 9px;
  letter-spacing: 0.5px;
}
.v12-auto-rate {
  font-size: 12px;
  font-weight: 800;
  color: #facc15;
}
.v12-auto-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Modales Mode Automatique */
.v12-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
  backdrop-filter: blur(6px);
}
.v12-modal-backdrop.hidden {
  display: none !important;
}
.v12-modal-box {
  width: min(480px, 100%);
  background: #151321;
  border: 1px solid #8b5cf6;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.7);
  color: #f8fafc;
}
.v12-modal-box.wide {
  width: min(580px, 100%);
}
.v12-modal-box h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: #f1f5f9;
}
.v12-modal-box p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}
.v12-auto-penalty-banner {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  margin: 14px 0;
}
.v12-penalty-val {
  display: block;
  font-size: 34px;
  font-weight: 900;
  color: #f87171;
  line-height: 1;
}
.v12-auto-penalty-banner small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fca5a5;
}
.v12-modal-subtext {
  font-size: 12px !important;
  color: #94a3b8 !important;
}
.v12-modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.v12-btn-cancel {
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #475569;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}
.v12-btn-cancel:hover {
  background: #334155;
  color: #ffffff;
}
.v12-btn-confirm {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #ffffff;
  border: 1px solid #c084fc;
  padding: 9px 20px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
}
.v12-btn-confirm:hover {
  filter: brightness(1.2);
}
.v12-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.v12-stat-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.v12-stat-card strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: #e2e8f0;
}
.v12-stat-card.highlight strong {
  color: #facc15;
}
.v12-stat-card.muted strong {
  color: #64748b;
}
.v12-stat-card small {
  font-size: 11px;
  color: #94a3b8;
}
.v12-history-list {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #0b0f19;
  padding: 6px 10px;
  margin-top: 8px;
}
.v12-history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}
.v12-history-row:last-child {
  border-bottom: none;
}
.v12-history-row span {
  color: #e2e8f0;
  font-weight: 600;
}
.v12-history-row strong {
  color: #facc15;
}
.v12-history-empty {
  padding: 18px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

/* Responsive mobile <= 540px : éviter débordement HUD billets & élargir panneaux */
@media (max-width: 540px) {
  .hud-top {
    padding: 6px 8px !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .player-corner,
  .hud-player-bar {
    min-width: 0 !important;
    max-width: 46vw !important;
    gap: 6px !important;
    padding: 4px 6px !important;
  }

  .level-badge {
    width: 30px !important;
    height: 30px !important;
    font-size: 12px !important;
    flex-shrink: 0 !important;
  }

  .level-stack {
    min-width: 0 !important;
    max-width: 110px !important;
  }

  .xp-bar-container {
    min-width: 56px !important;
  }

  .currency-corner,
  .currency-hud-bar {
    min-width: 0 !important;
    max-width: 52vw !important;
    gap: 4px !important;
    flex-shrink: 1 !important;
  }

  .currency-capsule,
  #hud-credits,
  #hud-billets {
    padding: 4px 7px !important;
    gap: 4px !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .currency-val {
    font-size: 12px !important;
  }

  .currency-plus-btn {
    width: 20px !important;
    height: 20px !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
  }

  #panel-left,
  #v5-calls-panel,
  #panel-right {
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-width: calc(100vw - 16px) !important;
  }
}

/* --- V16–V19 : Bannières événements, filtres, sélection auto & Alliance vivante --- */
.v16-event-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  margin-bottom: 8px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(239, 68, 68, 0.14));
  border: 1px solid rgba(251, 191, 36, 0.38);
}

.v16-event-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.v16-event-info strong {
  font-size: 11.5px;
  color: #fde68a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v16-event-info small {
  font-size: 10px;
  color: #fcd34d;
  font-weight: 700;
}

.v16-event-switch {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(15, 23, 42, 0.65);
  color: #fef3c7;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.v16-event-switch:hover {
  background: rgba(245, 158, 11, 0.25);
}

.v16-mission-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.v16-filter-chip {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.65);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.v16-filter-chip.active {
  background: linear-gradient(135deg, #2563eb, #0284c7);
  border-color: #60a5fa;
  color: #ffffff;
}

.v16-req-badge {
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.v16-req-badge.major {
  background: rgba(249, 115, 22, 0.2);
  color: #fdba74;
  border-color: rgba(249, 115, 22, 0.45);
}

.v16-req-badge.mega {
  background: rgba(239, 68, 68, 0.24);
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.65);
}

.v16-evt-chip {
  flex-shrink: 0;
  padding: 2px 5px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 800;
  background: rgba(250, 204, 21, 0.18);
  color: #fde047;
}

.v42-top-action {
  flex-wrap: wrap;
  gap: 6px;
}

.v16-autoselect-btn {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.55);
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.v16-autoselect-btn:hover:not(:disabled) {
  filter: brightness(1.1);
}

.v16-clearselect-btn {
  padding: 6px 9px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(30, 41, 59, 0.85);
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.v16-weekly-card,
.v16-active-run-card,
.v16-wall-box {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
}

.v16-weekly-head,
.v16-active-run-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 6px;
}

.v16-weekly-bar {
  height: 7px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 5px;
}

.v16-weekly-bar > div {
  height: 100%;
  background: linear-gradient(90deg, #06b6d4, #22c55e);
}

.v16-weekly-reward {
  font-size: 11px;
  color: #93c5fd;
}

.v16-section-label {
  font-size: 12px;
  font-weight: 800;
  color: #7dd3fc;
  margin-bottom: 6px;
}

.v16-active-run-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.v16-wall-list {
  max-height: 135px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 11.5px;
}

.v16-wall-item {
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  line-height: 1.35;
}

.v16-wall-item.sys {
  background: rgba(56, 189, 248, 0.1);
  color: #bae6fd;
}

.v16-wall-empty {
  font-size: 11px;
  color: #94a3b8;
}

.v16-wall-form {
  display: flex;
  gap: 6px;
}

.v16-wall-form input {
  flex: 1;
  min-width: 0;
  padding: 5px 8px;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 23, 0.8);
  color: #f8fafc;
  font-size: 12px;
}

/* ==========================================================================
   V16 AESTHETIC PACK (6 POINTS)
   ========================================================================== */

/* Point 1 : Suppression du carré/bandeau gris de carte et des tuiles avortées */
html,
body,
#map,
#map-wrap,
.leaflet-container,
.leaflet-pane,
.leaflet-tile-pane {
  background-color: #0b1120 !important;
}

.leaflet-tile {
  background-color: transparent !important;
}

.leaflet-tile:not(.leaflet-tile-loaded) {
  opacity: 0 !important;
}

/* Point 2 : Panneau CODIS #panel-left & #v5-calls-panel en verre fumé sombre */
#panel-left,
#v5-calls-panel {
  background: rgba(11, 18, 32, 0.86) !important;
  backdrop-filter: blur(16px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  overflow: visible !important;
}

#panel-left .panel-head,
#v5-calls-panel .panel-head {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 58, 138, 0.72) 100%) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.26) !important;
  border-top-left-radius: 11px !important;
  border-top-right-radius: 11px !important;
}

#panel-left .panel-head h2,
#v5-calls-panel .panel-head h2 {
  letter-spacing: 0.35px;
  text-shadow: 0 1px 6px rgba(2, 6, 23, 0.65);
}

#panel-left .panel-body,
#v5-calls-panel #v5-calls-body {
  background-color: transparent !important;
  background-image:
    radial-gradient(circle at 85% 90%, rgba(56, 189, 248, 0.07), transparent 55%),
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px) !important;
  background-size: 100% 100%, 28px 28px, 28px 28px !important;
  border-bottom-left-radius: 11px !important;
  border-bottom-right-radius: 11px !important;
  padding: 6px 6px 10px 6px !important;
  position: relative;
}

#panel-left #missions-body::after {
  content: "CENTRAL 112 · VEILLE OPÉRATIONNELLE";
  display: block;
  text-align: center;
  padding: 12px 8px 4px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: rgba(148, 163, 184, 0.28);
  pointer-events: none;
}

#panel-left .v12-auto-mode-bar {
  margin: 6px 6px 2px !important;
  padding: 5px 10px !important;
  border-radius: 9px !important;
  background: rgba(15, 23, 42, 0.78) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

#panel-left .v12-auto-btn {
  padding: 5px 11px !important;
  font-size: 11.5px !important;
  border-radius: 999px !important;
}

#panel-left .v12-auto-hint {
  font-size: 10.5px !important;
  color: #94a3b8 !important;
}

/* Point 3 : Cartes d'intervention tactiques riches (.v42-mission-line) */
#panel-left .v42-mission-line {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 48px !important;
  max-height: none !important;
  margin: 0 0 6px 0 !important;
  padding: 7px 10px !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.78)) !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-left: 4px solid #ef4444 !important;
  box-shadow: 0 3px 10px rgba(2, 6, 23, 0.36) !important;
  overflow: visible !important;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease !important;
}

#panel-left .v42-mission-line:hover,
#panel-left .v42-mission-line:focus-visible {
  transform: translateY(-1px) !important;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(37, 99, 235, 0.22)) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  outline: none !important;
}

#panel-left .v42-mission-line.svc-pompiers { border-left-color: #ef4444 !important; }
#panel-left .v42-mission-line.svc-sante    { border-left-color: #06b6d4 !important; }
#panel-left .v42-mission-line.svc-police   { border-left-color: #3b82f6 !important; }
#panel-left .v42-mission-line.svc-autoroute{ border-left-color: #f59e0b !important; }
#panel-left .v42-mission-line.svc-major    { border-left-color: #f97316 !important; }
#panel-left .v42-mission-line.svc-mega     {
  border-left-color: #f43f5e !important;
  background: linear-gradient(135deg, rgba(69, 10, 26, 0.78), rgba(30, 41, 59, 0.88)) !important;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.24) !important;
}

#panel-left .v42-service-symbol {
  flex: 0 0 26px !important;
  width: 26px !important;
  height: 26px !important;
}

#panel-left .v16-line-main {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  text-align: left !important;
}

#panel-left .v42-line-title {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
  line-height: 1.2 !important;
}

#panel-left .v16-line-sub {
  font-size: 10.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#panel-left .v42-line-state {
  flex: 0 0 auto !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px;
  background: rgba(148, 163, 184, 0.16) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
}

#panel-left .v42-line-state.state-new {
  background: rgba(245, 158, 11, 0.22) !important;
  color: #fde68a !important;
  border-color: rgba(251, 191, 36, 0.48) !important;
}

#panel-left .v42-line-state.state-todo {
  background: rgba(251, 146, 60, 0.18) !important;
  color: #fdba74 !important;
  border-color: rgba(251, 146, 60, 0.42) !important;
}

#panel-left .v42-line-state.state-route {
  background: rgba(56, 189, 248, 0.18) !important;
  color: #7dd3fc !important;
  border-color: rgba(56, 189, 248, 0.42) !important;
}

#panel-left .v42-line-state.state-bilan,
#panel-left .v42-line-state.state-work {
  background: rgba(34, 197, 94, 0.2) !important;
  color: #86efac !important;
  border-color: rgba(74, 222, 128, 0.44) !important;
}

#panel-left .v42-line-state.state-reinforce {
  background: rgba(239, 68, 68, 0.24) !important;
  color: #fca5a5 !important;
  border-color: rgba(248, 113, 113, 0.55) !important;
}

/* Point 4 : Effets visuels carte (gyrophares, onde radar, tracés GPS lumineux) */
@keyframes v16SirenGlow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.95)); }
  50%      { filter: drop-shadow(0 0 7px rgba(59, 130, 246, 0.95)); }
}

.vehicle-map-v2.v16-veh-enroute .vehicle-topview,
.vehicle-map-v2.v16-veh-onsite .vehicle-topview {
  animation: v16SirenGlow 0.72s infinite ease-in-out;
}

@keyframes v16RadarPulse {
  0%   { transform: translate(-50%, -50%) scale(0.75); opacity: 0.85; }
  100% { transform: translate(-50%, -50%) scale(2.4);  opacity: 0; }
}

.marker-mission.v16-pin-major,
.marker-mission.v16-pin-mega {
  position: absolute !important;
}

.marker-mission.v16-pin-major::after,
.marker-mission.v16-pin-mega::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #f97316;
  pointer-events: none;
  animation: v16RadarPulse 1.8s infinite cubic-bezier(0.2, 0.7, 0.3, 1);
}

.marker-mission.v16-pin-mega::after {
  border-color: #f43f5e;
  border-width: 2.5px;
  animation-duration: 1.3s;
}

.leaflet-overlay-pane svg path {
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.65));
}

/* Point 5 : Harmonisation des 5 boutons ronds (.quick-bottom-right .orb) */
.quick-bottom-right .orb {
  background: radial-gradient(circle at 35% 30%, rgba(30, 41, 59, 0.96), rgba(9, 14, 26, 0.98)) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  color: #f8fafc !important;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

.quick-bottom-right .orb.orb-season {
  border: 2px solid #4ade80 !important;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.65), 0 0 12px rgba(74, 222, 128, 0.28) !important;
}

.quick-bottom-right .orb.orb-quests {
  border: 2px solid #fbbf24 !important;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.65), 0 0 12px rgba(251, 191, 36, 0.28) !important;
}

.quick-bottom-right .orb.orb-shop {
  border: 2px solid #fb923c !important;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.65), 0 0 12px rgba(251, 146, 60, 0.28) !important;
}

.quick-bottom-right .orb.orb-clan {
  border: 2px solid #a855f7 !important;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.65), 0 0 12px rgba(168, 85, 247, 0.28) !important;
}

.quick-bottom-right .orb.orb-stations {
  border: 2px solid #38bdf8 !important;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.65), 0 0 12px rgba(56, 189, 248, 0.28) !important;
}

.quick-bottom-right .orb:hover {
  transform: translateY(-3px) scale(1.07) !important;
  filter: brightness(1.18) !important;
}

/* Point 6 : Bandeau tactique animé de fin d'intervention */
@keyframes v16BannerIn {
  0%   { opacity: 0; transform: translate(-50%, -14px) scale(0.95); }
  100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.v16-victory-banner {
  position: fixed;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9500;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  border-radius: 14px;
  background: rgba(11, 18, 32, 0.94);
  backdrop-filter: blur(14px);
  border: 1.5px solid rgba(52, 211, 153, 0.65);
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.72), 0 0 22px rgba(16, 185, 129, 0.26);
  color: #f8fafc;
  max-width: min(92vw, 520px);
  animation: v16BannerIn 0.24s ease-out;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.v16-victory-banner.is-major {
  border-color: rgba(251, 191, 36, 0.8);
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.78), 0 0 26px rgba(245, 158, 11, 0.32);
}

.v16-victory-banner.is-leaving {
  opacity: 0;
  transform: translate(-50%, -10px) scale(0.97);
}

.v16-vb-icon {
  font-size: 22px;
  line-height: 1;
}

.v16-vb-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.v16-vb-eyebrow {
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.9px;
  color: #34d399;
}

.v16-victory-banner.is-major .v16-vb-eyebrow {
  color: #fbbf24;
}

.v16-vb-title {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v16-vb-rewards {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.v16-vb-chip {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}

.v16-vb-chip.coins {
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
}

.v16-vb-chip.xp {
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #bae6fd;
}

@media (prefers-reduced-motion: reduce) {
  .vehicle-map-v2.v16-veh-enroute .vehicle-topview,
  .vehicle-map-v2.v16-veh-onsite .vehicle-topview,
  .marker-mission.v16-pin-major::after,
  .marker-mission.v16-pin-mega::after,
  .v16-victory-banner {
    animation: none !important;
  }
}

/* =====================================================================
   ALERTE 112 — Correctifs UI & Ergonomie (12 Photos + HUD + Pleine Hauteur)
   ===================================================================== */

/* 1. Refonte barre d'expérience (haut-gauche) — Fidèle maquette métallique & cyan sans fond derrière le pseudo */
.hud-player-bar,
.hud-player-bar.v16-hud-xpbar {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  padding: 2px 4px !important;
  border-radius: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.v16-xp-medal {
  position: relative !important;
  z-index: 4 !important;
  width: 64px !important;
  height: 64px !important;
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.72));
}
.v16-xp-medal-svg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}
.hud-player-bar .level-badge,
.hud-player-bar .v16-xp-level-num {
  position: relative !important;
  z-index: 2 !important;
  min-width: 0 !important;
  width: 30px !important;
  height: 30px !important;
  padding: 0 !important;
  margin-top: 3px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 0 8px rgba(56, 189, 248, 0.55) !important;
  font-variant-numeric: tabular-nums;
}
.hud-player-bar .v16-xp-level-num.has-avatar {
  overflow: visible !important;
}
.hud-player-bar .v16-xp-level-num .hud-avatar-img {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1.5px solid #cbd5e1 !important;
}
.hud-player-bar .v16-xp-level-num .hud-level-mini-badge {
  position: absolute !important;
  bottom: -6px !important;
  right: -7px !important;
  min-width: 16px !important;
  height: 16px !important;
  padding: 0 4px !important;
  border-radius: 999px !important;
  background: #0284c7 !important;
  border: 1.5px solid #ffffff !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.hud-player-bar .level-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px !important;
  margin-left: -10px !important;
  min-width: 185px !important;
}
.hud-player-bar .player-pseudo-row {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 0 0 14px !important;
  margin: 0 !important;
  line-height: 1.1 !important;
}
#hud-pseudo {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: 0.25px;
  line-height: 1.15;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 0.9) !important;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block !important;
}
.v16-xp-frame {
  position: relative !important;
  padding: 4px 12px 4px 10px !important;
  background: linear-gradient(180deg, #475569 0%, #1e293b 45%, #0f172a 100%) !important;
  border: 1.5px solid #64748b !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.8) !important;
  clip-path: polygon(0 4px, 4px 0, calc(100% - 11px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 11px) 100%, 4px 100%, 0 calc(100% - 4px)) !important;
}
.v16-xp-neon-top,
.v16-xp-neon-bot {
  position: absolute !important;
  left: 6px !important;
  width: 58px !important;
  height: 2.5px !important;
  border-radius: 2px !important;
  background: linear-gradient(90deg, #38bdf8, #7dd3fc, transparent) !important;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.95) !important;
  pointer-events: none !important;
}
.v16-xp-neon-top { top: 1px !important; }
.v16-xp-neon-bot { bottom: 1px !important; }
.xp-bar-container {
  position: relative !important;
  width: 196px !important;
  height: 19px !important;
  border-radius: 3px !important;
  background: #0a1426 !important;
  border: 1px solid #334155 !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.9) !important;
}
.xp-bar-fill {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 0%;
  border-radius: 2px !important;
  background: linear-gradient(180deg, #60efff 0%, #0ea5e9 45%, #0284c7 100%) !important;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.v16-xp-ticks {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  height: 8px !important;
  background-image: repeating-linear-gradient(
    to right,
    rgba(148, 163, 184, 0.48) 0px,
    rgba(148, 163, 184, 0.48) 1px,
    transparent 1px,
    transparent 8px
  ) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}
.xp-text {
  position: relative !important;
  z-index: 2 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1 !important;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95) !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 540px), (max-height: 520px) {
  .v16-xp-medal {
    width: 48px !important;
    height: 48px !important;
  }
  .hud-player-bar .level-badge,
  .hud-player-bar .v16-xp-level-num {
    font-size: 14px !important;
    width: 24px !important;
    height: 24px !important;
  }
  .hud-player-bar .level-stack {
    min-width: 132px !important;
    margin-left: -8px !important;
  }
  #hud-pseudo {
    font-size: 12.5px !important;
  }
  .xp-bar-container {
    width: 142px !important;
    height: 16px !important;
  }
  .xp-text {
    font-size: 9.5px !important;
  }
}

/* 2. Bouton Missions en bas à gauche (parfaitement centré et modernisé) */
.quick-bottom-left .orb {
  position: relative !important;
  width: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1px !important;
  border-radius: 50% !important;
}
.quick-bottom-left .orb .nav-label {
  position: static !important;
  display: block !important;
  font-size: 7.5px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  color: #f8fafc !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}
#btn-missions.orb-missions {
  background: radial-gradient(circle at 30% 25%, #38bdf8 0%, #0284c7 52%, #0f172a 100%) !important;
  border: 2px solid rgba(125, 211, 252, 0.78) !important;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease !important;
}
#btn-missions.orb-missions:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 22px rgba(56, 189, 248, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.45) !important;
}
#btn-missions .orb-missions-svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  margin: 0 auto !important;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}
#btn-hotline {
  background: radial-gradient(circle at 30% 25%, #a855f7 0%, #6d28d9 56%, #1e1b4b 100%) !important;
  border: 2px solid rgba(196, 181, 253, 0.72) !important;
  box-shadow: 0 6px 16px rgba(109, 40, 217, 0.42) !important;
}

/* 3. Photos 1 & 2 : suppression des onglets redondants et pied de fiche mission */
.v4-building-tabs,
.v42-secondary {
  display: none !important;
}

/* 4. Photo 3 : contraste pièces & billets dans l'en-tête Boutique */
#shop-credits {
  background: rgba(15, 23, 42, 0.94) !important;
  color: #fde047 !important;
  border: 1px solid rgba(250, 204, 21, 0.6) !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
#shop-billets {
  background: rgba(15, 23, 42, 0.94) !important;
  color: #6ee7b7 !important;
  border: 1px solid rgba(52, 211, 153, 0.6) !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* 5. Photos 4 & 5 : suppression de la pastille 1/50 et des badges vides/masqués */
#badge-season-progress,
.pass-level-pill,
.orb-badge.is-hidden,
.orb-badge:empty {
  display: none !important;
}

/* 6. Photo 6 : masquage global des barres de défilement (molette & tactile conservés) */
*, *::before, *::after {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
*::-webkit-scrollbar,
.season-track-container::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* 7. Photo 8 : embellissement du panneau Appels CTA / CODIS */
#v5-calls-panel {
  background: rgba(13, 20, 36, 0.96) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6) !important;
}
#v5-calls-panel .panel-head {
  background: linear-gradient(135deg, #0284c7, #1d4ed8) !important;
  border-radius: 13px 13px 0 0 !important;
  padding: 8px 12px !important;
}
#v5-calls-body {
  padding: 8px 10px !important;
}
.v5-call-intro {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 10px;
  padding: 9px 11px !important;
  color: #cbd5e1 !important;
  margin-bottom: 8px;
}
.v5-call {
  background: rgba(30, 41, 59, 0.76) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-left: 3px solid #38bdf8 !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  margin: 8px 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.v5-call-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.v5-call-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(251, 146, 60, 0.45);
  color: #fdba74;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}
.v5-call-city {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}
.v5-call-title {
  display: block;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
  margin-bottom: 4px !important;
}
.v5-call-report {
  font-size: 11.5px !important;
  line-height: 1.45 !important;
  color: #cbd5e1 !important;
  margin: 0 0 8px !important;
}
.v5-call-btn {
  width: 100%;
  background: linear-gradient(135deg, #059669, #10b981) !important;
  border: 1px solid #34d399 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  padding: 7px 10px !important;
  border-radius: 8px !important;
  cursor: pointer;
}
.v5-call-btn:hover {
  filter: brightness(1.08);
}

/* 8. Photo 10 : masquage bandeau événement & filtres dans Missions */
#panel-left .v16-mission-filters,
#panel-left .v16-event-banner {
  display: none !important;
}

/* 9. Photos 11 & 12 : panneaux gauche, appels et droit sur toute la hauteur (sous le HUD haut sans chevauchement) */
body #panel-left,
body #v5-calls-panel,
body #panel-right {
  top: calc(var(--sat) + 54px) !important; bottom: 0px !important; height: calc(100vh - var(--sat) - 54px) !important; height: calc(100dvh - var(--sat) - 54px) !important; max-height: none !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}
body #panel-left,
body #panel-right {
  overflow: visible !important;
}
body #v5-calls-panel {
  overflow: hidden !important;
}
body #v5-calls-panel.hidden {
  display: none !important;
}
body #panel-left .panel-body,
body #panel-right .panel-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
}
body:has(#panel-right:not(.collapsed)) .quick-bottom-right {
  opacity: 0 !important;
  pointer-events: none !important;
}
body:has(#panel-left:not(.collapsed)) .quick-bottom-left,
body:has(#v5-calls-panel:not(.hidden)) .quick-bottom-left {
  opacity: 0 !important;
  pointer-events: none !important;
}
@media (max-height: 520px) {
  body #panel-left,
  body #v5-calls-panel,
  body #panel-right {
    top: calc(var(--sat) + 68px) !important;
    bottom: calc(var(--sab) + 6px) !important;
    height: calc(100dvh - var(--sat) - var(--sab) - 74px) !important;
    max-height: calc(100dvh - var(--sat) - var(--sab) - 74px) !important;
  }
}

/* =====================================================================
   ALERTE 112 — Intro Audio, Accueil / Connexion, Fiche Véhicules & Historique
   ===================================================================== */

.v8-splash {
  z-index: 99999 !important;
}
.v8-splash-sound-btn {
  position: fixed;
  right: 18px;
  bottom: max(18px, calc(var(--sab) + 14px));
  z-index: 100001;
  background: rgba(15, 23, 42, 0.88);
  color: #f8fafc;
  border: 1px solid rgba(56, 189, 248, 0.6);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}
.v8-splash-sound-btn.hidden {
  display: none !important;
}

/* --- Écran d'Accueil (JOUER / SE CONNECTER) & Modale Connexion --- */
.v16-auth-screen {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: radial-gradient(ellipse at 50% 28%, #043264 0%, #021c3a 52%, #010c1b 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(14px, var(--sat)) max(14px, var(--sar)) max(14px, var(--sab)) max(14px, var(--sal));
  overflow-y: auto;
}
.v16-auth-screen.hidden {
  display: none !important;
}
.v16-auth-landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: 100%;
  max-width: 500px;
  text-align: center;
}
.v16-auth-logo-svg {
  width: min(390px, 82vw);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}
.v16-auth-landing-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(300px, 84vw);
}
.v16-btn-3d {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.12s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.v16-btn-3d:active {
  transform: translateY(3px);
}
.v16-btn-3d.orange {
  background: linear-gradient(180deg, #ff9914 0%, #f58200 100%);
  box-shadow: 0 6px 0 #092447, 0 12px 24px rgba(0, 0, 0, 0.45);
}
.v16-btn-3d.blue {
  background: linear-gradient(180deg, #0b7ff6 0%, #0066d6 100%);
  box-shadow: 0 6px 0 #092447, 0 12px 24px rgba(0, 0, 0, 0.45);
}
.v16-btn-3d.red {
  background: linear-gradient(180deg, #ff2a2a 0%, #dd1111 100%);
  box-shadow: 0 5px 0 #092447, 0 10px 20px rgba(0, 0, 0, 0.45);
  min-height: 44px;
  font-size: 16px;
  max-width: 250px;
}
.v16-btn-3d.sm {
  min-height: 44px;
  font-size: 16px;
  font-weight: 700;
}

.v16-auth-modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(1, 14, 34, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow-y: auto;
}
.v16-auth-modal-wrap.hidden {
  display: none !important;
}
.v16-auth-box {
  width: min(500px, 95vw);
  background: #3b3b3b;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.v16-auth-box-head {
  position: relative;
  background: linear-gradient(180deg, #0b7cf2 0%, #0068d8 100%);
  padding: 10px 44px;
  text-align: center;
}
.v16-auth-box-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}
.v16-auth-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: #03224a;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.v16-auth-box-body {
  padding: 16px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.v16-auth-desc {
  margin: 0 0 12px;
  font-size: 14px;
  color: #cbd5e1;
  text-align: center;
}
.v16-auth-field-label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  margin: 6px 0 6px;
  text-align: center;
}
.v16-auth-input {
  width: min(340px, 100%) !important;
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  padding: 9px 12px !important;
  font-size: 14px !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}
.v16-auth-input::placeholder {
  color: #6b7280;
  font-style: italic;
}
.v16-remember-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 4px;
  font-size: 12.5px;
  color: #e2e8f0;
  cursor: pointer;
  user-select: none;
}
.v16-remember-row input {
  width: 16px;
  height: 16px;
  accent-color: #0b7cf2;
}
.v16-auth-msg {
  width: 100%;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.v16-auth-msg.hidden {
  display: none !important;
}
.v16-auth-msg.bad {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fecaca;
}
.v16-auth-msg.info {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid #38bdf8;
  color: #bae6fd;
}
.v16-auth-btn-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  margin-top: 14px;
}
.v16-guest-footer {
  margin-top: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.v16-guest-footer p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #f8fafc;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}
@media (max-height: 480px) {
  .v16-auth-landing { gap: 10px; }
  .v16-auth-logo-svg { width: min(270px, 60vw); }
  .v16-btn-3d { min-height: 42px; font-size: 17px; }
  .v16-auth-box-body { padding: 10px 16px 14px; }
  .v16-auth-field-label { font-size: 14px; margin: 4px 0; }
}

/* --- Fiche d'intervention & Tableau véhicules (conforme photo) --- */
.mission-focus-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: linear-gradient(180deg, #0b7cf2 0%, #066bd8 100%) !important;
  min-height: 40px !important;
  height: auto !important;
  padding: 5px 12px !important;
}
.mission-focus-header > .focus-back {
  flex: 0 0 auto !important;
}
.v16-focus-title-wrap {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.v16-focus-header-right,
.mission-focus-header > .v16-focus-header-right {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
}
.v16-focus-timer-pill {
  position: relative;
  min-width: 180px;
  height: 28px;
  border-radius: 7px;
  background: #043e82;
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
}
.v16-focus-timer-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
  transition: width 0.5s linear;
}
#mission-focus-timer-text {
  position: relative;
  z-index: 2;
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .v16-focus-timer-pill {
    min-width: 96px;
    height: 24px;
    padding: 0 8px;
  }
}

.v42-mission-overview {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 4px 2px 10px !important;
  margin: 0 !important;
}
.v42-mission-location strong {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
}
.v42-mission-location span {
  font-size: 13px !important;
  color: #cbd5e1 !important;
}
.v42-top-action {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 8px !important;
  min-width: 150px;
}
.v16-finish-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.v16-finish-split-btn {
  display: inline-flex;
  align-items: stretch;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #141414;
  box-shadow: 0 3px 0 #07190a, 0 4px 10px rgba(0, 0, 0, 0.35);
}
.v16-finish-split-btn:hover {
  filter: brightness(1.08);
}
.v16-finish-label {
  display: inline-flex;
  align-items: center;
  background: #67c956;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
}
.v16-finish-cost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #181818;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 12px;
  min-width: 34px;
}
.v16-finish-billet-icon {
  display: inline-flex;
  align-items: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}
.v16-engage-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.v16-engage-row .v42-engage {
  background: linear-gradient(180deg, #32b846 0%, #249b36 100%) !important;
  border: 0 !important;
  border-radius: 6px !important;
  padding: 7px 22px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  box-shadow: 0 3px 0 #14532d !important;
}
.v16-engage-row .v42-engage:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}

.v42-table-caption {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  background: #737373 !important;
  min-height: 34px !important;
  padding: 4px 10px !important;
  margin: 0 !important;
  border-radius: 2px 2px 0 0;
}
.v42-table-caption strong {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}
.v16-caption-services {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.v16-svc-all-btn {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e2e8f0;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  cursor: pointer;
}
.v16-svc-all-btn.active {
  background: #0874e4;
  border-color: #93c5fd;
  color: #ffffff;
}
.v16-svc-dot {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  background: transparent;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, filter 0.12s ease;
  filter: brightness(0.92);
}
.v16-svc-dot:hover {
  transform: scale(1.1);
  filter: brightness(1.15);
}
.v16-svc-dot.active {
  border-color: #ffffff;
  filter: brightness(1.2) drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
  transform: scale(1.08);
}
.v16-svc-dot svg {
  width: 24px;
  height: 24px;
  display: block;
}

.v16-dispatch-table {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
}
.v16-dispatch-table th {
  background: #1f1f1f !important;
  color: #f3f4f6 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  padding: 7px 10px !important;
  text-align: center !important;
  height: auto !important;
}
.v16-dispatch-table th:nth-child(1) { width: 76px !important; }
.v16-dispatch-table th:nth-child(2) { width: 96px !important; }
.v16-dispatch-table th:nth-child(3) { width: auto !important; }
.v16-dispatch-table th:nth-child(4) { width: 110px !important; }
.v16-dispatch-table th:nth-child(5) { width: 168px !important; }
.v16-dispatch-table td {
  background: #363636 !important;
  border-bottom: 1px solid #484848 !important;
  padding: 6px 8px !important;
  height: 44px !important;
  vertical-align: middle !important;
  color: #e5e7eb;
}
.v16-dispatch-table tr.selected td {
  background: #234733 !important;
}
.v16-dispatch-table tr.unavailable td {
  background: #313131 !important;
  opacity: 0.72;
}
.v16-fam-col {
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #e5e7eb;
}
.v16-veh-pill-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.v16-dispatch-table .v42-vehicle-code {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;
  background: linear-gradient(180deg, #0b7ff6 0%, #0066d6 100%) !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  padding: 6px 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-align: center !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.v16-dispatch-table .v42-crew {
  flex: none !important;
  width: 24px !important;
  height: 24px !important;
  margin-left: 0 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}
.v16-dispatch-table .v42-crew.ready {
  background: #22c55e !important;
  color: #ffffff !important;
}
.v16-trip-col {
  text-align: center;
  font-size: 12.5px;
  color: #e5e7eb;
}
.v16-act-col {
  text-align: center;
}
.v16-dispatch-table .v42-pick {
  background: linear-gradient(180deg, #e5e7eb 0%, #d1d5db 100%) !important;
  color: #374151 !important;
  border: 0 !important;
  border-radius: 6px !important;
  padding: 7px 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 0 #737373;
}
.v16-dispatch-table .v42-pick.selected {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 0 #14532d;
}
@media (max-width: 680px) {
  .v16-dispatch-table th:nth-child(1) { width: 56px !important; }
  .v16-dispatch-table th:nth-child(2) { width: 66px !important; }
  .v16-dispatch-table th:nth-child(4) { width: 76px !important; }
  .v16-dispatch-table th:nth-child(5) { width: 118px !important; }
}

/* --- Modale & Tableau Historique des missions (conforme photo) --- */
.v16-hist-modal-box {
  max-width: 960px !important;
  width: 95vw !important;
  padding: 0 !important;
  background: #3d3d3d !important;
  border: 0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.72) !important;
}
.v16-hist-modal-head {
  background: linear-gradient(180deg, #0b7cf2 0%, #0068d8 100%);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.v16-hist-modal-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}
.v16-hist-close {
  background: transparent;
  border: 0;
  color: #042246;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
}
.v16-hist-modal-body {
  max-height: 75dvh;
  overflow-y: auto;
  background: #3d3d3d;
}
.v16-hist-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.v16-hist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.v16-hist-table th {
  background: #222222;
  color: #ffffff;
  font-weight: 800;
  padding: 8px 14px;
  text-align: left;
  white-space: nowrap;
}
.v16-hist-table th.num {
  text-align: right;
}
.v16-hist-table th.coin-col {
  width: 44px;
}
.v16-hist-table td {
  background: #303030;
  border-bottom: 1px solid #444444;
  padding: 8px 14px;
  color: #e5e7eb;
  vertical-align: middle;
}
.v16-hist-date-cell {
  background: #282828 !important;
  text-align: center;
  width: 118px;
}
.v16-hist-date-day {
  font-weight: 800;
  color: #f3f4f6;
  font-size: 13px;
}
.v16-hist-date-hour {
  font-size: 12px;
  color: #9ca3af;
}
.v16-hist-type-flex {
  display: flex;
  align-items: center;
  gap: 10px;
}
.v16-hist-svc {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  color: #ffffff;
  flex: none;
}
.v16-hist-svc.police { background: #0074e4; }
.v16-hist-svc.pompiers { background: #dc2626; }
.v16-hist-svc.sap { background: #e11d48; }
.v16-hist-svc.hopitaux { background: #0284c7; }
.v16-hist-svc.gendarmerie { background: #1d4ed8; }
.v16-hist-svc.autoroute { background: #d97706; }
.v16-hist-table td.num {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.v16-hist-table td.coin-col {
  text-align: center;
  width: 44px;
}
.v16-hist-empty {
  padding: 28px 16px;
  text-align: center;
  color: #cbd5e1;
  font-size: 13px;
}

