/**
 * AIPEC Theme - CSS Carrousel Hero
 * Styles spécifiques au carrousel de la page d'accueil
 */

/* === CARROUSEL PRINCIPAL === */
.hero-carousel {
    position: relative; /* Position normale - défile avec la page */
    width: 100%;
    height: 100vh; /* Hauteur plein écran */
    min-height: 500px;
    overflow: hidden;
    z-index: 1 !important; /* Z-index normal */
    margin-top: 64px; /* Espace pour le header fixe mobile */
    padding: 0 !important;
}

@media (min-width: 1024px) {
    .hero-carousel {
        height: 100vh; /* Hauteur plein écran sur desktop aussi */
        margin-top: 80px; /* Espace pour le header fixe desktop */
    }
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1; /* Z-index normal */
}

.hero-slide.active {
    opacity: 1;
    z-index: 2; /* Z-index normal pour le slide actif */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.4) 0%, rgba(4, 120, 87, 0.6) 100%);
    z-index: 3; /* Z-index normal */
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4; /* Z-index normal */
    text-align: center;
    color: white;
    width: 100%;
    max-width: 56rem;
    padding: 0 1rem;
}

/* === NAVIGATION DU CARROUSEL === */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10; /* Z-index normal */
    backdrop-filter: blur(4px);
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hero-nav.prev {
    left: 2rem;
}

.hero-nav.next {
    right: 2rem;
}

.hero-nav svg {
    width: 24px;
    height: 24px;
}

/* === INDICATEURS DU CARROUSEL === */
.hero-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10; /* Z-index normal */
}

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

.hero-indicator.active {
    background: white;
    transform: scale(1.2);
}

/* === COMPTEUR === */
.hero-counter {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    z-index: 10; /* Z-index normal */
}

/* === RESPONSIVE MOBILE === */
@media (max-width: 768px) {
    .hero-carousel {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero-nav {
        width: 40px;
        height: 40px;
    }
    
    .hero-nav.prev {
        left: 1rem;
    }
    
    .hero-nav.next {
        right: 1rem;
    }
    
    .hero-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .hero-counter {
        bottom: 1rem;
        right: 1rem;
    }
    
    .hero-content {
        padding: 0 1.5rem;
    }
}
