/* ============================================
   SignaHub WhatsApp Widget Styles
   ============================================ */

.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.whatsapp-widget:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-widget:active {
    transform: scale(0.95) translateY(0);
}

.whatsapp-widget svg {
    width: 36px;
    height: 36px;
}

/* Animation pulse pour attirer l'attention */
@keyframes whatsapp-pulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7),
            0 0 0 10px rgba(37, 211, 102, 0.1),
            0 0 0 20px rgba(37, 211, 102, 0.05);
    }
}

.whatsapp-widget.pulse {
    animation: whatsapp-pulse 2s infinite;
}

/* Badge notification (optionnel pour afficher "nouveau") */
.whatsapp-widget::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: #ff4444;
    border-radius: 50%;
    border: 2px solid white;
    display: none;
    /* Activé si besoin */
}

.whatsapp-widget.has-notification::before {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }

    .whatsapp-widget svg {
        width: 32px;
        height: 32px;
    }
}

/* Alignement avec cookie banner si présent */
body:has(#cookie-banner) .whatsapp-widget {
    bottom: 110px;
    /* Décalé si bannière cookies visible */
    transition: bottom 0.3s ease;
}

/* Print - masquer widget */
@media print {
    .whatsapp-widget {
        display: none !important;
    }
}