/* ══════════════════════════════════════
   BOUTON D'APPEL WHATSAPP

   Bulle fixe en bas a DROITE. Le bouton « retour en haut » occupe deja le bas
   a gauche (hero.css : .scroll-top-btn, left: 32px, z-index: 999) — les deux ne
   se recouvrent donc jamais, y compris sur mobile.
══════════════════════════════════════ */
.whatsapp-fab {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: transform .25s var(--ease-out), box-shadow .25s ease, background .25s ease;
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
  background: #1ebe5b;
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.5);
}

.whatsapp-fab:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.45);
  outline-offset: 3px;
}

.whatsapp-fab svg {
  width: 30px;
  height: 30px;
  display: block;
}

/* Libelle deroulant au survol, sur les pointeurs precis uniquement : sur
   ecran tactile il resterait ouvert apres le tap. */
.whatsapp-fab-label {
  position: absolute;
  right: 68px;
  white-space: nowrap;
  background: var(--pm-dark);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(10, 22, 40, 0.25);
}

@media (hover: hover) and (pointer: fine) {
  .whatsapp-fab:hover .whatsapp-fab-label,
  .whatsapp-fab:focus-visible .whatsapp-fab-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
}

@media (max-width: 640px) {
  .whatsapp-fab {
    right: 20px;
    bottom: 20px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-fab svg { width: 28px; height: 28px; }
  .whatsapp-fab-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab,
  .whatsapp-fab-label { transition: none; }
  .whatsapp-fab:hover { transform: none; }
}
