/*Gmap*/
.map-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

.map-svg-wrapper {
  position: relative;
  width: 100%;
  height: auto;
}

.map-points-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-point {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: all;
  cursor: pointer;
}

.point-tooltip {
  display: none;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  font-size: 12px;
  color: #333;
}

.point-tooltip.visible {
  display: block;
}

/*carte france*/
.svg-popup {
  width: 15px;
  margin-right: 5px;
}
.map-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.city_map {
  margin-bottom: 10px;
  cursor: pointer;
}
.map-sidebar {
  width: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.map-sidebar-world {
  position: absolute;
  width: 250px;
  top: 0%;
  left: 10%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  z-index: 9;
}
.map-container {
  flex: 1;
  position: relative;
}
.france path {
  fill: white;
}
.france {
  background: var(--color-tertiary);
}
.world path {
  fill: rgba(255, 255, 255, 0.218);
}
.world {
  background: var(--color-primary);
}
.map-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

.map-svg-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 771px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.map-points-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-point,
.map-point-world {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: all;
  cursor: pointer;
}
.map-point-world.active {
  background-color: var(--color-secondary) !important;
}
.city_map li:hover {
  color: var(--color-secondary);
}
.point-tooltip {
  display: none;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  font-size: 12px;
  color: #333;
}

.point-tooltip.visible {
  display: block;
}
.map-point.active {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}
.map-sidebar li.active,
.map-sidebar-world li.active {
  color: var(--color-secondary);
}
.networkimage {
  /* margin-top: calc(0px - var(--header-height));*/
  height: 40vh;
  overflow: hidden;
  background-color: var(--color-black);
}
/*popup carte*/

.interactive-map-section,
.interactive-map-section-world,
.interactive-map-section-interpro {
  margin-top: 0;
}

.city-popup,
.country-popup,
.popup-interpro {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 40vw;
  padding: 40px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  box-sizing: border-box;
  transform: translateX(100%);
  transition: transform 0.4s ease-out;
}
.city-popup.visible,
.country-popup.visible,
.popup-interpro.visible {
  transform: translateX(0%); /* Glisse vers la gauche */
}
.city-popup .popup-header,
.country-popup .popup-header,
.popup-interpro .popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.city-popup .popup-header h3,
.country-popup .popup-header h3,
.popup-interpro .popup-header h3 {
  margin: 0;
  font-size: 18px;
}

.city-popup .popup-close,
.country-popup .popup-country-close,
.popup-interpro .popup-close {
  background: none;
  border: none;
  border: none;
  background: transparent;
  font-size: 30px;
  cursor: pointer;
  font-weight: bold;
}
.city-popup .popup-close:hover,
.country-popup .popup-close:hover,
.popup-interpro .popup-close:hover {
  color: #ffdddd;
}
.popup-country-close {
  color: var(--color-primary);
}
/*superposition carte france et world*/
.map-container-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.interactive-map-section,
.interactive-map-section-world,
.interactive-map-section-interpro {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
  z-index: 1;
}

.interactive-map-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.interactive-map-section,
.interactive-map-section-world,
.interactive-map-section-interpro {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
  z-index: 1;
}

.interactive-map-section {
  transform: translateX(0); /* Par défaut visible */
  z-index: 11;
}

.interactive-map-section-world,
.interactive-map-section-interpro {
  transform: translateX(100%); /* Par défaut hors écran à droite */
}

.interactive-map-section.active {
  transform: translateX(-100%); /* Sort vers la gauche */
  z-index: 1;
}
.interactive-map-section.return {
  transform: translateX(0); /* Entre par la droite */
  z-index: 11;
}

.interactive-map-section-world.active,
.interactive-map-section-interpro.active {
  transform: translateX(0); /* Entre par la gauche */
  z-index: 11;
}

.interactive-map-section-world.return,
.interactive-map-section-interpro.return {
  transform: translateX(100%); /* Sort vers la droite */
  z-index: 1;
}
.interactive-map-section-interpro.return-inverse {
  transform: translateX(-100%); /* Sort vers la droite */
  z-index: 1;
}
#show-map-france,
#show-map-france-2,
#show-map-interpro-left {
  position: absolute;
  top: 100%;
  left: -20px;
  transform: rotate(-90deg);
  transform-origin: top left;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: none;
  padding: 40px 20px 20px 20px;
  text-transform: uppercase;
  cursor: pointer;
  width: auto;
  box-sizing: border-box;
  width: 100vh;
  height: auto;
  transition: 0.25s ease-in-out;
}
/*désactivation du volet interpro*/
#show-map-interpro-left,
#show-map-interpro-right {
  display: none !important;
}
/**/
#show-map-france-2:hover,
#show-map-france:hover {
  left: 0px;
}
#show-map-world,
#show-map-world-2,
#show-map-interpro-right {
  position: absolute;
  top: 0;
  right: 57px;
  transform: rotate(-90deg);
  transform-origin: top right;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: none;
  text-transform: uppercase;
  cursor: pointer;
  width: auto;
  box-sizing: border-box;
  width: 100vh;
  padding: 20px 20px 40px 20px;
  height: auto;
  transition: 0.25s ease-in-out;
}
#show-map-world:hover,
#show-map-world-2:hover {
  right: 77px;
}
#show-map-interpro-right {
  right: 114px;
  z-index: 9;
}
#show-map-interpro-right:hover {
  right: 135px;
}
#show-map-interpro-left {
  left: 2.5%;
  z-index: 10;
}
#show-map-interpro-left:hover {
  left: 3.3%;
}

@media screen and (max-width: 1024px) {
  .map-container-wrapper {
    height: 65vh;
  }
  .map-container,
  .networkimage {
    display: none;
  }
  .map-sidebar-world {
    width: 80vw;
    left: 17%;
    top: 5%;
    justify-content: start;
  }
  .map-sidebar,
  .interpro-content,
  .map-sidebar-world {
    max-height: 57vh;
    overflow-y: scroll;
    padding-left: var(--space-normal);
  }
  .interactive-map-section,
  .map-sidebar-world,
  .interactive-map-section-interpro,
  .map-sidebar,
  .map-sidebar-world .city_map {
    padding-top: var(--space-normal) !important;
  }
  .interactive-map-section-interpro h2,
  .interactive-map-section h2,
  .map-sidebar-world h2 {
    font-size: var(--font-size-xn);
  }
  .map-sidebar {
    justify-content: start;
  }
  #show-map-world,
  #show-map-world-2,
  #show-map-interpro-right {
    right: 48px;
    padding: 17px 20px 40px 20px;
    width: 65vh;
  }
  #show-map-interpro-right {
    right: 97px;
  }
  #show-map-france-2 {
    left: 0;
    padding: 17px 20px 14px 20px;
    width: 65vh;
  }
  #show-map-interpro-left {
    padding: 17px 20px 14px 20px;
    width: 65vh;
    left: 0px;
  }
  #show-map-france {
    padding: 17px 20px 14px 20px;
    width: 65vh;
    left: 0px;
  }
  .city-popup,
  .country-popup,
  .popup-interpro {
    width: 100vw;
  }

  .interactive-map-section,
  .interactive-map-section.return,
  .interactive-map-section-world.active,
  .interactive-map-section-interpro.active {
    z-index: 2;
  }
}
