/* Modal de sélection de langue */
.language-selector-modal {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px; /* Contrainte PC */
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 30, 0.95), rgba(20, 20, 40, 0.98));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

.language-selector-modal.hidden {
    display: none;
}

.language-selector-content {
    background: linear-gradient(135deg, #fff8e1, #fffaeb);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s ease-out;
}

.language-selector-title {
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    color: #c9a66b;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.language-selector-subtitle {
    text-align: center;
    font-size: 1.1em;
    color: #8b7355;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 400px;
    padding-right: 10px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scroll-behavior: smooth;
}15px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0
.language-options::-webkit-scrollbar-track {
    background: rgba(201, 166, 107, 0.1);
    border-radius: 10px;
}

.language-options::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #c9a66b, #d4af37);
    border-radius: 10px;
}

.language-options::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #d4af37, #c9a66b);
}

.language-option {
    background: linear-gradient(135deg, #ffffff, #f5f5f5);
    border: 3px solid #c9a66b;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.language-option:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(201, 166, 107, 0.4);
    border-color: #d4af37;
}

.language-option:active {
    transform: translateY(0) scale(0.98);
}

.language-option-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-flag 2.5em;
    line-height: 1;
}

.language-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.language-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #5a4a3a;
}

.language-native {
    font-size: 0.85
    font-size: 0.9em;
    color: #8b7355;
}

.language-check {
    font-size: 1.5em;
    color: #4caf50;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.language-option.selected .language-check {
    opacity: 1;
}
option.selected {
    border-color: #4caf50;
    background: linear-gradient(135deg, #f1f8f4, #e8f5e9);
}

.language-continue-btn {
    margin-top: 0;
    flex-shrink: 0tn {
    margin-top: 30px;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #c9a66b, #d4af37);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 166, 107, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.language-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 166, 107, 0.5);
}

.language-continue-btn:active {
    transform: translateY(0);
}

.language-continue-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Classe helper pour cacher des éléments */
.hidden {
    display: none !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Sélecteur de langue compact dans le header des trophées */
.trophies-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-switcher-compact {
    display: flex;
    gap: 5px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.lang-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: transparent;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.lang-btn:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.lang-btn.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .language-selector-content {
        padding: 30px 20px;
    }
    
    .language-selector-title {
        font-size: 1.6em;
    }
    
    .language-flag {
        font-size: 2.5em;
    }
    
    .language-name {
        font-size: 1.2em;
    }
    
    .lang-btn {
        width: 30px;
        height: 30px;
        font-size: 1em;
    }
}
