/**
 * Bouton WhatsApp flottant - Design moderne
 */

.whatsapp-float-button {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 9998;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: gentle-float-whatsapp 4s ease-in-out infinite;
    text-decoration: none;
}

.whatsapp-float-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

.whatsapp-float-button:active {
    transform: scale(0.95);
}

.whatsapp-float-button i {
    font-size: 28px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.whatsapp-float-button .notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse-dot-whatsapp 2s ease-in-out infinite;
    box-shadow: 0 2px 5px rgba(255, 107, 107, 0.4);
}

@keyframes gentle-float-whatsapp {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulse-dot-whatsapp {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.85;
    }
}

/* Tooltip */
.whatsapp-float-button::after {
    content: 'Contactez-nous sur WhatsApp';
    position: absolute;
    right: 70px;
    background: #128C7E;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-float-button:hover::after {
    opacity: 1;
    visibility: visible;
    right: 65px;
}

.whatsapp-float-button::before {
    content: '';
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #128C7E;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-float-button:hover::before {
    opacity: 1;
    visibility: visible;
    right: 55px;
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float-button {
        bottom: 85px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float-button i {
        font-size: 24px;
    }

    .whatsapp-float-button::after {
        display: none;
    }

    .whatsapp-float-button::before {
        display: none;
    }
}
