body{
    overflow: hidden;
}

@font-face {
    font-family: 'EmpherianDEMO';
    src: url(../assets/fonts/EmpherianDEMO.ttf);
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Petrona';
    src: url(../assets/fonts/Petrona-VariableFont_wght.ttf);
    font-weight: normal;
    font-style: normal;
}

.js-canvas-wrapper {
    position: relative;
}

.scene-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.5s ease;
}


.Grandtitre{
    display: block;
    font-size: 196px;
    color: rgb(255, 255, 255);
    position: absolute;
    font-family: 'EmpherianDEMO', sans-serif;
    z-index: 10;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    transition: opacity 0.5s ease;
}

.soustitre{
    display: block;
    font-size: 25px;
    color: rgb(255, 255, 255);
    position: absolute;
    font-family: 'Petrona', sans-serif;
    z-index: 10;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    transition: opacity 0.5s ease;
}

.Grandtitre.cacher{
    opacity: 0;
}

.soustitre.cacher{
    opacity: 0;
}

.canvas__wrapper {
    display: block;
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.canvas {
    width: 100% !important;

    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
}

.curtain{
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
    overflow: hidden;
}

.curtain_img{
    position: absolute;
    top: 0;
    width: 61%;
    height: 100%;
    object-fit: cover;
    transition: transform 2s ease-in-out;
}

.curtain_left{
    left: 0;
    transform: scale(-1);
}

.curtain_right {
    right: 0;
}

.curtain.open .curtain_left {
    transform: scale(-1) translateX(100%);
}

.curtain.open .curtain_right {
    transform: translateX(100%);
}

.cards{
    display: none; 
    opacity: 0;
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    
    width: fit-content;
    max-width: 80vw;
    height: auto;
    pointer-events: none;
}

.card1{
    position: relative;
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
    justify-content: center;

    width: auto; 
    height: auto;
    
    padding: 30px 60px 30px 125px; 
    
    background-color: #F2E9DE;
    border-top-left-radius: 123px;
    border-bottom-right-radius: 123px;
    border-top-right-radius: 5px;
    border-bottom-left-radius: 5px;
    pointer-events: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.card1::before{
    content: "";
    position: absolute;
    border: 1px solid #E77304;
    border-top-left-radius: 123px;
    border-bottom-right-radius: 123px;
    border-top-right-radius: 5px;
    border-bottom-left-radius: 5px;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
}

.card__description{

    width: auto; 
    max-width: 400px;
    margin-top: 15px;
    line-height: 1.4;
}

.card__auteur{
    display: flex;
    justify-content: center;
    position: absolute;
    top: -8px;
    left: 126px; 
    background-color: #F2E9DE;
    border: 1px solid #E77304;
    padding: 5px;
    font-size: 24px;
}

.img-card{
    width: 90px;
    position: absolute;
    top: -46%;
    left: 10px;
}

.card2{
    position: relative;
    display: flex;
    margin: auto;
    align-items: center;
    justify-content: center;
    width: 700px;
    height: 150px;
    background-color: #F2E9DE;

    clip-path: polygon(25% 15%, 75% 15%, 85% 50%, 75% 85%, 25% 85%, 15% 50%); /* le site : css-clip-path-generator*/
}

.card2__deco{
    position: absolute;
    display: flex;
    inset: 10px;
    justify-content: center;
    align-items: center;
    background-color: #E77304;

    clip-path: polygon(25% 15%, 75% 15%, 85% 50%, 75% 85%, 25% 85%, 15% 50%);
}

.card2__deco2{
    position: absolute;
    display: flex;
    inset: 2px;
    justify-content: center;
    align-items: center;
    background-color: #F2E9DE;

    clip-path: polygon(25% 15%, 75% 15%, 85% 50%, 75% 85%, 25% 85%, 15% 50%);
}

.card__indice{
    display: flex;
    width: 260px;

}

.page__content{
    position: relative;
}

.nav-haut{
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
}

.nav-haut__item{
    display: flex;
    width: auto;
    height: 65px;
    filter: grayscale(1);
}

.nav-haut__item.unlocked {
    filter: grayscale(0);
}

.nav-bas{
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    z-index: 2;

    transition: transform 0.3s ease-in-out; 
    cursor: pointer;
}

.nav-bas__item img{
    width: 100%;
    height: 100%;
    object-fit:contain;
}

.nav-bas__item{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
    height: 60px;
}

.nav-bas__item:hover {
    transform: scale(1.1); 
}

.nav-bas__item::after{
    content: "";
    position: absolute;
    bottom: -20px;
    width: 15px;
    height: 15px;
    border: 2px solid white;
    border-radius: 50%;
}