/* ============================================================
   HISTOIRE HERO SECTION - Page Mon Histoire
   Image de fond avec titre aligne a gauche
   ============================================================ */

.histoire-hero-section {
    position: relative;
    width: 100%;
    min-height: clamp(420px, 50vh, 560px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

/* ============================================================
   BACKGROUND IMAGE
   ============================================================ */

.histoire-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.histoire-hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 0%;
}

/* ============================================================
   OVERLAY - Degrade pour contraste texte a gauche
   ============================================================ */

.histoire-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.1) 70%,
        rgba(0, 0, 0, 0.05) 100%
    );
    z-index: 2;
}

/* ============================================================
   CONTENT - Texte a gauche
   ============================================================ */

.histoire-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(7rem, 12vw, 11rem) 4rem clamp(3rem, 5vw, 4.5rem) 4rem;
}

.histoire-hero-inner {
    max-width: 600px;
    position: relative;
}

/* ============================================================
   TITRE H1 - Blanc, grand format, gauche
   ============================================================ */

.histoire-hero-title {
    position: relative;
    z-index: 2;
    font-family: var(--font-heading, 'Lexend Deca', sans-serif);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    color: #FFFFFF;
    margin: 0 0 1.5rem 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    /* animation remplacée par .hero-stagger global */
}

/* ============================================================
   LIGNE DECORATIVE
   ============================================================ */

.histoire-hero-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-neutral) 100%);
    border-radius: 2px;
    margin-bottom: 1.5rem;
    animation: expandWidth 0.8s ease-out 0.5s both;
}

/* ============================================================
   SOUS-TITRE
   ============================================================ */

.histoire-hero-subtitle {
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* animation remplacée par .hero-stagger global */
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

/* ============================================================
   RESPONSIVE - TABLETTE
   ============================================================ */

@media (max-width: 1024px) {
    .histoire-hero-section {
        min-height: clamp(380px, 45vh, 500px);
    }

    .histoire-hero-content {
        padding: clamp(6rem, 10vw, 9rem) 3rem 3rem 3rem;
    }

    .histoire-hero-title {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }

    .histoire-hero-subtitle {
        font-size: 1.125rem;
    }
}

/* ============================================================
   RESPONSIVE - MOBILE
   ============================================================ */

@media (max-width: 768px) {
    .histoire-hero-section {
        min-height: 380px;
    }

    .histoire-hero-content {
        padding: 7rem 1.5rem 2.5rem 1.5rem;
    }

    .histoire-hero-inner {
        max-width: 100%;
    }

    .histoire-hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1rem;
    }

    .histoire-hero-line {
        width: 60px;
        height: 3px;
        margin-bottom: 1rem;
    }

    @keyframes expandWidth {
        to {
            width: 60px;
        }
    }

    .histoire-hero-subtitle {
        font-size: 1rem;
    }

    .histoire-hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.3) 100%
        );
    }
}

/* ============================================================
   RESPONSIVE - PETIT MOBILE
   ============================================================ */

@media (max-width: 480px) {
    .histoire-hero-section {
        min-height: 340px;
    }

    .histoire-hero-content {
        padding: 6rem 1rem 2rem 1rem;
    }

    .histoire-hero-title {
        font-size: 1.75rem;
    }

    .histoire-hero-subtitle {
        font-size: 0.9375rem;
    }
}
