/* Styles pour le bouton WhatsApp flottant */
.whatsapp-button {
    position: fixed;
    bottom: 90px; /* Position plus haute pour éviter le chevauchement avec le bouton de scroll */
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 1001; /* Z-index plus élevé que le bouton scroll-top */
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.whatsapp-button i {
    color: white;
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background-color: white;
    color: #333;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

.whatsapp-button:hover .whatsapp-tooltip {
    opacity: 1;
}

/* RTL Support */
html[lang="ar"] .whatsapp-button {
    left: 20px;
    right: auto;
    bottom: 90px; /* Même position en hauteur pour la version RTL */
}

html[lang="ar"] .whatsapp-tooltip {
    left: 75px;
    right: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 80px; /* Position légèrement ajustée pour mobile */
    }
}
