/*======================================
  GALERIE – STYLE GLOBAL
======================================*/
.section-galerie {
    position: relative;
    width: 100%;
    background-color: #eee;
    padding: 60px 0;
    overflow: hidden;
    z-index: 1;
}

.section-galerie > .galerie-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}

.galerie-title {
    font-size: var(--font-size-h2, 1.8rem);
    margin-bottom: 20px;
}

/*======================================
  WRAPPER / NAVIGATION
======================================*/
.gallery-wrapper {
    display: flex;
    align-items: center;
    gap: 15px; /* Desktop default */
    width: 100%;
}

.galerie-prev,
.galerie-next {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-primary);
    transition: color .2s ease;
}

.galerie-prev:hover,
.galerie-next:hover {
    color: var(--color-btn-hover);
}

.galerie-prev.disabled,
.galerie-next.disabled {
    opacity: .4;
    pointer-events: none;
}

/*======================================
  CARROUSEL
======================================*/
.gallery {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 15px; /* Desktop default */
    width: 80%;
}

.galerie-item-standard {
    flex: 0 0 calc(25% - 15px); /* Desktop: 4 images */
    transition: transform .3s ease;
}

.galerie-item-standard.hidden {
    display: none;
}

.galerie-item-standard img {
    width: 100%;
    height: 225px;
    object-fit: contain;
    display: block;
    background-color: white;
    cursor: pointer;
}

figcaption {
    font-size: var(--font-size-body);
    color: var(--color-body);
    margin-top: 6px;
    text-align: left;
}

/*======================================
  TABLETTE
======================================*/
@media (max-width: 1024px) {

    .gallery-wrapper {
        gap: 5px; /* Tablette */
    }

    .gallery {
        width: 90%;
        gap: 5px; /* Tablette */
    }

    .galerie-item-standard {
        flex: 0 0 calc(33.333% - 5px); /* 3 images */
    }
}

/*======================================
  MOBILE
======================================*/
@media (max-width: 768px) {

    .section-galerie {
        padding: 30px 0;
    }

    .gallery-wrapper {
        gap: 0; /* Mobile */
    }

    .gallery {
        width: 100%;
        gap: 0; /* Mobile */
    }

    .galerie-item-standard {
        flex: 0 0 100%; /* Slider 1 image */
    }

    .galerie-item-standard img {
        height: 180px;
    }

    .galerie-prev,
    .galerie-next {
        font-size: 1.6rem;
    }
}
