/* Cartographie Premium Transversale — coquilles génériques SigMapLegend /
   SigMapLayerManager. Neutre et sans couleur métier (même doctrine que
   map-fullscreen-controller.css) : chaque module qui ne fournit pas ses
   propres classes (`boxClass`/`gridClass`/…) hérite de ce style de base ;
   un module qui passe ses propres classes (ex. Missions réutilise
   `missions-map-legend-box`) n'est pas affecté par ces règles. */

/* Noms des lieux FDSU (SigMapLabels, §7-10 du mandat Phase 2) — texte SEUL
   avec halo (text-shadow), jamais un grand fond opaque derrière chaque
   libellé (mandat §9/§10 : "texte sans grand fond opaque"). Le halo reste
   lisible aussi bien sur une tuile satellite sombre que sur un fond clair,
   sans avoir besoin d'un rectangle de fond. `pointer-events:none` : ces
   libellés sont strictement informatifs, jamais interactifs (cohérent avec
   `interactive:false` posé côté JS). */
.sig-map-label {
  pointer-events: none;
  white-space: nowrap;
  font-family: inherit;
  font-weight: 600;
  color: #f8fafc;
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.9),
    0 0 3px rgba(0, 0, 0, 0.9),
    0 1px 2px rgba(0, 0, 0, 0.95);
  transform: translate(-50%, -50%);
}

.sig-map-label-province {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sig-map-label-territoire {
  font-size: 0.82rem;
}

.sig-map-label-collectivite,
.sig-map-label-groupement {
  font-size: 0.72rem;
  font-weight: 500;
}

.sig-map-label-localite {
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.92;
}

.sig-map-legend-box {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text, #e2e8f0);
}

.sig-map-legend-box summary {
  cursor: pointer;
  font-weight: 600;
}

.sig-map-legend-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
}

.sig-map-legend-note {
  margin: 8px 0 0;
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
}

/* Gestionnaire de couches compact — repliable, jamais un grand panneau fixe
   (mandat §"panneaux compacts, rétractables, positionnés en bordure"). Le
   POSITIONNEMENT exact (coin de la carte) reste au choix de chaque module
   consommateur (ex. missions.css) ; ce fichier ne fixe que l'apparence. */
.sig-layer-manager-box {
  min-width: 160px;
  max-width: 220px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.78rem;
  color: var(--text, #e2e8f0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.sig-layer-manager-box summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.sig-layer-manager-box summary::-webkit-details-marker {
  display: none;
}

.sig-layer-manager-body {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sig-layer-manager-group-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 4px;
}

.sig-layer-manager-group-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sig-layer-manager-item {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.sig-layer-manager-item.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
