/* ==========================================
   STYLE DU CAROUSEL (RÉALISATIONS)
   Multi-colonnes pour formats Portrait/Carré
   ========================================== */
.realisations-section {
    padding: 80px 0;
    background-color: var(--neutral-white);
}

.realisations-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px auto;
}

.realisations-header h2 {
    font-size: 30px;
    color: var(--primary-navy);
    margin-bottom: 16px;
}

.realisations-header .divider {
    height: 4px;
    width: 64px;
    background-color: var(--accent-aqua);
    margin: 0 auto 16px auto;
}

.realisations-header p {
    color: var(--text-muted);
}

.carousel-container {
    position: relative;
    max-width: 1140px;      /* Largeur augmentée pour accueillir les colonnes */
    margin: 0 auto;
    overflow: hidden;
    padding: 0 10px;        /* Léger espace pour les boutons sur les bords */
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    height: 600px;          /* Belle hauteur pour vos photos verticales */
}

.carousel-track {
    display: flex;
    gap: 20px;              /* Espace entre les colonnes de photos */
    transition: transform 0.4s ease-in-out;
    height: 100%;
}

.carousel-slide {
    /* Largeur par défaut (Mobile : 1 seule photo visible) */
    min-width: 100%;
    height: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* Remplit proprement chaque colonne */
    display: block;
}

/* Légende sur l'image */
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--neutral-white);
    padding: 24px 16px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

/* Boutons de navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(15, 44, 89, 0.9);
    color: var(--neutral-white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: var(--accent-aqua);
    transform: translateY(-50%) scale(1.05);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

/* Points de navigation (Dots) */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.dot.active {
    background-color: var(--primary-navy);
}

/* ==========================================
   RESPONSIVE (Écrans moyens et grands)
   ========================================== */

/* Tablettes (600px et plus) : 2 photos visibles */
@media (min-width: 600px) {
    .carousel-slide {
        min-width: calc((100% - 20px) / 2); /* Coupe l'écran en 2 moins le gap */
    }
}

/* Ordinateurs (900px et plus) : 3 photos visibles */
@media (min-width: 900px) {
    .carousel-slide {
        min-width: calc((100% - 40px) / 3); /* Coupe l'écran en 3 moins les deux gaps */
    }
}