/* Carousel container */
.carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto;
    user-select: none;
}

/* Carousel container inside the main carousel */
.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

/* Individual slides */
.carousel-slide {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    width: 100%;
    flex: 0 0 100%;
    height: 100%;
}

/* Style spécifique pour les slides avec images verticales */
.carousel-slide.with-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-slide.vertical-image img {
    height: auto;
    width: auto;
    max-height: 650px;
    max-width: 100%;
    object-fit: contain;
    z-index: 2;
    position: relative;
}

/* Style spécifique pour les slides avec images horizontales */
.carousel-slide.horizontal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Navigation controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.carousel-prev,
.carousel-next {
    background-color: transparent;
    color: transparent;
    border: none;
    width: 60px;
    height: 60px;
    cursor: pointer;
    position: relative;
    pointer-events: auto;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.carousel-prev::after,
.carousel-next::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-top: 2px solid #bd8f39;
    border-left: 2px solid #bd8f39;
    top: 50%;
    left: 50%;
    filter: drop-shadow(0 0 3px rgba(189, 143, 57, 0.5));
    transition: transform 0.3s ease, width 0.2s ease, height 0.2s ease, border-width 0.2s ease;
}

.carousel-prev::after {
    transform: translate(-25%, -50%) rotate(-45deg);
}

.carousel-next::after {
    transform: translate(-75%, -50%) rotate(135deg);
}

.carousel-prev:hover,
.carousel-next:hover {
    opacity: 1;
    transform: scale(1.05);
}

.carousel-prev:hover::after,
.carousel-next:hover::after {
    filter: drop-shadow(0 0 5px rgba(189, 143, 57, 0.8));
    border-top: 2.5px solid #bd8f39;
    border-left: 2.5px solid #bd8f39;
}

/* Dots navigation */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* Caption for each slide */
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 15px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-prev,
    .carousel-next {
        width: 45px;
        height: 45px;
    }
    
    .carousel-prev::after,
    .carousel-next::after {
        width: 20px;
        height: 20px;
        border-width: 1.5px;
    }
    
    .carousel-dots {
        bottom: 10px;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
    }
    
    .carousel-caption {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* Specific overrides for the events carousels */
.events-carousel-wrapper {
    margin-top: 30px;
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

#carousel-mariages,
#carousel-deuil,
#carousel-festivites {
    height: 650px; /* Hauteur augmentée pour un format plus vertical */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Effet de flou pour l'arrière-plan des images verticales uniquement */
.carousel-slide.vertical-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    filter: blur(15px) brightness(0.7);
    z-index: 1;
    transform: scale(1.1);
}

/* Désactiver le pseudo-élément pour les images horizontales */
.carousel-slide.horizontal-image::before {
    display: none;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    bottom: 40px; /* Position plus haute pour laisser de l'espace pour les dots */
    width: 80%;
    left: 10%;
    right: 10%;
    border-radius: 8px;
}

.carousel-caption h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-gold, #d4af37);
}

.carousel-caption p {
    font-size: 1.1rem;
    line-height: 1.5;
}

.carousel-dot.active {    background-color: var(--color-gold, #d4af37);}

@media (max-width: 992px) {
    #carousel-mariages,
    #carousel-deuil,
    #carousel-festivites {
        height: 550px;
    }
    
    .carousel-slide.vertical-image img {
        max-height: 550px;
    }
}

@media (max-width: 768px) {
    #carousel-mariages,
    #carousel-deuil,
    #carousel-festivites {
        height: 450px;
    }
    
    .carousel-slide.vertical-image img {
        max-height: 450px;
    }
    
    .carousel-caption {
        width: 90%;
        left: 5%;
        right: 5%;
        padding: 15px;
    }
    
    .carousel-caption h3 {
        font-size: 1.3rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    #carousel-mariages,
    #carousel-deuil,
    #carousel-festivites {
        height: 400px;
    }
    
    .carousel-slide.vertical-image img {
        max-height: 400px;
    }
} 