/* ============================================
   APPSM - BOUTON WHATSAPP FIXE
   Fichier: css/whatsapp.css
   Description: Bouton flottant WhatsApp - présent sur toutes les pages
============================================ */

.whatsapp-float {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--orange) 0%,
    var(--orange-dark) 100%
  );
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(232, 103, 42, 0.5);
  z-index: 998;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  animation: whatsappPulse 2s ease-in-out infinite;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.whatsapp-float:hover {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 12px 35px rgba(232, 103, 42, 0.7);
  animation: none;
  background: linear-gradient(
    135deg,
    var(--purple) 0%,
    var(--purple-dark) 100%
  );
  border-color: rgba(255, 255, 255, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover svg {
  transform: scale(1.1);
}

/* ============================================
   TOOLTIP
============================================ */
.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(
    135deg,
    var(--purple) 0%,
    var(--purple-dark) 100%
  );
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  font-family: "Poppins", "Segoe UI", Tahoma, sans-serif;
  box-shadow: 0 5px 20px rgba(91, 45, 142, 0.4);
  letter-spacing: 0.3px;
}

/* Petite flèche du tooltip */
.whatsapp-tooltip::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 7px;
  border-style: solid;
  border-color: transparent transparent transparent var(--purple);
}

/* Afficher le tooltip au survol */
.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  right: 80px;
}

/* ============================================
   ANIMATION PULSATION
============================================ */
@keyframes whatsappPulse {
  0%,
  100% {
    box-shadow:
      0 8px 25px rgba(232, 103, 42, 0.5),
      0 0 0 0 rgba(232, 103, 42, 0.6);
  }
  50% {
    box-shadow:
      0 8px 25px rgba(232, 103, 42, 0.5),
      0 0 0 18px rgba(232, 103, 42, 0);
  }
}

/* ============================================
   RESPONSIVE MOBILE
============================================ */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 90px;
    right: 15px;
    width: 55px;
    height: 55px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  /* Cacher le tooltip sur mobile */
  .whatsapp-tooltip {
    display: none;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 85px;
    right: 12px;
    width: 52px;
    height: 52px;
  }
}
