* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: #000000;
    color: #ffffff;
}
body.presentation-page {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; 
}
.body-article{
    width: 100%;
    height: 100vh;
    background-image: url(Images/Fond_PortFolio.png);
} 
.body-article1{
    width: 100%;
    height: 100vh;
    background-image: url(Images/HackNSlash_Article.png);
} 
.body-article2{
    width: 100%;
    height: 100vh;
    background-image: url(Images/HandleWithCare_Article.png);
} 
.body-article3{
    width: 100%;
    height: 100vh;
    background-image: url(Images/Sousriz_Article.png);
}
.body-article4{
    width: 100%;
    height: 100vh;
    background-image: url(Images/Fond_PortFolio.png);
}
.body-article5{
    width: 100%;
    height: 100vh;
    background-image: url(Images/RogueLike_Article.png);
}
.body-article6{
    width: 100%;
    height: 100vh;
    background-image: url(Images/PartyGame_Article.png);
}
.body-article7{
    width: 100%;
    height: 100vh;
    background-image: url(Images/Mitsubishi_Article.png);
}
.body-article8{
    width: 100%;
    height: 100vh;
    background-image: url(Images/FollowTheWind_Article.png);
}
.body-article9 {
    width: 100%;
    height: 100vh;
    background-image: url(Images/SwampTactics_Article.png);
}

.container {
    padding: 10px 10%;
}
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: #0000007a; /* Couleur de fond de la barre de navigation */
    padding: 10px 0;
}
.logo {
    width: 250px;
}
nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}
nav ul li a {
    color: #73e696;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}
nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: #458560;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.2s;
}
nav ul li a:hover::after {
    width: 100%;
}


/* Articles */
article {
    margin: 20px;
    display: flex;
    flex-direction: row;
}

#sidebar {
    flex: 0 0 25%;
    position: fixed;
    top: 50%; /* Centrez verticalement le sommaire */
    transform: translateY(-50%); /* Ajustez pour le centrage vertical */
    left: 0;
    background: #333;
    padding: 150px;
    overflow-y: auto;
    color: #fff;
    z-index: 1;
}

#content {
    flex: 1;
    margin-left: 30%;
    padding: 20px;
}


#content h1 {
    color: #73e696;
    font-size: 52px
}

#content p {
    font-size: 16px;
    color: #ccc;
}

#summary{
    margin-bottom: 200px;
}


.chapter {
    margin-top: 30px;
}

.chapter h2 {
    color: #73e696;
}

.image-section {
    margin-top: 20px;
}

.image-gallery {
    display: flex;
    overflow-x: auto;
    margin-bottom: 20px;
}

.image-gallery img {
    width: 200px;
    height: auto;
    margin-right: 10px;
    cursor: pointer;
}

.image-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.image-overlay img {
    max-width: 80%;
    max-height: 80%;
}

#toc {
    position: fixed;
    top: 0;
    left: 0; /* Changez de 'right' à 'left' pour le déplacer à gauche */
    background: #333;
    padding: 10px;
    color: #fff;
    overflow-y: auto;
    max-height: 100%;
    width: 200px;
    max-width: 100%;
}

#toc a {
    display: block;
    color: #fff;
    text-decoration: none;
    margin-bottom: 5px;
}

#toc a:hover {
    color: #73e696;
}


article {
    margin: 20px auto; /* Ajout de 'auto' pour centrer l'article sur la page */
    max-width: 800px; /* Ajout d'une largeur maximale pour l'article */

    display: flex;
    flex-direction: column; /* Mettez le contenu en colonne */
    align-items: center; /* Centrez le contenu horizontalement */
}

#toc,
#sidebar {
    background: none;
}

/*---------- css for small screens --------*/
nav .fas{
    display: none;
}

@media only screen and (max-width:600px){
    
    .header-text {
        margin-top: 10%;
        font-size: 30px;
    }
    .header-text h1{
        font-size: 30px;
    }
    nav {
        background-color: #00000000;
    }

    nav .fas{
        display: block;
        font-size: 25px;
    }
  
    nav ul{
        background: #458560;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top:50px;
        z-index:2;
        transition: right 0.5s;
    }

    nav ul li {
        display: block;
        margin: 25px;
    }

    nav ul .fas{
        position: absolute;
        top: 25px;
        right: 25px;
        cursor: pointer;
    }

    #sidebar {
        display: none;
    }

    .image-gallery{
        display: flex;
        flex-direction: column;
        margin-top: 10px;
        align-items: center;
    }
    #content {
        margin-left: 0; /* Aucune marge à gauche en mode mobile */
        text-align: center; /* Centrez le texte horizontalement */
    }

    #content p {
        font-size: 14px;
        color: #ccc;
    }

    .image-gallery img {
        max-width: 100%; /* Ajuste la largeur en fonction du ratio original de l'image */
        max-height: 200px; /* Hauteur maximale pour la galerie */
        margin-right: 10px;
        cursor: pointer;
    }
    .image-overlay img {
        max-width: 100%; /* Ajuste la largeur en fonction du ratio original de l'image */
        max-height: 800px; /* Hauteur maximale pour l'affichage en grand */
    }


}