/* style.css - Ajouter ces styles pour les boutons flottants (à la fin du fichier) */

/* ========== BOUTONS FLOTTANTS WHATSAPP & TELEGRAM ========== */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

.floating-btn i {
    font-size: 32px;
    color: white;
    transition: transform 0.2s;
}

.floating-btn:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.floating-btn:hover i {
    transform: scale(1.1);
}

/* Animation flottante */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* WhatsApp spécifique */
.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    animation-delay: 0s;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.5);
}

/* Telegram spécifique */
.telegram-btn {
    background: linear-gradient(135deg, #0088cc, #006699);
    animation-delay: 0.3s;
}

.telegram-btn:hover {
    background: linear-gradient(135deg, #006699, #004466);
    box-shadow: 0 0 25px rgba(0, 136, 204, 0.5);
}

/* Tooltips */
.btn-tooltip {
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(5px);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.85);
}

.floating-btn:hover .btn-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

/* Badge de notification (optionnel) */
.floating-btn .notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1.5s infinite;
    border: 2px solid white;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 71, 87, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

/* Effet d'onde au clic */
.floating-btn:active {
    transform: scale(0.95);
}

.floating-btn:active i {
    transform: scale(0.9);
}

/* Animation d'apparition des boutons */
.floating-btn {
    animation: slideInRight 0.5s ease-out, float 3s ease-in-out infinite;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive pour mobiles */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
    }
    
    .floating-btn i {
        font-size: 26px;
    }
    
    .btn-tooltip {
        font-size: 11px;
        padding: 4px 10px;
        right: 60px;
    }
    
    .floating-btn:hover .btn-tooltip {
        right: 65px;
    }
}

@media (max-width: 480px) {
    .floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
    }
    
    .floating-btn i {
        font-size: 22px;
    }
    
    /* Cacher les tooltips sur très petit écran */
    .btn-tooltip {
        display: none;
    }
}