/* =================================== */
/* CARROUSEL RÉALISATIONS             */
/* Styles pour les carrousels avant-après côte à côte */
/* =================================== */

.carousel-realisation {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.carousel-realisation .gallery-image {
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 0;
    overflow: hidden;
}

.carousel-realisation .gallery-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Fix iOS Safari image display issues */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.carousel-realisation .carousel-control-prev,
.carousel-realisation .carousel-control-next {
    width: 10%;
    background: rgba(0, 0, 0, 0.3);
}

.carousel-realisation .carousel-control-prev-icon,
.carousel-realisation .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 10px;
}

.carousel-realisation .carousel-indicators {
    margin-bottom: 10px;
}

.carousel-realisation .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.carousel-realisation .carousel-indicators button.active {
    background-color: var(--bee-yellow);
    border-color: var(--bee-yellow);
}

/* Animation d'entrée pour les badges */
.carousel-realisation .badge {
    animation: fadeInUp 0.6s ease-out;
}

/* =================================== */
/* CARROUSEL DÉTAIL BIEN              */
/* Styles pour la page de détail d'un bien */
/* =================================== */

.carousel-detail-bien .gallery-image {
    height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 0;
    overflow: hidden;
}

.carousel-detail-bien .gallery-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Fix iOS Safari image display issues */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

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

/* Responsive pour les carrousels réalisations */
@media (max-width: 992px) {
    .carousel-realisation .gallery-image {
        height: 450px;
    }

    .carousel-detail-bien .gallery-image {
        height: 550px;
    }
}

@media (max-width: 768px) {
    .carousel-realisation .gallery-image {
        height: 350px;
    }

    .carousel-detail-bien .gallery-image {
        height: 450px;
    }
}

@media (max-width: 576px) {
    .carousel-realisation .gallery-image {
        height: 250px;
    }

    .carousel-detail-bien .gallery-image {
        height: 350px;
    }
}
