/* Réinitialisation pour éviter les conflits */
.unique-topbar-2023, .unique-topbar-wrapper, .unique-topbar-menu, .unique-topbar-link {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}

/* Style de la barre de navigation - Masquée par défaut */
.unique-topbar-2023 {
    background-color: #009e49; /* Vert du drapeau du Burkina Faso */
    color: white;
    padding: 8px 0;
    overflow-x: auto;
    white-space: nowrap;
    overscroll-behavior-x: contain;
    display: none; /* Masqué par défaut */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.unique-topbar-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    white-space: nowrap;
    padding: 0 5px;
    -webkit-overflow-scrolling: touch;
}

/* Menu principal */
.unique-topbar-menu {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    white-space: nowrap;
    width: 100%;
    gap: 5px;
}

.unique-topbar-link {
    color: #fcd116; /* Jaune/Or du drapeau */
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    border-radius: 15px;
}

.unique-topbar-link:hover, .unique-topbar-link:active {
    background-color: #00833d; /* Vert plus foncé pour le hover */
    color: white;
    transform: translateY(-2px);
}

/* Styles du dropdown */
.unique-topbar-dropdown {
    position: relative;
}

.unique-topbar-submenu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    background-color: #009e49;
    min-width: 150px;
    border-radius: 10px;
    padding: 5px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.unique-topbar-dropdown:hover .unique-topbar-submenu {
    display: block;
}

.unique-topbar-sublink {
    color: #fcd116;
    font-size: 11px;
    padding: 8px 15px;
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.unique-topbar-sublink:hover {
    background-color: #00833d;
    color: white;
}

/* Reset body pour mobile */
body {
    padding-bottom: 50px; /* Espace pour la navbar fixe */
}

/* Media queries : Afficher uniquement sur téléphone */
@media screen and (max-width: 768px) {
    .unique-topbar-2023 {
        display: block;
    }
    
    .unique-topbar-menu {
        justify-content: space-between;
    }
    
    .unique-topbar-link {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .unique-topbar-submenu {
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Pour les très petits écrans */
@media screen and (max-width: 360px) {
    .unique-topbar-link {
        font-size: 10px;
        padding: 5px 8px;
    }
}