/* ==========================================================================
   Pages internes : composants de contenu
   ========================================================================== */
.mt { margin-top: 32px; }
.mt-lg { margin-top: 64px; }
.btn--block { width: 100%; }
.nav__item.is-current > .nav__trigger { color: #fff; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
body:not(.home) .nav__item.is-current > .nav__trigger { color: var(--green-800); box-shadow: inset 0 -2px 0 var(--green-700); }
.topbar__contact { color: #d8e6dd; }
.topbar__contact:hover { color: #fff; }
.topbar__label { margin-right: 8px; }

/* Fond crème des pages internes (modèle : normalisation.php de référence) */
body:not(.home) { background: #f7f8f4; }
/* Fondu crème → blanc vers le bas du corps, comme .norm-page du site original */
body:not(.home) main#main { background: linear-gradient(180deg, #f7f8f4 0%, #f7f8f4 60%, #ffffff 100%); }

.page-hero { position: relative; overflow: visible; background: transparent; color: var(--ink); padding: 48px 0 0; }
.page-hero__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-hero__back { color: var(--green-700); font-size: 14px; font-weight: 500; display: inline-flex; gap: 8px; text-decoration: none; }
.page-hero__back:hover { color: var(--green-800); }
.breadcrumb { margin-bottom: 0; font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--green-700); }
.breadcrumb a:hover { color: var(--green-800); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

.page-hero__card { background: #fff; border-radius: var(--radius-lg); padding: 42px; overflow: hidden; box-shadow: 0 8px 24px rgba(15,113,64,.07); }
.page-hero--flush .page-hero__card { border-radius: var(--radius-lg) var(--radius-lg) 0 0; margin-bottom: 0; box-shadow: none; }
.page-hero:not(.page-hero--flush) .page-hero__card { margin-bottom: 40px; }
.page-hero__banner { margin: -42px -42px 28px; height: clamp(220px, 26vw, 320px); overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.page-hero__banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; display: block; }
.page-hero .eyebrow--page { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green-800); margin-bottom: 10px; }
.page-hero .eyebrow--page::before { display: none; }
.page-hero h1 { font-family: var(--sans); color: var(--ink); font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 12px; font-weight: 600; }
.page-hero__intro { color: var(--ink-2); font-size: 27px; font-weight: 700; line-height: 1.5; max-width: 72ch; margin: 0; }

/* Variante « photo » (boutique des normes) : le titre et le texte sont posés sur l'image */
.page-hero__cover { position: relative; display: flex; align-items: center; min-height: clamp(320px, 34vw, 440px); margin-bottom: 40px; padding: 56px; overflow: hidden; border-radius: var(--radius-lg); background: var(--green-950); box-shadow: 0 8px 24px rgba(15,113,64,.07); }
.page-hero__cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.page-hero__cover > img.is-mirrored { transform: scaleX(-1); }
.page-hero__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,40,26,.92) 0%, rgba(6,40,26,.78) 40%, rgba(6,40,26,.28) 72%, rgba(6,40,26,.08) 100%); }
.page-hero__cover-text { position: relative; z-index: 1; max-width: 600px; }
/* suivi du corps de page : le bandeau se colle à la carte blanche du dessous */
.page-hero--flush .page-hero__cover { margin-bottom: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: none; }
.page-hero--cover .eyebrow--page { color: var(--gold); }
.page-hero--cover h1 { color: #fff; font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 16px; }
.page-hero--cover .page-hero__intro { color: rgba(255,255,255,.92); font-size: 27px; font-weight: 700; line-height: 1.5; max-width: 56ch; }
/* Variante compacte (300px) : image visible, titre seul, pour les pages sommaire (normalisation/métrologie/qualité/conformité) */
.page-hero__cover--compact { min-height: 300px; height: 300px; padding: 0 24px; }
.page-hero__cover--compact::after { background: linear-gradient(90deg, rgba(6,40,26,.72) 0%, rgba(6,40,26,.45) 45%, rgba(6,40,26,.12) 100%); }
.page-hero__cover--compact h1 { margin: 0; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.15; }
.page-hero__cover--compact .page-hero__cover-text { max-width: none; }

.section--page { padding-top: 0; padding-bottom: 96px; }

/* Corps de page : même carte blanche que le hero (joint invisible en flush) */
.page-card { background: #fff; border-radius: var(--radius-lg); padding: 42px; overflow: hidden; box-shadow: 0 8px 24px rgba(15,113,64,.07); }
.page-card--tail { border-radius: 0 0 var(--radius-lg) var(--radius-lg); margin-top: 0; box-shadow: 0 8px 24px rgba(15,113,64,.07); }
/* Fin de page : la carte du contenu se fond dans le bas du document au lieu de s'arrêter net.
   Elle se prolonge par une zone vide (--fondu) que le masque efface peu à peu, ombres comprises ;
   le texte, lui, s'arrête avant cette zone et reste entièrement lisible. */
.section--page { --fondu: 200px; padding-bottom: 0; }
.section--page > .container {
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - var(--fondu)), transparent 100%);
            mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - var(--fondu)), transparent 100%); }
.section--page .page-card--tail { padding-bottom: calc(42px + var(--fondu)); border-radius: 0; }
.prose { max-width: 860px; }
.prose h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.6vw, 30px); margin: 56px 0 18px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18.5px; margin: 32px 0 12px; }
.prose p, .prose li, .prose dd { color: var(--ink-2); font-size: 12px; }
.prose a:not(.btn):not(.card):not(.link-arrow) { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(19,97,62,.35); }
.prose .lead { font-size: 12px; color: var(--ink); }
.prose-wide { margin-top: 56px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin: 20px 0 8px; }
.cards--3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
/* Grille de trois colonnes exactement (réalisations) : deux sur tablette, une sur téléphone */
.cards--trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--trois .card { display: flex; flex-direction: column; align-items: flex-start; }
.cards--trois .card p { line-height: 1.6; }
@media (max-width: 900px) { .cards--trois { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards--trois { grid-template-columns: minmax(0, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; color: var(--ink); }
.card h3 { font-size: 17px; margin: 0 0 8px; }
.card p { font-size: 15px !important; margin: 0; }
.card .checklist { margin: 0; }
.card--accent { border-top: 3px solid var(--gold); background: var(--green-50); }
.card--link { transition: border-color .2s, box-shadow .2s, transform .2s; text-decoration: none !important; }
.card--link:hover { border-color: var(--green-700); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.card--link h3::after { content: " →"; color: var(--green-700); }
.card__tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--green-800); background: var(--green-100); padding: 2px 8px; border-radius: 4px; margin-bottom: 10px; font-family: ui-monospace, Consolas, monospace; }

.checklist { display: grid; gap: 10px; margin: 16px 0; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
    content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
    background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e4d31' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.numbered { counter-reset: n; display: grid; gap: 14px; margin: 16px 0; }
.numbered li { counter-increment: n; position: relative; padding-left: 44px; }
.numbered li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--green-800); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.numbered strong { color: var(--ink); }

.steps { counter-reset: s; margin: 24px 0; display: grid; }
.steps li { counter-increment: s; position: relative; padding: 0 0 28px 64px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--green-950); font-family: var(--serif); font-weight: 700; font-size: 19px; display: grid; place-items: center; z-index: 1; }
.steps li::after { content: ""; position: absolute; left: 20px; top: 42px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { margin: 8px 0 4px !important; font-size: 17.5px; }
.steps p { margin: 0; }
.steps--compact li { padding-left: 56px; padding-bottom: 20px; }
.steps--compact li::before { width: 36px; height: 36px; font-size: 16px; }
.steps--compact li::after { left: 17px; top: 36px; }
.steps--compact h3 { font-size: 16px; }
.steps--compact p { font-size: 14.5px; color: var(--ink-2); }

.definitions { display: grid; grid-template-columns: minmax(160px, 220px) 1fr; border-top: 1px solid var(--line); margin: 16px 0; }
.definitions dt, .definitions dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.definitions dt { font-weight: 600; color: var(--ink); padding-right: 20px; }

.tags-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tags-list li { background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-800) !important; font-size: 14px !important; font-weight: 500; padding: 6px 14px; border-radius: 99px; }

.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.flow span { background: var(--tint); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.flow span + span::before { content: "→"; margin: 0 10px 0 -2px; color: var(--gold-600); font-weight: 700; }

.callout { margin: 48px 0 0; padding: 26px 28px; border-radius: var(--radius-lg); background: var(--green-50); border: 1px solid var(--green-100); border-left: 4px solid var(--green-700); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.callout p { margin: 0; color: var(--ink) !important; max-width: 56ch; }
.callout--dark { background: var(--green-900); border-color: var(--green-900); border-left-color: var(--gold); }
.callout--dark p { color: #fff !important; }
.callout--white { background: #fff; border: 0; padding-left: 0; padding-right: 0; }
.callout--plain, .prose .callout:has(.btn-row) { background: transparent; border: 1px solid var(--line); border-left-color: var(--line); box-shadow: none; }
.notice { padding: 18px 22px; border-radius: var(--radius); background: #fdf8e6; border: 1px solid #f3e3a6; margin: 20px 0; }
.notice p { margin: 0; color: #5c4a0b !important; }
.notice--white { background: #fff; border-color: var(--line); }
.notice--white p { color: var(--ink-2) !important; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; background: var(--tint); border-radius: var(--radius); margin-bottom: 40px; }
.toc a { padding: 8px 14px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500; text-decoration: none !important; }
.toc a:hover { border-color: var(--green-700); }

.table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15.5px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table th { background: var(--tint); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table__total td { font-weight: 700; color: var(--ink); background: var(--green-50); }

.orgchart { display: flex; flex-direction: column; align-items: center; gap: 32px; margin: 8px 0 24px; }
.orgchart__top span { display: inline-block; background: var(--green-800); color: #fff; font-weight: 700; padding: 16px 28px; border-radius: var(--radius); border-bottom: 3px solid var(--gold); position: relative; }
.orgchart__top span::after { content: ""; position: absolute; left: 50%; bottom: -35px; width: 2px; height: 32px; background: var(--line); }
.orgchart__top em { display: block; margin-top: 8px; font-style: normal; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.orgchart__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: 100%; border-top: 2px solid var(--line); padding-top: 24px; }
.orgchart__unit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
.orgchart__unit > a { font-weight: 600; color: var(--ink); text-decoration: none !important; }
.orgchart__unit > a:hover { color: var(--green-700); }
.orgchart__unit ul { margin-top: 12px; text-align: left; border-top: 1px solid var(--line); padding-top: 10px; }
.orgchart__unit li { font-size: 13.5px !important; padding: 4px 0; }
.orgchart__unit > strong { font-weight: 600; color: var(--ink); }
.orgchart__chief { margin-top: 6px; font-size: 13.5px !important; font-weight: 500; color: var(--muted); line-height: 1.35; }
.orgchart__row--single { grid-template-columns: minmax(0, 420px); justify-content: center; border-top: 0; padding-top: 0; }

/* ---------- Chiffres clés ---------- */
.figures { background: var(--green-800); color: #fff; padding: 56px 0; }
.figures__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.figure { border-left: 2px solid var(--gold); padding-left: 20px; }
.figure strong { display: block; font-family: var(--serif); font-size: clamp(32px, 3.6vw, 44px); line-height: 1.1; }
.figure__label { display: block; font-weight: 600; margin-top: 6px; }
.figure__desc { display: block; font-size: 14px; color: #b9cfc2; }

/* ---------- Routes PCEC sur fond clair ---------- */
.routes--light .route { background: #fff; border-color: var(--line); }
.routes--light .route h3 { color: var(--ink); }
.routes--light .route > p { color: var(--ink-2); }
.routes--light .route__for { color: var(--muted); }
.routes--light .route__tags li { background: var(--green-50); color: var(--green-800); }

/* ---------- Événements (liste) ---------- */
.events--list { grid-template-columns: 1fr; }
.event--full { align-items: flex-start; }
.event__img { flex: 0 0 200px; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.event__img img { width: 100%; height: 100%; object-fit: cover; }
.events--past { opacity: .75; }
.events--past .event__date, .events--past-panel .event__date { background: #dc2626; }

/* ---------- Boutique ---------- */
.shop { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.shop__filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.shop__filters input, .shop__filters select { padding: 11px 18px; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; background: #fff; color: var(--ink); }
.shop__filters input { flex: 1 1 240px; min-width: 0; }
.shop__filters input:focus, .shop__filters select:focus { outline: none; border-color: var(--green-700); }
.shop__count { color: var(--muted); font-size: 14px; }
/* après une recherche, la page revient au catalogue, sous l'en-tête fixe */
#catalogue { scroll-margin-top: calc(var(--header-h) + 20px); }
.shop__cart { position: sticky; top: calc(var(--header-h) + 24px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.shop__cart h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.shop__cart .count { font-size: 13px; background: var(--gold); color: var(--green-950); padding: 2px 9px; border-radius: 99px; }
.shop__note { font-size: 12.5px; color: var(--muted); margin: 16px 0 0; }
.cart { border-top: 1px solid var(--line); margin-bottom: 20px; }
.cart li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart li > div { flex: 1; min-width: 0; }
.cart strong { display: block; font-size: 13.5px; color: var(--green-800); }
.cart span { display: block; font-size: 13.5px; color: var(--ink-2); }
.cart__qty { color: var(--muted) !important; white-space: nowrap; }
.cart__remove { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 16px; line-height: 1; }
.cart__remove:hover { border-color: #b3261e; color: #b3261e; }
.form--compact { gap: 14px; }
.form--compact .field input, .form--compact .field textarea { padding: 10px 12px; }
.norm__foot form { margin: 0; }

/* ---------- Téléchargements ---------- */
.downloads { border-top: 1px solid var(--line); }
.download { display: flex; align-items: center; gap: 18px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.download__ext { flex: 0 0 52px; height: 52px; border-radius: 10px; background: var(--green-50); color: var(--green-800); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.download__body { flex: 1; min-width: 0; }
.download h3 { font-size: 16.5px; margin: 0 0 2px; }
.download p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Formulaires : choix ---------- */
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-block; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 99px; font-size: 14.5px; cursor: pointer; transition: all .2s; }
.choice input:checked + span { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Pied de page des pages intérieures : dégradé du vert de l'ACONOQ vers le vert nuit ----------
   (l'accueil a son propre pied de page, réglé dans home-maquette.css) */
body:not(.home) .footer { position: relative; overflow: hidden; color: #c5d8cc; background: linear-gradient(135deg, #005a2e 0%, var(--green-900) 32%, var(--green-950) 100%); }
/* Motifs : cercles concentriques en haut à droite, semis de points en bas à gauche (décor, sous le contenu) */
body:not(.home) .footer > * { position: relative; z-index: 1; }
body:not(.home) .footer::before, body:not(.home) .footer::after { content: ""; position: absolute; z-index: 0; pointer-events: none; }
body:not(.home) .footer::before { top: -230px; right: -190px; width: 660px; height: 660px; border-radius: 50%;
    background: repeating-radial-gradient(circle, transparent 0 46px, rgba(255,255,255,.085) 46px 47.5px);
    -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%); mask-image: radial-gradient(circle, #000 30%, transparent 70%); }
body:not(.home) .footer::after { left: 0; bottom: 0; width: min(560px, 75%); height: 280px;
    background-image: radial-gradient(rgba(255,255,255,.17) 1.3px, transparent 1.7px); background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(35deg, #000 0%, transparent 62%); mask-image: linear-gradient(35deg, #000 0%, transparent 62%); }
@media (max-width: 720px) {
    body:not(.home) .footer::before { top: -170px; right: -200px; width: 460px; height: 460px; }
    body:not(.home) .footer::after { height: 200px; }
}
body:not(.home) .footer a { color: #c5d8cc; }
body:not(.home) .footer a:hover { color: #fff; }
body:not(.home) .footer__bottom { border-top-color: rgba(255,255,255,.12); }

/* ---------- Pied de page : contact ---------- */
.footer__contact { margin: 18px 0; display: grid; gap: 10px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; margin: 0 !important; }
.footer__contact svg { flex: 0 0 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); display: grid; place-items: center; }
.footer__social a:hover { background: rgba(255,255,255,.08); }
.footer__social svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Blocs de contenu : chiffres, image + texte, logos ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: 24px 0; }
.stat { padding: 20px; border-radius: var(--radius); background: var(--green-900); color: #fff; border-left: 3px solid var(--gold); }
.stat strong { display: block; font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.stat span { display: block; margin-top: 6px; font-size: 14px !important; color: #cfe3d7 !important; line-height: 1.45; }
.stats__note { font-size: 13.5px !important; color: var(--muted) !important; margin-top: -8px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin: 28px 0; }
.split--reverse > :first-child { order: 2; }
.split p:last-child { margin-bottom: 0; }
.media { margin: 24px 0; }
.media img, .split img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; }
.media figcaption, .split figcaption { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.media--wide img { aspect-ratio: 21 / 9; }
.split figure { margin: 0; }
.split figure img { aspect-ratio: 4 / 3; }

/* Portrait à côté d'un texte (mot du Directeur Général) */
.portrait-bloc { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px; align-items: start; margin: 4px 0 8px; }
.portrait-bloc figure { margin: 0; position: relative; }
.portrait-bloc img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }
.portrait-bloc figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.portrait-bloc > div > :first-child { margin-top: 0; }
@media (max-width: 720px) {
    .portrait-bloc { grid-template-columns: 1fr; gap: 22px; }
    .portrait-bloc img { max-width: 340px; }
}

/* Missions du Directeur Général : un seul paragraphe, une mission par ligne, réparti sur 2 colonnes */
.missions { margin: 18px 0 28px; font-size: 16px; line-height: 2; color: var(--ink-2); columns: 2; column-gap: 48px; }
@media (max-width: 720px) {
    .missions { columns: 1; }
}

/* Signature du Directeur Général en fin de page */
.dg-signature { margin-top: 36px; padding-top: 22px; border-top: 2px solid var(--line); text-align: right; }
.dg-signature p { margin: 0; }
.dg-signature p:first-child { font-size: 17px; color: var(--ink); letter-spacing: .02em; }
.dg-signature p:last-child { margin-top: 4px; font-size: 14.5px; color: var(--muted); }

.logos { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 20px 0; }
.logos li { display: flex; align-items: center; justify-content: center; min-width: 170px; height: 90px; padding: 14px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.logos img { max-height: 58px; max-width: 150px; object-fit: contain; }
.badge-mark { float: right; width: 190px; margin: 0 0 16px 28px; }

@media (max-width: 720px) {
    .split { grid-template-columns: 1fr; }
    .split--reverse > :first-child { order: 0; }
    .badge-mark { float: none; display: block; margin: 0 auto 16px; width: 160px; }
}

@media (max-width: 1024px) {
    .shop { grid-template-columns: 1fr; }
    .shop__cart { position: static; }
    .figures__grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
    .orgchart__row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .topbar__contact { display: none; }
    .figures__grid, .orgchart__row { grid-template-columns: 1fr; }
    .definitions { grid-template-columns: 1fr; }
    .definitions dt { border-bottom: 0; padding-bottom: 0; }
    .event__img { flex: none; width: 100%; aspect-ratio: 16 / 9; }
    .download { flex-wrap: wrap; }
    .callout { padding: 22px; }
    .flow span + span::before { margin-right: 6px; }
}

/* ==========================================================================
   En-tête clair des pages internes (modèle : page de référence distante)
   Les règles sont neutralisées sur l'accueil (body.home), dont l'en-tête
   reste transparent sur le hero avec liens blancs.
   ========================================================================== */
body:not(.home) .header { background: #fff; border-bottom: 1px solid #e9efeb; }
body:not(.home) .header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(6,40,26,.18); }
body:not(.home) .brand { color: var(--ink); }
body:not(.home) .brand:hover { color: var(--green-800); }
body:not(.home) .brand__fallback { color: var(--green-800); }
body:not(.home) .brand__text { color: var(--muted); border-left-color: var(--line); }
body:not(.home) .nav__trigger { color: var(--ink); }
body:not(.home) .nav__trigger:hover { color: var(--green-800); background: rgba(6,40,26,.06); }
body:not(.home) .burger span { background: var(--green-950); }
/* Le bouton « Contactez-nous » de l'en-tête est défini une fois pour tout le site dans style.css */

/* ==========================================================================
   Prose des pages internes : typo Inter (modèle de référence)
   ========================================================================== */
.prose h2 { font-family: var(--sans); font-weight: 600; font-size: 21px; color: var(--green-700); margin: 36px 0 10px; padding-top: 0; letter-spacing: -.01em; }
.prose h3 { font-family: var(--sans); color: var(--ink); font-size: 16px; margin: 22px 0 8px; font-weight: 600; }
.prose p, .prose li, .prose dd { color: var(--ink-2); font-size: 12px; line-height: 1.75; }

/* ==========================================================================
   Bannière cookies : bandeau pleine largeur vert foncé (modèle de référence)
   ========================================================================== */
.cookie { left: 20px; right: 20px; bottom: 20px; max-width: none; background: var(--green-900); color: #fff; border: 0; border-radius: 14px; padding: 16px 20px; box-shadow: 0 12px 35px rgba(0,0,0,.22); gap: 18px; justify-content: space-between; z-index: 10000; }
.cookie p { color: rgba(255,255,255,.82); font-size: 13px; }
.cookie a { color: var(--gold); text-decoration: underline; }
.cookie .btn--accent { background: var(--gold); color: var(--green-950); border: 0; border-radius: 999px; font-weight: 600; padding: 9px 14px; white-space: nowrap; }
.cookie .btn--accent:hover { background: #ffe142; }

/* ==========================================================================
   Métadonnées d'article sous le titre + catégorie en noir
   ========================================================================== */
.page-hero .news-card__meta { color: var(--muted); margin-bottom: 0; }
.tag--light { background: rgba(6,40,26,.07); color: var(--ink); font-weight: 600; }

/* ==========================================================================
   Partage de l'article (Facebook, Instagram, TikTok)
   ========================================================================== */
.share { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 36px 0 8px; padding-top: 26px; border-top: 1px solid var(--line); }
.share__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.share__list { display: flex; gap: 10px; }
.share__btn { width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; cursor: pointer; transition: transform .15s, filter .15s; }
.share__btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.share__btn svg { width: 18px; height: 18px; display: block; }
.share__btn--fb { background: #1877f2; }
.share__btn--ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.share__btn--tt { background: #010101; }
.share__msg { font-size: 13.5px; font-weight: 500; color: var(--green-700); }

/* ==========================================================================
   Carrousel de l'en-tête (data-hero-carousel) — défilement gauche → droite :
   la photo suivante entre par la gauche, la photo courante sort par la droite.
   ========================================================================== */
.page-hero__slides { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.page-hero__slide {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 30%;
    transform: translateX(-100%);
    visibility: hidden;
    z-index: 0;
    transition: transform .8s cubic-bezier(.33, 1, .68, 1), visibility 0s linear .8s;
}
.page-hero__slide.is-active {
    transform: translateX(0);
    visibility: visible;
    z-index: 1;
    transition: transform .8s cubic-bezier(.33, 1, .68, 1), visibility 0s;
}
.page-hero__slide.is-prep-l { transform: translateX(-100%); visibility: visible; transition: none; }
.page-hero__slide.is-prep-r { transform: translateX(100%); visibility: visible; transition: none; }
.page-hero__slide.is-out-r { transform: translateX(100%); visibility: visible; z-index: 0; }
.page-hero__slide.is-out-l { transform: translateX(-100%); visibility: visible; z-index: 0; }

.page-hero__car-nav {
    position: absolute;
    right: 28px; bottom: 24px;
    z-index: 2;
    display: flex; align-items: center; gap: 10px;
}
.page-hero__car-arrow {
    width: 38px; height: 38px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    background: rgba(6,40,26,.35);
    color: #fff;
    display: grid; place-items: center;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    backdrop-filter: blur(4px);
}
.page-hero__car-arrow:hover { background: rgba(6,40,26,.65); border-color: rgba(255,255,255,.6); }
.page-hero__car-dots { display: flex; align-items: center; gap: 7px; padding: 0 4px; }
.page-hero__car-dot {
    width: 8px; height: 8px;
    padding: 0; border: 0; border-radius: 99px;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    transition: width .25s, background .25s;
}
.page-hero__car-dot.is-active { width: 22px; background: #fff; }

@media (prefers-reduced-motion: reduce) {
    .page-hero__slide, .page-hero__slide.is-active { transition: none; }
}

@media (max-width: 650px) {
    .page-hero__card, .page-card { padding: 24px; }
    .section--page { --fondu: 140px; }
    .section--page .page-card--tail { padding-bottom: calc(24px + var(--fondu)); }
    .page-hero__banner { margin: -24px -24px 20px; height: 180px; }
    .page-hero__cover { min-height: 360px; padding: 28px 24px; align-items: flex-end; }
    /* le texte occupe toute la largeur : voile du haut vers le bas, plus dense sous le texte */
    .page-hero__cover::after { background: linear-gradient(180deg, rgba(6,40,26,.35) 0%, rgba(6,40,26,.72) 45%, rgba(6,40,26,.94) 100%); }
    .page-hero__cover > img { object-position: 30% 20%; }
    .page-hero__cover--compact { min-height: 300px; height: 300px; padding: 0 18px; align-items: center; }
    .page-hero__cover--compact::after { background: linear-gradient(90deg, rgba(6,40,26,.72) 0%, rgba(6,40,26,.45) 45%, rgba(6,40,26,.12) 100%); }
    .page-hero__slide { object-position: 35% 22%; }
    .page-hero__car-nav { right: 16px; bottom: 14px; }
    .page-hero__car-arrow { width: 34px; height: 34px; }
    .page-hero__top { flex-wrap: wrap; }
    .cookie { flex-direction: column; align-items: stretch; }
}
