/* Style du sélecteur de langue */
.lang-wrapper {
    position: relative;
    min-width: 120px;
    z-index: 1000;
}

.lang-hidden-select {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 2;
}

.lang-custom-btn {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.lang-custom-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lang-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.lang-arrow {
    margin-left: 8px;
    font-size: 0.7em;
    opacity: 0.7;
}

/* Style pour le RTL */
[dir="rtl"] .lang-arrow {
    margin-left: 0;
    margin-right: 8px;
}

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

/* Style pour le menu déroulant */
.language-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-top: 5px;
    z-index: 1001;
}

.language-option {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

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

/* Style pour le mode sombre */
.dark .lang-custom-btn {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .language-options {
    background: #2d3748;
    color: white;
}

.dark .language-option:hover {
    background: #4a5568;
}
