
.hero {
  position: relative;
  height: 80vh;
  background-image: url('../assets/hero-loretan.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6); /* assombrit l’image pour lire le texte */
}
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 20px;
  text-align: center;
  color: white;
}

header {
  position: relative;
  z-index: 1000; /* le menu passe devant la carte */
}

#map {
  position: relative;
  z-index: 0; /* la carte passe derrière */
}

/* === Popups Mapbox en mode sombre === */
.mapboxgl-popup-content {
  background: #1f2937 !important; /* gris foncé (équivalent Tailwind bg-gray-800) */
  color: #f9fafb !important;      /* texte blanc (équivalent Tailwind text-gray-50) */
  border-radius: 8px;
  padding: 12px;
}

.mapboxgl-popup-content h3 {
  color: #facc15 !important; /* jaune Tailwind */
  margin-bottom: 8px;
}

.mapboxgl-popup-content p {
  margin: 4px 0;
  color: #d1d5db !important; /* gris clair pour les détails */
}

.mapboxgl-popup-content a {
  color: #facc15 !important; /* liens jaunes */
  text-decoration: underline;
  font-weight: 500;
}

.mapboxgl-popup-tip {
  border-top-color: #1f2937 !important; /* flèche sombre */
}

#update-banner {
  display: none; /* caché par défaut */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #facc15; /* jaune Tailwind (bg-yellow-400) */
  color: #000;
  text-align: center;
  padding: 12px;
  font-weight: bold;
  z-index: 9999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
#update-banner button {
  margin-left: 12px;
  padding: 6px 12px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
#update-banner button:hover {
  background: #333;
}
