/* --- STYLE DU SLIDER --- */
#galleryCarousel .carousel-item {
    height: 600px; /* Hauteur fixe pour un rendu pro */
    background-color: #000;
}

#galleryCarousel img {
    height: 100%;
    object-fit: cover; /* L'image remplit le cadre sans se déformer */
    opacity: 0.8;
    transition: transform 10s linear; /* Effet de zoom lent automatique */
}

/* Effet Ken Burns (zoom lent) sur l'image active */
.carousel-item.active img {
    transform: scale(1.15);
}

/* Overlay pour que le texte soit lisible */
.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(16, 60, 99, 0.9) 0%, transparent 60%);
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
}

/* Personnalisation des indicateurs */
.carousel-indicators [button] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #f29109;
    margin: 0 5px;
}

/* gallery */
/* --- VARIABLES --- */
.csmm-blue { color: #103c63; }

/* --- CONTENEUR DE L'ITEM --- */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #103c63;
    cursor: pointer;
}

/* Tailles fixes pour garder une grille propre */
.gallery-item.large { height: 450px; }
.gallery-item.medium { height: 217px; }
.gallery-item.small { height: 250px; }

/* L'IMAGE */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.9;
}

/* L'OVERLAY (Masqué par défaut) */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(16, 60, 99, 0.9) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(20px);
}

/* EFFETS AU HOVER (SURVOL) */
.gallery-item:hover img {
    transform: scale(1.1);
    opacity: 0.7;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive ajustements */
@media (max-width: 768px) {
    .gallery-item.large, .gallery-item.medium, .gallery-item.small {
        height: 300px;
    }
}