/* HAYDAR — Bouton WhatsApp flottant, standard international */
#haydar-whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: haydar-wa-pop 0.4s ease;
}

#haydar-whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

#haydar-whatsapp-float svg {
  width: 32px;
  height: 32px;
  display: block;
}

#haydar-whatsapp-float .haydar-wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.55;
  animation: haydar-wa-ping 2.2s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
  z-index: -1;
}

@keyframes haydar-wa-ping {
  0% { transform: scale(1); opacity: 0.55; }
  70% { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

@keyframes haydar-wa-pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 782px) {
  #haydar-whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
  #haydar-whatsapp-float svg {
    width: 29px;
    height: 29px;
  }
}

/* Evite le conflit avec le bouton "scroll to top" ou autres widgets fixes eventuels */
body.woocommerce-cart #haydar-whatsapp-float,
body.woocommerce-checkout #haydar-whatsapp-float {
  bottom: 24px;
}
