@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700&display=swap');

* {
    font-family: 'Inter', sans-serif;
}

* {
    /*cursor: auto;*/
}

/* ------------------------------------------------BODY------------------------------------------------ */

body, p, span, h1, h2, h3, h4, h5, h6 {
    cursor: default;
}

a, button, input, textarea, select, label {
    cursor: crosshair;
}

body {
    background-color: black;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
}

html, body {
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ------------------------------------------------FOND VIDEO------------------------------------------------ */

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}
.video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content {
    position: relative;
    color: white;
    text-align: center;
    z-index: 1;
}

/* ------------------------------------------------SECTION1------------------------------------------------ */

.header {
    width: 100%;
    height: 5vh;
    background-color: transparent;
    border-bottom: 1px solid white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    font-size: 1em;
    flex-shrink: 0;
    padding: 0 20px;
    box-sizing: border-box;
}

.header-left {
    text-align: left;
    color: white;
    transition: 0.1s ease-in-out;
}

.samuel-amato {
    text-align: left;
    color: white;
    opacity: 100%;
    font-weight: 400;
    transition: 0.1s ease-in-out;
    text-decoration: none;
}
.samuel-amato a {
    text-decoration: none;
    color: inherit;
}
.samuel-amato a:visited {
    color: inherit;
}

.header-left-cta {
    text-align: left;
    color: white;
    opacity: 35%;
    font-weight: 300;
    transition: 0.1s ease-in-out;
    text-decoration: none;
}
.header-left-cta:hover {
    opacity: 100%;
    font-weight: 400;
}
.header-left-cta a {
    text-decoration: none;
    color: inherit;
}
.header-left-cta a:visited {
    color: inherit;
}

.header-left-afk {
    text-align: left;
    color: white;
    opacity: 35%;
    font-weight: 300;
    transition: 0.1s ease-in-out;
    text-decoration: none;
}

.header-right {
    text-align: right;
    color: white;
    opacity: 35%;
    font-size: 1em;
    font-weight: 300;
    transition: 0.1s ease-in-out;
}
.header-right:hover {
    color: #white;
    opacity: 100%;
    font-weight: 400;
}
.header-right a {
    text-decoration: none;
    color: inherit;
}
.header-right a:visited {
    color: inherit;
}

.header-right-afk {
    text-align: right;
    color: white;
    opacity: 35%;
    font-size: 1em;
    font-weight: 300;
}

/* ------------------------------------------------SECTION2------------------------------------------------ */

.visu-section {
    width: 100%;
    height: 30vh;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.visu-section-index {
    width: 100%;
    height: 90vh;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 0px solid red;
}

#visu-image {
    max-height: 60%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

.desc-section {
    width: 100%;
    height: 13vh;
    background-color: transparent;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
    white-space: nowrap;
}

.projet-desc {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1em;
    padding: 20px;
    box-sizing: border-box;
    line-height: 0.85;
}
.projet-desc {
    width: 100%;
    background-color: transparent;
    border: 0px solid red;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
    text-align: left;
    font-weight: 300;
}
.projet-desc a {
    margin-bottom: 0px;
}

.projet-title {
    font-size: 4em;
    font-weight: 400;
    display: inline-block;
    transition: font-size 0.1s ease-in-out;
}

.projet-title-about {
    font-size: 4em;
    font-weight: 400;
    display: inline-block;
    transition: font-size 0.1s ease-in-out;
}

/* ------------------------------------------------SECTION2-ABOUT------------------------------------------------ */

.about-section {
    display: flex;
    flex-wrap: wrap;
    width: 100vw;
    height: 90vh;
    border-top: 0px solid red;
    color: white;
}

.about-section-hidden {
    display: none;
    flex-wrap: wrap;
    width: 100vw;
    height: 90vh;
    border-top: 0px solid red;
    color: white;
}

.about-box-left {
    width: 50%;
    height: 25%;
    box-sizing: border-box;
    background-color: transparent;
    border: 0px solid red;
    border-top: 0px solid white;
    border-bottom: 0px solid white;
}
.about-box-left::-webkit-scrollbar {
    display: none;
}

.about-box-left a {
    text-decoration: none;
    color: inherit;
}
.about-box-left a:visited {
    color: inherit;
}

.about-box-right {
    width: 50%;
    height: 25%;
    box-sizing: border-box;
    background-color: transparent;
    border: 0px solid red;
    border-top: 0px solid white;
    border-bottom: 1px solid white;
    padding-top: 20px;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
    overflow-y: auto;
    display: block;
    transition: font-size 0.1s ease-in-out;
}
.about-box-right::-webkit-scrollbar {
    display: none;
}
.about-box-right a {
    text-decoration: none;
    color: inherit;
}
.about-box-right a:visited {
    color: inherit;
}

.about-box-right-4-main {
    width: 50%;
    height: 25%;
    box-sizing: border-box;
    background-color: transparent;
    border: 0px solid red;
    border-top: 0px solid white;
    border-bottom: 1px solid white;
    align-items: flex-start; /* Aligne en haut par défaut */
    justify-content: flex-start;
    overflow: hidden;
    display: flex;
    flex-wrap: nowrap;
    transition: font-size 0.1s ease-in-out;
}
.about-box-right-4-main::-webkit-scrollbar {
    display: none;
}
.about-box-right-4-main a {
    text-decoration: none;
    color: inherit;
}
.about-box-right-4-main a:visited {
    color: inherit;
}

.about-box-right-123 {
    width: 25%;
    height: 100%;
    background-color: transparent;
    border: 0px solid green;
    border-bottom: 0px solid white;
    padding-top: 20px;
    align-items: flex-start; /* Centrer le texte verticalement */
    overflow: hidden;
    overflow-y: auto;
    display: flex; /* Utiliser flexbox pour mieux contrôler l'alignement */
    flex-direction: column; /* Pour garder les éléments en colonne */
    transition: 0.1s ease-in-out;
}
.about-box-right-123::-webkit-scrollbar {
    display: none;
}
.about-box-right-123 a {
    text-decoration: none;
    color: inherit;
}
.about-box-right-123 a:visited {
    color: inherit;
}

.about-box-right-4 {
    width: 25%;
    height: 100%;
    background-color: transparent;
    border: 0px solid green;
    border-bottom: 0px solid white;
    padding-left: 0px;
    align-items: flex-start; /* Centrer le texte verticalement */
    overflow: hidden;
    overflow-y: auto;
    display: flex; /* Utiliser flexbox pour mieux contrôler l'alignement */
    flex-direction: column; /* Pour garder les éléments en colonne */
    transition: font-size 0.1s ease-in-out;
}
.about-box-right-4::-webkit-scrollbar {
    display: none;
}
.about-box-right-4 a {
    text-decoration: none;
    color: inherit;
}
.about-box-right-4 a:visited {
    color: inherit;
}

#az-text, #more-text {
    font-style: italic;
    opacity: 0.35;
    color: inherit; /* Assurez-vous que la couleur est toujours correcte */
}

.about-box-right-end {
    width: 50%;
    height: 25%;
    box-sizing: border-box;
    background-color: transparent;
    border: 0px solid red;
    border-top: 0px solid white;
    padding-top: 20px;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
    overflow-y: auto;
    display: block;
    transition: font-size 0.1s ease-in-out;
}
.about-box-right-end::-webkit-scrollbar {
    display: none;
}
.about-box-right-end a {
    text-decoration: none;
    color: inherit;
}
.about-box-right-end a:visited {
    color: inherit;
}

/* ------------------------------------------------SECTION2.5-CREDITS------------------------------------------------ */

.credits-section {
    width: 100%;
    height: 5vh;
    background-color: transparent;
    border-top: 1px solid white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
}

.credits-content {
    color: white;
    font-size: 1em;
    font-weight: 300;
}

.credits-left, .credits-center, .credits-right {
    color: white;
    font-size: 1em;
    font-weight: 300;
}
.credits-center {
    flex-grow: 1;
    text-align: center;
}

.credits-left {
    text-align: right;
    color: white;
    opacity: 35%;
    font-size: 1em;
    font-weight: 300;
    transition: 0.1s ease-in-out;
}
.credits-left:hover {
    color: #white;
    opacity: 100%;
    font-weight: 400;
}
.credits-left a {
    text-decoration: none;
    color: inherit;
}
.credits-left a:visited {
    color: inherit;
}

.credits-center {
    flex-grow: 1;
    text-align: center;
    color: white;
    opacity: 35%;
    font-size: 1em;
    font-weight: 300;
    transition: 0.1s ease-in-out;
}
.credits-center:hover {
    color: #white;
    opacity: 100%;
    font-weight: 400;
}
.credits-center a {
    text-decoration: none;
    color: inherit;
}
.credits-center a:visited {
    color: inherit;
}

.credits-right {
    text-align: right;
    color: white;
    opacity: 35%;
    font-size: 1em;
    font-weight: 300;
    transition: 0.1s ease-in-out;
}
.credits-right:hover {
    color: #white;
    opacity: 100%;
    font-weight: 400;
}
.credits-right a {
    text-decoration: none;
    color: inherit;
}
.credits-right a:visited {
    color: inherit;
}

/* ------------------------------------------------SECTION3------------------------------------------------ */

.projet-section {
    width: 100%;
    height: 60vh;
    background-color: transparent;
    border-top: 1px solid white;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scroll-behavior: smooth;
    box-sizing: border-box;
    flex-grow: 0;
    scrollbar-width: none;
}
.projet-section::-webkit-scrollbar {
    display: none;
}

.projet-visu-section {
    width: 100%;
    height: 72vh;
    background-color: transparent;
    border-top: 1px solid white;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    scroll-behavior: smooth;
    box-sizing: border-box;
    position: relative;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
    flex-grow: 0;
    scrollbar-width: none;
    cursor: none;
}
.projet-visu-section::-webkit-scrollbar {
    display: none;
}

.projet-visu-section-phone {
    width: 0%;
    height: 0vh;  /* Ajuste en fonction de la hauteur souhaitée */
    padding: 7.5px 15px; /* 10px en haut et bas, 20px à gauche et droite */
    overflow-y: auto;  /* Permet de faire défiler verticalement */
    scroll-behavior: smooth;  /* Pour un défilement fluide */
    display: flex;
    flex-direction: column;  /* Empile les médias */
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
}
.projet-visu-section-phone video,
.projet-visu-section-phone img {
    width: 100%;         /* Prendre toute la largeur du conteneur */
    height: auto;        /* Ajuster la hauteur pour garder le ratio */
    object-fit: contain; /* Garder le ratio des vidéos/images */
    margin: 7.5px 0;      /* Espacement entre chaque élément */
}
.projet-visu-section-phone::-webkit-scrollbar {
    display: none;
}

.projet-visu-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

.custom-cursor {
    position: fixed;
    font-size: 16px;
    font-weight: 400;
    color: white;
    pointer-events: none;
    z-index: 1000;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    opacity: 0;
    transition: opacity 0.1s ease, transform 0.1s ease-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide img,
.slide video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

.projet-sous-section {
    width: 100%;
    height: 10%;
    background-color: transparent;
    border-bottom: 1px solid white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    font-size: 1.2em;
    flex-shrink: 0;
    padding: 0 20px;
    box-sizing: border-box;
}

.projet-sous-section-left {
    text-align: left;
    color: white;
    transition: 0.1s ease-in-out;
    font-weight: 300;
}
.projet-sous-section-left:hover {
    padding: 0 3px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    font-weight: 400;
}
.projet-sous-section-left.dimmed {
    color: #4E4E4E;
    filter: blur(2px);
}
.projet-sous-section-left a {
    text-decoration: none;
    color: inherit;
}
.projet-sous-section-left a:visited {
    color: inherit;
}

.projet-sous-section-right {
    text-align: right;
    color: #4E4E4E;
    font-size: 0.75em;
    font-weight: 300;
    transition: 0.1s ease-in-out;
}

/* ------------------------------------------------SECTION4------------------------------------------------ */

.footer {
    width: 100%;
    height: 5%;
    background-color: transparent;
    border: 0px solid yellow;
}

.footer-credits {
    color: #4E4E4E;
    font-size: 1em;
    font-weight: 400;
    width: 50%;
    height: 100%;
    border: 0px solid red;
    display: flex;
    align-items: center;
    padding-left: 20px;
    box-sizing: border-box;
}

/* ------------------------------------------------SECTION4INDEX------------------------------------------------ */

.footer-index {
    width: 100%;
    height: 5%;
    background-color: transparent;
    border-top: 1px solid white;
    z-index: 10;
}

.footer-credits {
    color: white;
    opacity: 35%;
    font-size: 1em;
    font-weight: 400;
    width: 50%;
    height: 100%;
    border: 0px solid red;
    display: flex;
    align-items: center;
    padding-left: 20px;
    box-sizing: border-box;
    z-index: 10;
}

.mute-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 0px 0px;
    background-color: transparent;
    color: white;
    border: none;
    cursor: crosshair;
    font-size: 16px;
    border-radius: 0px;
}

.mute-btn:hover {
    background-color: transparent;
}

/* ------------------------------------------------HEIGHT------------------------------------------------ */

.projet-section, .visu-section, .header, .footer, .desc-section, .about-section, .footer-index, .credits-section, .desc-section, .projet-visu-section, .video-container, .visu-section-index {
    transition: height 0.1s ease-in-out;
}

/* ------------------------------------------------RESPONSIVE MAX-HEIGHT 1500------------------------------------------------ */

@media (max-width: 1480px) and (max-height: 1500px){

    .projet-title {
        font-size: 3em;
}

    .projet-title-about {
        font-size: 3em;
}

    .about-box-right {
    padding: 20px;
    padding-left: 0px;
    font-size: 0.9em;
}    

    .about-box-right-4-main {
    height: 25%;
}

    .about-box-right-123 {
    width: 33%;
    height: 100%;
    padding-left: 0px;
    font-size: 0.9em;
}

    .about-box-right-4 {
    height: 100%;
    width: 10%;
    padding: 0px;
}

    .about-box-right-end {
    height: 25%;
    padding: 20px;
    padding-left: 0px;
    font-size: 0.9em;
}

}

@media (max-width: 1000px) and (max-height: 1500px){
    
    .visu-section {
        height: 0vh;
        border: 0px solid white;
}

    .projet-section {
        height: 90vh;
        border-top: 0px solid white;
}

    .projet-sous-section {
        height: 6.66666666666666666666666%;
        border-top: 0px solid white;
}

    .projet-visu-container {
        width: 0%;
        height: 0vh;
}

    .projet-visu-section-phone {
        width: 100%;
        height: 72vh;
}

    .projet-desc {
        width: 100%; /* Assure que .projet-desc occupe toute la largeur */
        padding: 20px;
        text-align: left;
        font-weight: 300;
        margin: 0; /* Retire les marges qui pourraient provoquer un décalage */
        box-sizing: border-box; /* Assure que les dimensions sont calculées avec padding */
    }

    .desc-section {
        display: flex;
        justify-content: flex-start; /* Aligne les éléments au début de la section */
        align-items: flex-start; /* Aligne les éléments en haut */
}

    .projet-title {
        font-size: 2em;
}

    .projet-title-about {
        font-size: 0em;
}

    .about-section {
        display: none;
}

    .about-section-hidden {
        display: flex;
}

    .about-box-left {
    display: none;
}

    .about-box-right {
    width: 100%;
    height: 25%;
    padding: 20px;
    font-size: 0.9em;
}    

    .about-box-right-4-main {
    width: 100%;
    height: 25%;
}

    .about-box-right-123 {
    width: 33.333333333333333333333333%;
    height: 100%;
    padding-left: 20px;
    font-size: 0.9em;
}

    .about-box-right-4 {
    width: 0%;
    height: 100%;
    padding: 0px;
}

    .about-box-right-end {
    width: 100%;
    height: 25%;
    padding: 20px;
    font-size: 0.9em;
}

}

/* ------------------------------------------------RESPONSIVE MAX-HEIGHT 900------------------------------------------------ */

@media (max-width: 1480px) and (max-height: 900px){

    .projet-title {
        font-size: 2em;
}

    .projet-title-about {
        font-size: 3em;
}

    .about-box-right {
    padding: 20px;
    padding-left: 0px;
    font-size: 0.8em;
}    

    .about-box-right-4-main {
    height: 25%;
}

    .about-box-right-123 {
    width: 25%;
    height: 100%;
    padding-left: 0px;
    font-size: 0.8em;
}

    .about-box-right-4 {
    height: 100%;
    width: 25%;
    padding: 0px;
}

    .about-box-right-end {
    height: 25%;
    padding: 20px;
    padding-left: 0px;
    font-size: 0.8em;
}

}

@media (max-width: 1000px) and (max-height: 900px){
    
    .visu-section {
        height: 0vh;
        border: 0px solid white;
}

    .projet-section {
        height: 90vh;
        border-top: 0px solid white;
}

    .projet-sous-section {
        height: 6.66666666666666666666666%;
        border-top: 0px solid white;
}

    .projet-visu-container {
        width: 0%;
        height: 0vh;
}

    .projet-visu-section-phone {
        width: 100%;
        height: 72vh;
}

    .projet-desc {
        width: 100%; /* Assure que .projet-desc occupe toute la largeur */
        padding: 20px;
        text-align: left;
        font-weight: 300;
        margin: 0; /* Retire les marges qui pourraient provoquer un décalage */
        box-sizing: border-box; /* Assure que les dimensions sont calculées avec padding */
    }

    .desc-section {
        display: flex;
        justify-content: flex-start; /* Aligne les éléments au début de la section */
        align-items: flex-start; /* Aligne les éléments en haut */
}

    .projet-title {
        font-size: 2em;
}

    .projet-title-about {
        font-size: 0em;
}

    .about-section {
        display: none;
}

    .about-section-hidden {
        display: flex;
}

    .about-box-left {
    display: none;
}

    .about-box-right {
    width: 100%;
    height: 25%;
    padding: 20px;
    font-size: 0.7em;
}    

    .about-box-right-4-main {
    width: 100%;
    height: 25%;
}

    .about-box-right-123 {
    width: 33.333333333333333333333333%;
    height: 100%;
    padding-left: 20px;
    font-size: 0.7em;
}

    .about-box-right-4 {
    width: 0%;
    height: 100%;
    padding: 0px;
}

    .about-box-right-end {
    width: 100%;
    height: 25%;
    padding: 20px;
    font-size: 0.7em;
}

}