@import url("https://fonts.googleapis.com/css2?family=Lexend&display=swap");

body {
  font-family: "Lexend", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
}
#map {
  height: 60vh;
  width: 100%;
  z-index:1;
}
.title-map {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  z-index: 10000;
}
.leaflet-interactive {
  z-index: -10 !important;
  transition: 0.3s;
}
.leaflet-interactive:hover {
  fill: #ebe1e171;
  transition: 0.3s;
}
.leaflet-popup-content-wrapper {
  width: 32vw; /* Prendre toute la largeur de la fenêtre */
  height: 35vh; /* Prendre toute la hauteur de la fenêtre */
  overflow: auto;

  background: rgba(
    255,
    255,
    255,
    0.9
  ); /* Pour un fond légèrement transparent */
  display: flex;
  justify-content: center;
  align-items: start;
  border-radius: 2px !important;
  border: 2px solid brown;
}
.leaflet-popup-content-wrapper h3 {
  font-size: 16px;
  text-align: center;
}
.leaflet-popup-content {
  width: 90% !important;
}

.country-label {
  font-size: 16px;
  font-weight: bold;
  color: black;
  text-shadow: 2px 2px 4px white, 0 0 5px white;
  background: none;
  pointer-events: none;
  border: none;
}
.leaflet-control-attribution {
  display: none;
}
#products-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: #361e02a6;
  color: var(--white);
  left: -338px;
  top: 130px;
  width: 70vw;
  margin: auto;
}
#modal-map button {
  position: absolute;
  top: 45px;
  right: -706px;
  background: var(--black);
  color: var(--white);
  border: none;
}
#products-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem;
  font-weight: 400;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  text-align: center;
  background: radial-gradient(
    ellipse at bottom,
    rgba(71, 81, 92, 1) 0%,
    rgba(11, 21, 30, 1) 45%
  );
  color: rgb(196, 144, 13);
  text-decoration: none;
  transition: 0.5s;
  width: 200px;
  height: 3.2rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
#text-producteur {
  position: relative;
  top: 140px;
  left: -260px;
  color: var(--white);
  font-weight: bold;
  font-size: 32px;
}
#products-list a:hover {
  background: var(--white);
  color: var(--black);
  transition: 0.5s;
}
/* BTN MODAL STYLE */
.btn-secondary {
  background-color: var(--white);
  color: var(--dark);
  width: 25%;
}
#modal-map {
  border: none;
  background-color: rgba(255, 255, 255, 0) !important;
}
#text-country span {
  font-size: 15px !important;
}
@media (max-width: 767px) {
  .leaflet-popup-content-wrapper {
    width: 80vw; /* Prendre toute la largeur de la fenêtre */
    height: 48vh;
  }
  #products-list a {
    width: 110px;
    height: 3.1rem;
    font-size: 12px;
    padding: 0.2rem 0.4rem;
    margin: 0.5rem;
  }
  #products-list {
    left: 0 !important;
    width: 100% !important;
    top: 172px !important;
    max-height: 55vh;
    overflow: auto;
  }

  #text-producteur {
    left: 0;
    top: 171px;
    font-size: 28px;
  }
  #modal-map button {
    top: 56px;
    right: 0;
    border-radius: 0;
    border: 0;
    color: black;
    z-index: 25;
    background-color: white;
  }
}
