.remonter-haut {
  position: fixed;
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--vert);
  color: var(--ivoire);
  border: 1px solid rgba(250, 247, 240, 0.7);
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.22);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s, background-color 0.2s ease;
}
.remonter-haut svg { width: 20px; height: 20px; }
.remonter-haut:hover { background: #3A4F17; }
.remonter-haut:focus-visible { outline: 2px solid var(--brun); outline-offset: 3px; }

.remonter-haut.is-ready:not(.is-visible) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
}

body.nav-open .remonter-haut,
body.lightbox-open .remonter-haut,
body:has(dialog[open]) .remonter-haut { display: none; }

@media (max-width: 760px) {
  .remonter-haut { right: var(--space-2); bottom: var(--space-2); }
  .footer-bottom { padding-bottom: calc(48px + var(--space-3)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .remonter-haut { transition: none; }
  .remonter-haut.is-ready:not(.is-visible) { transform: none; }
}
