/* Menu principal */


/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    margin-right: 40px;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

/* Menu desktop */


.desktop-menu {
    position: relative;
    align-items: center;
    padding: 0 20px;
    height: 60px;

    display: flex;
    flex-grow: 1;
    justify-content: center;
}

.desktop-menu .menu-item {
    position: relative;
    padding: 15px 20px;
    color: #ccc;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.desktop-menu .menu-item:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Style pour les sous-menus */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #222;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 100;
}

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

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

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

/* Icône dropdown */
.dropdown::after {
    content: '▼';
    font-size: 10px;
    margin-left: 5px;
}

/* Menu hamburger pour mobile */
.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 200;
}

/* Logo mobile */
.mobile-logo {
    display: none;
    font-size: 18px;
    font-weight: bold;
}

/* Style pour le menu mobile et ses sous-menus */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.98);
    z-index: 150;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    padding: 60px 0 80px 0;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu a {
    padding: 16px 20px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    width: 85%;
    text-align: center;
    margin: 10px 0;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
}

.mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Améliorations des dropdowns mobiles */
.mobile-dropdown {
    width: 85%;
    margin: 10px 0;
}

.mobile-dropdown-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 18px;
    padding: 16px 20px;
    width: 100%;
    text-align: center;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-dropdown-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.mobile-dropdown-btn::after {
    content: '▼';
    font-size: 12px;
    margin-left: 10px;
}

.mobile-dropdown-btn.active::after {
    content: '▲';
}

/* Optimisation du contenu des dropdowns mobiles */
.mobile-dropdown-content {
    display: none;
    background-color: #1a1a1a;
    width: 100%;
    border-radius: 5px;
    margin-top: 10px;
    padding: 10px;
}

/* Style pour chaque lien dans le dropdown */
.mobile-dropdown-content a {
    display: block;
    padding: 15px;
    font-size: 16px;
    width: 100%;
    margin: 10px 0;
    text-align: center;
    background-color: #2a2a2a;
    border-radius: 5px;
    color: white;
    text-decoration: none;
}

/* État au survol */
.mobile-dropdown-content a:hover {
    background-color: #3a3a3a;
}

/* État actif au toucher */
.mobile-dropdown-content a:active {
    background-color: #444;
}

/* Maintien des sauts de ligne pour forcer l'espacement */
.mobile-dropdown-content br {
    display: block;
    content: "";
    margin: 5px 0;
}

/* Pour le premier lien du dropdown */
.mobile-dropdown-content a:first-child {
    margin-top: 0;
}

/* Pour le dernier lien du dropdown */
.mobile-dropdown-content a:last-child {
    margin-bottom: 0;
}

/* Conserver les sauts de ligne pour séparer les éléments */
.mobile-dropdown-content br {
    display: block;
    content: "";
    margin: 5px 0;
}


/* Menu inférieur pour mobile */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.bottom-nav-items {
    display: flex;
    justify-content: space-around;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    color: #ccc;
    text-decoration: none;
    flex: 1;
    transition: all 0.3s;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.bottom-nav-icon {
    font-size: 18px;
    margin-bottom: 4px;
}

.bottom-nav-text {
    font-size: 10px;
    text-transform: uppercase;
}

/* Le plus pour le menu mobile */
.more-menu {
    position: fixed;
    bottom: 60px;
    left: 0;
    width: 100%;
    background-color: #222;
    display: none;
    padding: 10px 0;
    z-index: 99;
}

.more-menu a {
    display: block;
    padding: 12px 20px;
    color: #ccc;
    text-decoration: none;
    border-bottom: 1px solid #333;
}

.more-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}



/* Media queries */
@media (max-width: 992px) {
    .desktop-menu .menu-item {
        padding: 15px 10px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .logo-container {
        display: none;
    }

    .desktop-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
    }

    .mobile-logo {
        display: block;
        position: absolute;
        left: 20px;
    }

    .bottom-nav {
        display: block;
    }


    .nav-container {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}