/** @format */

@import url("https://fonts.googleapis.com/css2?family=Kapakana:wght@300..400&family=Noto+Serif+JP:wght@200..900&display=swap");

@font-face {
    font-family: "Helvetica";
    src: url("./fonts/helvetica-neue-5-cufonfonts/HelveticaNeueBold.otf");
}

* {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    font-size: 16px;
}

html {
    max-width: 100%;
}

body {
    height: 10000px;
    max-width: 100vw;
    position: relative;
    overflow-x: hidden;
    cursor: url("./images/cursor.svg") 0 0, auto;
}

body {
    overflow-y: scroll; /* On garde le scroll vertical */
    scrollbar-width: none; /* Firefox : cache la barre */
}

html::-webkit-scrollbar {
    display: none; /* Chrome / Safari / Edge : cache la barre */
}

.hero {
    height: 100vh;
    width: 100%;
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #2134ff;
    /* margin-top: 70vh; */
}

.hero > * {
    line-height: 4.5rem;
}

.hero > .textContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    color: #fff;
    animation: titreHero linear forwards;
    animation-timeline: view();
    animation-range: 50% 100%;
}
@keyframes titreHero {
    to {
        scale: 0.5;
    }
}

.hero .text1 {
    font-family: "Kapakana", cursive;
    font-size: min(8rem, 18vw);
}
.hero .text2 {
    position: relative;
    font-family: "Noto Serif JP", serif;
    font-size: min(4rem, 9vw);
    font-weight: 700;
    line-height: clamp(2vw, 3rem, 3.5vw);
}

.hero > .imageContainer {
    height: 50vw;
    max-height: min(1000px, 80vh);
    aspect-ratio: 1;
    position: absolute;
    bottom: min(-15vh, -50vw);
    bottom: 0;
    left: 0;

    animation: nuageHeroTranslate linear forwards;
    animation-timeline: view();
    animation-range: 25vh 60%;

    translate: -26%;
}
.hero img {
    height: 100%;
    width: 100%;
    z-index: 211;
    animation: nuageHero 55s linear infinite;
    filter: blur(10px);
}
@keyframes nuageHeroTranslate {
    to {
        transform: translateX(-50%) translateY(-40vh);
    }
}

@keyframes nuageHero {
    0% {
        transform: rotate(0deg);
        scale: 1.2;
    }

    50% {
        scale: 1;
    }

    100% {
        transform: rotate(360deg);
        scale: 1.2;
    }
}

.turningHead {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    background-color: #ffffff;

    border-right: solid 4vw #2134ff;
    border-bottom: solid 4vw #2134ff;
    border-left: solid 4vw #2134ff;
}

.turningHead > .imageContainer {
    width: 50vw;
    max-width: 50vh;
    aspect-ratio: 1;
}

.turningHead img {
    height: 100%;
    width: 100%;
}

.turningHead > p {
    width: 81vw;
    max-width: 2000px;

    font-family: "Helvetica", serif;
    font-size: clamp(
        1rem,
        6.5041vw + 0.0285rem,
        min(4.5rem, 8vh)
    );
    text-align: left;
    color: #2134ff;
}
.turningHead > .textHaut {
    margin-top: 4.5vw;
}

.turningHead > .textBas {
    padding-bottom: 4.5vw;
}

.turningHead > p > span {
    position: relative;

    display: inline-block;

    font-family: "Helvetica", serif;
    text-shadow: 0px 0px #ffffff;
}

.turningHead > p > span > .texteSouligne {
    height: 5px;
    width: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    margin-left: 50%;
    /* background-color: #00ff00 !important; */

    animation: texteSouligneLeftRight linear forwards;
    animation-timeline: view();
    animation-range: 25vh 60%;
}
@keyframes texteSouligneLeftRight {
    to {
        width: 100%;
        margin-left: 0;
    }
}

.bandeauIncitantScrollContainerContainer {
    height: 15vw;
    min-height: 90px;
    width: 100%;
    position: relative;
    z-index: 1000;

    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    overflow-x: hidden;

    background-color: red;
}

.partieHauteCache {
    height: 50%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #2134ff;
}

.partieBasseCache {
    height: 50%;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(
        90deg,
        #3575f4,
        #2f71f4,
        #2e70f4
    );
    background-color: #2f71f4;
    background-color: red;
}

.bandeauIncitantScrollContainer {
    height: 5vw;
    max-height: 135px;

    min-height: 55px;
    width: 11501px;
    position: relative;
    z-index: 10999;

    display: flex;
    flex-direction: column;

    transform: rotate(-2.8deg);
}

.bandeauIncitantScrollContainer > .bandeauIncitantScroll {
    height: 5vw;
    max-height: 135px;

    min-height: 55px;
    width: 100%;

    position: relative;

    display: flex;
    transform: translateY(-2px);
    /* overflow: hidden; */

    background-color: rgb(26, 31, 19);
    background-color: rgb(0, 0, 0);
}

.bandeauDeScroll {
    height: 100%;
    width: 100%;
    position: absolute;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4vw;
    padding: 0 2vw;

    overflow: hidden;

    background-color: #000000;

    border-top: dashed 7px yellow;
    border-bottom: dashed 7px yellow;
}

.bandeauDeScroll > span {
    display: block;
    display: inline-block;
    font-family: "Helvetica", serif;
    font-size: clamp(30px, 2vw, 80px);
    color: #ffffff;

    white-space: nowrap;
}

.bandeauDeScroll > img {
    height: 70%;
    aspect-ratio: 1;
}

#bandeauDeScroll1 {
    justify-content: end;
    animation: slideToLeft1 18s linear infinite;
}

/* Bandeau 2 : contenu collé à gauche + défilement */
#bandeauDeScroll2 {
    justify-content: start;
    animation: slideToLeft2 18s linear infinite;
}

@keyframes slideToLeft1 {
    0% {
        transform: translateX(0%);
    }
    50% {
        transform: translateX(-100%);
    }
    50.001% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(0%);
    }
}

@keyframes slideToLeft2 {
    0% {
        transform: translateX(100%);
    }
    99.99% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}
.ciel {
    height: 400vh;
    width: 100%;
    margin-top: -1.5vw;
    /* overflow: hidden; */
    padding-top: 100px;
    background-color: red;

    background-image: url(./images/windows.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
}

/* ///////////////////////////// */

#animationTracker {
    height: 200vh;
    width: 10px;
    /* background-color: yellow; */
    position: absolute;
    left: 0%;
    animation: animationTrackerCiel linear forwards;
    animation-timeline: view();
    animation-range: 40vh 65%;
}
@keyframes animationTrackerCiel {
    to {
        left: 100%;
    }
}

.partieStickyContainer {
    height: 200vh;
    width: 100%;

    display: flex;
    justify-content: center;
}

.partieSticky {
    height: 100vh;
    width: 100%;
    position: sticky;
    top: 0px;
    display: flex;
    align-items: center;
    padding-top: 10vh;
    overflow-x: hidden;

    overflow-y: visible;
}

.ciel .textContainer {
    width: 50vw;
    margin-left: 3%;
    /* position: sticky; */
    /* top: 0; */
}

.ciel .textContainer > p {
    font-family: "Helvetica", serif;
    font-size: clamp(1rem, 5vw, 7rem);
    color: #e8e8e8;
    text-shadow: 3px 3px #000000;
}

.ciel .carteContainer {
    height: min(40vw, 60vh);
    width: 50%;
    position: relative;
    overflow: visible;
}

.ciel .carteContainer > #cardWrapper {
    height: 100%;
    aspect-ratio: 0.64853256979;
    position: absolute;
    position: relative;
    top: -20%;
    right: -30vw;

    transform: s rotate(45deg);

    transition: 0.23s;
}

.ciel .carteContainer > #cardWrapper > #imageCartePierre {
    height: 100%;
    width: 100%;
    box-shadow: 8px 8px 20px 18px #0000004a;
    border-radius: 1.5vw;
}

.tampon {
    width: 30%;
    aspect-ratio: 1;
    position: absolute;
    opacity: 0;
    transition: opacity 0.65s ease; /* durée ajustable */
}
#tampon1 {
    top: 7%;
    left: 5%;
    rotate: -29deg;
}
#tampon2 {
    top: 52%;
    left: 57%;
    rotate: 11deg;
}
#tampon3 {
    bottom: 10%;
    left: 8%;
    rotate: -24deg;
}
#tampon4 {
    top: 55%;
    left: 35%;
    rotate: -8deg;
}
#tampon5 {
    top: 31%;
    left: 8%;
    rotate: -21deg;
}
#tampon6 {
    top: 8%;
    left: 55%;
    rotate: 12deg;
}
#tampon7 {
    top: 25%;
    right: 12%;
    rotate: 15deg;
}

@media screen and (max-width: 1200px) {
    .partieSticky {
        height: 100vh;
        top: 0vh;
        padding-top: 0;

        flex-direction: column;
        justify-content: space-around;
    }

    .ciel .textContainer {
        width: 100% !important;
        margin-left: 0;
        text-align: center;
        text-wrap: balance;
    }

    .ciel .carteContainer {
        height: min(69vh, 100vw);
        width: 100%;
        transform: translateX(19vw);
    }

    .ciel .textContainer > p {
        font-family: "Helvetica", serif;
        font-size: clamp(1rem, 8vw, 4rem);
        color: #e8e8e8;
        text-shadow: 3px 3px #000000;
    }
}
