/* ========================================
   HERO VIDEO - CSS
   Mobile-first (min-width breakpoints)
   ======================================== */

/* Variables */
:root {
    --accent-color: #f59e0b;
    --overlay-gradient: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(0, 0, 0, 0.6));
    --text-primary: #ffffff;
    --text-secondary: #f1f5f9;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ========================================
   HERO IMAGE STATIQUE - VERSION ACTIVE
   ======================================== */
.hero-image-variant {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
}

@media (max-width: 575.98px) {
    .hero-image-variant {
        height: clamp(300px, 65vh, 360px);
        aspect-ratio: auto;
    }
}

.hero-image-bg,
.hero-image-overlay,
.hero-image-container {
    position: absolute;
    inset: 0;
}

.hero-image-bg {
    z-index: 1;
}

.hero-image-bg img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 575.98px) {
    .hero-image-bg img {
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

@media (min-width: 576px) {
    .hero-image-variant {
        height: auto;
        aspect-ratio: auto;
    }

    .hero-image-bg {
        position: relative;
        inset: auto;
        width: 100%;
    }
}

.hero-image-overlay {
    z-index: 2;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.55));
}

.hero-image-container {
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem clamp(1rem, 4vw, 5rem);
}

.hero-image-content {
    width: 100%;
    max-width: 100%;
    text-align: left;
    color: var(--text-primary);
}

.hero-image-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.hero-image-description {
    margin: 1rem 0 0;
    max-width: 100%;
    font-size: clamp(1rem, 2vw, 1.4rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.typewriter-text.is-typing::after {
    content: '|';
    display: inline-block;
    margin-left: 0.15em;
    font-weight: 400;
    animation: typewriterCursor 0.8s steps(1, end) infinite;
}

@keyframes typewriterCursor {
    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-image-variant .title-highlight {
    color: #ffffff;
    display: inline-block;
    position: relative;
}

.hero-image-variant .title-highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
}

/* ========================================
   HERO VIDEO - CSS LEGACY (conservé pour réactivation future)
   ======================================== */
#hero-video {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 450px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay-gradient);
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
    margin: 0 auto;
}

.hero-content {
    text-align: center;
    animation: slideInUp 0.8s ease-out both;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.title-highlight {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.title-highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    animation: expandWidth 0.6s ease-out 0.7s both;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    animation: slideInUp 0.8s ease-out 0.35s both;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: slideInUp 0.8s ease-out 0.5s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

@media (min-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .hero-image-content {
        max-width: 50vw;
    }

    .hero-container {
        padding: 0 2rem;
    }

    .hero-title {
        font-size: 3rem;
        margin-bottom: 1.25rem;
    }

    .hero-description {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        font-size: 1.2rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 1.25rem;
        margin-bottom: 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .typewriter-text.is-typing::after {
        animation: none;
    }

    .hero-content,
    .hero-title,
    .hero-description,
    .hero-actions {
        animation: none;
    }

    .title-highlight::after {
        animation: none;
        width: 100%;
    }
}
