/* ==========================================================================
   ViceGG (ViceGG.com) — Leonida Press Editorial Design System
   Palette : Asphalt #0B0C10 · Surface #13151B · Coral #F97352 · Teal #2DD4BF
   Typography : Barlow Condensed (Display) · Plus Jakarta Sans (UI) · JetBrains Mono (Data)
   ========================================================================== */

:root {
  --bg-canvas: #0b0c10;
  --bg-surface: #13151b;
  --bg-elevated: #1a1d26;
  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --ink-primary: #f3f4f6;
  --ink-secondary: #9ca3af;
  --ink-muted: #6b7280;
  --accent-coral: #f97352;
  --accent-teal: #2dd4bf;
  --accent-gold: #eab308;
}

html {
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
}

body {
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Subtil grain photographique 35mm Rockstar (sans dégradés fluo) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.font-display,
h1,
h2 {
  font-family: "Barlow Condensed", "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: -0.01em;
}

.font-mono-tech {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

/* Cartes éditoriales nettes — zéro lueur fluo générique */
.editorial-card,
.card-vice {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.editorial-card:hover,
.card-vice:hover {
  border-color: var(--border-strong);
  background-color: #161922;
}

.editorial-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
}

/* Bouton d'action primaire sobre & affirmé (Coral Miami, sans dégradé arc-en-ciel) */
.btn-primary {
  background-color: var(--accent-coral);
  color: #0b0c10;
  font-weight: 700;
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.btn-primary:hover {
  background-color: #fb8a6e;
}

.btn-secondary {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--ink-primary);
  font-weight: 600;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.btn-secondary:hover {
  border-color: rgba(249, 115, 82, 0.55);
  background-color: #212531;
}

/* Barres de statistiques techniques */
.stat-bar-track {
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border-radius: 2px;
}

.stat-bar-fill-cyan,
.stat-bar-fill-teal {
  background: #2dd4bf;
}

.stat-bar-fill-pink,
.stat-bar-fill-coral {
  background: #f97352;
}

.stat-bar-fill-amber {
  background: #eab308;
}

.stat-bar-fill-emerald {
  background: #22c55e;
}

.stat-bar-fill-vice {
  background: linear-gradient(90deg, #f97352 0%, #eab308 55%, #2dd4bf 100%);
}

/* Accent typographique sobre */
.accent-coral-text {
  color: var(--accent-coral);
}

[x-cloak] {
  display: none !important;
}

/* Scrollbar sobre & masquage horizontal mobile */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0b0c10;
}
::-webkit-scrollbar-thumb {
  background: #262a36;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3b4154;
}

/* ==========================================================================
   Leaflet Carte Interactive HD Z0–Z6
   ========================================================================== */
.leaflet-container {
  background: #257d9b !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
}

/* Indispensable avec Tailwind Preflight : évite toute dérive des tuiles au zoom */
.leaflet-container img,
.leaflet-pane img,
.leaflet-tile,
.leaflet-image-layer {
  max-width: none !important;
  max-height: none !important;
}

.leaflet-container.map-mode-night {
  background: #0b1622 !important;
}

.leaflet-container.map-mode-night .leaflet-tile-pane {
  filter: brightness(0.65) contrast(1.22) saturate(1.1);
}

.leaflet-container.map-mode-official {
  background: #0b86b8 !important;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: #13151b !important;
  color: #f3f4f6 !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7) !important;
}

.leaflet-popup-content {
  margin: 14px 16px !important;
  min-width: 245px;
}

.leaflet-control-zoom {
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

.leaflet-control-zoom a {
  background: #13151b !important;
  color: #f3f4f6 !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
}

.leaflet-control-zoom a:hover {
  background: #1e222d !important;
  color: #f97352 !important;
}

.gta-pin {
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(11, 12, 16, 0.9);
  transition: transform 0.14s ease, opacity 0.18s ease;
}

.gta-pin:hover {
  transform: scale(1.32);
}

.gta-pin-found {
  opacity: 0.32;
  filter: grayscale(0.85);
}

/* Clusters éditoriaux sobres (asphalte + anneau corail/teal, zéro dégradé criard) */
.gta-cluster-icon {
  background: transparent;
  border: none;
}

.gta-cluster-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65), 0 0 0 3px rgba(11, 12, 16, 0.55);
  transition: transform 0.14s ease;
}

.gta-cluster-bubble:hover {
  transform: scale(1.1);
}

.gta-cluster-sm {
  width: 32px;
  height: 32px;
  font-size: 11px;
  background: #13151b;
  border-color: #2dd4bf;
  color: #2dd4bf;
}

.gta-cluster-md {
  width: 38px;
  height: 38px;
  font-size: 12px;
  background: #13151b;
  border-color: #f97352;
  color: #f3f4f6;
}

.gta-cluster-lg {
  width: 44px;
  height: 44px;
  font-size: 12px;
  background: #f97352;
  border-color: #ffffff;
  color: #0b0c10;
}
