/* Styles généraux */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Navigation */
nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    list-style: none;
    background: #333;
}

nav ul li a, nav ul a img {
    color: white;
    text-decoration: none;
}

/* Menu burger */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger div {
    width: 30px;
    height: 4px;
    background: white;
    margin: 5px;
    transition: 0.3s;
}

.menu {
    display: flex;
}

/* Galerie */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Conteneur des œuvres */
.gallery-item {
    display: flex;
    flex-direction: column; /* Pour aligner l’image et le titre en colonne */
    align-items: center;
    border-radius: 15px;
    overflow: hidden;
    /* background: #f8f8f8; */
}

/* Image */
.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* Titre de l'œuvre */
.title {
    width: 100%;
    text-align: center;
    font-size: 16px;
    color: black;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    min-height: 40px; /* Assure une hauteur fixe pour éviter les décalages */
    display: flex;
    align-items: center;
    justify-content: center;
    /* justify-content: flex-end;  */
    margin-top: 15px;
    gap: 10px; /* Ajoute un espace de 15px entre chaque élément */
}

/* Responsive */
@media screen and (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        background: #333;
        position: absolute;
        top: 50px;
        width: 100%;
        left: 0;
    }

    .menu.show {
        display: flex;
    }

    .burger {
        display: flex;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .title {
        font-size: 14px;
    }
}
