/* .backToTop { position: fixed; right: 20px; bottom: 20px; z-index: 1000; width: 44px; height: 44px; line-height: 44px; border-radius: 50%; background: #014e90; color: #fff; text-align: center; text-decoration: none; font-size: 26px; box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.backToTop:hover, .backToTop:focus { background: #003868; color: #fff; }
.backToTop:focus { outline: 2px solid #014e90; outline-offset: 3px; } */
.backToTop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  /* Dégradé subtil + reflets internes pour donner un aspect 3D bombé */
  background: radial-gradient(circle at 30% 30%, #0a68b8, #014e90 70%);
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Ombre portée + bordure brillante en haut pour le volume */
  box-shadow: 
    0 4px 10px rgba(0, 0, 0, 0.35),
    inset 0 2px 3px rgba(255, 255, 255, 0.35),
    inset 0 -3px 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  perspective: 300px; /* Active la profondeur 3D */
}

/* La flèche qui tourne en continu sur son axe vertical */
.backToTop .arrow-3d {
  display: inline-block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  animation: spin3D 3s linear infinite;
}

/* Au survol : le bouton se soulève légèrement et la rotation accélère */
.backToTop:hover,
.backToTop:focus {
  background: radial-gradient(circle at 30% 30%, #014e90, #003868 75%);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 
    0 6px 14px rgba(0, 0, 0, 0.45),
    inset 0 2px 3px rgba(255, 255, 255, 0.3),
    inset 0 -3px 4px rgba(0, 0, 0, 0.5);
}

.backToTop:hover .arrow-3d {
  animation-duration: 1.2s;
}

.backToTop:focus {
  outline: 2px solid #014e90;
  outline-offset: 3px;
}

@keyframes spin3D {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}
