@font-face {
    font-family: 'JokkerTRIALVF';
    src: url('MEDIA/FONT/JokkerTRIALVF.woff2') format('woff2'),
         url('MEDIA/FONT/JokkerTRIALVF.ttf') format('truetype');
    font-weight: 450;
  }

/* ============================= */
/* 🌍 RÉINITIALISATION GLOBALE */
/* ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Cache totalement la barre de scroll sur tous les navigateurs */
body {
    scrollbar-width: none; /* Pour Firefox */
}

body::-webkit-scrollbar {
    display: none; /* Pour Chrome, Safari et Edge */
}

html, body {
    height: 100%;
    width: 100%;
    font-family: 'JokkerTRIALVF', sans-serif;
    background-color: white;
}

/* ============================= */
/* 🔝 HEADER & NAVIGATION */
/* ============================= */
.header {
    margin-left: 4px;
    margin-right: 4px;
    margin-bottom: 4px;
    margin-top: 3px;
    position: fixed;
    width: 99.45%;
    z-index: 1000;
    background-color: transparent;
}

.menu {
    display: flex;
    justify-content: space-between;
    mix-blend-mode: difference;
}

.menu a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-size: 16px;
    font-weight: 450;
    font-family: 'JokkerTRIALVF', sans-serif;
}


.lien:hover{
    opacity: 60%;
}

/* ============================= */
/* 🏗️ STRUCTURE PRINCIPALE */
/* ============================= */
.main {
    display: flex;
    justify-content: space-between;
    margin: 4px;
    margin-top: 40px;
}

.main p{
    display: flex;
    justify-content:space-between
}

/* ============================= */
/* 📌 SOMMAIRE (LIENS VERS PROJETS) */
/* ============================= */
.texte {
    display: flex;
    justify-content: start;
    position: fixed;
    z-index: 1000;
    max-width: 40vw;
}

.texte p {
    text-decoration: none;
    color: black;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    max-width: 22vw;
    margin-right: 10px;
}

/* ============================= */
/* 🖼️ PROJETS (LISTE DES BOÎTES CLIQUABLES) */
/* ============================= */
.images {
    flex-grow: 1;
    justify-content: end;
    gap: 0px;
    margin-bottom: 0px;
    display: flex;
    flex-direction: column;
    align-items: end;
}

.images img{
    max-width: 97vh;
    display: flex;
    flex-direction: column;


}

.images video{
    max-width: 97vh;
    display: flex;
    flex-direction: column;


}


.rangée {
    display: flex;
    justify-content: end;
    gap: 4px;
    margin-bottom: 40px;
}

/* Styles des boîtes devenues cliquables */
.box {
    display: flex;
    flex-direction: column;
    align-items: start;
    text-decoration: none;
    color: black;
}

.box img {
    height: 55vh;
}

/* Effet au survol */
.box:hover img {
    opacity: 80%;
}

.box p {
    margin-top: 4px;
    font-size: 16px;
    text-align: left;
    
}


@media screen and (max-width: 768px) { 
    /* Ajuste le header pour bien prendre toute la largeur */
    .header {
        position: relative; /* Enlève le `fixed` */
        width: calc(100% - 8px);
        margin: 3px 4px 4px 4px;
    }

    /* Réduction globale de toutes les typographies à 12px en mode mobile */
    body, p, a, .menu a, .sommaire a, .box p, h1, h2, h3, h4, h5, h6 {
        font-size: 12px !important;
    }

    /* Texte en deux colonnes égales */
    .texte {
        flex-wrap: wrap;
        justify-content: space-between;
        width: 100vw;
        gap: 4px;
        margin-bottom: 10px;
        position: relative;
        min-width: 100vw;
        max-width: 100vw;
    }

    .texte p {
        text-align: left;
        margin: 0;
        margin-top: 12px;
        max-width: 100vw;
    }

    /* Médias en dessous, occupant toute la largeur */
    .images {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }

    .images img,
    .images video {
        width: 100%; /* Prend toute la largeur */
        height: auto;
        
    }

    video {
        display: block !important;
        width: 100%;
      }

    .main{
        display: flex;
        flex-direction: column;
    }
}
