html, body {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  /* Repli de police avant chargement des polices auto-hebergees WeTrackam */
  font-family: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  body {
    background: #17121f; /* Encre profonde WeTrackam */
  }
}

.root {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* --- Selection de texte teintee marque ------------------------------------ */
::selection {
  background: rgba(94, 56, 180, 0.22);
}

/* --- Scrollbars fines violettes ------------------------------------------- */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(94, 56, 180, 0.45) transparent;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-thumb {
  background-color: rgba(94, 56, 180, 0.4);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover {
  background-color: rgba(94, 56, 180, 0.6);
}

/* --- Controles MapLibre adoucis (arrondis + ombre douce) ------------------ */
.maplibregl-ctrl-group,
.mapboxgl-ctrl-group {
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 8px 24px -12px rgba(94, 56, 180, 0.45) !important;
}
.maplibregl-ctrl-group button:hover,
.mapboxgl-ctrl-group button:hover {
  background-color: rgba(94, 56, 180, 0.08) !important;
}
.maplibregl-popup-content,
.mapboxgl-popup-content {
  border-radius: 14px !important;
  box-shadow: 0 14px 40px -16px rgba(94, 56, 180, 0.45) !important;
}

/* ========================================================================= */
/*  V3 - Marqueurs vehicules : halo/pulse pour les engins en mouvement       */
/*  (utilise par MapPositions.js via une couche circle, mais on garde aussi  */
/*  un keyframe CSS reutilisable pour d'eventuels marqueurs DOM).            */
/* ========================================================================= */
@keyframes wt-marker-pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  70% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ========================================================================= */
/*  V3 - Etats vides de marque (listes / rapports)                           */
/*  Classes utilitaires consommees par les composants BrandedEmptyState.     */
/* ========================================================================= */
.wt-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 32px 24px;
  color: #6b6580;
}
.wt-empty__art {
  width: 120px;
  height: 120px;
  opacity: 0.95;
  animation: wt-empty-float 4s ease-in-out infinite;
}
@keyframes wt-empty-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .wt-empty__art { animation: none; }
}
.wt-empty__title {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #2c2538;
}
@media (prefers-color-scheme: dark) {
  .wt-empty__title { color: #ede9f6; }
}
.wt-empty__text {
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  max-width: 240px;
  line-height: 1.5;
}
