/* =============================
   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;
}
/* Styles pour les spans contenant les icones injectees */
.icon-container button span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}

.icon-container button span svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* Classe specifique pour les icones des boutons principaux */
.manage-button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}

.manage-button-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* 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; }
.icon:nth-child(11) { top: 320px; }
.icon:nth-child(12) { top: 352px; }

/* =============================
   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;
}
/* Classe pour les boutons actifs/sÃ©lectionnÃ©s */
.btn-active {
  background-color: #7ae95c !important; /* Vert de votre thÃ¨me */
  border-color: #5cb85c !important;
}

/* Optionnel : effet hover diffÃ©rent quand le bouton est actif */
.btn-active:hover {
  background-color: #5cb85c !important; /* Vert plus foncÃ© au survol */
}
.icon-separator-svg {
    margin: 0 10px;
}
#btn_addData:disabled {
  background-color: #D3D3D3 !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
}

#btn_yearPhoto:disabled {
  background-color: #D3D3D3 !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
}

/* Styles actifs pour reference */
#btn_addData:not(:disabled) {
  opacity: 1 !important;
  cursor: pointer !important;
}

#btn_yearPhoto:not(:disabled) {
  background-color: white !important;
  opacity: 1 !important;
  cursor: pointer !important;
}
/* Style pour l'affichage de l'annee selectionnee sous le panneau yearPhoto */
.year-photo-display {
    background-color: #7ae95c;
    padding: 4px 4px;
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: bold;
    color: white;
    text-align: center;
    margin-top: 2px;
    display: none;
}

/* Optionnel: style hover pour indiquer que c'est interactif */
.year-photo-display:hover {
    background-color: #6dd44d;
    cursor: default;
}
