/********************
* CATALOGUE PAGE EX *
********************/

.main{
    margin-top: 4.5rem;
    min-height: 50vh;
    position: relative;
    padding: 0 10%;
}
.main::before{
    position: absolute;
    content: '';
    filter: brightness(70%);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-position: center;
    background-size: cover;
}
.main__titre{
    color: var(--blanc);
    padding-top: 4rem;
    position: relative;
}
.main__titre::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 3.75rem;
    height: 5px;
    background-color: var(--secondaire);
}
.main .card{
    background-color: var(--blanc);
    padding: 1.5rem;
    border-radius: 20px;
    position: absolute;
    left: 10%;
    bottom: -3rem;
    width: 80%;
    box-shadow: 0px 0px 31px rgba(0, 0, 0, 0.15);
}
.main .card__titre{
    color: var(--primaire);
}
/* Responsive desktop */
@media screen and (min-width: 1200px) {
    .main{
        margin-top: 12.5rem;
        min-height: 40vh;
    }
    .main .card{
        left: 10%;
        bottom: -3rem;
        width: 25%;
    }
}


/* Catégories */
.categories{
    margin-top: 6rem;
}
.categories ul{
    display: flex;
    overflow: auto;
    white-space: nowrap;
    padding: 0 10%;
    gap: 2rem;
}
.categories ul a{
    color: var(--primaire);
}
.categories ul a:hover{
    color: var(--secondaire);
}
.categories .active a{
    color: var(--secondaire);
    position: relative;
}
/* Enlever la scrollbar */
.categories ul {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}
.categories ul::-webkit-scrollbar
/*, .categories ul::-moz-scrollbar,
.categories ul::-ms-scrollbar  */{
    width: 0.5em;
}

.categories ul::-webkit-scrollbar-track
/*, .categories ul::-moz-scrollbar-track, 
.categories ul::-ms-scrollbar-track */{
    background-color: transparent;
}

.categories ul::-webkit-scrollbar-thumb
/*, .categories ul::-moz-scrollbar-thumb,
.categories ul::-ms-scrollbar-thumb  */
{
    background-color: transparent;
}

/* Catalogue */
.catalogue{
    display: flex;
    margin: 5rem 10%;
    margin-bottom: 15rem;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

/* Filtres */
.filtres{
    display: none;
}

/* Produits */
/* .produits{
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
} */
.produit{
    width: 100%;
    text-align: center;
    position: relative;
}
.produit__img{
    width: 100%;
    object-fit: cover;
    height: 20rem;
	border-radius: 10px;
}
.produit__titre{
    color: var(--primaire);
}
.produit__ref{
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--blanc);
    padding: 1rem;
    font-size: 2.25rem;
    font-weight: bold;
    font-family: 'Barlow', sans-serif;
    color: var(--secondaire);
    min-width: 5rem;
	border-radius: 0 0 10px 0;
}
.produit__titre{
    margin: 0.5rem 0;
}
/* Responsive tablette */
@media screen and (min-width: 750px) {
    .produit{
        width: 28%;
        text-align: center;
    }
}

/* Responsive desktop */
@media screen and (min-width: 950px) {
    .categories .active a::after{
        position: absolute;
        content: '';
        left: 50%;
        transform: translateX(-50%);
        bottom: -0.5rem;
        width: 3rem;
        height: 3px;
        background-color: var(--secondaire);
    }
    .categories ul{
        overflow: initial;
        /* justify-content: flex-end; */
        justify-content: center;
    }
    .produits{
        width: 80%;
        justify-content: flex-end;
    }
    .produit{
        width: 28%;
        text-align: center;
    }
    /* Filtres */
    .filtres{
        display: block;
    }
    .filtres fieldset{
        border: none;
    }
    .filtres fieldset > *{
        margin-bottom: 0.5rem;
    }
    .filtres fieldset legend{
        font-weight: 600;
        padding-top: 1rem;
    }
    .filtres__titre{
        color: var(--primaire);
    }
}
