:root {
  --h-map-section-max-width: 1440px;
  --z-index-max: 10;
}

/* Conteneur principal */
.home_map {
  display: block;
  width: 100%;
  height: 750px;
  overflow: hidden;
  position: relative;
}

.home_map_back {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Effet de flou périphérique avec pseudo-élément */
.home_map_back::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 30%, #004D33 150%);
  filter: blur(15px);
  opacity: 0.7;
  z-index: var(--z-index-max);
  pointer-events: none;
}

.home_map_back img:not(.leaflet-marker-icon) {
  /* Ajustement de la luminosité */
  filter: brightness(3) !important;
}

.home_map_front {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.home_map_sz {
  display: flex;
  width: calc(100% - 40px);
  max-width: var(--h-map-section-max-width);
  padding: 120px 0;
  justify-content: flex-start;
}

/* Carte de données */
.home_map_data_c {
  display: flex;
  width: 50%;
  max-width: 600px;
  background: #FFFFFF;
  border-radius: 40px;
  overflow: hidden;
  flex-direction: column;
  padding: 40px 40px;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(0, 77, 51, 0.1);

  position: relative;
  top: -750px;
  z-index: calc(var(--z-index-max) + 1);
}

.home_map_title {
  color: #004D33;
  font-family: 'Industry_Black', sans-serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.1;
  text-align: left;
  position: relative;
  padding-top: 20px;
  margin-bottom: 30px;
}

.home_map_title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 4px;
  background-color: #A1C854;
  border-radius: 2px;
}

.home_map_list_c {
  display: flex;
  width: 100%;
  justify-content: center;
}

.home_map_list_sz {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 10px 0;
}

.home_map_list_i {
  display: flex;
  width: 50%;
  padding: 10px;
  box-sizing: border-box;
  margin-top: 10px;
  border-radius: 0px 30px 30px 30px;
  transition: all 0.3s ease;
}

.home_map_list_i:hover {
  background: #F2F7E7;
  cursor: pointer;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.home_map_list_i_icn {
  display: flex;
  width: 50px;
  min-width: 50px;
  align-items: flex-start;
  justify-content: center;
}

.home_map_list_i_icn img {
  width: 36px;
  height: auto;
  object-fit: contain;
}

.home_map_list_i_data {
  display: flex;
  width: calc(100% - 50px);
  flex-direction: column;
  gap: 5px;
}

.home_map_list_i_data_bureau {
  color: #004D33;
  font-family: 'Industry_Black', sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}

.home_map_list_i_data_rue,
.home_map_list_i_data_tel {
  color: #004D33;
  font-family: 'Noto_Regular', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
}

/* ===== RESPONSIVE ===== */

/* Tablette - Ajustements mineurs */
@media screen and (max-width: 1024px) {
  .home_map {
    height: 650px;
  }

  .home_map_sz {
    padding: 80px 0;
  }

  .home_map_data_c {
    width: 55%;
    padding: 35px 50px;
  }

  .home_map_title {
    font-size: 32px;
  }

  .home_map_list_i_data_bureau {
    font-size: 20px;
  }

  .home_map_list_i_data_rue,
  .home_map_list_i_data_tel {
    font-size: 15px;
  }
}

/* MOBILE - CHANGEMENT MAJEUR : Carte en dessous */
@media screen and (max-width: 768px) {
  .home_map {
    height: auto;
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  .home_map_back {
    height: 400px; /* Hauteur fixe pour la carte */
    position: relative;
    order: 1; /* La carte vient en premier */
  }

  .home_map_front {
    position: relative;
    height: auto;
    order: 2; /* Les données viennent après */
    padding: 40px 0;
    background: #FFFFFF;
  }

  .home_map_sz {
    width: calc(100% - 30px);
    padding: 0;
    justify-content: center;
  }

  .home_map_data_c {
    width: 100%;
    max-width: 600px;
    padding: 30px 25px;
    border-radius: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: unset;
    z-index: calc(var(--z-index-max) + 1);
  }

  .home_map_title {
    font-size: 28px;
    text-align: center;
    padding-top: 15px;
  }

  .home_map_title::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .home_map_list_i {
    width: 100%;
  }

  .home_map_list_i_data_bureau {
    font-size: 19px;
  }

  /* Ajustement de l'effet de flou pour mobile */
  .home_map_back::before {
    background: radial-gradient(circle at center, transparent 20%, #004D33 120%);
    filter: blur(10px);
    opacity: 0.8;
  }
}

/* Petit mobile */
@media screen and (max-width: 480px) {
  .home_map_back {
    height: 350px;
  }

  .home_map_front {
    padding: 30px 0 40px;
  }

  .home_map_data_c {
    padding: 25px 20px;
    border-radius: 20px;
    margin-top: -40px;
  }

  .home_map_title {
    font-size: 24px;
    padding-top: 15px;
    margin-bottom: 20px;
  }

  .home_map_title::before {
    width: 40px;
    height: 3px;
  }

  .home_map_list_i {
    padding: 8px;
  }

  .home_map_list_i_icn {
    width: 40px;
    min-width: 40px;
  }

  .home_map_list_i_icn img {
    width: 28px;
  }

  .home_map_list_i_data {
    width: calc(100% - 40px);
  }

  .home_map_list_i_data_bureau {
    font-size: 18px;
  }

  .home_map_list_i_data_rue,
  .home_map_list_i_data_tel {
    font-size: 18px;
  }
}

/* Très petit mobile */
@media screen and (max-width: 360px) {
  .home_map_back {
    height: 300px;
  }

  .home_map_data_c {
    padding: 20px 15px;
    margin-top: -30px;
  }

  .home_map_title {
    font-size: 22px;
  }
}



.home_map_legend {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 0;
}

.home_map_legend_sz {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: calc(100% - 60px);
}

.home_map_legend_i {
  position: relative;
  top: -100px;
  z-index: 9999; /* Valeur raisonnable */
  display: flex;
  align-items: center;
  gap: 20px;
  width: 170px;
  padding: 0 20px;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Ajout d'une ombre pour la lisibilité */
}

.home_map_legend_i_icon img {
  width: 24px;
  height: auto;
}

.home_map_legend_i_label {
  margin: 0;
  color: #004D33;
  font-family: 'Noto_Regular', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.home_map_legend_i:first-child {
  padding-top: 10px;
  border-radius: 10px 10px 0 0;
}

.home_map_legend_i:not(:first-child) { /* Correction de la pseudo-classe */
  padding-top: 10px;
}

.home_map_legend_i:last-child {
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-radius: 0 0 10px 10px;
}

@media (max-width: 768px) {
  .home_map_legend {
    display: none;
  }
}
