/* Hero (accueil : vidéo de fond fixe, textes en slider Swiper fondu, box réassurance fixe + marquee secteurs ; pages internes : bandeau 410px) */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--c-dark);
    color: var(--c-cream);
}

.hero--home {
    display: flex;
    height: 845px;
}

/* seuls les textes défilent : le slider occupe la colonne gauche du contenu */
.hero-swiper {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 800px;
    margin: 0;
}

.hero-slide {
    display: flex;
    align-items: center;
    height: auto;
}

.hero-media,
.hero-media::after {
    position: absolute;
    inset: 0;
}

.hero-media {
    overflow: hidden;
}

.hero-media::after {
    content: "";
    background: var(--grad-hero);
}

.hero-img,
.hero-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    padding: 0 48px 0;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: 800px;
}

.hero-eyebrow {
    margin: 0;
    font-size: 1.375rem;
    line-height: 22px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--c-green);
}

.hero-title {
    margin: 0 0 10px;
    font-family: var(--font-title);
    font-size: clamp(20px, 3vw + 1.5rem,80px);
    line-height: 1.2;
    font-weight: 600;
    color: var(--c-cream);
}

/* Entrée échelonnée du texte de la slide active */
.hero-swiper .hero-text>* {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out);
}

.hero-swiper .swiper-slide-active .hero-text>* {
    opacity: 1;
    transform: none;
}

.hero-swiper .swiper-slide-active .hero-text>:nth-child(1) {
    transition-delay: .35s;
}

.hero-swiper .swiper-slide-active .hero-text>:nth-child(2) {
    transition-delay: .5s;
}

.hero-swiper .swiper-slide-active .hero-text>:nth-child(3) {
    transition-delay: .7s;
}

/* ---- Marquee des secteurs d'activité ---- */
.hero-marquee {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .2);
    overflow: hidden;
}

.hero-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.hero-marquee:hover .hero-marquee-track {
    animation-play-state: paused;
}

.hero-marquee ul {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0 30px 0 0;
    list-style: none;
}

.hero-marquee li {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    font-size: 1.375rem;
    line-height: 26px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--c-cream);
}

.hero-marquee li::before {
    content: "";
    width: 21px;
    height: 30px;
    background: url("../userfiles/icons/ico-s.svg") center / contain no-repeat;
}

.hero-marquee a {
    transition: color .5s var(--ease-out);
}

.hero-marquee a:hover {
    color: var(--c-green);
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* ---- Hero des pages internes (410px) ---- */
.hero--intern {
    height: 410px;
}

.hero--intern .hero-content {
    justify-content: center;
    height: 100%;
    padding: 115px 48px 0;
}

.hero--intern .hero-media::after {
    background: linear-gradient(180deg, rgba(61, 61, 59, .9) 0%, rgba(61, 61, 59, .6) 100%);
}

.hero--intern .hero-img {
    animation: hero-in 2.4s var(--ease-out) both;
}

@keyframes hero-in {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1);
    }
}

/* ---- Hero contact : titre + cartes coordonnées qui débordent ---- */
.hero--contact {
    overflow: visible;
    margin-bottom: 64px;
}

.hero--contact .hero-media {
    border-radius: 0;
}

.hero--contact .hero-content {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding-top: 187px;
}

.hero--contact .hero-title {
    font-size: 3.75rem;
    line-height: 72px;
    text-align: center;
}

.contact-cards {
    position: absolute;
    left: 50%;
    top: 365px;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    align-items: stretch;
    gap: 24px;
    width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-card {
    margin: 0;
}

.contact-card>a,
.contact-card>div {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 116px;
    padding: 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .1), 0 18px 18px rgba(0, 0, 0, .05);
    color: #5c5c5c;
    font-size: 1rem;
    line-height: 24px;
    transition: background .7s var(--ease-out), color .5s var(--ease-out), transform .7s var(--ease-out);
}

.contact-card img {
    flex: 0 0 auto;
    height: 76px;
    width: auto;
}

.contact-card .ic-hover {
    display: none;
}

.contact-card-t {
    display: block;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.625rem;
    line-height: 24px;
    color: var(--c-green);
}

.contact-card b {
    font-weight: 700;
}

.contact-card>a:hover,
.contact-card>a:hover,
.contact-card>div:hover,
.contact-card>div:focus-visible {
    background: var(--grad-network);
    color: var(--c-cream);
    transform: translateY(-4px);
}

.contact-card>div:hover img.blanc  {
    filter: brightness(2);
}

.contact-card>a:hover .contact-card-t,
.contact-card>a:focus-visible .contact-card-t {
    color: var(--c-cream);
}

.contact-card>a:hover .ic-default,
.contact-card>a:focus-visible .ic-default {
    display: none;
}

.contact-card>a:hover .ic-hover,
.contact-card>a:focus-visible .ic-hover {
    display: block;
}

/* Contenu du hero aligné sur le conteneur du site (même largeur que .container) */
.hero--home .hero-content.container {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5);
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5);
}
