@font-face {
    font-family: 'moderna';
    src: url('font/Moderna.woff2') format('woff2'),
        url('font/Moderna.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Futura_Bold';
    src: url('font/Futura-Bold.woff2') format('woff2'),
        url('font/Futura-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Futura';
    src: url('font/Futura-Medium.woff2') format('woff2'),
        url('font/Futura-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    height: 300vh;
    background-image: url(fond_fraise.jpg);
    background-size: 80%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: background-image 0.5s ease-in-out;
}

header {
    z-index: 99;
    position: fixed;
    height: 10vh;
    width: 100vw;
    background-color: white;
    box-shadow: 0px 0px 250px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 2.5vw;
}

header h1{
    font-family: 'moderna';
    font-size: 22pt;
    cursor: default;
}

ul{
    width: 8.5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style-type: none;
}

header nav ul li a{
    position: relative;
    color: black;
    font-family: 'Futura';
    font-size: 12pt;
    text-decoration: none;
    padding-bottom: 3px;
}

header nav ul li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background-color: black;
    left: 50%;
    bottom: 0;
    transition: width 0.4s ease, left 0.4s ease;
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
    width: 100%;
    left: 0;
}

header nav ul li a:hover {
    color: black;
    transition: 0.4s ease;
}

.carousel {
    width: 100vw;
    height: 100vh;
    position: relative;
}

.carousel>ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: 200ms opacity ease-in-out;
    transition-delay: 200ms;
}

.slide[data-active] {
    opacity: 1;
    z-index: 1;
    transition-delay: 0ms;
}

.carousel-button {
    position: fixed;
    height: 35px;
    width: 35px;
    z-index: 2;
    background: none;
    border: none;
    font-size: 4rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgb(255, 255, 255);
    cursor: pointer;
    border-radius: 25px;
    box-shadow: 0px 0px 55px black;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.fleche {
    border: solid black;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 4px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    margin-left: -2px;
    transition: border 0.2s ease-in-out;
}

.gauche {
    transform: translate(-50%, -50%) rotate(135deg);
    margin-left: 1.5px;
}

.carousel-button:hover {
    background-color: rgb(0, 0, 0);
    height: 37.5px;
    width: 37.5px;
    transition: all 0.2s ease-in-out;
}

.carousel-button:hover .fleche{
    border: solid white;
    border-width: 0 2px 2px 0;
    transition: border 0.2s ease-in-out;
}

.carousel-button.prev {
    left: 1rem;
}

.carousel-button.next {
    right: 1rem;
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
}

.div_txt{
    height: 80vh;
    width: 25vw;
    position: fixed;
    top: 50%;
    right: 20%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: end;
}

.div_txt p{
    margin: 0;
    margin-top: 25px;
    font-family: 'moderna';
    font-size: 46pt;
    text-align: end;
}

#text span, #text_2 span, #text_3 span {
    white-space: pre-line;
}

#text {
    padding-bottom: 20px;
    width: 135%;
    text-align: end;
    color: red;
    font-family: 'Futura';
    font-size: 60pt;
    border-radius: 10px;
    transition: opacity 0.3s;
}

@media screen and (max-width: 1440px) and (max-height: 1150.5px) {
    #text {
        font-size: 50pt;
    }
}

#scroll{
    z-index: 9;
    position: fixed;
    top: 80%;
    right: 42%;
    transform: translateY(-100%);
    color: white;
    text-shadow: 0 0 8px black;
    font-family: 'Futura';
    font-size: 14pt;
    transition: top 0.4s ease-out;
}

#canvas_2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
}

#text_2 {
    padding-bottom: 20px;
    width: 130%;
    text-align: end;
    color: orange;
    font-family: 'Futura';
    font-size: 60pt;
    border-radius: 10px;
    transition: opacity 0.3s;
}

@media screen and (max-width: 1440px) and (max-height: 1150.5px) {
    #text_2 {
        font-size: 50pt;
    }
}

#canvas_3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
}

#text_3 {
    padding-bottom: 20px;
    width: 150%;
    text-align: end;
    color: green;
    font-family: 'Futura';
    font-size: 60pt;
    border-radius: 10px;
    transition: opacity 0.3s;
}

@media screen and (max-width: 1440px) and (max-height: 1150.5px) {
    #text_3 {
        font-size: 50pt;
    }
}

.ss_txt{
    font-size: 36pt;
}

@media screen and (max-width: 1440px) and (max-height: 1150.5px) {
    .ss_txt {
        font-size: 26pt;
    }
}

footer {
    z-index: 99;
    position: fixed;
    bottom: 0px;
    height: 17.5vh;
    width: 100vw;
    background-color: white;
    box-shadow: 0px 0px 250px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

#foot{
    width: 100vw;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

#foot div{
    height: 100px;
}

#foot div a{
    font-family: 'Futura';
    font-size: 12pt;
    color: black;
    text-decoration: none;
    padding-bottom: 3px;
    position: relative;
}

#foot div a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background-color: black;
    left: 50%;
    bottom: 0;
    transition: width 0.4s ease, left 0.4s ease;
}

#foot div a:hover::after,
#foot div a.active::after {
    width: 100%;
    left: 0;
}

#foot div a:hover {
    color: black;
    transition: 0.4s ease;
}

#foot h3{
    font-family: 'moderna';
    font-size: 22pt;
    margin-top: 25px;
}

#foot h4{
    font-family: 'Futura_Bold';
    font-size: 16pt;
    margin-bottom: 0;
}

#contact{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
}

#contact p{
    font-size: 12pt;
}

#RSN{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
}

#sitemap{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
}

footer p{
    font-family: 'Futura';
    font-size: 8pt;
}