*{
    margin:0;
}

body{
    cursor: crosshair;
    user-select: #000;
}

p::selection {
    color: white;
    background-color: black;
}

#cursor {
    background-color: black;
    z-index: 99999999;
    height: 40px;
    width: 40px;
    border-radius: 0;
    pointer-events: none;
    display: block;
    position: absolute;
    transform: translate(-50%, -50%) rotate(0deg);;
    transition: 0.3s;
    transition-property: clip-path;
    transition-property: transform;
    filter: invert(1);
    mix-blend-mode: difference;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);


  }

  .container:hover + #cursor{
    transition: 0.4s;
    transition-property: clip-path;
    transform: translate(-35%, -50%) rotate(90deg);
    animation: none;
    clip-path: polygon(50% 0, 50% 0, 100% 100%, 0% 100%);
  }

  @media screen and (max-width:850px) {
    
    #cursor{
        display: none;
    }
    
}

html{
    scroll-behavior: smooth;
}

a{
    color: #000;
    text-decoration: none;
    display: contents;
}

.nav-top .contact p:hover{
    background-color: #000;
    color: white;
    display: block;
}

.nav-top .bio-link:hover{
    background-color: #000;
    color: white;
}

.nav-top{
    height: 10vh;
    background-color: white;
    font-family: 'Shippori Antique B1', sans-serif;
    font-size: 0.9em;
    display: flex;
    border-bottom: #000 1px solid;
    width:100vw;
    align-items: center;
    padding : 0px 30px;
    box-sizing: border-box;
    justify-content: space-between;
    z-index: 999999;
    position: absolute;
    top: 0;
    left: 0;

}

.nav-top .title-page{
    font-size: 1em;
}

.nav-top .left .logo{
    height: 35px;
}

.nav-top .left{
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-right: 30px
}

.nav-top .contact{
    display: flex;
    border-left: #000 1px solid;
    align-items: center;
    padding-left: 30px;
    box-sizing: border-box;
    word-wrap: none;
    min-width: 300px;
    min-width: 400px;
}

.nav-top .contact p{
    margin-left: 20px;
}

.nav-side{
    width: 15vw;
    height: 90vh;
    background-color: white;
    border-right: #000 1px solid ;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-sizing: border-box;
    z-index: 999999;
    position: absolute;
    bottom: 0;
    left: 0;
    font-family: 'Shippori Antique B1', sans-serif;
}

.nav-side .domaine{
    margin-top: 30px;
    width: 75%;
}

.nav-side .domaine p:hover{
    background-color: #000;
    color: white;
    cursor:crosshair;
}

.nav-side .domaine .title{
    background-color: #000;
    color: white;
    margin-block-start: 0px;
    margin-block-end: 0px;
}

.nav-side .domaine .title-actif{
    background-color: #000;
    color: white;
    margin-block-start: 0px;
    margin-block-end: 0px;
}

.nav-side footer{
    bottom: 12px;
    position: absolute;
    background-color: white;
    padding: 5px;
    box-sizing: border-box;
    font-size: 11px;
}


@media screen and (max-width:850px){
    .nav-top{
        flex-direction: column;
        width: 50vw;
        height: 110px;
        flex-wrap: no-wrap;
        justify-content: space-between;
        border-left: #000 1px solid;
        left: auto;
        right: 0;
        padding: 0;
        overflow: hidden;
    }

    .nav-top .logo{
        border-bottom: #000 1px solid;
        padding-bottom: 2px;
        padding-top: 0px;
        width: 20vw;
        padding-left: 1vw;
        padding-right: 29vw;
    }

    .nav-top .left{
        flex-direction: column;
        align-items: flex-start;
        border-bottom: #000 1px solid;
        margin: 0;
        padding: 0 0px;
        box-sizing: border-box;
    }

    .nav-top .title-page{
        margin-left: 5px;
        display: none;
    }

    .nav-top .bio-link{
        margin-left: 1vw;
        padding-bottom: 4px;
        font-size: 13px;
    }

    .nav-top .contact{
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        min-width: auto;
        border: none;
        width: 100%;
        padding: 0 0px;
        box-sizing: border-box;
        font-size: 13px;
        background-color: white;
    }

    .nav-top .contact p{
        margin: 0;
        margin-left: 1vw;
    }



    .nav-side{
        width: 50vw;

        bottom: auto;
        left: 0;
        top: 0;
        align-items: initial;
        border-bottom: #000 1px solid;
        border-right: none;
        justify-content: space-between;
        font-size: 13px;
        height: 110px;
        overflow: hidden;

    }

    .nav-side .domaine .projet{
        display: none;
    }

    .nav-side .domaine .title{
        background-color: white;
        color: rgb(255, 255, 255);
        color: black;
        box-sizing: border-box;
        margin-left: 1vw;
    }

    .nav-side .domaine{
        margin: 0;
        width: 100%;
        border-bottom: 1px solid ;
    }

     .nav-side .domaine{
        margin: 0;
        width: 100%;
        border-bottom: 1px solid ;
    }

    .nav-side .domaine:nth-child(5){
        border-bottom: none
    }


    .nav-side footer{
        display: none;
    }
}






.container{
    width: 85vw;
    height: 90vh;
    overflow: scroll;
    scroll-snap-type: y mandatory;
    margin-left: 15vw;
    margin-top: 10vh;
    box-sizing: border-box;
    position: fixed;
}

.section{
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    border-bottom: #000 1px solid;
}

.explications{
    width: 25vw;
    background-color: white;
    height: 100%;
    position: relative;
    border-right: #000 1px solid;
}

h2{
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    display: block;
    font-size: 55px;
    font-family: 'Shippori Antique B1', sans-serif;
    text-transform:uppercase;
    line-height: 50px;
    margin-block-start: 0;
    hyphens : auto;
    width: 25vw;
}


.explications .legende{
    width: 100%;
    font-size: 30px;
    font-family: 'Shippori Antique B1', sans-serif;
    line-height: 28px;
    margin-top: 15px;
}

.explications .text{
    font-family:Arial, Helvetica, sans-serif;
    font-size: 16px;
    margin-top: 20px;
    width: 25vw;
    overflow-y: scroll ;
}

.explications .nav-proj{
    display: flex;
    height: 30px;
    position: absolute;
    bottom: 0;
    left: 0;
}

.explications .nav-proj img{
    padding: 10px;
    background-color: #000;
    width: 20px;
}

.explications .arrow-down{
    transform: rotate(180deg);
}

.explications .mobile-title{
    display: none;
}

.nav-proj img{
    width: 20px;
}

/* SLIDER  */

.slide {
    height: 90vh;
}


.wrapper {
    display: flex;
    min-width: 90vh;
    max-width: 90vh;
    flex-direction: row;
    width: fit-content;
    transform: rotate(90deg) translateY(-90vh);
    transform-origin: top left;
}
.contain-wrap {
    min-width: 90vh;
    max-width: 90vh;
    height: 60vw;
    transform: rotate(-90deg) translateX(-90vh);
    transform-origin: top left;
    overflow-x: hidden;
    -ms-overlow-style: none;
    scrollbar-width: none;
}

.container::-webkit-scrollbar {
    display: none;
}

.section::-webkit-scrollbar {
    display: none;
}

.contain-wrap::-webkit-scrollbar {
    display: none;
}

@media screen and (max-width:850px){
    
    .section{
        width: 100vw;
        overflow-x: scroll;
    }
    
    .container{
        background-color: blueviolet;
        margin-left: 0;
        height: calc(100vh - 110px);
        margin-top: 110px;
        width: 100vw;
    }

    .explications{
        width: 70vw;
    }

    h2{
        width: 70vw;
    }
    .explications .text {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 16px;
        margin-top: 20px;
        width: 70vw;
        overflow-y: scroll;
    }


    .contain-wrap {
        overflow-x: visible;
        transform: rotate(0deg) translateX(0vh);
        min-width: none;
        max-width: none;
        width: auto;
        width: fit-content;
        height: calc(100vh - 110px);
        -ms-overlow-style: none;
        scrollbar-width: none;
    }

    .wrapper{
        display: flex;
        min-width: none;
        max-width: none;
        flex-direction: row;
        width: fit-content;
        transform: rotate(0deg) translateY(0vh);
        transform-origin: top left;
    }

    .slide{
        height: calc(100vh - 110px);
        user-select: none;
    }
}

