#toggle-menu {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.historicLotsIcon{
  /*cursor: pointer;*/
  /*le logo est sur la droite*/
 width: 20px;
  height: auto;
  cursor: pointer;
  display: inline-block;
}

.logoSelect{
  width: 20px;
  height: auto;
  cursor: pointer;
  display: inline-block;
}
/*changer la couleur au survol*/
.logoSelect:hover {
  filter: invert(50%);
}
/*
#loading-logo{
  reduire la taille du logo de chargement
  width: 10px;
  height: 10px;
}*/

#side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background: #d9f2d9;
  box-shadow: 2px 0 5px rgba(0,0,0,0.2);
  padding: 20px;
  transform: translateX(0);
  transition: transform 0.3s ease;
  overflow-y: auto;
}


.timeline-container {
  background: #ddd;
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding :20px ;
}


.timeline {
  position: relative;
  width: 100%;
  max-width: 95%;
  height: 8px;
  background: #999;
  border-radius: 5px;
}

#historic-lots {
  display: none;
  position: relative;
  min-height: 0;
  min-width: 0;
  flex-wrap: wrap;
  gap: 0;
}

/* Label centré dans la zone */
.lot-historic-zone-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
}

.planif-item {
    transition: all 0.2s ease;
}

.planif-item:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Animation pour le dépliage */
[id^="planif-details-"] {
    transition: all 0.3s ease;
    overflow: hidden;
}
/* Responsive: historic-lots passe en colonne sur petits écrans 
@media (max-width: 600px) {
  .timeline-container {
    padding: 0 2vw;
  }
  
  #historic-lots {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
}*/

#historic-container.hidden {
  display: none;
}

/* Zone colorée sur la timeline */
.lot-historic-zone {
  position: absolute;
  height: 16px;
  background: gray; /* sera surchargé par .lot-historic-zone.color-X */
  border-radius: 8px;
  pointer-events: none; /* clics transparents */
}


.lot-historic-display {
  margin: 5px auto;
  padding: 6px;
  background: #f0f0f0;
  border: 1px solid #999;
  width: 95%;
  max-width: 600px;
  text-align: left;
  font-family: monospace;
  font-size: 13px;
  border-left: 6px solid;
}

.indicator {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: red;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: left 0.3s ease;
}



.indicator-date {
  position: absolute;
  top: 6px;
  font-size: 12px;
  background: #000;
  color: red;
  padding: 2px 5px;
  border-radius: 3px;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 1;
}

.fixed-date {
  position: absolute;
  top: 7px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 2px 4px;
  border-radius: 3px;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* Zone bleue de la parcelle sélectionnée */
.zone {
  position: absolute;
  top: -2px;
  height: 12px;
  background: rgba(0, 123, 255, 0.5);
  border-radius: 4px;
  transition: all 0.3s;
}

.historic-lots-container{
  width: 100%;
  overflow-x: auto;/* Permet le défilement horizontal si nécessaire */
  background: #fafafa;
}





body {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: rgb(201,228,202);
  }

  
#header {
  height: 10%;
  width: 100%;
  color: white;
  text-align: center;
  box-sizing: border-box;
  }
  /*
  #container {
    display: flex;
    flex-grow: 1;
    height: 80%;
    padding: 5px;
  }*/
  

  /*TODO*/
  
#map-area {
  height: 100%;
  width: 100%;
  border-radius: 15px;    
  }

#side-menu {
  border-radius: 15px;
  padding-bottom: 5px;
  }










  
  /*
  #side-container {
    display: flex;
    flex-direction: column;
    width: 20%;
    margin-left: 5px;
  }*/
  
#div-message {
  height: 80%;
  background-color: #8c98db;
  border-radius: 15px;
  margin-bottom: 5px;
  }
  
#action {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
  justify-content: space-around;
  align-items: center; /* Center align items */
  height: 30%;
  background-color: #8c98db;
  border-radius: 15px;
  justify-items: center; /* Center align items */
  }

#action button {
  width: 85%; /* Make all buttons the same width */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  height: 85%;
  }
  
  /* Adjusting for spacing issues */
.side-container {
  height: 90%; /* Remaining height after .div1 */
  }  

.info {
  padding: 6px 8px;
  font: 14px/16px Arial, Helvetica, sans-serif;
  background: white;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  border-radius: 5px;
}
.info h4 {
  margin: 0 0 5px;
  color: #777;
}

.modalPopup {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgb(0,0,0); 
  background-color: rgba(0,0,0,0.4); 
}

.modal-content2 {
  background-color: #fefefe;
  margin: 6% auto; 
  padding: 20px;
  border: 1px solid #888;
  width: 55%; 
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
.logo {
  height: 30px;
}

#logos {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#title {
  flex-grow: 1; 
  text-align: center; 
  color: black;
  margin: 0;
}

#header {
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 10px;
}
/* Style de la fenêtre modale */
.modal {
  display: none; 
  /* visibility: hidden; */
  position: fixed; 
  z-index: 1000; 
  left: 0; 
  top: 0;
  width: 100%; 
  height: 100%; 
  background-color: rgba(0, 0, 0, 0.5);
}
/* 
.modal.active{
  visibility: visible;
} */

.modal-content {
  background-color: white;
  margin: 15% auto; 
  padding: 20px;
  top : 10%;
  width: 50%;
  border-radius: 10px;
  text-align: center;
}
.close-btn {
  background-color: red;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  float: right;
}

.close-btn:hover {
  background-color: darkred;
}