/* ==========================================
   CAROUSEL CSS
   ========================================== */

/* Carousel */
.hero-carousel {
    width: 100%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 625px;
    animation: fadeIn 1s ease-out 0.6s both;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background: white;
    width: 40px;
    border-radius: 6px;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Responsive Carousel */
@media (max-width: 768px) {
    .hero-carousel {
        height: 390px;
        border-radius: 0;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
}

/* Zones cliquables visuelles */
.hero-carousel::before,
.hero-carousel::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.hero-carousel::before {
    left: 2rem;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3"><path d="M15 18l-6-6 6-6"/></svg>');
    background-size: 30px;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-carousel::after {
    right: 2rem;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3"><path d="M9 18l6-6-6-6"/></svg>');
    background-size: 30px;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-carousel:hover::before,
.hero-carousel:hover::after {
    opacity: 1;
}
