/*--- PAGE CONTENT ---*/
.page-content {
    margin: calc(var(--header-height) + 20px) 0 0 0; /* Récupére la hauteur du header + une marge */
}


/*--- PORTFOLIO ---*/
.portfolio {
    margin: 1.5em 0 0 0;
}

.filtres {
    margin: 0 0 15px 0;
    white-space: nowrap;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.filtres a {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin: 0 5px;
    padding: 5px 8px;
}

.filtres a:first-child {
    margin-left: 0;
}

.filtres a.active {
    font-weight: 600;
    color: var(--green-color);
    background: var(--green2-color);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 15px;
}

.projet img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
    border-radius: 5px;
    display: block;
}

.projet-nom {
    display: none;
}


/*--- RESPONSIVE  ---*/
@media (max-width: 767px) {
    .filtres {
        overflow-x: scroll; /* Pour le sroll du site */
        white-space: nowrap;

        scrollbar-width: none; /* Suppression de la barre de scroll */
    }

    .filtres::-webkit-scrollbar { /* Suppression de la barre de scroll */
        display: none;
    }
}

@media (min-width: 800px) {
    .page-content {
        margin: calc(var(--header-height) + 80px) 0 0 0;
    }

    .filtres {
        justify-content: center;
    }
}

@media (min-width: 767px) and (max-width: 1199px) {
    .grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1200px) {
    .page-content p {
        width: 60%;
    }

    .grid {
        grid: auto / repeat(4, 1fr);
    }

    .projet {
        overflow: hidden;
        position: relative;
        z-index: 1;
    }

    .projet:nth-child(4n+1), .projet:nth-child(11n+1) {
        grid-column: span 2;
    } 

    .projet img {
        height: 320px;
        aspect-ratio: unset; /* suppression du ratio carré */
        transition: .5s;
    }

    .projet:hover img {
        transform: scale(1.2); /* zoom sur img */
    }

    .before {
        content:'';
        border-radius: 5px;
        background: #041821;
        opacity: 0;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
        position: absolute;
    }

    .projet:hover .before {
        opacity: .7;
    }

    .projet-nom {
        font-weight: 700;
        color: #FFF;
        opacity: 0;
        transition: .3s ease-in-out;
        bottom: -20px;
        left: 20px;
        display: inline-block;
        position: absolute;
        z-index: 3;
    }

    .projet:hover > .projet-nom {
        opacity: 1;
        bottom: 20px;
        z-index: 3;
    }
}