/* ================================================================
   hero.css — Section Hero Ovision
   ================================================================ */

:root {
    --hero-grad-start: #0f3b5f;
    --hero-grad-mid:   #1e6b93;
    --hero-grad-end:   #1b2f54;
    --hero-gold:       #d9a25b;
    --hero-sky:        #f4f7fb;
    --hero-text-muted: rgba(255,255,255,.75);
}

.section-hero {
    position: relative;
    padding: calc(var(--nav-height) + 16px) 0 0;
    background: #f8f9fb;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.section-hero .container {
    position: relative;
    max-width: 1400px;
    width: 100%;
    padding: 0 clamp(16px, 4vw, 72px);
}

.hero-card {
    position: relative;
    padding-bottom: clamp(60px, 8vw, 100px);
    margin: 0;
    isolation: isolate;
}


.hero-body {
    position: relative;
    width: 100%;
    display: block;
    min-height: 0;
    border-radius: clamp(26px, 3vw, 38px);
    overflow: hidden;
    background-color: #164b54;

}

.hero-text {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 35px 35px 35px 64px;
    min-height: clamp(320px, 48vw, 520px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
    background-image: url('../img/header.webp');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.hero-text::before {
    content: '';
    position: absolute;
    left: clamp(24px, 3vw, 48px);
    top: clamp(32px, 5vw, 64px);
    bottom: clamp(36px, 4vw, 64px);
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(217,162,91,.1) 0%, var(--hero-gold) 35%, rgba(217,162,91,.9) 100%);
    box-shadow: 0 0 12px rgba(217,162,91,.45);
}

.hero-specialty {
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--hero-text-muted);
    margin: 0;
}

.hero-title-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.hero-title {
    margin: 0;
    flex: 0 0 auto;
    text-transform: uppercase;
    color: #ffffff;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: .08em;
}

.hero-brand,
.hero-city {
    display: inline;
}

.hero-city {
    color: #D6AF7F;
}

/* Bouton mobile caché sur desktop — spécificité 0,2,0 pour écraser .hero-cta */
.hero-cta.hero-cta--mob { display: none; }

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    align-self: flex-start;
    margin-top: 0;
    margin-bottom: 10px;
    padding: 18px 28px;
    background: #c42020;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    line-height: 1.3;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 14px 24px rgba(0,0,0,.25);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 28px rgba(0,0,0,.28);
    background: #a31818;
}

.hero-tagline {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin: 0;
}

.hero-desc {
    margin: 0;
    font-size: .80rem;
    color: var(--hero-text-muted);
    line-height: 1.7;
    max-width: 480px;
}




.hero-stats-wrap {
    position: absolute;
    left: clamp(24px, 6vw, 96px);
    bottom: clamp(0px, 0vw, 0px);
    width: auto;
    max-width: none;
    background: #ffffff;
    border-radius: 26px 26px 0px 0px;
    padding: clamp(8px, 2vw, 18px);
    z-index: 2;
}

.hero-stats {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 0;
}

.hero-stat {
    flex: 0 0 33.333%;
    width: 33.333%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: clamp(18px, 2.5vw, 30px) clamp(12px, 2vw, 24px);
    border-right: none;
    background: transparent;
}

.hero-stat-value {
    display: block;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: var(--hero-gold);
    line-height: 1;
    margin-bottom: 8px;
    white-space: nowrap;
}

.hero-stat-label {
    margin: 0;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #6b7280;
    line-height: 1.4;
    min-height: calc(0.78rem * 1.4 * 2);
}

/* ----------------------------------------------------------------
   Responsive adjustments
   ---------------------------------------------------------------- */
@media (max-width: 920px) {
    .hero-title { font-size: clamp(2rem, 6vw, 3rem); }
    .hero-stats-wrap { left: clamp(16px, 6vw, 64px); max-width: min(600px, 60%); }
}

@media (max-width: 820px) {
    .section-hero {
        padding: calc(var(--nav-height-mob) + 12px) 0 48px;
        background: #ffffff;
    }

    .section-hero .container {
        padding: 0 14px;
    }

    /* Card : espace pour stats chevauchantes */
    .hero-card {
        padding-bottom: 56px;
    }

    .hero-body {
        border-radius: clamp(18px, 4vw, 26px);
        /* Image en contain no-repeat en haut, ratio respecté */
        background-image: url('../img/header.webp');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: top center;
    }

    /* Zone texte : 100% largeur, pas de background, fond hero-body visible */
    .hero-text {
        position: relative;
        width: 100%;
        max-width: 100%;
        padding: 20px 20px 24px 40px;
        min-height: 0;
        justify-content: flex-start;
        background-image: none;
    }

    /* Titre : OVISION / BLOIS sur deux lignes */
    .hero-brand,
    .hero-city {
        display: block;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
        flex: none;
        width: 100%;
    }

    .hero-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin-bottom: 14px;
    }

    /* Desktop button caché, mobile button affiché */
    .hero-cta.hero-cta--desk { display: none; }
    .hero-cta.hero-cta--mob {
        display: inline-flex;
        align-self: stretch;
        width: 100%;
        margin-top: 16px;
        padding: 16px 24px;
        font-size: .78rem;
        white-space: nowrap;
        line-height: 1;
    }

    /* Stats : 95% largeur, chevauchement bas du hero */
    .hero-stats-wrap {
        position: absolute;
        bottom: -22px;
        left: 2.5%;
        width: 95%;
        max-width: none;
        border-radius: 14px 14px 0px 0px;
        padding: 2px 0;
    }

    .hero-stats {
        flex-direction: row;
    }

    .hero-stat {
        border-right: 1px solid #eff1f5;
        border-bottom: none;
        padding: 16px 6px;
    }

    .hero-stat:last-child {
        border-right: none;
    }

    .hero-stat-value {
        font-size: 1.4rem; /* mobile uniquement */
    }

    .hero-stat-label {
        font-size: .6rem;
        letter-spacing: .05em;
        min-height: calc(0.6rem * 1.4 * 2);
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: clamp(1.8rem, 10vw, 2.4rem); }
    .hero-stat-value { font-size: 1.4rem; }
    .hero-stat-label { letter-spacing: .03em; }
}
