@font-face {
    font-family: "Epilogue-M";
    src: url("../fonts/Epilogue-Medium.ttf");
}
@font-face {
    font-family: "Epilogue-R";
    src: url("../fonts/Epilogue-Regular.ttf");
}
@font-face {
    font-family: "Calson-I";
    src: url("../fonts/LibreCaslonText-Italic.ttf");
}
@font-face {
    font-family: "Calson-R";
    src: url("../fonts/LibreCaslonText-Regular.ttf");
}

*, ::after, ::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #fff;
    font-family: "Epilogue-R";
}

body.visible {
    overflow: hidden;
}


.container {
    position: relative;
    height: 100vh;
}

#Nom {
    position: fixed;
    font-family: "Epilogue-R";
    margin-top: 16px;
    margin-left: 16px;
    z-index: 10;
}

#Nom div {
    width: 275px;
    height: 28px;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

#Nom div:hover > p {
    transform: translateY(-35px)!important;
    transition: all 0.5s cubic-bezier(.37,.93,.74,1.03);
}

#Nom div p {
    transition: all 0.5s cubic-bezier(.37,.93,.74,1.03);
}

#Nom a.visible {
    color: #fff;
    z-index: 10;

}
#Nom a:visited.visible {
    color: #fff;
    z-index: 10;

}

#Nom a {
    color: #fff;
    text-decoration: none;
    z-index: 10;
}
#Nom a:visited {
    color: #fff;
    text-decoration: none;
    z-index: 10;
}


/*-------------*/
/* Bouton Menu */
/*-------------*/
#Menu {
    position: absolute;
    top: 21px;
    right: 16px;
    height: 22px;
    width: 55px;
    padding: 5px;
    overflow: hidden;
    cursor: pointer;
    z-index: 10;
}

#Menu.visible {
    color: #ffffff;
}

#Menu p:first-child {
    font-family: "Epilogue-R";
    transition: all 0.5s cubic-bezier(.37,.93,.74,1.03);
}

#Menu p:last-child {
    font-family: "Calson-I";
    font-size: 0.85em;
    transition: all 0.5s cubic-bezier(.37,.93,.74,1.03);
}

#Menu:hover > p {
    transform: translateY(-20px);
    transition: all 0.5s cubic-bezier(.37,.93,.74,1.03);
}
/*-------------*/
/* Bouton Menu */
/*-------------*/



/*-------------*/
/*     Menu    */
/*-------------*/
#menu-items {
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
    position: absolute;
    width: 100vw;
    height: 100vh;

    background-color: #00000084;
    backdrop-filter: blur(20px); /* Floutage de l'arrière-plan du bouton */
    -webkit-backdrop-filter: blur(20px); /* Pour Safari */

    transition: all 0.5s cubic-bezier(.37,.93,.74,1.03);
    z-index: -1;

}

#menu-items.visible {
    opacity: 1;
    z-index: 1;
    transition: all 0.5s cubic-bezier(.37,.93,.74,1.03);

}

#menu-items .item {
    margin-left: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 240px;
    height: 42px;
    margin-bottom: 10px;
    transition: all 2.5s cubic-bezier(.37,.93,.74,1.03);
}

#menu-items .item:hover > a.visible {
    transform: translateY(-55px);
    transition: all 0.5s cubic-bezier(.37,.93,.74,1.03);
}

#menu-items .item a {
    font-size: 3em;
    transform: translateY(80px);
    transition: all 2.5s cubic-bezier(.37,.93,.74,1.03);

}
#menu-items .item a.visible {
    transform: translateY(0px);
    transition: all 2.5s cubic-bezier(.37,.93,.74,1.03);
}

#menu-items .item a:first-child {
    font-family: "Epilogue-R";
    transition: all 0.5s cubic-bezier(.37,.93,.74,1.03);
}

#menu-items .item a:last-child {
    font-family: "Calson-I";
    font-size: 2.7em;
    transition: all 0.5s cubic-bezier(.37,.93,.74,1.03);
}

#menu-items a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(.37,.93,.74,1.03);

}
/*-------------*/
/*     Menu    */
/*-------------*/



/*--------------*/
/*    Projets   */
/*--------------*/
#projets {
    display: flex;
    height: 100%;
    padding-top: 160px;
    margin-bottom: -16px;
}

#projets #proj-gauche, #projets #proj-droite {
    flex: 1;
    max-width: 50%;
}
/*--------------*/
/*    Projets   */
/*--------------*/

/*-------------*/
/*    Gauche   */
/*-------------*/
#proj-gauche {
    position: relative;
    padding-left: 16px;
}

#sticky {
    position: fixed;
    width: 50%;
    height: 100%;
    margin-left: -16px;
}

#proj-gauche h2 {
    font-size: 2.5em;
    margin-left: 16px;
}

#proj-gauche h2 span {
    font-family: "Calson-I";
    font-size: 0.7em;
}

#proj-gauche .overlay {
    position: absolute;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 88%;
    background-size:contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none; /* Allow clicks through to underlying content */
    background-image: url('../medias/14-RCSA/1.webp');
}

#proj-gauche .overlay video {
    width: 100%;
    height: 88%;
    object-fit: contain; /* Ensure video fills the overlay */
}
/*-------------*/
/*    Gauche   */
/*-------------*/


/*-------------*/
/*    Droite   */
/*-------------*/
#proj-droite {
    display: flex;
    flex-direction: column;
    padding-left: 20%;
}

#proj-droite .projets {
    padding-bottom: 48px;
}

#proj-droite a.item-link {
    color: #fff;
    text-decoration: none;
}

#proj-droite a.item-link p {
    opacity: 0.7;
    font-family: "Calson-I";
    font-size: smaller;
}
/*-------------*/
/*    Droite   */
/*-------------*/


@media (max-width: 768px){
    #Nom div {
        width: 50vw;
        height: 60px;
    }

    #Nom div:hover > p {
        transform: translateY(-70px)!important;
    }

    .projets-container { 
        flex-direction: column;
        margin-left: -16px;
        margin-top: -16px;
        height: 100vh;
        padding-top: 30vh;
    }
    .projets {
        flex: 1; 
        opacity: 0.3; 
        transition: opacity 0.5s ease-in-out; 
    }

    .projets.active {
        opacity: 1; 
    }

    .projets .projets-inner a {
        height: fit-content;
    }
    .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        z-index: -1;
        display: none; 
        pointer-events: none; 
    }

    .progress-bar {
        height: 6px;
        width: 0;
        background-color: white;
        position: fixed;
        bottom: 0px;
        margin-left: -16px;
    }

    #proj-droite {
        padding-left: 5%;
    }

    #menu-items {
        padding-bottom: 70px;
    }
}
