/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.mobile-flag {
    display: none;
}

.desktop-flag {
    display: flex;
    padding-right: 20px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    padding-left: 20px;
    font-family: 'Stylus BT', sans-serif;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #6BA9C7;
}

.nav-links .active {
    color: #6BA9C7;
}

/* Style pour le dropdown */
.dropdown {
    position: relative;
    display: inline-block;
    z-index: 2;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f8f5f0;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Sélecteur de langue */
.language-toggle {
    align-items: center;
}

.flag {
    width: 50px;
    height: 20px;
    display: flex;
    padding-right: 20px;
}

.flag-blue,
.flag-white,
.flag-red {
    height: 100%;
    flex: 1;
}

.flag-blue {
    background-color: #0055a4;
}

.flag-white {
    background-color: #ffffff;
}

.flag-red {
    background-color: #ef4135;
}


/* Menu hamburger et navigation responsive */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 5px;
}

/* Media queries pour la version mobile */
@media (max-width: 768px) {
    .desktop-flag {
        display: none !important;
    }

    .mobile-flag {
        display: flex !important;
        justify-content: center;
        margin-top: 20px;
    }

    .navbar {
        /* S'assure que le bouton menu est bien à droite */
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        order: 1;
    }

    .menu-toggle {
        order: 3;
        margin-right: 10px;
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #f8f5f0;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 100;
        order: 2;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .dropdown {
        width: 100%;
        text-align: center; /* Centre le texte du dropdown */
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 15px;
        width: 100%; /* Assure que le contenu prend toute la largeur */
        text-align: center; /* Centre le texte du contenu dropdown */
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown > a::after {
        content: '▼';
        font-size: 12px;
        margin-left: 5px;
    }
}

.custom-wpml-language-selector {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.current-lang-flag img {
    border: 1px solid #ccc;
    border-radius: 3px;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    padding: 5px;
    white-space: nowrap;
    z-index: 9999;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.lang-dropdown .lang-flag {
    margin-right: 5px;
    display: inline-block;
}

.lang-dropdown .lang-flag img {
    border: 1px solid transparent;
    border-radius: 3px;
}

.custom-wpml-language-selector:hover .lang-dropdown {
    display: block;
}