/**
 * ════════════════════════════════════════════════════════════════
 * SÉLECTEUR DE LANGUE - STYLES
 * ════════════════════════════════════════════════════════════════
 */

.language-toggle {
    position: relative;
    display: inline-block;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-button:hover {
    background: #e0e0e0;
    border-color: #d0d0d0;
    transform: translateY(-1px);
}

.language-flag {
    font-size: 18px;
    line-height: 1;
}

.language-text {
    font-size: 13px;
    font-weight: 700;
}

/* Menu déroulant */
.language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.language-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: left;
}

.language-option:hover {
    background: #f8f9fa;
}

.language-option:active {
    background: #e9ecef;
}

.language-option .language-flag {
    font-size: 20px;
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
    .language-button {
        background: #333;
        border-color: #444;
        color: #e0e0e0;
    }

    .language-button:hover {
        background: #444;
        border-color: #555;
    }

    .language-menu {
        background: #2a2a2a;
        border-color: #444;
    }

    .language-option {
        color: #e0e0e0;
    }

    .language-option:hover {
        background: #333;
    }

    .language-option:active {
        background: #3a3a3a;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .language-button {
        padding: 6px 10px;
    }

    .language-text {
        font-size: 12px;
    }

    .language-menu {
        min-width: 140px;
    }

    .language-option {
        padding: 10px 12px;
        font-size: 13px;
    }
}
