/* ===== PHASE 5: HERO SECTIONS IMMERSIVES ===== */

/* Hero section avec overlay */
.hero-immersive {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: var(--header-height);
    padding: var(--spacing-4xl) var(--spacing-lg);
}

/* Background avec gradient overlay */
.hero-immersive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(102, 126, 234, 0.9) 0%,
            rgba(118, 75, 162, 0.85) 100%);
    z-index: 1;
}

/* Mesh gradient en fond */
.hero-immersive::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mesh);
    z-index: 0;
}

/* Contenu du hero */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-lg);
    line-height: var(--line-height-tight);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-2xl);
    opacity: 0.95;
    line-height: var(--line-height-relaxed);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-badges {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: white;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effet parallax sur le hero */
.hero-parallax {
    transform: translateY(calc(var(--scroll-position, 0) * -0.5px));
    transition: transform 0.1s linear;
}

/* Responsive hero */
@media (max-width: 768px) {
    .hero-immersive {
        min-height: 50vh;
        padding: var(--spacing-2xl) var(--spacing-lg);
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
    }
}

/* === Section Reveal Progressive === */

/* Sections avec révélation au scroll */
.reveal-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s var(--transition-smooth),
        transform 0.8s var(--transition-smooth);
}

.reveal-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Effet de séparateur avec gradient */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--color-accent-primary) 50%,
            transparent 100%);
    margin: var(--spacing-3xl) 0;
    opacity: 0.5;
}

/* Cards avec glassmorphism pour pages détaillées */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .glass-card {
    background: rgba(26, 35, 50, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: white;
    opacity: 0.8;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}