/* Style pour la barre de navigation latérale */
.sidebar {
    height: 100%;
    width: 250px;
    position: fixed;
    top: 0;
    left: -250px;
    background-color: #f8f9fa;

    overflow-x: hidden;
    padding-top: 60px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 999;
    transition: left 0.3s ease;
}

.sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 18px;
    color: #343a40;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    color: #007bff;
}

.sidebar.show {
    left: 0;
}

/* Overlay pour le filtre sur le reste de la page quand la sidebar est ouverte */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.overlay.show {
    display: block;
}

/* Sous-catégories dynamiques ajoutées après le burger et les catégories */
.subcategory-links {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-left: auto;
    padding: 5px 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    text-decoration: none;
    color: #007bff;
}

.subcategory-links a:hover {
    background-color: #007bff;
    color: white;
}

/* Style du bouton fermer dans le panneau latéral */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
}
