/* ============================================================
   WhatsApp Floating Button — La Chouchoute Compagnie
   Applies to ALL pages. Keeps button above all content (z: 9000).
   Animation: gentle pulse every 3s to draw attention without 
   being intrusive. Color matches official WhatsApp brand green.
   ============================================================ */

.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  /* Animation trigger */
  animation: wa-pulse 3s ease-in-out infinite;
}

/* The green circle button */
.wa-float__btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;     /* Official WhatsApp green */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.wa-float__btn svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

/* Optional text label (hidden on mobile by default) */
.wa-float__label {
  background: #ffffff;
  color: #128C7E;
  font-family: halyard-display, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

/* Show label on hover */
.wa-float:hover .wa-float__label {
  opacity: 1;
  transform: translateX(0);
}

.wa-float:hover .wa-float__btn {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

/* Pulse keyframes */
@keyframes wa-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.06); }
}

/* Mobile: hide label, keep button */
@media (max-width: 768px) {
  .wa-float {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  .wa-float__label { display: none; }
}
