/* Importation des polices */
@font-face {
    font-family: 'futurabold';
    src: url('font/Futura-Bold-font.ttf') format('truetype');
}

@font-face {
    font-family: 'futurabolditalic';
    src: url('font/Futura-Bold-Italic-font.ttf') format('truetype');
}

@font-face {
    font-family: 'futurabook';
    src: url('font/Futura-Book-font.ttf') format('truetype');
}

@font-face {
    font-family: 'futurabookitalic';
    src: url('font/Futura-Book-Italic-font.ttf') format('truetype');
}

@font-face {
    font-family: 'romie';
    src: url('font/Romie-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'romieitalic';
    src: url('font/Romie-Italic.ttf') format('truetype');
}

@font-face {
    font-family: 'latoregular';
    src: url('font/Lato-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'latolight';
    src: url('font/Lato-Light.ttf') format('truetype');
}

/* Styles globaux */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    margin: 0;
    height: 100vh;
    overflow: hidden;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 1vh;
    left: 1vw;
    width: 100vw;
    height: 3vh;
    padding: 1vw;
    font-family: 'arial';
    font-size: 0.8em;
    text-decoration: none;
    z-index: 1;
    text-transform: uppercase;
}

#menu {
    display: flex;
    gap: 1vw;
}

a {
    text-decoration: none;
    color: #888888;
    font-family: 'arial';
    transition: color 0.3s;
    /* rend le changement fluide */
}

a:hover {
    color: #5590ff;
    /* couleur quand la souris passe dessus */
}


/* Section About */

main {
    height: 100vh;
    display: flex;
}

#prez-about {
    text-align: justify;
    text-align-last: left;
    font-family: 'arial';
    color: #888888;
    line-height: 1.2;
    font-size: 0.9em;
    margin-left: 2vw;
    margin-top: 8vh;
    width: 21vw;
}

.about-text {
    max-width: 50%;
}

#article_about {
    width: auto;
    margin-top: 23vh;
}

#trois_photos {
    display: block;
    margin-left: 4vw;
}

#trois_photos img {
    max-height: 52vh;
    /* Limite la hauteur */
    width: auto;
    filter: grayscale(100%);
    object-fit: contain;

}

#smiski {
    width: 9vw;
    height: auto;
    margin-top: 18%;
}


/* Section Images */
#images {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 2vw;
    height: 100vh;
    position: relative;
}

#prez {
    position: absolute;
    margin-top: 8vh;
    margin-left: 2vw;
    text-align: left;
    font-family: 'arial';
    font-size: 0.9em;
    width: 26vw;
    max-width: 90%;
    color: #888888;
}

/* Section Projets */

#pdf_portfolio {
    font-family: 'arial';
    font-size: 0.9em;
    color: #868686;
    width: 20vw;
    /* ou 100% si tu veux */
    margin-top: 8vh;
    margin-left: 2vw;
    /* espace sous le header si besoin */
    animation: fadeInOut 17s infinite;
}

@keyframes fadeInOut {
    0% {
        opacity: 1;
    }

    /* visible au début */
    20% {
        opacity: 0;
    }

    /* disparaît progressivement */
    88% {
        opacity: 0;
    }

    /* reste caché */
    100% {
        opacity: 1;
    }

    /* réapparaît */
}

#article_projects {
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    height: 100vh;
    scroll-behavior: smooth;
    position: relative;
}

#all_projects {
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    height: 100vh;
    scroll-behavior: smooth;
    position: relative;
    padding-bottom: 50vh;
    padding-top: 0vh;
}

.div_projet {
    height: auto;
    /* ou une taille fixe si tu préfères */
    scroll-snap-align: center;
    scroll-snap-stop: always;
    margin-top: 24vh;
    display: flex;
    justify-content: center;
    position: relative;
}

.description_projet {
    position: absolute;
    top: 2vh;
    left: 2vw;
    height: 20vw;
    z-index: 100;
    mix-blend-mode: difference;
    opacity: 1;
}

h2 {
    font-family: 'arial';
    font-weight: 500;
    font-size: 1.4em;
    color: #868686;
    flex: 0 0 auto;
    text-transform: uppercase;
}

h3 {
    font-family: 'arial';
    font-size: 0.7em;
    text-align: right;
    color: #868686;
    padding-top: 2vh;
}

.texte {
    padding-top: 4vh;
    font-family: 'arial';
    width: 20vw;
    font-size: 76%;
    line-height: 1.5em;
    color: #868686;
    z-index: 100;
}


/* Conteneur des images de projet */
.conteneur {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    width: 100vw;
    height: 60vh;
    scroll-snap-type: x mandatory;
    padding-left: 28vw;
}

video {
    height: 60vh;
}


.img_horizontal {
    flex: 0 0 auto;
    height: 100%;
    position: relative;
    z-index: 1;
}

.conteneur img {
    height: 100%;
    width: auto;
    object-fit: cover;
}

/* Suppression de la scrollbar */
#conteneur::-webkit-scrollbar {
    display: none;
}

.video_projet {
    height: 60vh;
}

#section_patchwork {
    position: relative;
    display: flex;
    align-items: flex-start;
    /* Aligner les enfants (texte et images) en haut */
    gap: 1vw;
    text-align: left;
    font-family: 'arial';
    margin-top: 6vh;
    font-size: 0.9em;
    height: 17vh;
}

#description_patchwork {
    height: auto;
    position: relative;
    z-index: 100;
    mix-blend-mode: difference;
    opacity: 1;
    width: 20vw;
    margin-left: 2vw;
    margin-top: 2vh;
}

#texte_patchwork {
    font-family: 'arial';
    line-height: 1.2em;
    color: #868686;
    width: 20vw;
    position: fixed;
}

#references {
    width: 60vw;
    height: 10vh;
    margin-top: 2vh;
    margin-left: 8vh;
    display: flex;
    /* active le mode flex */
    flex-direction: row;
    /* aligne les éléments horizontalement */
    justify-content: space-between;
    font-size: 1em;
}

#texte_ref {
    line-height: 1.1em;
    font-family: 'latoregular';
    color: #868686;
    width: 15vw;
    margin-left: 0;
}

#texte_ref2 {
    line-height: 1.1em;
    font-family: 'latoregular';
    color: #868686;
    width: 15vw;
    margin: 0;
}

#texte_ref3 {
    line-height: 1.1em;
    font-family: 'latoregular';
    color: #868686;
    width: 13vw;
    margin: 0;
}

#patch_img {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1vw;
    padding-left: 28vw;
    height: 60vh;
    /* Ajoute un peu d'espace initial si besoin */
}

#patch_img img {
    height: 60vh;
    width: auto;
    object-fit: cover;
    flex-shrink: 0;
}
