/* =====================
   BASE
   ===================== */
body {
    height: 100%;
    margin: 0;
}


/* =====================
   HEADER
   ===================== */
header {
    display: flex;
    position: relative;
    flex-wrap: wrap; /* permet aux colonnes de passer à la ligne sur mobile */
}

#columnleft {
    width: 50%;
    height: 100vh;
    background-color: #EFBF04;
    box-sizing: border-box;
}

#columnright {
    background-image: url(images/gifheader2.gif);
    background-size: cover;
    width: 50%;
    height: 100vh;
}

#logo {
    margin: 30px;
    width: 25%;
}

.banner__content {
    display: flex;
    flex-direction: column;
    font-family: "Bagel Fat One", system-ui;
    font-size: clamp(28px, 4vw, 61px); /* taille fluide */
    align-items: center;
    gap: 33px;
    padding-top: 30px;
}

h1 {
    margin: 0;
    color: black;
    font-family: "Bagel Fat One", system-ui;
    font-size: 1em;
    padding-top: 5%;
    text-align: center;
    line-height: 1.2;
}

button {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: black;
    color: white;
    font-family: "Roboto", system-ui;
    font-size: clamp(20px, 3vw, 48px); /* taille fluide */
    padding: 20px;
    border: solid 2px white;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    z-index: 10;
}


/* =====================
   SECTION EXHIBITION
   ===================== */
#theexhibition {
    background-image: url("images/Backgroundsection.png");
    background-repeat: no-repeat;
    background-size: cover;
    height: auto; /* plus de hauteur fixe */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    padding-bottom: 60px;
    box-sizing: border-box;
}

h2 {
    margin: 0;
    color: #EFBF04;
    font-family: "Roboto", system-ui;
    font-weight: 900;
    font-size: clamp(28px, 4vw, 45px);
    padding-top: 5%;
    text-align: center;
}

#invisible {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px; /* était 422px — beaucoup trop grand */
    width: 100%;
}

#theexhibition p {
    color: white;
    font-family: "Montserrat", system-ui;
    font-size: clamp(16px, 2vw, 22px);
    background-color: #0A1F4A;
    padding: 20px;
    width: 81%;
    box-sizing: border-box;
    margin: 0;
}

.containerimage {
    display: flex;
    flex-wrap: wrap; /* images passent à la ligne sur petit écran */
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
    box-sizing: border-box;
}

.containerimage img {
    width: clamp(200px, 28vw, 400px);
    height: auto;
    object-fit: cover;
}


/* =====================
   CITATION
   ===================== */
#blackbanner {
    background-color: black;
    min-height: 10vh;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

h3 {
    margin: 0;
    color: white;
    font-family: "Bagel Fat One", system-ui;
    font-size: clamp(22px, 3vw, 50px);
    font-weight: 400;
    text-align: center;
}


/* =====================
   SECTION MASTER
   ===================== */
#master {
    height: auto; /* plus de hauteur fixe */
    background-color: #EFBF04;
    padding: 40px 20px;
    box-sizing: border-box;
}

#master p {
    color: black;
    font-family: "Montserrat", system-ui;
    font-weight: 500;
    font-size: clamp(16px, 2vw, 22px);
    width: 94%;
    margin: 0 auto 30px auto;
}

#gallerie {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 94%; /* même largeur que les paragraphes de #master */
    margin: 0 auto 30px auto; /* centré comme les paragraphes */
    box-sizing: border-box;
}

#gallerie img {
    flex: 1 1 0;
    max-width: 48%; 
    width: 0; /* flex s'occupe de la taille */
    height: 75vh;
    object-fit: cover;
}

p {
    color: white;
    font-family: "Montserrat", system-ui;
    font-size: clamp(16px, 2vw, 22px);
    padding: 20px;
    width: 62%;
    box-sizing: border-box;
}


/* =====================
   MEDIA QUERIES — MOBILE
   ===================== */
@media (max-width: 768px) {

    /* Header : colonnes empilées */
    header {
        flex-direction: column;
    }

    #columnleft {
        width: 100%;
        height: auto;
        min-height: 50vh;
        padding-bottom: 100px; /* espace pour le bouton absolu */
    }

    #columnright {
        width: 100%;
        height: 40vh;
    }

    /* Bouton repositionné */
    button {
        top: auto;
        bottom: -25px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 20px;
        padding: 14px 24px;
    }

    #logo {
        width: 40%;
        margin: 20px;
    }

    .banner__content {
        font-size: 32px;
        gap: 20px;
    }

    /* Exhibition */
    #theexhibition p {
        width: 90%;
        font-size: 16px;
    }

    .containerimage {
        flex-direction: column;
        align-items: center;
    }

    .containerimage img {
        width: 85%;
    }

    /* Galerie */
    #gallerie {
        flex-direction: column;
        align-items: center;
        width: 90%;
    }

    #gallerie img {
        width: 100%;
        flex: none;
    }

    #master p {
        width: 100%;
        font-size: 16px;
    }

    h3 {
        font-size: 22px;
    }
}

/* =====================
   MEDIA QUERIES — TABLETTE
   ===================== */
@media (max-width: 1024px) and (min-width: 769px) {

    .banner__content {
        font-size: 42px;
    }

    button {
        font-size: 28px;
        padding: 16px 28px;
    }

    .containerimage img {
        width: clamp(160px, 25vw, 300px);
    }

    #gallerie img {
        width: clamp(200px, 35vw, 400px);
    }
}