/* C2RB — composant Hero */
:root {
    --c2rb-menu-green: #50a599;
}
.c2rb-hero {
    position: relative;
    width: 100%;
    overflow: visible;
}

.c2rb-hero__stage {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background: #0b4d58;
}

.c2rb-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.c2rb-hero__image,
.c2rb-hero__overlay {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.c2rb-hero__image {
    z-index: 0;
    object-fit: cover;
    object-position: center;
}

.c2rb-hero__overlay {
    z-index: 1;
    object-fit: cover;
    object-position: center;
    opacity: .70;
    pointer-events: none;
}

.c2rb-hero__stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(2, 38, 46, .02), rgba(2, 38, 46, .13));
    pointer-events: none;
}

.c2rb-hero__inner {
    box-sizing: border-box;
    width: min(100% - 48px, 1540px);
    margin-inline: auto;
}

/* Accueil : hauteur maîtrisée sur grand écran, contenu protégé des statistiques. */
.c2rb-hero--home {
    margin-bottom: 122px;
}

.c2rb-hero--home .c2rb-hero__stage {
    height: 720px;
}

.c2rb-hero--home .c2rb-hero__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 80px 0 190px;
    text-align: center;
}

.c2rb-hero--home .c2rb-hero__content {
    width: 100%;
    max-width: 1420px;
    margin-inline: auto;
    text-shadow: 0 2px 20px rgba(0, 28, 34, .25);
}

.c2rb-hero__title {
    max-width: 1400px;
    margin: 0 auto 18px;
    color: inherit;
    font-size: clamp(2.35rem, 4.7vw, 4.85rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.c2rb-hero__lead {
    max-width: 1180px;
    margin: 0 auto;
    color: inherit;
    font-size: clamp(1.05rem, 1.6vw, 1.55rem);
    line-height: 1.45;
    text-wrap: balance;
}

.c2rb-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin-top: 28px;
    padding: 12px 25px;
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 8px 24px rgba(0, 38, 46, .16);
    backdrop-filter: blur(8px);
    transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.c2rb-hero__cta:hover,
.c2rb-hero__cta:focus-visible {
    color: var(--c2rb-menu-green);
    background: #fff;
    box-shadow: 0 14px 30px rgba(0, 38, 46, .24);
    transform: translateY(-3px);
}

.c2rb-hero__stats {
    position: absolute;
    right: 0;
    bottom: -86px;
    left: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 76px;
    width: min(calc(100% - 40px), 1160px);
    min-height: 172px;
    margin-inline: auto;
    padding-inline: 76px;
    overflow: hidden;
    border: 0;
    border-radius: 34px;
    background: #7CB5C2;
    box-shadow: 0 24px 60px rgba(15, 55, 64, .19);
}

.c2rb-hero-stat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 25px 28px;
    text-align: center;
    background: #fff;
}

.c2rb-hero-stat + .c2rb-hero-stat::before {
    content: none;
}

.c2rb-hero-stat__value {
    color: #57bfbd;
    font-size: clamp(2.65rem, 4.6vw, 4.45rem);
    font-weight: 800;
    line-height: .95;
    letter-spacing: -.04em;
}

.c2rb-hero-stat__unit {
    margin-left: .08em;
    font-size: .7em;
}

.c2rb-hero-stat__label {
    max-width: 250px;
    margin: 13px auto 0;
    color: #31565e;
    font-size: clamp(.9rem, 1.25vw, 1.05rem);
    font-weight: 600;
    line-height: 1.35;
}

/* Socle des futures variantes intérieures. */
.c2rb-hero--level-1,
.c2rb-hero--level-2 {
    min-height: 430px;
}

.c2rb-hero--level-1 .c2rb-hero__inner,
.c2rb-hero--level-2 .c2rb-hero__inner {
    padding-top: clamp(110px, 12vw, 180px);
    padding-bottom: clamp(70px, 9vw, 130px);
}

.c2rb-hero--level-1 {
    height: auto;
    min-height: 520px;
}

.c2rb-hero--level-2 {
    height: auto;
    min-height: 410px;
}

@media (min-width: 1500px) {
    .c2rb-hero--home .c2rb-hero__stage {
        height: 760px;
    }

    .c2rb-hero--home .c2rb-hero__inner {
        padding-bottom: 215px;
    }
}

@media (max-width: 900px) {
    .c2rb-hero--home {
        margin-bottom: 102px;
    }

    .c2rb-hero--home .c2rb-hero__stage {
        height: 660px;
    }

    .c2rb-hero--home .c2rb-hero__inner {
        padding-top: 70px;
        padding-bottom: 175px;
    }

    .c2rb-hero__stats {
        bottom: -74px;
        column-gap: 42px;
        min-height: 148px;
        padding-inline: 42px;
        border-radius: 28px;
    }

    .c2rb-hero-stat {
        padding: 20px 16px;
    }
}

@media (max-width: 680px) {
    .c2rb-hero--home {
        margin-bottom: 32px;
        background: transparent;
    }

    .c2rb-hero--home .c2rb-hero__stage {
        height: auto;
        min-height: 590px;
    }

    .c2rb-hero--home .c2rb-hero__inner {
        width: min(100% - 30px, 520px);
        align-items: flex-start;
        height: auto;
        min-height: 590px;
        padding-top: 105px;
        padding-bottom: 78px;
    }

    .c2rb-hero--home .c2rb-hero__content {
        margin-block: auto;
    }

    .c2rb-hero__image {
        object-position: 58% center;
    }

    .c2rb-hero__overlay {
        object-position: 53% center;
    }

    .c2rb-hero__title {
        font-size: clamp(2.15rem, 10.5vw, 3.25rem);
    }

    .c2rb-hero__lead {
        font-size: 1.02rem;
        line-height: 1.5;
    }

    .c2rb-hero__cta {
        margin-top: 24px;
    }

    .c2rb-hero__stats {
        position: relative;
        right: auto;
        bottom: auto;
        left: auto;
        grid-template-columns: 1fr;
        row-gap: 16px;
        width: min(calc(100% - 30px), 520px);
        min-height: 0;
        margin-top: -28px;
        padding: 0;
        overflow: visible;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .c2rb-hero-stat {
        min-height: 145px;
        padding: 20px 25px;
        overflow: hidden;
        border-right: 22px solid #7CB5C2;
        border-left: 22px solid #7CB5C2;
        border-radius: 25px;
        box-shadow: 0 16px 36px rgba(15, 55, 64, .16);
    }

    .c2rb-hero-stat + .c2rb-hero-stat::before {
        content: none;
    }
}

@media (max-width: 420px) {
    .c2rb-hero--home .c2rb-hero__stage,
    .c2rb-hero--home .c2rb-hero__inner {
        min-height: 640px;
    }

    .c2rb-hero--home .c2rb-hero__inner {
        padding-top: 90px;
        padding-bottom: 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .c2rb-hero__cta {
        transition: none;
    }
}

/* Version 0.4.1 : Heroes intérieurs et fil d’Ariane dans un bandeau indépendant. */
.c2rb-hero--level-1,
.c2rb-hero--level-2 {
    min-height: 0;
    margin: 0;
}

.c2rb-hero--level-1 .c2rb-hero__stage,
.c2rb-hero--level-2 .c2rb-hero__stage {
    min-height: 430px;
}

.c2rb-hero--level-1 .c2rb-hero__inner,
.c2rb-hero--level-2 .c2rb-hero__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: inherit;
    padding-top: clamp(58px, 7vw, 96px);
    padding-bottom: clamp(58px, 7vw, 100px);
    text-align: center;
}

.c2rb-hero--level-1 .c2rb-hero__content,
.c2rb-hero--level-2 .c2rb-hero__content {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    text-shadow: 0 2px 18px rgba(0, 31, 39, .25);
}

.c2rb-hero--level-1 .c2rb-hero__title,
.c2rb-hero--level-2 .c2rb-hero__title {
    max-width: 1120px;
    font-size: clamp(2.25rem, 4.4vw, 4.5rem);
}

.c2rb-hero--level-1 .c2rb-hero__lead,
.c2rb-hero--level-2 .c2rb-hero__lead {
    max-width: 920px;
    font-size: clamp(1rem, 1.45vw, 1.28rem);
}

/* Bandeau global du fil d’Ariane, séparé du Hero. */
.c2rb-breadcrumb-bar {
    position: relative;
    z-index: 4;
    width: 100%;
    color: #fff;
    background: var(--c2rb-menu-green);
}

.c2rb-breadcrumb-bar__inner {
    width: min(100% - 48px, 1540px);
    margin-inline: auto;
}

.c2rb-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    min-height: 48px;
    padding-block: 10px;
    color: inherit;
    font-size: .9rem;
    line-height: 1.35;
}

.c2rb-breadcrumb a,
.c2rb-breadcrumb span {
    color: inherit;
}

.c2rb-breadcrumb a {
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: 3px;
}

.c2rb-breadcrumb a:hover,
.c2rb-breadcrumb a:focus-visible {
    text-decoration: underline;
}

.c2rb-breadcrumb [aria-current="page"] {
    font-weight: 700;
}

.c2rb-breadcrumb__separator {
    opacity: .72;
}

.c2rb-hero__submenu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 1180px;
    margin: 34px auto 0;
}

.c2rb-hero__submenu-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 22px;
    border: 1px solid var(--c2rb-menu-green);
    border-radius: 999px;
    color: var(--c2rb-menu-green);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 38, 46, .13);
    transition: transform .2s ease, color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.c2rb-hero__submenu-link:hover,
.c2rb-hero__submenu-link:focus-visible {
    color: #fff;
    background: var(--c2rb-menu-green);
    box-shadow: 0 14px 30px rgba(0, 38, 46, .24);
    transform: translateY(-3px);
}

.c2rb-hero--level-2 .c2rb-hero__stage {
    min-height: 360px;
}

.c2rb-page-content {
    width: 100%;
}

@media (max-width: 680px) {
    .c2rb-hero--level-1 .c2rb-hero__stage,
    .c2rb-hero--level-2 .c2rb-hero__stage {
        min-height: 0;
    }

    .c2rb-hero--level-1 .c2rb-hero__inner,
    .c2rb-hero--level-2 .c2rb-hero__inner {
        width: min(100% - 32px, 1540px);
        padding-top: 44px;
        padding-bottom: 46px;
    }

    .c2rb-breadcrumb-bar__inner {
        width: min(100% - 32px, 1540px);
    }

    .c2rb-breadcrumb {
        min-height: 44px;
        padding-block: 9px;
        gap: 6px;
        font-size: .78rem;
    }

    .c2rb-hero--level-1 .c2rb-hero__title,
    .c2rb-hero--level-2 .c2rb-hero__title {
        font-size: clamp(2rem, 10vw, 3.1rem);
    }

    .c2rb-hero__submenu {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 420px;
        margin-top: 28px;
    }

    .c2rb-hero__submenu-link {
        width: 100%;
        min-height: 48px;
    }
}

/* Version 0.4.4 : centrage explicite de la description ACF des Heroes intérieurs. */
.c2rb-hero--level-1 .c2rb-hero__lead,
.c2rb-hero--level-2 .c2rb-hero__lead,
.c2rb-hero--level-1 .c2rb-hero__lead p,
.c2rb-hero--level-2 .c2rb-hero__lead p {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.c2rb-hero--level-1 .c2rb-hero__lead p,
.c2rb-hero--level-2 .c2rb-hero__lead p {
    margin-top: 0;
    margin-bottom: 0;
}


/* 7.0.14 — Centrage explicite du texte de présentation du Hero d’accueil. */
.c2rb-hero--home .c2rb-hero__lead,
.c2rb-hero--home .c2rb-hero__lead p {
    text-align: center !important;
}
