/* ============================================================
   ASCENSEUR — Navigation verticale fixe
   /wp-content/themes/quantic-child/css/ascenseur.css
   ============================================================ */

#ascenseur {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

/* ── Ligne verticale de fond ── */
.asc-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: rgba(202, 213, 211, 0.15);
  pointer-events: none;
}

/* ── Ligne de progression ── */
.asc-progress {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 0%;
  background: rgba(202, 213, 211, 0.5);
  transition: height 0.2s ease;
  pointer-events: none;
}

/* ── Conteneur des points ── */
.asc-dots {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 6px 0;
}

/* ── Un point ── */
.asc-dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
  pointer-events: all;
  background: none;
  border: none;
  padding: 0;
  outline: none;
}

/* Hitbox invisible pour faciliter le clic */
.asc-dot::before {
  content: '';
  position: absolute;
  inset: 0;
}

/* ── Point visuel ── */
.asc-dot-inner {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(202, 213, 211, 0.3);
  transition: background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.asc-dot.is-active .asc-dot-inner {
  background: rgba(202, 213, 211, 0.95);
  transform: scale(1.5);
  box-shadow: 0 0 8px rgba(202, 213, 211, 0.3);
}

.asc-dot:hover .asc-dot-inner {
  background: rgba(202, 213, 211, 0.75);
  transform: scale(1.35);
}

/* ── Label au survol ── */
.asc-label {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  white-space: nowrap;
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(202, 213, 211, 0.9);
  background: rgba(42, 56, 54, 0.92);
  padding: 5px 12px;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.asc-dot:hover .asc-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ── RDV — point en exergue ── */
.asc-dot[data-section="rdv"] .asc-dot-inner {
  background: rgba(74, 107, 97, 0.55);
  width: 6px;
  height: 6px;
}

.asc-dot[data-section="rdv"].is-active .asc-dot-inner,
.asc-dot[data-section="rdv"]:hover .asc-dot-inner {
  background: #4A6B61;
  box-shadow: 0 0 10px rgba(74, 107, 97, 0.4);
}

.asc-dot[data-section="rdv"] .asc-label {
  color: #FFFFFF;
  background: rgba(74, 107, 97, 0.95);
}

/* ── Mode fond clair (sections blanches) ── */
#ascenseur.on-light .asc-track {
  background: rgba(42, 56, 54, 0.12);
}

#ascenseur.on-light .asc-progress {
  background: rgba(42, 56, 54, 0.4);
}

#ascenseur.on-light .asc-dot-inner {
  background: rgba(42, 56, 54, 0.22);
}

#ascenseur.on-light .asc-dot.is-active .asc-dot-inner {
  background: rgba(42, 56, 54, 0.85);
  box-shadow: 0 0 8px rgba(42, 56, 54, 0.2);
}

#ascenseur.on-light .asc-dot:hover .asc-dot-inner {
  background: rgba(42, 56, 54, 0.65);
}

#ascenseur.on-light .asc-label {
  color: rgba(42, 56, 54, 0.95);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 12px rgba(42, 56, 54, 0.1);
}

#ascenseur.on-light .asc-dot[data-section="rdv"] .asc-dot-inner {
  background: rgba(74, 107, 97, 0.5);
}

/* ── Transition douce entre modes clair/sombre ── */
#ascenseur,
.asc-track,
.asc-progress,
.asc-dot-inner {
  transition: background 0.5s ease, color 0.5s ease;
}

/* ── Masqué sous 768px ── */
@media (max-width: 768px) {
  #ascenseur { display: none; }
}
