/* Fichier CSS de base pour toutes les pages du site */
:root {
    --primary-color: #990047;
    --secondary-color: #4CAF50;
    --background-color: #f4f4f4;
    --text-border: #555555;
    --text-color: #333;
    --sidebar-bg: #ffffff;
    --header-text: #ffffff;
    --tab-active-color: #4CAF50;
    --tab-hover-color: #45a049;
    --button-color: #4CAF50;
    --button-hover: #45a049;
    --input-bg: #ffffff;
    --input-border: #cccccc;
    --input-border-top:#888;
}

[data-theme="dark"] {
    --primary-color: #990047;
    --secondary-color: #3a8a3d;
    --background-color: #222222;
    --text-color: #f4f4f4;
    --text-border: #555555;
    --sidebar-bg: #333333;
    --header-text: #ffffff;
    --tab-active-color: #3a8a3d;
    --tab-hover-color: #327a35;
    --button-color: #3a8a3d;
    --button-hover: #327a35;
    --input-bg: #444444;
    --input-border: #555555;
    --input-border-top:#888;
}

/* Style du sélecteur de langue */
.language-selector {
    display: flex;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    padding: 5px;
    margin: 10px 0;
    width: fit-content;
    z-index: 1000;
}

.lang-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 30px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.lang-link:hover {
    color: #fff;
}

.lang-link.active {
    background-color: #F2F3AE;
    color: #333;
}

/* Adaptation pour le mode sombre */
[data-theme="dark"] .language-selector {
    background-color: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .lang-link {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .lang-link:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .lang-link.active {
    background-color: #F2F3AE;
    color: #333;
}

/* Container pour le sélecteur de langue et l'icône de thème */
.lang-theme-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Style de l'icône du thème */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

/* Style responsive */
@media (max-width: 768px) {
    header {
        position: relative;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
    }

    .lang-theme-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        margin: 10px 0;
    }

    .language-selector {
        display: inline-flex;
        margin: 0;
    }
    
    .lang-link {
        width: 36px;
        height: 32px;
        font-size: 0.8rem;
    }

    .theme-toggle {
        display: flex;
        height: 32px;
        width: 36px;
        margin: 0;
        padding: 0;
        align-items: center;
        justify-content: center;
    }
}
