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

   Reprend celui de la landing page PyramidMail, a une difference pres : cette
   page-ci n'a ni variables CSS ni base.css, les valeurs sont donc ecrites en
   clair plutot que reprises de tokens qui n'existent pas ici.

   Aucun autre bouton flottant sur cette page : les deux coins bas sont libres.
══════════════════════════════════════ */
.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 cubic-bezier(0.22, 1, 0.36, 1), 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: #0a1628;
  color: #fff;
  font-family: inherit;
  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; }
}
