html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: black;
  font-family: 'Outfit';
  overflow: hidden;
}

/* 1. Définir le fond général en noir */
body, #global-container, #column-frame {
    background-color: #000000 !important;
}

/* 2. Forcer le fond du conteneur Leaflet en noir */
#leaflet-map {
    background-color: #000000 !important;
}

/* 3. Modifier la couleur de fond interne de Leaflet */
.leaflet-container {
    background-color: #000000 !important;
}


#global-container {
  display: flex;
  position: absolute;
  height: 100%;
  width: 100%;
}

#column-frame {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 85%;
  background-color: blue;
}

#left-frame {
  display: flex;
  flex: 0 0 15%; /* largeur fixe dans le flex container */
  height: 100vh; /* hauteur = hauteur écran */
  background-color: black;
  flex-direction: column;
  text-align: center;
  padding: 0.5em;
  overflow-y: auto; /* scroll interne */
}

#left-frame p {
  background-color: black;
  color: white;
  margin: 0.5em;
  font-size: 0.7em;
  font-family: 'Outfit';
}

#left-frame h2 {
  color: white;
  border-top: 0.05em solid;
  border-bottom: 0.05em solid;
  padding: 0.3em;
  border-color: white;
}

/* Accordion */
.accordion {
  width: 100%;
}

.accordion-title {
  background: black;
  color: white;
  border: none;
  border-top: solid 0.05em white;
  border-bottom: solid 0.05em white;
  width: 100%;
  text-align: center;
  cursor: pointer;
  padding: 0.5em;
  font-family: 'Outfit', Verdana, sans-serif;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  background: black;
  padding: 0 10px;
  transition: padding 0.3s ease-out;
}

.accordion-content.open {
  max-height: none; /* pas de limite → tout le contenu est visible */
  padding: 10px;
}

.arrow {
  border: solid white;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
  margin: 0.2em
}

.down {
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

#footer{
  background-color: black;
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: center;
  text-align: center;
  height: 10em;


}

#footer p {
  position: relative;
  display: flex;
  background: black;
  font-size: 1.2em;
  font-family: 'Outfit', Verdana, sans-serif;
  font-weight: bold;
  color: white;
  text-align: center;
  margin-bottom: 0.5em;
}

#year-label {
  display: flex;
  position: relative;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  color: white;
  font-size: 1.5em;
  font-family: 'Outfit', Verdana, sans-serif;
}

#slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* centrer horizontalement */
  justify-content: center;
  position: relative;
  background: black;
  width: 100%;
  padding-bottom: 1em;

}

#month-selector {
  color: white;
  display: flex;
  font-family: "Outfit";
  font-size: 1em;

}


#month-selector p {
  color: white;
  display: flex;
  font-family: "Outfit";
  font-size: 1em;
  margin: 0;
  padding: 0;
}

#first-radio {
  margin-left: 0.8em;
}

#month {
  margin-top: 20em;
}

#year-slider {
  width: 60%;
 

}

#leaflet-map {
  position: relative;
  flex: 1
}

.chart-btn {
  font-size: 16px;
  line-height: 32px;
  text-align: center;
  padding: 0;
  background: url("assets/chart-button1\ .svg");
  background-size: contain;
  border: none;

}

#a-propos {
  font-size: 1em;
  color: white;
}



.legend {
  display: flex;
  position: absolute;
  bottom: 1em;
  left: 1em;
  z-index: 1000;
  padding: 8px;
  max-width: 100px;

}

.legend img {
  width: 100%;
  height: auto;
  display: block;
}

/* Écrans <= 900px : on réduit */
@media (max-height: 900px) {
  #footer {
    padding: 0.5em;
  }
  #footer p {
    font-size: 1em;
  }
  #year-slider {
    width: 50%;
  }
}

/* Écrans <= 700px : encore plus compact */
@media (max-height: 700px) {
  #footer {
    padding: 0.3em;
  }
  #footer p {
    font-size: 0.9em;
  }
  #year-slider {
    width: 40%;
  }
}

/* Pour écrans très bas (type PC portable 13") */
@media (max-height: 550px) {
  #footer {
    padding: 0.2em;
  }
  #footer p {
    font-size: 0.8em;
  }
  #month-selector {
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.8em;
  }
  #year-slider {
    width: 35%;
  }
}