/* =============================
   Back to Top — Essence de Bonbon
   ============================= */

#backToTop{
  position: fixed;
  
  right: max( 5px, calc((100vw - 1560px) / 2 + 5px) );
  bottom: 32px;
  z-index: 1000;

  width:  44px;
  height: 44px;
  border-radius: 999px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.85);
  color: var(--gold-soft);

  border: 1px solid rgba(201, 178, 124, 0.35);

  font-size: 14px;
  line-height: 1;
  cursor: pointer;

  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);

  transition:
    opacity .35s ease,
    transform .35s ease,
    border-color .35s ease,
    background .35s ease;
}

/* Visible state (controlled by JS) */
#backToTop.visible{
  opacity: .85;
  pointer-events: auto;
  transform: translateY(0);
}

/* Hover — restrained, not flashy */
#backToTop:hover{
  opacity: 1;
  border-color: rgba(201, 178, 124, 0.6);
  background: rgba(0, 0, 0, 0.95);
}

/* Focus (keyboard users, quiet but present) */
#backToTop:focus-visible{
  outline: none;
  box-shadow: 0 0 0 2px rgba(201, 178, 124, 0.35);
}

/* Mobile refinement */
@media (max-width: 767px){
  #backToTop{
    right: 16px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    font-size: 13px;
  }
}
