/* =====================================================================
   Visuel du haut : slider d'accueil (Swiper du www) + bandeau des pages internes.
   Commentaire Figma : « defilement automatique doux avec zoom avant de l'image doux ».
   Pas de pagination ni de fleches : elles ne sont pas dessinees.
   ===================================================================== */
.hero {
    position: relative;
    height: 745px;
    color: #fff;
    background: var(--c-navy);
    overflow: hidden;
}
.hero-swiper,
.hero-swiper .swiper-wrapper,
.hero-slide { height: 100%; }
.hero-slide { position: relative; overflow: hidden; }

.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, 0) 32%),
        rgba(0, 0, 0, .31);
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transform-origin: 60% 50%;
    will-change: transform;
}
/* zoom avant lent et doux sur la diapositive active */
.hero-slide.swiper-slide-active .hero-img,
.hero-slide.swiper-slide-duplicate-active .hero-img,
.hero--intern .hero-img {
    transform: scale(1.09);
    transition: transform 8s cubic-bezier(.25, .1, .25, 1);
}
.hero--intern .hero-img { animation: heroZoom 9s cubic-bezier(.25, .1, .25, 1) both; transition: none; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }

.hero .container { position: relative; z-index: 2; height: 100%; }
.hero-content {
    max-width: 652px;
    margin-left: 7px;
    padding-top: 244px;
    padding-left: 28px;
}
.hero-content.has-corner::before { top: 224px; left: 0; }
.hero-title {
    margin: 0;
    font-family: var(--font-title);
    font-size: 56px;
    line-height: 58px;
    font-weight: 400;
    color: #fff;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* entree echelonnee du texte de la diapositive */
.js .hero-slide .hero-title,
.js .hero-slide .hero-actions,
.js .hero-slide .hero-content.has-corner::before {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.1s var(--ease-out), transform 1.4s var(--ease-out);
}
.js .hero-slide .hero-content.has-corner::before { transform: scale(.4); transform-origin: left top; }
.js .hero-slide.is-shown .hero-content.has-corner::before { opacity: 1; transform: scale(1); transition-delay: .2s; }
.js .hero-slide.is-shown .hero-title { opacity: 1; transform: none; transition-delay: .45s; }
.js .hero-slide.is-shown .hero-actions { opacity: 1; transform: none; transition-delay: .75s; }

/* Encart « Coordination SPS » (fixe sur les 3 diapositives) */
.hero .hero-sps-wrap {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
    margin: 0 auto;
    z-index: 3;
    pointer-events: none;
}
.hero-sps {
    position: absolute;
    right: calc(var(--gutter) + 2px);
    top: 220px;
    width: 312px;
    height: 259px;
    padding-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #fff;
    pointer-events: auto;
    transition: background-color .7s var(--ease-smooth), box-shadow .7s var(--ease-smooth);
}
.hero-sps:hover { background: rgba(255, 255, 255, .06); box-shadow: 0 4px 36.5px rgba(255, 255, 255, .35); }
.hero-sps-logo { width: 141px; height: 62px; object-fit: contain; }
.hero-sps-title {
    margin: 43px 0 4px;
    font-family: var(--font-title);
    font-size: 32px;
    line-height: 59px;
    color: #fff;
}

/* Pages internes */
.hero--intern { height: 559px; }
.hero--intern .hero-content { padding-top: 249px; }
