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



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

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

html, body {
    height: 100%;
    width: 100%;
    font-family: 'JokkerTRIALVF', sans-serif;
    scrollbar-width: none; /* Pour Firefox */
}


/* ============================= */
/* 🔝 HEADER & NAVIGATION */
/* ============================= */
.header {
    margin-left: 4px;
    margin-right: 4px;
    margin-bottom: 4px;
    margin-top: 3px;
}

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

.menu a {
    text-decoration: none;
    color: black;
    font-size: 16px;
    font-weight: 450;
}

.lien:hover{
    opacity: 60%;
    cursor: pointer;
}

/* ============================= */
/* 🏗️ STRUCTURE PRINCIPALE */
/* ============================= */
/* Modification de la structure principale pour une meilleure répartition */
.main {
    display: flex;
    justify-content: space-between;
    margin: 4px;
    margin-top: 40px;
    width: calc(100% - 8px); /* S'assure que la largeur totale respecte les marges */
}

/* Sommaire prenant environ 1/3 de l'espace */
.sommaire {
    display: flex;
    flex-direction: column;
    justify-content: start;
    width: 15%; /* Environ 1/3 de l'espace */
    flex-shrink: 0; /* Empêche le rétrécissement */
}

.sommaire a{
    text-decoration: none;
    color: black;
    font-size: 16px;
    font-weight: 450;  
}

/* Projets prenant environ 2/3 de l'espace et alignés à droite */
.projets {
    width: 150vw; /* Environ 2/3 de l'espace */
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Aligne les éléments à droite */
}

/* Rangées de projets qui s'adaptent à l'espace disponible */
.rangée {
    display: flex;
    justify-content: flex-end; /* Aligne à droite */
    gap: 4px;
    width: 100%;
}

/* Boîtes qui s'adaptent à l'espace disponible */
.box {
    display: flex;
    flex-direction: column;
    align-items: start;
    text-decoration: none;
    color: black;
    margin-bottom: 40px;
    max-width: 50%; /* Prend au maximum la moitié de la rangée */
}

/* Images qui s'adaptent à la taille des boîtes */
.box img {
    height: auto; /* Hauteur auto pour conserver les proportions */
    max-height: 55vh; /* Hauteur maximale comme avant */
    width: 100%; /* Largeur qui s'adapte à la boîte */
    object-fit: contain; /* Garde les proportions de l'image */
}

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

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



/* FORMAT TEL*/

@media screen and (max-width: 768px) {
    /* Supprime les débordements horizontaux */
    html, body {
        overflow-x: hidden;
    }

        /* 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;
        }

    /* Header bien centré et ajusté */
    .header {
        width: calc(100% - 8px);
        margin: 3px 4px 4px 4px;
    }

    /* Organisation verticale */
    .menu {
        flex-direction: row;
        justify-content: space-between;
    }

    /* Cache le sommaire si nécessaire */
    .sommaire {
        display: none;
    }

    /* Ajuste la largeur des projets pour bien tenir dans l'écran */
    .projets {
        width: 100%;
    }

    .rangée {
        flex-direction: column;
        width: 100%;
    }

    .box img {
        width: 100%;
        height: auto;
    }


    .sommaire {
        display: none;
    }

    .projets {
        width: 100%; /* Prend tout l'espace quand le sommaire est caché */
    }

    .box {
        max-width: 100%; /* En mobile, les boîtes prennent toute la largeur */
    }
}
    
    


