body {
    color: #24364b;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #fff;
}

.cner-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(circle at 85% 30%, rgba(74, 222, 128, 0.15), transparent 24rem), linear-gradient(120deg, #0a2347 0%, #0f2c59 58%, #173f70 100%);
}

.cner-hero::after {
    position: absolute;
    right: -6rem;
    bottom: -8rem;
    width: 26rem;
    height: 26rem;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
    box-shadow: 0 0 0 4rem rgba(255, 255, 255, 0.025), 0 0 0 8rem rgba(255, 255, 255, 0.018);
}

.cner-hero__inner,
.content-container,
.section-nav__inner {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.cner-hero__inner {
    position: relative;
    z-index: 1;
    padding: clamp(70px, 9vw, 118px) 0;
}

.cner-eyebrow,
.section-label {
    margin: 0 0 12px;
    color: #a9843e;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.cner-eyebrow { color: #7ce5a2; }

.cner-hero h1 {
    margin: 0;
    font-size: clamp(3rem, 8vw, 6.3rem);
    font-weight: 750;
    letter-spacing: -0.045em;
    line-height: 0.95;
}

.cner-hero__lead {
    max-width: 760px;
    margin: 28px 0 0;
    color: #dce7f5;
    font-size: clamp(1.15rem, 2vw, 1.48rem);
    line-height: 1.65;
}

.section-nav {
    position: sticky;
    top: 0px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e2e8f0;
    backdrop-filter: blur(10px);
    box-shadow:
    0 1px 0 rgba(15, 44, 89, 0.08),
    0 10px 24px rgba(15, 44, 89, 0.16);
}

.section-nav__inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
}

.section-nav__links {
    display: flex;
    gap: 6px 34px;
    overflow-x: auto;
}

.section-nav a {
    padding: 19px 0 16px;
    color: #526478;
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.section-nav a:hover,
.section-nav a:focus-visible {
    color: #0f2c59;
    border-bottom-color: #bfa15f;
}

.section-nav__toggle {
    display: inline-flex;
    min-width: 52px;
    padding: 0 18px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: #0f2c59;
    background: transparent;
    border: 0;
    border-left: 1px solid #e2e8f0;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease;
}

.section-nav__toggle:hover,
.section-nav__toggle:focus-visible {
    color: #fff;
    background: #0f2c59;
}

.section-nav.is-collapsed {
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.section-nav.is-collapsed .section-nav__inner {
    width: auto;
}

.section-nav.is-collapsed .section-nav__links {
    display: none;
}

.section-nav.is-collapsed .section-nav__toggle {
    min-width: 52px;
    min-height: 46px;
    color: #fff;
    background: #0f2c59;
    border: 0;
    border-radius: 0 0 0 6px;
    box-shadow: 0 5px 14px rgba(15, 44, 89, 0.18);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.content-section {
    padding: clamp(72px, 9vw, 112px) 0;
    scroll-margin-top: 0px;
}

.content-section--tinted { background: #f3f6f9; }

.presentation-grid {
    display: grid;
    grid-template-columns: minmax(270px, 0.85fr) minmax(0, 1.3fr);
    gap: clamp(48px, 8vw, 110px);
    align-items: start;
}

.section-heading h2,
.expertise-band h2 {
    margin: 0;
    color: #0f2c59;
    font-size: clamp(2rem, 4vw, 3.25rem);
    letter-spacing: -0.035em;
    line-height: 1.14;
}

.presentation-copy > p {
    margin: 0 0 20px;
    color: #4b5f73;
    font-size: 1.05rem;
    line-height: 1.85;
}

.presentation-copy blockquote {
    margin: 38px 0 0;
    padding: 22px 26px;
    color: #0f2c59;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.6;
    background: #f5f8fb;
    border-left: 4px solid #bfa15f;
}

.section-heading--centered {
    max-width: 760px;
    margin: 0 auto 52px;
    text-align: center;
}

.section-heading--centered > p:last-child,
.section-heading--split > p {
    color: #5b6e81;
    line-height: 1.75;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.mission-card {
    position: relative;
    grid-column: span 2;
    min-height: 270px;
    padding: 30px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.mission-card:nth-child(4) { grid-column: 2 / span 2; }

.mission-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 44, 89, 0.1);
}

.mission-card__number {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #dfe6ed;
    font-size: 2.4rem;
    font-weight: 800;
}

.mission-card__icon,
.domain-item__icon {
    display: grid;
    place-items: center;
    color: #0f2c59;
    background: #eaf0f6;
}

.mission-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 32px;
    border-radius: 50%;
}

.mission-card h3,
.domain-item h3 {
    margin: 0;
    color: #0f2c59;
    font-size: 1.08rem;
}

.mission-card p,
.domain-item p {
    margin: 12px 0 0;
    color: #607286;
    line-height: 1.65;
}

.section-heading--split {
    display: grid;
    grid-template-columns: 1.1fr 0.8fr;
    gap: 70px;
    align-items: end;
    margin-bottom: 54px;
}

.domain-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #dbe3eb;
}

.domain-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 22px;
    padding: 32px 34px 32px 0;
    border-bottom: 1px solid #dbe3eb;
}

.domain-item:nth-child(even) {
    padding-right: 0;
    padding-left: 34px;
    border-left: 1px solid #dbe3eb;
}

.domain-item__icon {
    width: 52px;
    height: 52px;
    font-size: 1.1rem;
    border-radius: 2px;
}

.content-section--organisation {
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(
            rgba(255, 255, 255, 0.90),
            rgba(255, 255, 255, 0.90)
        ),
        url("../images/fond-organigramme.png") center / cover no-repeat fixed;
}
@media (max-width: 760px) {
    .content-section--organisation {
        background-attachment: scroll;
        background-position: center;
    }
}

.org-chart {
    --org-line: #9baec2;
    position: relative;
    max-width: 1060px;
    margin: 74px auto 0;
    padding-top: 1px;
}

.org-chart__lines {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 688px;
    overflow: visible;
    pointer-events: none;
}

.org-chart__lines path {
    fill: none;
    stroke: var(--org-line);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
    shape-rendering: geometricPrecision;
}

.org-box {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 150px;
    padding: 26px 22px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
    border: 1px solid #cad5e1;
    border-top: 4px solid #bfa15f;
    box-shadow: 0 10px 25px rgba(15, 44, 89, 0.06);
}

.org-box strong {
    color: #0f2c59;
    font-size: 0.98rem;
    line-height: 1.45;
}

.org-box span {
    margin-top: 12px;
    color: #687b8e;
    font-size: 0.98rem;
    line-height: 1.5;
}

.org-box__icon {
    display: grid;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    place-items: center;
    color: #0f2c59;
    background: #eaf0f6;
    border-radius: 50%;
}

.org-chart__head {
    width: min(330px, 100%);
    height: 150px;
    min-height: 0;
    margin: 0 auto;
}

.org-chart__head strong { font-size: 1.2rem; }

.org-chart__support {
    width: 29.25%;
    height: 150px;
    min-height: 0;
    margin: 68px auto 80px 8%;
    border-top-color: #4c719d;
}

.org-chart__services {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.org-chart__services .org-box {
    height: 240px;
}

.expertise-band {
    padding: clamp(64px, 8vw, 92px) 0;
    color: #d7e3ef;
    background: #0f2c59;
    scroll-margin-top: 0px;
}

.cner-figures { background: #fff; }

.cner-figures__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.cner-figure {
    padding: 12px 28px 20px;
    border-left: 3px solid #bfa15f;
}

.cner-figure strong {
    display: block;
    color: #0f2c59;
    font-size: clamp(2.8rem, 5vw, 4.3rem);
    line-height: 1.1;
    white-space: nowrap;
}

.cner-figure strong small { font-size: 0.42em; }
.cner-figure h3 { margin: 17px 0 8px; color: #0f2c59; font-size: 1.12rem; }
.cner-figure p { margin: 0; color: #5b6e81; line-height: 1.65; }
.cner-figures__source { margin: 32px 0 0; color: #607286; font-size: 0.82rem; line-height: 1.6; }

.expertise-band__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.section-label--light { color: #74df9c; }
.expertise-band h2 { color: #fff; }

.expertise-band p:last-child {
    max-width: 720px;
    margin: 22px 0 0;
    line-height: 1.8;
}

.portal-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    color: #0f2c59;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    background: #fff;
    border: 1px solid #fff;
    transition: color 160ms ease, background 160ms ease;
}

.portal-link:hover,
.portal-link:focus-visible {
    color: #a9843e;
    background: transparent;
}

@media (max-width: 1050px) {
    .section-nav { top: 260px; }
    .mission-card { grid-column: span 3; }
    .mission-card:nth-child(4) { grid-column: span 3; }
    .mission-card:last-child { grid-column: 2 / span 4; }
}

@media (max-width: 800px) {
    .cner-figures__grid { grid-template-columns: 1fr; gap: 24px; }
    .presentation-grid,
    .section-heading--split,
    .expertise-band__inner {
        grid-template-columns: 1fr;
        gap: 34px;
    }
    .domain-list { grid-template-columns: 1fr; }
    .domain-item,
    .domain-item:nth-child(even) {
        padding: 28px 0;
        border-left: 0;
    }

    .org-chart { margin-top: 48px; }
    .org-chart__lines { display: none; }
    .org-chart__head,
    .org-chart__support {
        width: 100%;
        height: auto;
        margin: 0 0 28px;
    }
    .org-chart__services { grid-template-columns: 1fr; gap: 28px; }
    .org-box {
        min-height: auto;
        padding: 26px;
    }
    .org-chart__services .org-box { height: auto; }
}

@media (max-width: 700px) {
    .cner-hero__inner,
    .content-container,
    .section-nav__inner { width: min(100% - 32px, 1180px); }
    .section-nav { position: static; }
    .section-nav__inner { width: 100%; gap: 0; }
    .section-nav__links { padding-left: 16px; }
    .section-nav.is-collapsed { width: 100%; }
    .section-nav.is-collapsed .section-nav__inner { width: 100%; justify-content: flex-end; }
    .content-section,
    .expertise-band { scroll-margin-top: 20px; }
    .mission-grid { display: block; }
    .mission-card { min-height: auto; margin-bottom: 16px; }
    .domain-item { grid-template-columns: 48px 1fr; gap: 16px; }
    .domain-item__icon { width: 44px; height: 44px; }
}

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

.equipment-teaser {
    margin-bottom: 64px;
}

@media (max-width: 800px) {
    .equipment-teaser {
        margin-bottom: 40px;
    }
}

.cner-history {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid #dbe3eb;
}

.cner-history div {
    padding-left: 18px;
    border-left: 3px solid #bfa15f;
}

.cner-history strong {
    display: block;
    margin-bottom: 6px;
    color: #0f2c59;
    font-size: 1.65rem;
}

.cner-history span {
    color: #5b6e81;
    line-height: 1.55;
}

@media (max-width: 600px) {
    .cner-history {
        grid-template-columns: 1fr;
    }
}

.cner-stats__workforce-table {
    width: 100%;
    table-layout: fixed;
}

.cner-stats__workforce-table th:first-child,
.cner-stats__workforce-table td:first-child {
    width: 30%;
}

.cner-stats__workforce-table th:not(:first-child),
.cner-stats__workforce-table td:not(:first-child) {
    width: 14%;
    padding-inline: 6px;
    text-align: center;
}

.cner-stats__workforce-table thead th:not(:first-child) {
    font-size: clamp(0.78rem, 1.3vw, 0.95rem);
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
}

/* Le CNER en chiffres : présentation en cartes */
#chiffres .cner-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 44px 0;
}

#chiffres .cner-stats__item {
    position: relative;
    padding: 30px;
    overflow: hidden;
    background: #f7f9fc;
    border: 1px solid #dce4ec;
    border-radius: 0px;
    box-shadow: 0 10px 30px rgba(15, 44, 89, 0.06);
}

#chiffres .cner-stats__item::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    content: "";
    background: #bfa15f;
}

#chiffres .cner-stats__value {
    display: block;
    color: #0f2c59;
    font-size: clamp(2.6rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

#chiffres .cner-stats__value small {
    font-size: 0.38em;
}

#chiffres .cner-stats__item h3 {
    margin: 18px 0 8px;
    color: #0f2c59;
    font-size: 1.05rem;
    line-height: 1.4;
}

#chiffres .cner-stats__item p {
    margin: 0;
    color: #5b6e81;
    line-height: 1.65;
}

#chiffres .cner-stats__item--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 30px;
    width: 100%;
    padding: 34px 40px;
    justify-self: center;
    align-items: center;
    background: #0f2c59;
    border: 0;
    color: #fff;
    text-align: left;
}

#chiffres .cner-stats__item--featured::before {
    right: auto;
    bottom: 0;
    width: 6px;
    height: auto;
}

#chiffres .cner-stats__item--featured .cner-stats__value {
    grid-row: 1 / 3;
    color: #fff;
    font-size: clamp(3.5rem, 6vw, 5.5rem);
}

#chiffres .cner-stats__item--featured h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1.4rem;
}

#chiffres .cner-stats__item--featured p {
    color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 850px) {
    #chiffres .cner-stats__grid {
        grid-template-columns: 1fr;
    }

    #chiffres .cner-stats__item--featured {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    #chiffres .cner-stats__item--featured {
        display: block;
        padding: 30px;
        text-align: center;
    }

    #chiffres .cner-stats__item--featured h3 {
        margin-top: 14px;
    }

    #chiffres .cner-stats__item {
        padding: 26px;
    }
}

.finance-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
    margin-top: 14px;
    color: #405a78;
    font-size: 0.88rem;
    line-height: 1.4;
}

.finance-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.finance-legend i {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    background-color: var(--legend-color);
}

/* Trois éléments bien répartis sous le second graphique */
.finance-legend--budget {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.finance-legend--budget span {
    white-space: normal;
    align-items: flex-start;
    line-height: 1.3;
}
@media (max-width: 700px) {
    .finance-legend--budget {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.cner-chart__value {
    fill: #8f7338;
    font-size: 11px;
    font-weight: 600;
}

.cner-chart__value--total {
    fill: #0f2c59;
}

.traffic-legend {
    justify-content: center;
}

.traffic-legend__line i {
    position: relative;
    width: 26px;
    height: 3px;
    flex-basis: 26px;
    background: #0f2c59;
}

.traffic-legend__line i::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    content: "";
    background: #0f2c59;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.actions-section {
    overflow: hidden;
}

.actions-timeline {
    position: relative;
    max-width: 1050px;
    margin: 70px auto 0;
    padding: 10px 0;
}

/* Ligne verticale centrale */
.actions-timeline::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    content: "";
    background: linear-gradient(
        to bottom,
        transparent,
        #bfa15f 8%,
        #bfa15f 92%,
        transparent
    );
    transform: translateX(-50%);
}

.action-step {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 90px 1fr;
    align-items: center;
    min-height: 170px;
}

/* Cercle central */
.action-step__number {
    position: relative;
    z-index: 3;
    display: grid;
    grid-column: 2;
    width: 62px;
    height: 62px;
    margin: auto;
    place-items: center;
    color: #0f2c59;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: #fff;
    border: 3px solid #bfa15f;
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(15, 44, 89, 0.12);
}

/* Carte */
.action-step__card {
    position: relative;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 20px;
    align-items: center;
    padding: 26px 28px;
    background: #fff;
    border: 1px solid #dce4ec;
    border-left: 4px solid #0f2c59;
    box-shadow: 0 14px 35px rgba(15, 44, 89, 0.08);
    opacity: 0;
    transition:
        opacity 650ms ease,
        transform 650ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 250ms ease;
}

.action-step--right .action-step__card {
    grid-column: 3;
    transform: translateX(70px);
}

.action-step--left .action-step__card {
    grid-column: 1;
    grid-row: 1;
    transform: translateX(-70px);
}

/* Trait de connexion */
.action-step__card::before {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 2px;
    content: "";
    background: #bfa15f;
    transform: translateY(-50%);
}

.action-step--right .action-step__card::before {
    right: 100%;
}

.action-step--left .action-step__card::before {
    left: 100%;
}

/* Petit point près de la carte */
.action-step__card::after {
    position: absolute;
    top: 50%;
    width: 9px;
    height: 9px;
    content: "";
    background: #bfa15f;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #bfa15f;
    transform: translateY(-50%);
}

.action-step--right .action-step__card::after {
    left: -5px;
}

.action-step--left .action-step__card::after {
    right: -5px;
}

.action-step__icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: #fff;
    font-size: 1.1rem;
    background: #0f2c59;
}

.action-step__card h3 {
    margin: 0 0 8px;
    color: #0f2c59;
    font-size: 1.08rem;
    line-height: 1.35;
}

.action-step__card p {
    margin: 0;
    color: #607286;
    line-height: 1.65;
}

/* Apparition au défilement */
.action-step.is-visible .action-step__card {
    opacity: 1;
    transform: translateX(0);
}

.action-step.is-visible .action-step__number {
    animation: actionNumberPop 600ms ease both;
}

.action-step__card:hover {
    box-shadow: 0 20px 42px rgba(15, 44, 89, 0.14);
}

@keyframes actionNumberPop {
    0% {
        opacity: 0;
        transform: scale(0.65);
    }

    70% {
        transform: scale(1.08);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.workforce-details summary {
    width: fit-content;
    font-size: 0.82rem;
    cursor: pointer;
}
/* Réduire l’espace après la section Trafic */
#chiffres {
    padding-bottom: 0;
}

#chiffres .cner-stats__section:last-child {
    padding-bottom: 30px;
}

/* Rapprocher Actions phares de la section précédente */
.actions-section {
    padding-top: 48px;
}

/* État initial des graphiques SVG */
.cner-chart:not(.is-animated) svg rect {
    transform: scaleY(0);
}

.cner-chart svg rect {
    transform-box: fill-box;
    transform-origin: center bottom;
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dessin progressif des courbes */
.cner-chart svg path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 1.5s ease;
}

.cner-chart.is-animated svg path {
    stroke-dashoffset: 0;
}

/* Apparition des barres */
.cner-chart.is-animated svg rect {
    transform: scaleY(1);
}

/* Apparition des points */
.cner-chart svg circle {
    opacity: 0;
    transform: scale(0);
    transform-box: fill-box;
    transform-origin: center;
    transition:
        opacity 550ms ease,
        transform 750ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cner-chart.is-animated svg circle {
    opacity: 1;
    transform: scale(1);
}

/* Valeurs et textes des graphiques */
.cner-chart svg .cner-chart__value {
    opacity: 0;
    transition: opacity 700ms ease 900ms;
}

.cner-chart.is-animated svg .cner-chart__value {
    opacity: 1;
}

/* Graphiques circulaires */
.cner-chart__ring {
    opacity: 0;
    transform: rotate(-35deg) scale(0.72);
    transition:
        opacity 600ms ease,
        transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cner-chart.is-animated .cner-chart__ring {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Légendes */
.cner-chart__legend,
.finance-legend,
.traffic-legend {
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 500ms ease 550ms,
        transform 500ms ease 550ms;
}

.cner-chart.is-animated .cner-chart__legend,
.cner-chart.is-animated .finance-legend,
.cner-chart.is-animated .traffic-legend {
    opacity: 1;
    transform: translateY(0);
}

/* Décalage léger entre les points */
.cner-chart svg circle:nth-of-type(2n) {
    transition-delay: 100ms;
}

.cner-chart svg circle:nth-of-type(3n) {
    transition-delay: 180ms;
}

.cner-chart svg circle:nth-of-type(4n) {
    transition-delay: 260ms;
}

@media (prefers-reduced-motion: reduce) {
    .cner-chart svg rect,
    .cner-chart svg path,
    .cner-chart svg circle,
    .cner-chart svg .cner-chart__value,
    .cner-chart__ring,
    .cner-chart__legend,
    .finance-legend,
    .traffic-legend {
        opacity: 1;
        transition: none;
        transform: none;
        stroke-dashoffset: 0;
    }
}

.cner-stats__top {
    padding: 75px 0 80px;
    background: #0f2c59;
    box-shadow: 0 0 0 100vmax #0f2c59;
    clip-path: inset(0 -100vmax);
}

.cner-stats__top .section-heading h2 {
    color: #fff;
}

.cner-stats__top .section-label {
    color: #d0ad61;
}

.cner-stats__top + .cner-stats__sections {
    margin-top: 0;
    padding-top: 60px;
}

/* =========================================================
   V2 — SOMMAIRE VERTICAL DE LA PAGE « LE CNER »
   Le sommaire reste distinct du menu principal et suit le scroll.
   ========================================================= */
@media (min-width: 901px) {
    .section-nav {
        position: sticky;
        top: 18px;
        z-index: 20;
        height: 0;
        width: 100%;
        margin: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        backdrop-filter: none;
        overflow: visible;
    }

    .section-nav__inner {
        position: absolute;
        top: 44px;
        left: max(20px, calc((100vw - 1180px) / 2 - 205px));
        display: block;
        width: 185px;
        margin: 0;
        padding: 0;
    }

    .section-nav__title {
        margin: 0 0 15px;
        color: #a9843e;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.16em;
        text-transform: uppercase;
    }

    .section-nav__links {
        display: flex;
        flex-direction: column;
        gap: 0;
        overflow: visible;
        padding: 2px 0 2px 20px;
        border-left: 2px solid #dfe6ee;
    }

    .section-nav a {
        position: relative;
        display: block;
        padding: 10px 0;
        color: #65758a;
        font-size: 0.80rem;
        font-weight: 650;
        line-height: 1.35;
        white-space: normal;
        border: 0;
        transition: color 160ms ease, transform 160ms ease;
    }

    .section-nav a:hover,
    .section-nav a:focus-visible {
        color: #0f2c59;
        border: 0;
        transform: translateX(3px);
    }

    .section-nav a.is-active {
        color: #0f2c59;
        font-weight: 800;
    }
    

    .section-nav a.is-active::before {
        position: absolute;
        top: 50%;
        left: -22px;
        width: 4px;
        height: 28px;
        content: "";
        background: #bfa15f;
        border-radius: 3px;
        transform: translateY(-50%);
    }

    .section-nav__toggle { display: none !important; }

    /* Garde une marge confortable entre la navigation et le contenu
       lorsque l'écran n'offre pas un grand espace latéral. */
    @media (max-width: 1580px) {
        .content-container {
            width: auto;
            margin-left: 250px;
            margin-right: 150px;
        }

        .section-nav__inner {
            left: 28px;
        }
    }
}

/* Tablette / mobile : le sommaire redevient horizontal et compact. */
@media (max-width: 900px) {
    .section-nav {
        position: sticky;
        top: 0;
        z-index: 20;
        height: auto;
        width: 100%;
        background: rgba(255, 255, 255, 0.97);
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 4px 14px rgba(15, 44, 89, 0.08);
        backdrop-filter: blur(10px);
    }

    .section-nav__inner {
        display: block;
        width: min(100% - 32px, 1180px);
        margin-inline: auto;
    }

    .section-nav__title { display: none; }

    .section-nav__links {
        display: flex;
        flex-direction: row;
        gap: 24px;
        padding: 0;
        overflow-x: auto;
        scrollbar-width: none;
        border: 0;
    }

    .section-nav__links::-webkit-scrollbar { display: none; }

    .section-nav a {
        position: relative;
        flex: 0 0 auto;
        padding: 15px 0 12px;
        color: #607286;
        font-size: 0.80rem;
        font-weight: 700;
        white-space: nowrap;
        border: 0;
    }

    .section-nav a.is-active { color: #0f2c59; }

    .section-nav a.is-active::after {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 3px;
        content: "";
        background: #bfa15f;
    }

    .section-nav__toggle { display: none !important; }
    .content-section,
    .expertise-band { scroll-margin-top: 58px; }
}

.section-nav__inner {
    /* tes propriétés actuelles */
    padding: 14px 12px 14px 16px;

    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(12px);
    border-radius: 4px;
}

/* État initial */
.cner-age-pyramid__bar {
    transform-box: fill-box;
    opacity: 0;
}

.cner-age-pyramid__bar--women {
    transform-origin: right center;
    transform: scaleX(0);
}

.cner-age-pyramid__bar--men {
    transform-origin: left center;
    transform: scaleX(0);
}

/* L'animation ne démarre qu'à l'arrivée à l'écran */
.cner-age-pyramid.is-visible .cner-age-pyramid__bar {
    animation: ageBarGrow 1s cubic-bezier(.22, .61, .36, 1) forwards;
}

@keyframes ageBarGrow {
    from {
        transform: scaleX(0);
        opacity: .35;
    }

    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes ageBarGrow {
    from {
        transform: scaleX(0);
        opacity: 0.35;
    }

    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cner-age-pyramid__bar {
        animation: none;
    }
}

/* ==========================================================
   STYLES DE LA RUBRIQUE « LE CNER EN CHIFFRES »
   Extraits de le-cner.html lors du nettoyage du projet.
   ========================================================== */
/* Rubrique ajoutée : Le CNER en chiffres */
        .equipment-teaser { margin-bottom: 64px; }
        .cner-timeline { display: grid; grid-template-columns: 1fr 90px 1fr; gap: 20px; margin-bottom: 36px; align-items: center; }
        .cner-timeline__item { position: relative; }
        .cner-timeline__year { display: block; margin-bottom: 8px; color: #b08a3f; font-size: 2rem; font-weight: 800; line-height: 1.1; }
        .cner-timeline__item p { margin: 0; color: #40566d; line-height: 1.6; }
        .cner-timeline__line { position: relative; height: 2px; background: #cbd5df; }
        .cner-timeline__line::before,
        .cner-timeline__line::after { position: absolute; top: 50%; width: 10px; height: 10px; content: ""; background: #0f2c59; border-radius: 50%; transform: translateY(-50%); }
        .cner-timeline__line::before { left: 0; }
        .cner-timeline__line::after { right: 0; }
        .cner-stats { background: #fff; }
        .cner-stats__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 24px; margin: 44px 0; }
        .cner-stats__item { padding: 12px 24px 16px; border-left: 3px solid #bfa15f; }
        .cner-stats__item--featured { grid-column: 1 / -1; width: min(100%, 420px); justify-self: center; padding: 18px 24px 22px; border-top: 3px solid #bfa15f; border-left: 0; text-align: center; }
        .cner-stats__value { display: block; color: #0f2c59; font-size: clamp(2.4rem, 4.5vw, 4rem); font-weight: 800; line-height: 1.1; white-space: nowrap; }
        .cner-stats__value small { font-size: .4em; }
        .cner-stats__item h3 { margin: 14px 0 6px; color: #0f2c59; font-size: 1.05rem; }
        .cner-stats__item p, .cner-stats__note { margin: 0; color: #5b6e81; line-height: 1.65; }
        .cner-stats__sections { margin-top: 64px; border-top: 1px solid #dbe3eb; }
        .cner-stats__section { display: grid; grid-template-columns: minmax(210px, .34fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); padding: 60px 0; border-bottom: 1px solid #dbe3eb; }
        .cner-stats__section:nth-child(even) { background: linear-gradient(90deg, transparent, #f7f9fb 12%, #f7f9fb 88%, transparent); }
        .cner-stats__section-heading h3 { margin: 0; color: #0f2c59; font-size: clamp(1.55rem, 2.7vw, 2.25rem); line-height: 1.2; }
        .cner-stats__section-heading p { margin: 14px 0 0; color: #607286; line-height: 1.65; }
        .cner-stats__section-content { min-width: 0; color: #4b5f73; line-height: 1.7; }
        .cner-stats__table-wrap { max-width: 100%; overflow-x: auto; }
        .cner-stats table { width: 100%; border-collapse: collapse; text-align: left; }
        .cner-stats th, .cner-stats td { padding: 11px 12px; border-bottom: 1px solid #e2e8f0; }
        .cner-stats th { color: #0f2c59; background: #f3f6f9; }
        .cner-stats td:not(:first-child), .cner-stats th:not(:first-child) { text-align: right; white-space: nowrap; }
        .cner-stats__note { margin-top: 18px; font-size: .86rem; }
        @media (max-width: 800px) { .equipment-teaser { margin-bottom: 40px; } .cner-stats__grid { grid-template-columns: 1fr; gap: 22px; } .cner-stats__item--featured { grid-column: auto; } }
        @media (max-width: 700px) {
            .cner-timeline { grid-template-columns: 1fr; gap: 24px; padding-left: 22px; border-left: 2px solid #cbd5df; }
            .cner-timeline__line { display: none; }
        }
        .cner-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 0 0 32px; }
        .cner-chart { min-width: 0; padding: 0 0 24px; border-bottom: 2px solid #dbe3eb; }
        .cner-chart--wide { grid-column: 1 / -1; }
        .cner-chart h4 { margin: 0 0 18px; color: #0f2c59; font-size: 1.08rem; }
        .cner-chart__body { display: flex; align-items: center; gap: 20px; }
        .cner-chart__ring { display: grid; width: 140px; height: 140px; flex: 0 0 140px; place-items: center; border-radius: 50%; background: conic-gradient(#0f2c59 0 var(--share), #bfa15f var(--share) 100%); }
        .cner-chart__ring::after { display: grid; width: 88px; height: 88px; place-items: center; border-radius: 50%; background: #fff; content: attr(data-total); color: #0f2c59; font-size: 1.7rem; font-weight: 800; }
        .cner-chart__ring--categories {
    background: conic-gradient(
        #0f2c59 0 22.5%,       /* Ingénieurs : 9 */
        #5f7f7a 22.5% 30%,     /* Administrateurs : 3 */
        #7ca1c4 30% 72.5%,     /* Maîtrise : 17 */
        #bfa15f 72.5% 100%     /* Exécution : 11 */
    );
}
        .cner-chart__ring--traffic { background: conic-gradient(#0f2c59 0 64.12%, #bfa15f 64.12% 82.13%, #7ca1c4 82.13% 100%); }
        .cner-chart__ring--traffic::after { content: "2024"; }
        .cner-chart__legend { margin: 0; padding: 0; list-style: none; }
        .cner-chart__legend li { margin: 5px 0; }
        .cner-chart__legend span { display: inline-block; width: 11px; height: 11px; margin-right: 8px; border-radius: 50%; background: var(--color); }
        .cner-chart__plot { width: 100%; height: auto; display: block; }
        .cner-chart__axis { fill: #607286; font-size: 11px; }
        .cner-chart__grid { stroke: #dbe3eb; stroke-width: 1; }
        .cner-chart__caption { margin: 12px 0 0; color: #607286; font-size: .83rem; }

        /* Pyramide des âges — Ressources humaines */
        .cner-age-pyramid {
            grid-column: 1 / -1;
            min-width: 0;
            padding: 8px 0 28px;
            border-bottom: 2px solid #dbe3eb;
        }
        .cner-age-pyramid h4 {
            margin: 0 0 8px;
            color: #0f2c59;
            font-size: 1.08rem;
        }
        .cner-age-pyramid__subtitle {
            margin: 0 0 22px;
            color: #607286;
            font-size: .86rem;
        }
        .cner-age-pyramid__legend {
            display: flex;
            justify-content: center;
            gap: 24px;
            margin-bottom: 18px;
            color: #4b5f73;
            font-size: .88rem;
        }
        .cner-age-pyramid__legend span {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .cner-age-pyramid__legend i {
            width: 11px;
            height: 11px;
            border-radius: 50%;
            background: var(--color);
        }
        .cner-age-pyramid__plot {
            width: 100%;
            height: auto;
            display: block;
            overflow: visible;
        }
        .cner-age-pyramid__grid {
            stroke: #e2e8f0;
            stroke-width: 1;
        }
        .cner-age-pyramid__axis {
            fill: #607286;
            font-size: 12px;
        }
        .cner-age-pyramid__label {
            fill: #0f2c59;
            font-size: 13px;
            font-weight: 700;
        }
        .cner-age-pyramid__value {
            fill: #40566d;
            font-size: 12px;
            font-weight: 700;
        }
        @media (max-width: 600px) {
            .cner-age-pyramid__legend {
                justify-content: flex-start;
            }
            .cner-age-pyramid__plot {
                min-width: 560px;
            }
            .cner-age-pyramid__scroll {
                overflow-x: auto;
                padding-bottom: 8px;
            }
        }

        @media (max-width: 900px) { .cner-charts { grid-template-columns: 1fr; } .cner-chart--wide { grid-column: auto; } }
        @media (max-width: 800px) { .cner-stats__section { grid-template-columns: 1fr; gap: 26px; padding: 44px 0; } }
        @media (max-width: 440px) { .cner-chart__body { flex-direction: column; align-items: flex-start; } }

/* =========================================================
   MISSIONS — FOND BLANC + MOTIFS ROUTIERS
   ========================================================= */

#missions {
    position: relative;
    overflow: hidden;
    background:#fafcff;
    border: 1px solid #dce4ec;
    isolation: isolate;
}

/* Route décorative gauche */
#missions::before {
    content: "";
    position: absolute;
    z-index: -1;

    left: -210px;
    top: 40px;

    width: 650px;
    height: 330px;

    background: url("../images/pattern-road.svg") center / contain no-repeat;

    opacity: .16;
    transform: scaleX(-1) rotate(-7deg);
    pointer-events: none;
}

/* Route décorative droite */
#missions::after {
    content: "";
    position: absolute;
    z-index: -1;

    right: -180px;
    bottom: -40px;

    width: 700px;
    height: 340px;

    background: url("../images/pattern-road.svg") center / contain no-repeat;

    opacity: .16;
    transform: rotate(4deg);
    pointer-events: none;
}

/* Contenu au-dessus des routes */
#missions .content-container {
    position: relative;
    z-index: 1;
}
.org-box__secondary-name {
    display: block;
    margin-top: 7px;
    color: #526478;
    font-size: .84rem;
    font-weight: 600;
}

.org-chart__note {
    margin: 18px 0 0;
    color: #718194;
    font-size: .76rem;
    font-style: italic;
    text-align: right;
}

.age-pyramid__insight {
    position: relative;
    display: inline-block;
    max-width: none;
    margin: 22px 0 26px;
    padding: 5px 0 5px 14px;

    color: #52677d;
    font-size: .88rem;
    line-height: 1.5;
    white-space: nowrap;
}

.age-pyramid__insight::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 2px;
    background: #bfa15f;
}

.age-pyramid__insight strong {
    color: #0f2c59;
    font-weight: 800;
}

/* Sur petit écran, on autorise naturellement le retour à la ligne */
@media (max-width: 700px) {
    .age-pyramid__insight {
        white-space: normal;
    }
}