/* Sélecteur de langue */
.language-switcher {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 8px;
    display: flex;
    gap: 4px;
}

.language-switcher button {
    background: transparent;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.language-switcher button:hover {
    background: #f5f5f5;
    color: #0A66C2;
}

.language-switcher button.active {
    background: #0A66C2;
    color: white;
}

.language-switcher button img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

/* Support RTL pour l'arabe */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-content {
    direction: rtl;
}

[dir="rtl"] .benefits-content {
    direction: rtl;
}

[dir="rtl"] .footer-content {
    direction: rtl;
}

[dir="rtl"] .benefit-item,
[dir="rtl"] .advantage-item {
    text-align: right;
}

[dir="rtl"] .hero-features {
    flex-direction: row-reverse;
}

[dir="rtl"] .feature-item {
    flex-direction: row-reverse;
}

/* Version mobile du sélecteur */
@media (max-width: 768px) {
    .language-switcher {
        top: 70px;
        right: 10px;
        padding: 4px;
        gap: 2px;
        flex-direction: column;
    }
    
    .language-switcher button {
        padding: 6px;
        font-size: 12px;
    }
    
    .language-switcher button img {
        width: 16px;
        height: 12px;
    }
    
    /* Masquer le texte sur mobile, garder juste les drapeaux */
    .language-switcher button span {
        display: none;
    }
}

/* Animation de changement de langue */
.fade-out {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.fade-in {
    opacity: 1;
    transition: opacity 0.2s ease;
}

