/* ============================================
   OCI Express - Hero Carousel
   Images défilantes en arrière-plan
   ============================================ */

/* ============================================
   CONTENEUR DU CARROUSEL
   ============================================ */

.hero {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Carrousel d'images */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s ease-out;
    transform: scale(1);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.05);
}

.hero-slide.prev {
    opacity: 0;
    transform: scale(1.1);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay sur les images */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        hsla(220, 20%, 4%, 0.3) 0%,
        hsla(220, 20%, 4%, 0.5) 30%,
        hsla(220, 20%, 4%, 0.7) 60%,
        var(--background) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Indicateurs de slide */
.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-indicator {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.hero-indicator.active::before {
    animation: indicatorProgress 7s linear forwards;
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

@keyframes indicatorProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ============================================
   EFFET DE PARTICULES/POUSSIÈRE DORÉE
   ============================================ */

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(212, 175, 55, 0.6);
    border-radius: 50%;
    animation: floatParticle 15s linear infinite;
}

.hero-particle:nth-child(odd) {
    background: rgba(255, 255, 255, 0.4);
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) translateX(10px) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(10vh) translateX(-10px) scale(1);
    }
    100% {
        transform: translateY(-10vh) translateX(0) scale(0);
        opacity: 0;
    }
}

/* Positions variées des particules */
.hero-particle:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 12s; }
.hero-particle:nth-child(2) { left: 15%; animation-delay: 2s; animation-duration: 14s; }
.hero-particle:nth-child(3) { left: 25%; animation-delay: 4s; animation-duration: 11s; }
.hero-particle:nth-child(4) { left: 35%; animation-delay: 1s; animation-duration: 16s; }
.hero-particle:nth-child(5) { left: 45%; animation-delay: 3s; animation-duration: 13s; }
.hero-particle:nth-child(6) { left: 55%; animation-delay: 5s; animation-duration: 15s; }
.hero-particle:nth-child(7) { left: 65%; animation-delay: 0.5s; animation-duration: 12s; }
.hero-particle:nth-child(8) { left: 75%; animation-delay: 2.5s; animation-duration: 14s; }
.hero-particle:nth-child(9) { left: 85%; animation-delay: 4.5s; animation-duration: 11s; }
.hero-particle:nth-child(10) { left: 95%; animation-delay: 1.5s; animation-duration: 16s; }
.hero-particle:nth-child(11) { left: 10%; animation-delay: 6s; animation-duration: 13s; }
.hero-particle:nth-child(12) { left: 30%; animation-delay: 7s; animation-duration: 15s; }
.hero-particle:nth-child(13) { left: 50%; animation-delay: 8s; animation-duration: 12s; }
.hero-particle:nth-child(14) { left: 70%; animation-delay: 9s; animation-duration: 14s; }
.hero-particle:nth-child(15) { left: 90%; animation-delay: 10s; animation-duration: 11s; }

/* ============================================
   EFFET DE VIGNETTE
   ============================================ */

.hero-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.5);
    z-index: 3;
    pointer-events: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-indicators {
        bottom: 20px;
    }

    .hero-indicator {
        width: 30px;
        height: 3px;
    }

    .hero-particle {
        width: 2px;
        height: 2px;
    }
}
