/* =========================================================
   RESILIENT VALIDATOR — Hero commun V1
   Cadrage fixe, animations sans zoom ni déformation
   ========================================================= */

.rv-common-hero{
    --rv-hero-bg:#020914;
    --rv-hero-blue:#20b8ff;
    --rv-hero-gold:#e0a62e;

    position:relative;
    isolation:isolate;
    width:min(1660px,calc(100% - 64px));
    height:460px;
    min-height:460px;
    margin:20px auto 0;
    overflow:hidden;
    display:flex;
    align-items:center;
    border-radius:2px;
    background-color:var(--rv-hero-bg);
    background-image:var(--rv-hero-image);
    background-position:center center;
    background-size:cover;
    background-repeat:no-repeat;
}

/* Assombrissement de lecture + halo fixe autour du globe */
.rv-common-hero::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:0;
    pointer-events:none;
    background:
        radial-gradient(
            circle at 69% 48%,
            rgba(32,184,255,.13) 0%,
            rgba(32,184,255,.055) 24%,
            transparent 45%
        ),
        linear-gradient(
            90deg,
            rgba(2,9,20,.88) 0%,
            rgba(2,9,20,.66) 28%,
            rgba(2,9,20,.22) 50%,
            rgba(2,9,20,.04) 70%
        ),
        linear-gradient(
            to bottom,
            rgba(2,9,20,.02) 68%,
            rgba(2,9,20,.40) 92%,
            var(--rv-hero-bg) 100%
        );
}

/* V1 STATIQUE : surcouche animée désactivée.
   L'image, le cadrage, le halo et le contenu restent inchangés. */
.rv-common-hero::after{
    display:none;
    content:"";
    position:absolute;
    inset:0;
    z-index:1;
    pointer-events:none;
    opacity:.42;
    background:
        linear-gradient(
            118deg,
            transparent 0%,
            transparent 38%,
            rgba(32,184,255,.00) 43%,
            rgba(32,184,255,.18) 47%,
            rgba(255,194,78,.18) 50%,
            rgba(32,184,255,.10) 53%,
            transparent 58%,
            transparent 100%
        ),
        repeating-linear-gradient(
            116deg,
            transparent 0 78px,
            rgba(32,184,255,.035) 82px,
            rgba(255,191,69,.04) 86px,
            transparent 92px
        );
    background-size:220% 100%, 190% 100%;
    background-position:120% center, 100% center;
    mix-blend-mode:screen;
    animation:rvHeroStreams 10s linear infinite;
}

.rv-common-hero__content{
    position:relative;
    z-index:2;
    width:min(510px,36vw);
    margin-left:8.2%;
    color:#fff;
    text-shadow:0 2px 14px rgba(0,0,0,.76);
}

.rv-common-hero__eyebrow{
    margin:0 0 14px;
    color:var(--rv-hero-blue);
    font-size:12px;
    font-weight:700;
    letter-spacing:.18em;
    text-transform:uppercase;
}

.rv-common-hero__title{
    max-width:520px;
    margin:0;
    color:#fff;
    font-size:clamp(34px,3vw,55px);
    font-weight:700;
    line-height:1.08;
    letter-spacing:-.025em;
}

.rv-common-hero__title span{
    display:block;
    margin-top:14px;
    color:#d0d6de;
}

.rv-common-hero__title strong{
    display:block;
    color:var(--rv-hero-gold);
}

.rv-common-hero__text{
    max-width:455px;
    margin:22px 0 0;
    color:#e0e5eb;
    font-size:17px;
    line-height:1.65;
}

.rv-common-hero__cta{
    display:inline-flex;
    align-items:center;
    justify-content:space-between;
    min-width:245px;
    gap:20px;
    margin-top:28px;
    padding:14px 22px;
    border:1px solid var(--rv-hero-blue);
    border-radius:8px;
    background:rgba(2,14,28,.82);
    box-shadow:
        0 0 22px rgba(32,184,255,.18),
        inset 0 0 18px rgba(32,184,255,.06);
    color:#fff;
    text-decoration:none;
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.rv-common-hero__cta:hover{
    transform:translateY(-2px);
    background:rgba(6,35,61,.94);
    box-shadow:0 0 30px rgba(32,184,255,.32);
}

.rv-common-hero__cta:focus-visible{
    outline:2px solid #fff;
    outline-offset:4px;
}

/* Apparition du contenu uniquement */
.rv-common-hero__eyebrow,
.rv-common-hero__title,
.rv-common-hero__text,
.rv-common-hero__cta{
    opacity:0;
    animation:rvHeroContentReveal .72s ease-out forwards;
}

.rv-common-hero__eyebrow{animation-delay:.10s}
.rv-common-hero__title{animation-delay:.22s}
.rv-common-hero__text{animation-delay:.36s}
.rv-common-hero__cta{animation-delay:.50s}

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

@keyframes rvHeroStreams{
    from{
        background-position:120% center,100% center;
        opacity:.28;
    }
    50%{
        opacity:.48;
    }
    to{
        background-position:-120% center,-90% center;
        opacity:.28;
    }
}

@media(max-width:1100px){
    .rv-common-hero{
        width:calc(100% - 32px);
        background-position:58% center;
    }

    .rv-common-hero__content{
        width:min(470px,44vw);
        margin-left:5%;
    }
}

@media(max-width:760px){
    .rv-common-hero{
        width:calc(100% - 24px);
        height:auto;
        min-height:520px;
        margin-top:16px;
        background-position:64% center;
    }

    .rv-common-hero::before{
        background:
            radial-gradient(
                circle at 72% 42%,
                rgba(32,184,255,.10),
                transparent 42%
            ),
            linear-gradient(
                90deg,
                rgba(2,9,20,.95) 0%,
                rgba(2,9,20,.76) 54%,
                rgba(2,9,20,.38) 100%
            ),
            linear-gradient(
                to bottom,
                transparent 70%,
                var(--rv-hero-bg) 100%
            );
    }

    .rv-common-hero::after{
        opacity:.26;
        animation-duration:14s;
    }

    .rv-common-hero__content{
        width:auto;
        max-width:390px;
        margin:0;
        padding:0 24px;
    }

    .rv-common-hero__title{
        font-size:38px;
    }

    .rv-common-hero__text{
        font-size:15px;
    }
}

@media(prefers-reduced-motion:reduce){
    .rv-common-hero::after,
    .rv-common-hero__eyebrow,
    .rv-common-hero__title,
    .rv-common-hero__text,
    .rv-common-hero__cta{
        animation:none;
    }

    .rv-common-hero__eyebrow,
    .rv-common-hero__title,
    .rv-common-hero__text,
    .rv-common-hero__cta{
        opacity:1;
        transform:none;
    }

    .rv-common-hero__cta{
        transition:none;
    }
}
