* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;   /* empêche seulement le défilement horizontal */
    overflow-y: auto;     /* autorise le défilement vertical */
}

/* CONTAINER */
.gallery-container {
    min-height: 100vh;              /* occupe toute la hauteur de l'écran */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;        /* centre verticalement le contenu */
    align-items: center;            /* centre horizontalement */
}

/* HEADER */
.gallery-header {
    position: absolute;             /* garde le titre en haut */
    top: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 160px;
}

/* =========================
   BACKGROUND
========================= */
body {
    background-image: url("background.jpg");
    background-color: rgb(211, 209, 209);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Bouton accueil */
.home-button {
    position: absolute;
    left: 20px;
    top: 30%;
    transform: translateY(-50%);
    
}

/* Titre */
.title-box {
    width: 75%;
    max-width: 600px;
    min-width: 280px;       /* empêche le rognage */
    height: auto;
    
}

.title-box img {
    width: 50%;
    height: auto;           /* IMPORTANT */
    display: block;
    border-radius: 12px;
}

/* Rectangle de biographie */
.biography-box {
    width: 100%;
    max-width: 1000px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #000000;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #000000;
    text-align: justify;
    margin: 0 auto;
}

.biography-box h2 {
    margin-top: 0;
    text-align: center;
}

/* =========================
   VERSION MOBILE
========================= */
@media screen and (max-width: 768px) {

    .gallery-container {
        padding-top: 120px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .title-box img {
        width: 70%;
        min-width: 180px;
    }

    .biography-box {
        flex-direction: column;
        align-items: center;

        padding: 20px;
        gap: 20px;

        font-size: 17px;
        line-height: 1.5;
    }

    .photo-column {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .photo-column img {
        width: 100px;
        height: 130px;
    }

    .biography-content {
        width: 100%;
    }
}