.gamme_produit {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    background-color: #f0f0f0;
}

.container-gamme {
    display: flex;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
}

.filters {
    margin-right: 20px;
    min-width: 200px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.filters h3 {
    margin-bottom: 10px;
}

.filters label {
    display: block;
    margin-bottom: 5px;
}
.filter-toggle{
    display: none;
}

.products-container {
    flex-grow: 1;
}

.results-count {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.All-products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.produc {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    width: calc(25% - 20px);
    height: 300px;
    box-sizing: border-box;
    box-shadow: 0 3px 6px rgba(0, 0, 0, .16);
    background: #e6e6e6;
    transition: all .3s ease;
    text-decoration: none;
    color: inherit;
}

.produc img {
    width: 100%;
    height: 15rem;
    object-fit: cover;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.pagination button {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 15px;
    margin: 0 5px;
    cursor: pointer;
    font-size: 1.1em;
}

.pagination .active {
    background-color: #007bff;
    color: #fff;
}

.pagination button:hover {
    background-color: #007bff;
    color: #fff;
}

.input {
    --form-radio-border: #041E42;
    appearance: auto;
    margin-right: 10px;
    width: 15px;
    height: 15px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, .16);
    border-radius: 4px;
    background: #fff;
}

/* Tablets */
@media (max-width: 1024px) {
    .produc {
        width: calc(33.333% - 20px);
    }
}

/* Style général pour les petits écrans */
@media (max-width: 768px) {
    .container-gamme {
        flex-direction: column;
        padding: 10px;
    }

    .filters {
        position: relative;
        margin-bottom: 20px;
        width: 100%;
    }

    .filter-toggle {
       
        background-color: #1B1B1B;
        color: #fff;
        border: none;
        border-radius: 5px;
        padding: 10px 15px;
        cursor: pointer;
        font-size: 3rem;
        display: flex;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .filter-toggle .icon {
        font-size: 1.2em;
    }

    .filter-content {
        display: none;
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 10px;
        box-shadow: 0 3px 6px rgba(0, 0, 0, .16);
        margin-top: 10px;
    }

    .filter-content.show {
        display: block;
        
    }

    .products-container {
        width: 100%;
    }

    .All-products {
        flex-direction: column;
        align-items: center;
    }

    .produc {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    .produc img {
        height: auto;
    }

    .pagination {
        flex-direction: row;
        align-items: center;
    }

    .pagination button {
        margin: 5px 0;
        font-size: 1em;
    }

    .input {
        width: 20px;
        height: 20px;
    }
}

@media  (min-width: 769px) and (max-width: 1024px) {
    .container-gamme {
        flex-direction: column;
        padding: 10px;
    }

    .filters {
        position: relative;
        margin-bottom: 20px;
        width: 100%;
    }
    .produc {
        width: calc(50% - 20px); 
        height: 30rem;
    }
    .produc img{
        height: 25rem;
    }

    .filter-toggle {
        width: 100%; 
    }
    .filter-toggle {
        background-color: #007bff;
        color: #fff;
        border: none;
        border-radius: 5px;
        padding: 10px 15px;
        cursor: pointer;
        font-size: 3rem;
        display: flex;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .filter-toggle .icon {
        font-size: 1.2em;
    }

    .filter-content {
        display: none;
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 10px;
        box-shadow: 0 3px 6px rgba(0, 0, 0, .16);
        margin-top: 10px;
    }

    .filter-content.show {
        display: block;
    }

} 
    