@font-face {
    font-family: 'gilroy-semibold';
    src: url('../css/fonts/Gilroy/gilroy-semibold-webfont.woff') format('woff');
}
#sites-map-container {
  background-color: transparent;
  text-align: center;
  position: relative;
  width: 155%;
  max-width: 600px;
  margin: 0 auto;
  height: auto;

}
#sites-map-container h2{
  font-size: 2rem;
}
@media (max-width: 810px) {
  #sites-map-container {
    width: 80%;
    
  }
}
@media (max-width: 530px) {
  #sites-map-container {
    width: 100%;
    height:396px;
  }
}
@media (max-width: 400px) {
  #sites-map-container {
    width: 100%;
    
  }
}
#sites-map-container .site-link:hover {
  cursor: pointer;
}
#sites-map-container #popup {
  font-family: 'gilroy-light';
  display: none;
  position: absolute;
  z-index: 1000;
  text-align: left;
  padding-left: 1rem;
  /* pointer-events: none; */
}
@media (max-width: 1090px) {
  #sites-map-container #popup {
    bottom: 20px;
  }
}
@media (min-width: 1090px) {
  #sites-map-container #popup {
    top: 50%;
    left: 88%;
    transform: translateY(-50%);
    width: 300px;
  }
}
#sites-map-container strong a {
  color: #f7002b;
  font-family: 'gilroy-bold';
  font-size: 0.6rem !important;

}

#sites-map-container .link-30-projets{
  padding-bottom: 2rem;
}

#sites-map-container .link-30-projets a {
  display: inline-flex;
  align-items: center;
  color: white;
  background: black;
  text-transform: uppercase;
  font-size: 0.55rem;
  padding-left: 0.5rem;
  padding-top: 0.1rem;
  padding-bottom: 0.1rem;

} 
#sites-map-container .link-30-projets a:after { 
  display: inline-flex;
  content: url("../img/noun-arrow-to-right.svg");
  padding-right: 0.4rem;
  padding-left: 0.4rem;
  height: 10px;
}
#popup-content {
  width: 300px;
  padding-right: 30px;
  font-size: 0.5rem !important;
  position: relative;
}
#popup-content p {
  font-size: 0.5rem !important;
}
@media (max-width: 1089px) {
  #popup-content {
    width: 300px;
    background-color: white;
    border-radius: 5px;
    padding: 0.5rem;
    padding-left: 1rem;
  }
}  
#popup-content ul{
  padding-left: 0;
  position: relative;
  /* margin-top: 2rem; */
  font-size: 0.5rem !important;
  padding-top: calc(1.8rem / 8);  /* même valeur que ton margin-top */

}

#popup-content ul::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: black;
  z-index: 0;
}
#popup-content ul li {
  position: relative;
  color: black;
  font-family: "gilroy-semibold";
  padding-top: 0.3rem;
  padding-bottom: 0.5rem;
  text-transform: uppercase;
  /* background-color: #f6f7f3; */
  transition: transform 0.4s ease-in-out; 
}

#popup-content ul li:hover {
  transform: scale(1.03); 
}

#popup-content ul li .site-link {
  text-transform: none;
}

#popup-content ul li::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0rem; /* même valeur que le padding-left */
  /* width: calc(100% - 0.3rem); réduit la longueur */
  width: 100%;
  height: 1px;
  background: black;
}


#popup-content ul li.laureat {
  margin-top: 0;  /* on enlève la marge qui cause le problème */
}

/* Spécifique au li .laureat */
#popup-content ul li.laureat {
  --badge-size: 1.8rem;              /* taille du badge */
  margin-top: calc(var(--badge-size) / 1.5); /* on réserve de la place au-dessus */
  padding-left: 0rem;                /* place à gauche pour le badge */
  
}

/* Badge LAUREAT responsive */
#popup-content ul li.laureat::before {
  content: "";
  position: absolute;
  left: -1rem;           /* aligne avec le début du contenu */
  top: -18%;              /* milieu vertical du li */
  /* top: calc(var(--badge-size) / 2);  remonte dans la marge au-dessus */
  width: var(--badge-size);
  height: var(--badge-size);
  /* background-color: #f6f7f3; */
  background-image: url("../img/laureat-ouvert.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: -1;             /* sous le texte mais au-dessus du fond */
}


/* Mobile : on resserre tout, le badge suit */
@media (max-width: 1089px) {
  #popup-content {
    width: 300px;
    background-color: white;
    border-radius: 5px;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    padding-left:2rem ;
  }

  #popup-content ul li {
    background-color: white;
    /* padding-left: 3rem; */
  }
  #popup-content ul li::after {
    height: 0.5px;
  }

  #popup-content ul li.laureat {
    /* padding-left: 3rem; */
    z-index: 0;
    background-color: white !important;

  }

  #popup-content ul li.laureat::before {
    width: 2.2rem;
    height: 2.2rem;
    left: -1.3rem;
    top: -0.8rem;
    z-index: -1;
    background-color: white;
    background-image: url("../img/laureat-ouvert.svg");
  }
  /* li{background-color: white;} */
}