nav {
    position: fixed;
    top: 0;
    left: 5%;
}

.spline_div {
    position: fixed;
    top: -0;
    left: -10vw;
    width: 100vw;
    height: 100vh;
    z-index: 5;
    cursor: url('../Ressource/cursor.png') 32 32, auto;
    overflow: hidden;
}

spline-viewer {
    height: 120vh;
    width: 120vw;
}


h1, h2 {
    font-size: 100px;
    font-weight: 600; 
    width: 100%;
    font-family: "Bodoni Moda", serif;
    text-align: center;
    color: white;
    margin-bottom: 0;
}

.haut, .bas {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation-duration: 2s;
    animation-fill-mode: forwards;
}

.haut {
    top: 10%;
    animation-name: fadeInRight;
}

.bas {
    bottom: 10%;
    animation-name: fadeInLeft;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(-50%);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(-50%);
    }
}

@keyframes fadeOutRight {
    from {
        opacity: 1;
        transform: translateX(-50%);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes fadeOutLeft {
    from {
        opacity: 1;
        transform: translateX(-50%);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

.haut.fade-out {
    animation-name: fadeOutLeft;
}

.bas.fade-out {
    animation-name: fadeOutRight;
}

.hidden {
    display: none;
}


/* slider */


@-webkit-keyframes scroll {
    0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    }
    100% {
    -webkit-transform: translateX(calc(-250px * 7));
    transform: translateX(calc(-250px * 7));
    }
    }
    @keyframes scroll {
    0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    }
    100% {
    -webkit-transform: translateX(calc(-250px * 7));
    transform: translateX(calc(-250px * 7));
    }
    }
    .slider {
    background-color: transparent;
    height: 200px;
    margin: auto;
    overflow: hidden;
    position: relative;
    bottom: -93px;
    left: 0vw;
    margin-top: 200px;
    width: 100vw;
    }
    .slider::before, .slider::after {
    background: linear-gradient(to right, #E4F6E2 0%, rgba(255, 255, 255, 0) 100%)    ;
    content: "";
    height: 150px;
    position: absolute;
    width: 200px;
    z-index: 2;
    }
    .slider::after {
    right: 0;
    top: 0;
    -webkit-transform: rotateZ(180deg);
    transform: rotateZ(180deg);
    }
    .slider::before {
    left: 0;
    top: 0;
    }
    .slider .slide-track {
    -webkit-animation: scroll 20s linear infinite;
    animation: scroll 20s linear infinite;
    display: flex;
    width: calc(250px * 14);
    }
    .slider .slide {
    height: 100px;
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: ease 1S;
    }

    .p_slider {
        color: white;
        font-size: 20px;
        transition: ease 1s;
    } 

    .img_slider {
        filter: invert(100%);
    }


.position_3_right {
    position: fixed;
    width: 40vh;
    left: 85%;
    top: 25vh;
    z-index: 1;
}

.position_3_left {
    position: fixed;
    width: 40vh;
    left: 15%;
    top: 25vh;
    z-index: 1;
}

.position_3_left h3 {
    font-size: 90px;
    font-weight: 600; 
    width: 100%;
    font-family: "Bodoni Moda", serif;
    text-align: center;
    color: white;
    margin-bottom: 0;
    text-align: left;
}

.position_3_right h3 {
    font-size: 90px;
    font-weight: 600; 
    width: 100%;
    font-family: "Bodoni Moda", serif;
    color: white;
    margin-bottom: 0;
    display: flex;
    justify-content: flex-end;
}

.position_3_left p {
    font-size: 20px;
    font-weight: 200; 
    width: 100%;
    font-family: "Arial", serif;
    text-align: center;
    color: white;
    margin-bottom: 0;
    text-align: left;
}

.position_3_right p {
    font-size: 20px;
    font-weight: 200; 
    width: 100%;
    font-family: "Arial", serif;
    text-align: center;
    color: white;
    margin-bottom: 0;
    text-align: right;
}

button {
    background-color: #E4F6E2;
    border: none;
    font-family: "Bodoni Moda", serif;
    color: black;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 30px;
    font-weight: bold;
    font-style: italic;
    border-radius: 0.7rem;
    padding: 1rem 6rem;
    z-index: 5;
}

.h2_class_4 {
    font-size: 100px;
    font-weight: 900; 
    width: 100%;
    font-family: "Bodoni Moda", serif;
    text-align: center;
    color: white;
    margin-bottom: 0;
}

@media (max-width: 1000px) {
    .spline_div {
        position: fixed;
        top: 0;
        width: 100vw;
        height: 100vh;
        scale: 0.5;
        cursor: url('../Ressource/cursor.png') 32 32, auto;
    }

    h1,h2 {
        font-size: 30px;
        font-weight: 600; 
        width: 100%;
        font-family: "Bodoni Moda", serif;
        text-align: center;
        color: white;
        margin-bottom: 0;
    }

    .haut{
        top: 25%;
    }

    .bas{
        bottom: 20%;
    }

    .position_3_right {
        position: fixed;
        width: 90vw;
        left: 50%;
        top: 68%;
        z-index: 1;
    }
    
    .position_3_left {
        position: fixed;
        width: 90vw;
        left: 50%;
        top: 15%;
        z-index: 1;
    }
    


    .position_3_left h3 {
        font-size: 30px;
    }
    
    .position_3_right h3 {
        font-size: 30px;
    }
    
    .position_3_left p {
        font-size: 12px;
    }
    
    .position_3_right p {
        font-size: 12px;
    }

    .slider {
        transform: scaleY(0.5);
        z-index: 10;
        background-color: #0A0F1F;
    }

    .h2_class_4 {
        font-size: 30px;
        font-weight: 900; 
        width: 100%;
        font-family: "Bodoni Moda", serif;
        text-align: center;
        color: white;
        margin-bottom: 0;
    }

    .btn_class_4 {
        margin: 0 0; 
        padding: 0.5rem 3rem;
        font-size: 20px;
        width: 80%;
        bottom: 20%;
    }

    .spline_div {
        top: -5%;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
    }
}