/* ======================================================================
   PAGE GALERIE
====================================================================== */

body {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
            url('../images/fond-restaurant.jpg');
    margin: 0;
}

.galerie-section{
    max-width: 1600px;
    margin: 150px auto 75px auto; 
    padding: 0 40px;
    min-height: 70vh; 
}

.galerie-page {
    text-align: center;
    box-sizing: border-box;
}

.galerie-masonry-container {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 20px 4rem 20px;
    box-sizing: border-box;
    column-count: 4;
    column-gap: 20px;
}

.galerie-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
    animation: fadeInUp 1s ease-out forwards;
}

.galerie-item:nth-child(2n) .galerie-img { height: 260px; }
.galerie-item:nth-child(3n+1) .galerie-img { height: 420px; }
.galerie-item:nth-child(4n) .galerie-img { height: 310px; }
.galerie-item:nth-child(7n) .galerie-img { height: 500px; }

.galerie-img {
    display: block;
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* ======================================================================
   AJUSTEMENTS RESPONSIVE (Mobiles et tablettes)
====================================================================== */

@media (max-width: 1200px) {
    .galerie-masonry-container {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .galerie-masonry-container {
        column-count: 2;
        column-gap: 15px;
    }
    .galerie-item {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .galerie-masonry-container {
        column-count: 1;
    }
    .galerie-img {
        height: 280px !important;
    }
}

/* ======================================================================
   ANIMATIONS
====================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}