/* ============================================================
   map/map.css — Carte OpenStreetMap aux couleurs du site
   Atelier Point Virgule
   Palette : #060A30 (bleu nuit) / #BFB9A1 (sable) / #F17654 (corail)
   Aucun service payant, aucune cle d'API.
   ============================================================ */

.carte-apv {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background-color: #BFB9A1;
  position: relative;
  z-index: 0;            /* reste sous le menu et le bandeau cookies */
}

/* --- Teinte des tuiles : du gris OSM vers le sable du site --- */
.carte-apv .leaflet-tile-pane {
  filter: grayscale(1) sepia(0.42) saturate(1.35) hue-rotate(-6deg)
          brightness(1.03) contrast(0.9);
}

/* --- Marqueur --- */
.carte-apv .marqueur-apv {
  background: none;
  border: none;
}

.carte-apv .marqueur-apv svg {
  display: block;
  filter: drop-shadow(0 3px 4px rgba(6, 10, 48, 0.35));
}

/* --- Bulle d'information : fond blanc --- */
.carte-apv .leaflet-popup-content-wrapper {
  background-color: #fff;
  color: #060A30;
  border-radius: 3px;
  box-shadow: 0 6px 20px rgba(6, 10, 48, 0.22);
}

.carte-apv .leaflet-popup-tip {
  background-color: #fff;
  box-shadow: 0 6px 20px rgba(6, 10, 48, 0.18);
}

.carte-apv .leaflet-popup-content {
  margin: 16px 20px;
  font-size: 14px;
  line-height: 1.55em;
  color: #060A30;          /* adresse en bleu marine */
}

/* Couleur du titre : #F17654 (peche). Variantes possibles :
   bleu marine #060A30  |  sable #BFB9A1 */
.carte-apv .popup-apv-titre {
  display: block;
  font-weight: bold;
  color: #F17654;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(191, 185, 161, 0.55);
}

.carte-apv .popup-apv-lien {
  display: inline-block;
  margin-top: 12px;
  padding: 7px 14px;
  background-color: #F17654;
  color: #fff !important;
  text-decoration: none;
  font-weight: bold;
  border-radius: 2px;
}

.carte-apv .popup-apv-lien:hover {
  background-color: #060A30;
  color: #fff !important;
}

.carte-apv .leaflet-container a.leaflet-popup-close-button {
  color: rgba(6, 10, 48, 0.4);
  padding: 6px 6px 0 0;
}

.carte-apv .leaflet-container a.leaflet-popup-close-button:hover {
  color: #F17654;
}

/* --- Boutons de zoom --- */
.carte-apv .leaflet-bar a,
.carte-apv .leaflet-bar a:hover {
  background-color: #060A30;
  color: #fff;
  border-bottom-color: rgba(191, 185, 161, 0.35);
  width: 32px;
  height: 32px;
  line-height: 32px;
  font-size: 20px;
}

.carte-apv .leaflet-bar a:hover {
  background-color: #F17654;
}

.carte-apv .leaflet-bar {
  border: none;
  box-shadow: 0 2px 8px rgba(6, 10, 48, 0.25);
}

/* --- Mention obligatoire OpenStreetMap --- */
.carte-apv .leaflet-control-attribution {
  background-color: rgba(255, 255, 255, 0.78);
  color: #060A30;
  font-size: 10px;
  padding: 1px 6px;
}

.carte-apv .leaflet-control-attribution a {
  color: #060A30;
  font-weight: bold;
}

/* --- Message affiche tant que la molette n'est pas activee --- */
.carte-apv .carte-apv-molette {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 450;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(6, 10, 48, 0.45);
  color: #fff;
  font-size: 1.05em;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 20px;
  pointer-events: none;
}

.carte-apv.molette-bloquee .carte-apv-molette {
  display: flex;
}
