/* Indicateur de défilement global — aide visuelle pour les pages longues. */
.indicateur-defilement {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 45;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(53, 89, 82, 0.22);
  border-radius: 9999px;
  background: rgba(254, 250, 239, 0.96);
  color: #355952;
  box-shadow: 0 8px 24px rgba(26, 45, 41, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transform: translateX(-50%);
  animation: indicateur-defilement-rebond 1.65s ease-in-out infinite;
  transition:
    opacity 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.indicateur-defilement[hidden] {
  display: none;
}

.indicateur-defilement:hover {
  background: #fffdf7;
  box-shadow: 0 10px 28px rgba(26, 45, 41, 0.22);
}

.indicateur-defilement:focus-visible {
  outline: 2px solid #eab63e;
  outline-offset: 3px;
}

.indicateur-defilement svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
}

@keyframes indicateur-defilement-rebond {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 0.38rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .indicateur-defilement {
    animation: none;
    transition: none;
  }
}

@media (max-width: 640px) {
  .indicateur-defilement {
    width: 2.6rem;
    height: 2.6rem;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
  }
}
