html {
    height: 100%;
    overflow-y: scroll;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

#main-content {
    margin-left: 240px;
    z-index: 99;
}

.projet {
    align-content: start;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr auto;
    height: 93vh;
    margin-bottom: 80px;
    scroll-snap-align: end;
    width: 100%;
}

.projet:first-child {
    padding-top: 10vh;
}

.projet a {
    grid-column: 1 / 11;
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
}

.projet a.swipe-horizontal {
    touch-action: none;
}

.projet a .container-images {
    display: flex;
    height: 100%;
    margin: 0;
    transition: transform 0.2s ease-in-out;
    z-index: 200;
}

.projet a img, .projet a video, .projet a iframe {
    display: block;
    flex: 0 0 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    width: 100%;
}

.projet h2 {
    grid-column: 1 / 4;
    margin-right: 10px;
    margin-top: 10px;
    padding-bottom: 10px;
}

.projet p {
    grid-column: 4 / 10;
    margin-top: 10px;
    padding-bottom: 10px;
    align-content: end;
}

.projet div {
    grid-column: 10 / 11;
    margin-top: 10px;
    text-align: end;
}

.projet div span {
    background-color: var(--color-text);
    cursor: pointer;
    display: inline-block;
    height: 20px;
    width: 20px;
}

.projet div span:first-child {
    margin-right: 15px;
    mask-image: url("../img/fleche-gauche.svg");
    mask-repeat: no-repeat;
    -webkit-mask-image: url("../img/fleche-gauche.svg");
}

.projet div span:nth-child(2) {
    mask-image: url("../img/fleche-droite.svg");
    mask-repeat: no-repeat;
    -webkit-mask-image: url("../img/fleche-droite.svg");
}

#cv {
    position: relative;
    scroll-margin-top: 70px;
    scroll-snap-align: start;
}

#cv p:first-child {
    font-size: var(--font-size-large);
    margin-top: 100px;
    width: 90%;
}

#cv > div {
    margin-top: 50px;
    width: 50%;
}

#cv ul li:first-child {
    margin-top: 1rem;
}

#cv ul li {
    margin-bottom: 0.5rem;
}

#cv > div div:not(.titre) {
    margin-top: 30px;
}

#cv a {
    text-decoration: underline solid var(--color-text);
}

#cv img {
    bottom: 0;
    position: absolute;
    right: 0;
    width: 23%;
}

footer {
    scroll-snap-align: end;
}



@media screen and (max-width: 810px) {
    html {
        scroll-snap-type: none;
    }

    body {
        margin: 0;
    }

    #main-content {
        margin-left: 0;
    }

    .projet {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
        height: auto;
        margin-bottom: 40px;
    }

    .projet:first-child {
        margin-top: 50px;
        padding-top: 0;
    }

    .projet a {
        grid-column: 1 / 7;
        height: 100vw;
    }

    .projet h2 {
        grid-column: 1 / 3;
        margin-left: 15px;
    }

    .projet p {
        grid-column: 3 / 6;
    }

    .projet div {
        grid-column: 6 / 7;
        margin-right: 15px;
    }

    .projet div span {
        height: 20px;
        mask-size: 80%;
        width: 20px;
    }
    
    .projet div span:first-child {
        margin-right: 5px;
    }

    #cv {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
        margin-left: 15px;
        margin-right: 15px;
    }

    #cv p:first-child {
        grid-column: 1 / 7;
        margin-top: 40px;
        width: 100%;
    }

    #cv > div {
        grid-column: 1 / 7;
        margin-top: 0;
        width: 100%;
    }

    #cv > div div:not(.titre) {
        margin-top: 20px;
    }

    #cv img {
        grid-column: 3 / 7;
        margin-top: 20px;
        position: relative;
        width: 100%;
    }

    footer {
        margin: 15px;
    }

}

