/* ═══════════════════════════════════════════════════════════════════════════
   CenturionOS — ELITE TECH OVERHAUL v2
   Override visible par-dessus theme.css. Cible les VRAIES classes :
   .pm-tile-value, .pm-tile-label, .pm-nav-item, .pm-topbar, .pm-bento-tile,
   .pm-chip-ai, .pm-chip-dot, .pm-ai-halo.

   Inspirations : Liquid Glass #14, OLED Dark #7, Retro-Futurism #11,
   Tech Startup typo #3. Objectif : tableau de bord indispensable et addictif.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. FONDS AURORA ANIMÉS (dark + light) ──────────────────────────────── */
body.pm-next {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}
body.pm-next::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%,  rgba(34, 211, 238, 0.25), transparent 55%),
    radial-gradient(ellipse 50% 60% at 85% 20%, rgba(139, 92, 246, 0.20), transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(236, 72, 153, 0.15), transparent 55%);
  filter: blur(60px) saturate(1.2);
  animation: aurora-drift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
body.pm-next::after {
  /* Grille dot pattern ultra-subtile par-dessus l'aurora */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.08) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 100%);
  pointer-events: none;
}
html.dark body.pm-next {
  background: #020617 !important;
}
html.dark body.pm-next::before {
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%,  rgba(34, 211, 238, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 60% at 85% 20%, rgba(139, 92, 246, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(236, 72, 153, 0.20), transparent 55%);
  filter: blur(80px) saturate(1.4);
}
html:not(.dark) body.pm-next { background: #F4F7FB !important; }
html:not(.dark) body.pm-next::before {
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%,  rgba(34, 211, 238, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 60% at 85% 20%, rgba(139, 92, 246, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(236, 72, 153, 0.08), transparent 55%);
}
@keyframes aurora-drift {
  0%   { transform: translate(0, 0)       rotate(0deg); }
  50%  { transform: translate(3%, -2%)    rotate(3deg); }
  100% { transform: translate(-2%, 3%)    rotate(-2deg); }
}

/* ── 2. TYPOGRAPHIE : Space Grotesk + JetBrains Mono (Tech Startup #3 + #9)  */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');
body.pm-next,
#page-title,
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}
#page-title {
  font-size: 26px !important;
  font-weight: 700 !important;
  letter-spacing: -0.035em !important;
}
html.dark #page-title {
  background: linear-gradient(90deg, #FFFFFF 0%, #A5F3FC 60%, #67E8F9 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(103, 232, 249, 0.25));
}

/* ── 3. KPI TILES — le gros coup visuel ────────────────────────────────── */
.pm-bento-tile {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid var(--glass-border) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.3s ease,
              box-shadow 0.4s ease;
  will-change: transform;
}
html.dark .pm-bento-tile {
  background: linear-gradient(135deg, rgba(11, 18, 32, 0.6), rgba(15, 23, 42, 0.5)) !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.4);
}
/* Barre lumineuse supérieure — amplifiée */
.pm-bento-tile::after {
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.6), rgba(139, 92, 246, 0.5), rgba(34, 211, 238, 0.6), transparent) !important;
  opacity: 1 !important;
  animation: topbar-shimmer 4s ease-in-out infinite;
}
@keyframes topbar-shimmer {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}
/* Hover : levée + glow cyan + border top brillante */
.pm-bento-tile:hover {
  border-color: rgba(34, 211, 238, 0.4) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(34, 211, 238, 0.2),
    0 20px 50px -10px rgba(34, 211, 238, 0.3),
    0 8px 40px rgba(0, 0, 0, 0.5);
}

/* ── 4. KPI VALUES — chiffres HÉROS avec gradient + glow ──────────────── */
.pm-tile-value {
  font-size: 48px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  letter-spacing: -0.04em !important;
  margin-top: 10px !important;
  font-family: 'Space Grotesk', 'JetBrains Mono', monospace !important;
  font-variant-numeric: tabular-nums;
}
html.dark .pm-tile-value {
  background: linear-gradient(135deg, #FFFFFF 0%, #67E8F9 60%, #22D3EE 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(34, 211, 238, 0.4));
}
html:not(.dark) .pm-tile-value {
  background: linear-gradient(135deg, #0F172A 0%, #0891B2 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Override alertes en rouge-rose */
#stat-alerts {
  background: linear-gradient(135deg, #FCA5A5 0%, #F87171 60%, #EF4444 100%) !important;
  -webkit-background-clip: text !important;
          background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 0 16px rgba(239, 68, 68, 0.4)) !important;
}

/* Labels uppercase plus percutants */
.pm-tile-label {
  font-size: 10px !important;
  letter-spacing: 0.15em !important;
  color: var(--text-subtle) !important;
  font-weight: 700 !important;
}
html.dark .pm-tile-label { color: #64748B !important; }
.pm-tile-delta {
  font-size: 11px !important;
  font-weight: 500 !important;
  opacity: 0.85;
}

/* ── 5. SIDEBAR — pill active GLOW cyan + barre lumineuse gauche ─────── */
.lg-sidebar, .pm-sidebar {
  background: rgba(2, 6, 23, 0.7) !important;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-right: 1px solid rgba(148, 163, 184, 0.1) !important;
}
html:not(.dark) .lg-sidebar {
  background: rgba(255, 255, 255, 0.85) !important;
  border-right: 1px solid rgba(15, 23, 42, 0.06) !important;
}

.pm-nav-item, .lg-nav-item {
  font-weight: 500 !important;
  font-size: 13.5px !important;
  padding: 11px 14px !important;
  border-radius: 12px !important;
  color: #94A3B8 !important;
  margin: 2px 0;
  position: relative;
}
html:not(.dark) .pm-nav-item { color: #475569 !important; }

.pm-nav-item::before {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.15), rgba(139, 92, 246, 0.08)) !important;
  border-radius: 12px !important;
}

.pm-nav-item.active, .lg-nav-item.active {
  color: #FFFFFF !important;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.18), rgba(34, 211, 238, 0.04)) !important;
  box-shadow:
    inset 2px 0 0 #22D3EE,
    inset 0 0 0 1px rgba(34, 211, 238, 0.25),
    0 0 24px rgba(34, 211, 238, 0.2) !important;
}
.pm-nav-item.active::before { display: none; }
html:not(.dark) .pm-nav-item.active {
  color: #0F172A !important;
  background: linear-gradient(90deg, rgba(8, 145, 178, 0.12), rgba(8, 145, 178, 0.02)) !important;
  box-shadow: inset 2px 0 0 #0891B2, inset 0 0 0 1px rgba(8, 145, 178, 0.2) !important;
}
.pm-nav-item.active svg, .lg-nav-item.active svg {
  color: #22D3EE !important;
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.6));
}
html:not(.dark) .pm-nav-item.active svg { color: #0891B2 !important; filter: none; }

/* Section labels sidebar */
.lg-sidebar nav > div {
  color: #475569 !important;
  font-size: 10px !important;
  letter-spacing: 0.2em !important;
  font-weight: 700 !important;
}

/* ── 6. LOGO HEADER — glow cyan autour du logo en dark ────────────────── */
.logo-header {
  position: relative;
  background: #FFFFFF !important;
  border-bottom: 1px solid rgba(34, 211, 238, 0.15) !important;
  box-shadow: 0 4px 20px -8px rgba(34, 211, 238, 0.3);
}
.logo-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #22D3EE, transparent);
  opacity: 0.5;
}

/* ── 7. TOPBAR — barre de commande Premium ───────────────────────────── */
.pm-topbar {
  background: rgba(2, 6, 23, 0.5) !important;
  backdrop-filter: blur(24px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.6) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08) !important;
  height: 68px !important;
  position: relative;
}
html:not(.dark) .pm-topbar {
  background: rgba(255, 255, 255, 0.7) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
}
.pm-topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.3), rgba(139, 92, 246, 0.2), transparent);
}

/* Chip IA Active plus vivant */
.pm-chip-ai {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.15), rgba(139, 92, 246, 0.12)) !important;
  border: 1px solid rgba(34, 211, 238, 0.35) !important;
  color: #67E8F9 !important;
  padding: 5px 12px !important;
  font-size: 10.5px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
}
html:not(.dark) .pm-chip-ai { color: #0891B2 !important; }
.pm-chip-dot {
  background: #22D3EE !important;
  box-shadow:
    0 0 0 3px rgba(34, 211, 238, 0.25),
    0 0 12px rgba(34, 211, 238, 0.8) !important;
  animation: chip-dot-pulse 1.8s ease-in-out infinite;
}
@keyframes chip-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25), 0 0 12px rgba(34, 211, 238, 0.8); }
  50%      { box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.0),  0 0 18px rgba(34, 211, 238, 1); }
}

/* ── 8. Toggle thème bouton : halo iridescent ─────────────────────────── */
button[onclick*="toggleDarkMode"] {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(139, 92, 246, 0.08)) !important;
  border: 1px solid rgba(34, 211, 238, 0.2) !important;
  color: #67E8F9 !important;
  transition: all 0.3s ease;
}
button[onclick*="toggleDarkMode"]:hover {
  border-color: rgba(34, 211, 238, 0.5) !important;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
  color: #FFFFFF !important;
}

/* ── 9. FAB Companion : iridescence premium ──────────────────────────── */
#pm-companion-fab {
  background: linear-gradient(135deg, #22D3EE 0%, #8B5CF6 50%, #EC4899 100%) !important;
  background-size: 200% 200% !important;
  animation: fab-iridescent 6s ease infinite;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 10px 40px -8px rgba(34, 211, 238, 0.5),
    0 20px 60px -15px rgba(139, 92, 246, 0.4) !important;
  width: 60px !important; height: 60px !important;
}
#pm-companion-fab::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: inherit;
  filter: blur(16px);
  opacity: 0.6;
  z-index: -1;
  animation: fab-iridescent 6s ease infinite;
}
@keyframes fab-iridescent {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ── 10. Chips LIVE — pulse emerald ──────────────────────────────────── */
.lg-chip.emerald {
  position: relative;
  animation: live-pulse 2.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50%      { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

/* ── 11. Halo IA Companion : plus intense ────────────────────────────── */
.pm-ai-halo-core {
  box-shadow:
    0 0 20px rgba(34, 211, 238, 0.7),
    0 0 40px rgba(139, 92, 246, 0.3) !important;
}

/* ── 12. Boutons lg-btn + pm-btn : shine sweep + glow ────────────────── */
.lg-btn, .pm-btn, .pm-btn-ai, .pm-btn-primary {
  position: relative;
  overflow: hidden;
}
.lg-btn::after, .pm-btn-ai::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  transition: left 0.7s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
}
.lg-btn:hover::after, .pm-btn-ai:hover::after { left: 120%; }

/* ── 13. Scrollbar ultra-cyber ───────────────────────────────────────── */
html.dark ::-webkit-scrollbar { width: 10px; height: 10px; }
html.dark ::-webkit-scrollbar-track { background: rgba(2, 6, 23, 0.5); }
html.dark ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.5), rgba(139, 92, 246, 0.3));
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}
html.dark ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.8), rgba(139, 92, 246, 0.5));
  background-clip: content-box;
}

/* ── 14. Selection + focus accents ───────────────────────────────────── */
html.dark ::selection { background: rgba(34, 211, 238, 0.35); color: #FFFFFF; }
html:not(.dark) ::selection { background: rgba(8, 145, 178, 0.25); color: #0F172A; }
:focus-visible {
  outline: 2px solid #22D3EE;
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── 15. Bordure iridescente animée (sur .elite-hero optionnel) ──────── */
.elite-hero { position: relative; }
.elite-hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--iridescent-angle, 0deg),
    #22D3EE, #8B5CF6, #EC4899, #22D3EE
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}
.elite-hero:hover::before {
  opacity: 1;
  animation: iridescent-rotate 5s linear infinite;
}
@property --iridescent-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes iridescent-rotate { to { --iridescent-angle: 360deg; } }

/* ── 16. Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  body.pm-next::before, #pm-companion-fab,
  .pm-bento-tile::after, .pm-chip-dot,
  .lg-chip.emerald, .elite-hero:hover::before {
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   GLOBE 3D TACTIQUE — Surveillance mondiale des sites
   ═══════════════════════════════════════════════════════════════════ */
/* Tile du globe : hero opérationnel en tête du dashboard */
#dashboard-globe-tile {
  padding-left: 14px !important;
  padding-right: 14px !important;
}
#dashboard-globe-tile > .flex:first-child {
  padding-left: 10px;
  padding-right: 10px;
}
#dashboard-globe-tile .globe-hint {
  padding-left: 10px;
  padding-right: 10px;
}

.globe-container {
  position: relative;
  width: 100%;
  height: 360px;
  min-height: 300px;
  border-radius: 14px;
  overflow: hidden;
  background: #0B1220;
  cursor: grab;
}
.globe-container.globe-light { background: #AAD3DF; }  /* bleu mer OSM en attendant les tuiles */
/* Leaflet — thème sombre cohérent */
.globe-container .leaflet-container {
  width: 100%;
  height: 100%;
  background: #0B1220;
  font-family: "Space Grotesk", system-ui, sans-serif;
}
.globe-container.globe-light .leaflet-container { background: #AAD3DF; }
/* Pins : texte du label + bordure plus lisibles en mode clair */
.globe-container.globe-light .globe-pin-core {
  background: rgba(255, 255, 255, 0.95);
}
.globe-container.globe-light .globe-pin-badge { color: #0F172A; }
.globe-container.globe-light .globe-pin-label {
  background: rgba(255, 255, 255, 0.95);
  color: #0F172A;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.globe-container.globe-light .globe-pin-idle { color: #64748B; }
.globe-container .leaflet-control-attribution { display: none; }
.globe-container .leaflet-tile { filter: saturate(1.05); }
/* L'icône de marker Leaflet doit laisser déborder le pin HTML */
.globe-leaflet-pin {
  background: transparent !important;
  border: 0 !important;
  overflow: visible !important;
}
.globe-leaflet-pin .globe-pin {
  /* Recentre le pin sur sa coordonnée (le core est translaté de -14 en Y) */
  transform: translate(-50%, -100%);
  position: absolute;
  left: 0; top: 0;
}
.globe-container:active { cursor: grabbing; }
.globe-container canvas { display: block; outline: none !important; }

/* ─── Contrôles zoom ─── */
.globe-zoom-controls {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}
.globe-zoom-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #22D3EE;
  font-size: 20px;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 180ms ease;
  user-select: none;
}
.globe-zoom-btn:hover {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.3);
  transform: translateY(-1px);
}
.globe-zoom-btn:active { transform: translateY(0); }

.globe-hint {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--pm-text-muted, #94A3B8);
  letter-spacing: 0.02em;
}
.globe-hint::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22D3EE;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
  animation: globe-hint-pulse 2.2s ease-in-out infinite;
}
@keyframes globe-hint-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.55; }
}

.globe-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 220px;
  color: var(--pm-text-muted, #94A3B8);
  font-size: 14px;
  padding: 24px;
  text-align: center;
}

/* ─── Modal détails site ─── */
.globe-site-modal-inner {
  width: min(640px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.globe-modal-header {
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}
.globe-modal-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 4px;
  background: linear-gradient(135deg, #E2E8F0 0%, #22D3EE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.globe-modal-sub {
  font-size: 13px;
  color: var(--pm-text-muted, #94A3B8);
  margin-top: 4px;
}
.globe-modal-body {
  padding: 16px 22px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ─── Carte agent en vacation ─── */
.globe-agent-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: all 220ms ease;
}
.globe-agent-card:hover {
  background: rgba(34, 211, 238, 0.06);
  border-color: rgba(34, 211, 238, 0.28);
  transform: translateY(-1px);
}
.globe-agent-photo {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(34, 211, 238, 0.35);
  flex-shrink: 0;
}
.globe-agent-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0EA5E9 0%, #A78BFA 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
  font-family: "Space Grotesk", sans-serif;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.globe-agent-info {
  flex: 1;
  min-width: 0;
}
.globe-agent-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--pm-text, #E2E8F0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.globe-agent-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--pm-text-muted, #94A3B8);
  margin-top: 3px;
}
.globe-agent-dot { opacity: 0.5; }
.globe-agent-actions {
  flex-shrink: 0;
}
.globe-agent-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.1);
  color: #22D3EE;
  font-size: 12px;
  font-weight: 600;
  font-family: "JetBrains Mono", monospace;
  text-decoration: none;
  border: 1px solid rgba(34, 211, 238, 0.22);
  transition: all 180ms ease;
}
.globe-agent-phone:hover {
  background: rgba(34, 211, 238, 0.18);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.25);
}
.globe-agent-phone-empty {
  opacity: 0.6;
  background: rgba(148, 163, 184, 0.08);
  color: var(--pm-text-muted, #94A3B8);
  border-color: rgba(148, 163, 184, 0.18);
  cursor: default;
}

@media (max-width: 640px) {
  .globe-container { height: 380px; }
  .globe-agent-card { flex-wrap: wrap; }
  .globe-agent-actions { width: 100%; }
  .globe-agent-phone { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════
   GLOBE — Live Ops Bar (métriques temps réel)
   ═══════════════════════════════════════════════════════════════════ */
.globe-ops-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 10px 10px 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.55), rgba(2, 6, 23, 0.75));
  border: 1px solid rgba(34, 211, 238, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.globe-ops-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 6px 10px;
  border-left: 2px solid rgba(34, 211, 238, 0.35);
  min-width: 0;
}
.globe-ops-metric:first-child { border-left-color: #22D3EE; }
.globe-ops-big {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #E2E8F0;
}
.globe-ops-slash {
  font-size: 14px;
  color: var(--pm-text-muted, #94A3B8);
  font-weight: 500;
}
.globe-ops-lbl {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pm-text-muted, #94A3B8);
  margin-top: 2px;
}
.globe-ops-metric.globe-ops-ok    { border-left-color: #10B981; }
.globe-ops-metric.globe-ops-warn  { border-left-color: #F59E0B; }
.globe-ops-metric.globe-ops-alert { border-left-color: #EF4444; }
.globe-ops-metric.globe-ops-idle  { border-left-color: rgba(148, 163, 184, 0.4); }
.globe-ops-next-val {
  font-size: 13px;
  color: #E2E8F0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.globe-ops-pulse {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #22D3EE;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.9);
  margin-bottom: 4px;
  animation: globe-hint-pulse 1.6s ease-in-out infinite;
  display: inline-block;
}

@media (max-width: 900px) {
  .globe-ops-bar { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════════
   GLOBE — Pins HTML (taille constante à l'écran)
   ═══════════════════════════════════════════════════════════════════ */
.globe-pin {
  position: relative;
  transform: translate(-50%, -100%);
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
  transition: transform 180ms ease;
}
.globe-pin:hover { transform: translate(-50%, -100%) scale(1.12); z-index: 10; }

.globe-pin-stick {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2px;
  height: 14px;
  background: linear-gradient(to bottom, currentColor, transparent);
  transform: translateX(-50%);
  opacity: 0.7;
}
.globe-pin-core {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid currentColor;
  color: #22D3EE;
  transform: translateY(-14px);
}
.globe-pin-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  flex-shrink: 0;
}
.globe-pin-badge {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #E2E8F0;
  line-height: 1;
  padding-right: 2px;
}
.globe-pin-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 2px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: "Space Grotesk", sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  color: #E2E8F0;
  background: rgba(2, 6, 23, 0.78);
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.globe-pin:hover .globe-pin-label { opacity: 1; }

/* Statuts */
.globe-pin-online  { color: #22D3EE; }
.globe-pin-online .globe-pin-core { animation: pin-breath 2s ease-in-out infinite; }
.globe-pin-scheduled { color: #F59E0B; }
.globe-pin-idle { color: rgba(148, 163, 184, 0.85); }
.globe-pin-idle .globe-pin-core { background: rgba(15, 23, 42, 0.75); }

@keyframes pin-breath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(34, 211, 238, 0); }
}

/* ═══════════════════════════════════════════════════════════════════
   GLOBE — Modal : bannière + statut live par agent
   ═══════════════════════════════════════════════════════════════════ */
.globe-modal-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
  font-size: 12.5px;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 12px;
}
.globe-modal-banner.idle {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.22);
  color: var(--pm-text-muted, #94A3B8);
}
.globe-modal-banner.idle .globe-ops-pulse {
  background: #94A3B8;
  box-shadow: none;
  animation: none;
}
.globe-modal-sep { opacity: 0.5; margin: 0 4px; }

.globe-agent-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.globe-agent-status-online {
  color: #22D3EE;
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.35);
}
.globe-agent-status-scheduled { color: #F59E0B; }
.globe-agent-status-done {
  color: var(--pm-text-muted, #94A3B8);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.globe-agent-online { border-left: 3px solid #22D3EE; }
.globe-agent-scheduled { border-left: 3px solid #F59E0B; }
.globe-agent-done { opacity: 0.62; }

/* ═══════════════════════════════════════════════════════════════════
   LEAFLET — Contrôles zoom stylés (thème glass cyan)
   ═══════════════════════════════════════════════════════════════════ */
.globe-container .leaflet-control-zoom,
.globe-container .globe-reset-ctl {
  border: 1px solid rgba(34, 211, 238, 0.28) !important;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  background: transparent !important;
  margin-right: 12px !important;
  margin-bottom: 12px !important;
}
.globe-container .leaflet-control-zoom a,
.globe-container .globe-reset-ctl a {
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  background: rgba(15, 23, 42, 0.82) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #22D3EE !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  font-family: "Space Grotesk", sans-serif !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(34, 211, 238, 0.18) !important;
  transition: all 160ms ease;
}
/* Contrôles adaptés au mode clair */
.globe-container.globe-light .leaflet-control-zoom a,
.globe-container.globe-light .globe-reset-ctl a {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #0891B2 !important;
  border-bottom: 1px solid rgba(8, 145, 178, 0.15) !important;
}
.globe-container.globe-light .leaflet-control-zoom a:hover,
.globe-container.globe-light .globe-reset-ctl a:hover {
  background: #E0F2FE !important;
  color: #0369A1 !important;
  box-shadow: inset 0 0 12px rgba(8, 145, 178, 0.18);
}
.globe-container .leaflet-control-zoom a:last-child,
.globe-container .globe-reset-ctl a {
  border-bottom: 0 !important;
}
.globe-container .leaflet-control-zoom a:hover,
.globe-container .globe-reset-ctl a:hover {
  background: rgba(34, 211, 238, 0.18) !important;
  color: #E2E8F0 !important;
  box-shadow: inset 0 0 12px rgba(34, 211, 238, 0.25);
}
.globe-container .leaflet-control-zoom a.leaflet-disabled {
  background: rgba(15, 23, 42, 0.55) !important;
  color: rgba(148, 163, 184, 0.4) !important;
  cursor: not-allowed;
}
.globe-container .globe-reset-ctl a { font-size: 16px !important; }
