:root {
  --bg: #0A0F1C;
  --card: #111827;
  --accent: #2563EB;
  --cyan: #22D3EE;
  --ink: #F8FAFC;
  --danger: #EF4444;
  --success: #10B981;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { background: var(--bg); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0A0F1C; }
::-webkit-scrollbar-thumb { background: #1f2937; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #2563EB55; }

/* ---------- Grille technique discrète en fond ---------- */
.tech-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

/* ---------- Effet de scan (ligne lumineuse) ---------- */
.scanline {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.scanline::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: .5;
  animation: scan-move 6s linear infinite;
}
@keyframes scan-move {
  0% { top: -5%; }
  100% { top: 105%; }
}

/* ---------- Carte "verre" ---------- */
.card-glass {
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
.card-glass:hover { border-color: rgba(37,99,235,0.4); }

.card { background: var(--card); border: 1px solid rgba(148,163,184,0.08); border-radius: 14px; }
.card:hover { border-color: rgba(37,99,235,0.35); box-shadow: 0 0 0 1px rgba(37,99,235,0.15), 0 8px 24px rgba(0,0,0,.35); }

/* ---------- Animations d'apparition ---------- */
.fade-in-up { animation: fadeInUp .5s ease both; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.stagger > * { animation: fadeInUp .45s ease both; }
.stagger > *:nth-child(1){animation-delay:.02s}
.stagger > *:nth-child(2){animation-delay:.06s}
.stagger > *:nth-child(3){animation-delay:.10s}
.stagger > *:nth-child(4){animation-delay:.14s}
.stagger > *:nth-child(5){animation-delay:.18s}
.stagger > *:nth-child(6){animation-delay:.22s}
.stagger > *:nth-child(n+7){animation-delay:.26s}

/* ---------- Pulsation (statut actif / en circulation) ---------- */
.pulse-dot { position: relative; }
.pulse-dot::before {
  content: ""; position: absolute; inset: -4px; border-radius: 999px;
  background: currentColor; opacity: .35;
  animation: pulse-ring-anim 1.8s ease-out infinite;
}
@keyframes pulse-ring-anim {
  0% { transform: scale(0.6); opacity: .45; }
  100% { transform: scale(2.2); opacity: 0; }
}
.pulse-ring { animation: pulse-ring-soft 2.4s ease-in-out infinite; }
@keyframes pulse-ring-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0.35); }
  50% { box-shadow: 0 0 0 10px rgba(34,211,238,0); }
}

/* ---------- Transitions de page ---------- */
.page-enter { animation: fadeInUp .35s ease both; }

/* ---------- Compteurs ---------- */
.count-up { font-variant-numeric: tabular-nums; }

/* ---------- Barres de navigation lumineuses au survol ---------- */
.nav-link { position: relative; transition: color .15s ease, background-color .15s ease; }
.nav-link.active { background: rgba(37,99,235,0.14); color: var(--ink); }
.nav-link.active::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--accent)); border-radius: 3px;
}

/* ---------- Modales ---------- */
.modal-backdrop { background: rgba(5,8,15,0.72); backdrop-filter: blur(3px); animation: fadeIn .2s ease both; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.modal-panel { animation: modalIn .25s cubic-bezier(.16,1,.3,1) both; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Notifications (toasts) ---------- */
.toast { animation: toastIn .3s cubic-bezier(.16,1,.3,1) both; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---------- Badges de statut ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .02em; }

/* ---------- Champs de formulaire ---------- */
input, select, textarea {
  background: #0B1220; border: 1px solid rgba(148,163,184,0.16); color: var(--ink);
  border-radius: 10px; padding: 9px 12px; font-size: 14px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.18);
}
label { font-size: 12px; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; display: block; }

/* ---------- Carte tactique (placement de points) ---------- */
#map-wrapper { cursor: crosshair; position: relative; overflow: auto; }
.map-marker {
  position: absolute; width: 14px; height: 14px; margin-left: -7px; margin-top: -7px;
  border-radius: 999px; background: var(--danger); border: 2px solid white;
  box-shadow: 0 0 0 4px rgba(239,68,68,0.25);
  animation: markerScan .5s ease both;
}
@keyframes markerScan {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}