/* =============================
   Styles communs
   ============================= */

/* Style commun pour tous les boutons situés dans .icon-container */
.icon-container button {
  background-color: white;
  border: 1px solid black;
  padding: 0;
  margin: 0;
  width: 32px;
  height: 32px;
  cursor: pointer;
  text-align: center;
  font: bold 18px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
  color: #333;
  text-shadow: 0 1px 0 #fff;
  
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Appliquer à la fois à <img> et aux <svg> contenus dans le bouton */
.icon-container button img,
.icon-container button svg {
  width: 26px;
  height: 26px;
}

/* Effet hover commun */
.icon-container button:hover {
  border-color: rgba(0, 0, 0, 0.4);
  color: #000;
}


/* =============================
   Leaflet Controls
   ============================= */
.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
.leaflet-control-zoom {
    display: flex;
    flex-direction: column;
	width: 36px;
    height: 36px;

}
.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
    background-color: white;
    border: 1px solid rgba(0,0,0,0.2);
    padding: 10px;
    margin: 0;
    cursor: pointer;
    text-align: center;
    font: bold 18px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
    color: #333;
    text-shadow: 0 1px 0 #fff;
}
.leaflet-control-zoom-in:hover,
.leaflet-control-zoom-out:hover {
    background-color: #f4f4f4;
}
}

@media print {
  .leaflet-control-geocoder,
  .leaflet-control-zoom {
    display: none !important;
  }
}

/* =============================
   Boutons dans le conteneur PrintHTML
   ============================= */

.container-buttons {
  display: flex;
  flex-direction: column;   /* Empile les boutons verticalement */
  align-items: stretch;      /* Chacun prend la largeur complète */
  gap: 5px;                 /* Espacement entre boutons */
}

.container-buttons button {
  /* Styles spécifiques pour ces boutons */
  font-family: Arial, sans-serif;
  font-size: 11px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.8);
  color: #000;
  padding: 3px;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.container-buttons button:hover {
  background-color: #7ae95c;
}

/* =============================
   Icones positionnées en pile
   ============================= */

.icon {
  position: absolute;
  width: 32px;
  height: 32px;
}

.icon:nth-child(1) { top: 0px; }
.icon:nth-child(2) { top: 32px; }
.icon:nth-child(3) { top: 64px; }
.icon:nth-child(4) { top: 96px; }
.icon:nth-child(5) { top: 128px; }
.icon:nth-child(6) { top: 160px; }
.icon:nth-child(7) { top: 192px; }
.icon:nth-child(8) { top: 224px; }
.icon:nth-child(9) { top: 256px; }
.icon:nth-child(10) { top: 288px; }

/* =============================
   Boutons spécifiques
   ============================= */

/* Pour ces boutons, appliquez la classe .btn dans votre HTML.
   Par exemple : <button id="btn_fitBounds" class="btn">...</button>
   Si un bouton nécessite des ajustements supplémentaires, utilisez son sélecteur id. */

#lockZoomButton:hover {
  background-color: #f4f4f4;
  border-color: rgba(0, 0, 0, 0.4);
  color: #000;
}

/* États spécifiques pour le bouton de verouillage du zoom */
.locked {
  background-color: #f43551 !important;
}
.unlocked {
  background-color: #7ae95c !important;
}

/* =============================
   Fin du CSS Optimisé
   ============================= */
