/* ============================================================
   Hotspots de navigation — systeme repris du projet campus-tourisme,
   adapte a la charte SUEZ.
   Pastille ronde au repos -> se deplie au survol avec le nom de la
   scene de destination. Anneau gris pulsant pour attirer l'oeil.
   ============================================================ */

.hsnav-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  font-family: "Inter", -apple-system, sans-serif;
  cursor: pointer;
}

/* --- Anneau gris qui pulse autour du rond --- */
.hsnav-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #c2cadb;
  pointer-events: none;
  z-index: 0;
  animation: hsnav-pulse 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.hsnav-pulse--delay {
  animation-delay: 1.1s;
}
@keyframes hsnav-pulse {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  70% {
    opacity: 0;
  }
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

/* --- Pastille : rond 48px au repos, pill deplie au survol --- */
.hsnav {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 48px;
  width: 48px;
  border-radius: 24px;
  overflow: hidden;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.78);
  border: none;
  box-shadow: 0 6px 18px rgba(3, 15, 64, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: width 420ms cubic-bezier(0.65, 0, 0.35, 1);
}

.hsnav-circle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 4px;
  background: #030f40;
  border-radius: 50%;
}
.hsnav-circle svg {
  width: 17px;
  height: 17px;
  fill: #ffffff;
  transform: rotate(90deg);
  transition: transform 350ms cubic-bezier(0.65, 0, 0.35, 1);
}

.hsnav-title {
  padding: 0 16px 0 6px;
  color: #030f40;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 180ms 70ms,
    transform 340ms cubic-bezier(0.65, 0, 0.35, 1);
}

/* --- Etat survol : depliage --- */
.hsnav-wrap:hover .hsnav {
  width: fit-content;
}
.hsnav-wrap:hover .hsnav-title {
  opacity: 1;
  transform: translateX(0);
}
.hsnav-wrap:hover .hsnav-circle svg {
  transform: rotate(0deg);
}
.hsnav-wrap:hover .hsnav-pulse {
  animation-play-state: paused;
  opacity: 0;
}

/* ============================================================
   Hotspots d'information — cercle "i" + anneau blanc pulsant.
   ============================================================ */

.hsinfo-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  font-family: "Inter", -apple-system, sans-serif;
  cursor: pointer;
}

/* Anneau blanc transparent qui pulse */
.hsinfo-pulse {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  pointer-events: none;
  z-index: 0;
  animation: hsnav-pulse 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.hsinfo-pulse--delay {
  animation-delay: 1.1s;
}

/* Pastille ronde de l'icone info */
.hsinfo {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #aadc14;
  border: 2px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 4px 14px rgba(3, 15, 64, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms cubic-bezier(0.65, 0, 0.35, 1);
}
.hsinfo svg {
  width: 17px;
  height: 17px;
  fill: #030f40;
}

.hsinfo-wrap:hover .hsinfo {
  transform: scale(1.1);
}
.hsinfo-wrap:hover .hsinfo-pulse {
  animation-play-state: paused;
  opacity: 0;
}
