/* =====================================================================
   Hero commun (16 nov. 2026) : le bandeau de la page « Formations » appliqué à toutes les pages intérieures.
   Référence mesurée sur /formations (styles calculés, 1440 px) : photo pleine largeur, dégradé forêt à gauche seulement
   (94 % → 0 à 82 %), fil d'Ariane « Accueil / Page », titre Source Serif 4 gras 60 px en 14 caractères de large,
   phrase 17 px, bouton jaune compact et lien à filet jaune. Hauteur : 620 px → 589 px (− 5 %) ; mobile 560 → 532 px.
   Chargé en dernier par partials/head.php. Ne touche que .csb-lc-bandeau (pages intérieures) et .csb-fv-bandeau (Formations) :
   ni l'accueil ni le header ne sont concernés.
   Sélecteurs doublés « :not(#csb) » : ils passent devant les règles propres à chaque page.
   ===================================================================== */
:root { --hero-h: min(589px, 74.1vh); --hero-pad: clamp(20px, 4.5vw, 64px); --hero-foret: #003430; --hero-mil: #FFE06A; }

/* --- Formations : seule la hauteur change (− 5 %) --- */
body .csb-fv-bandeau-int:not(#csb):not(#csb) { min-height: var(--hero-h); }

/* --- Pages intérieures : même bandeau que Formations --- */
body .csb-lc-bandeau:not(#csb):not(#csb) { position: relative; overflow: hidden; isolation: isolate; background: #004540; color: #fff; }
body .csb-lc-bandeau:not(#csb):not(#csb)::after { background: linear-gradient(90deg, rgba(0, 52, 48, .94) 0%, rgba(0, 52, 48, .86) 34%, rgba(0, 52, 48, .35) 62%, rgba(0, 52, 48, 0) 82%); }
body .csb-lc-bandeau:not(#csb):not(#csb)::before { display: none; }

/* Conteneur : celui de l'accueil et de Formations (1240 px de contenu, marges 20 à 64 px) */
body .csb-lc-bandeau:not(#csb):not(#csb) > .container { width: 100%; max-width: calc(1240px + 2 * var(--hero-pad)); margin-inline: auto; padding-inline: var(--hero-pad); box-sizing: border-box; }
body .csb-lc-bandeau:not(#csb):not(#csb) .breadcrumb-content { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: var(--hero-h); width: 100%; max-width: none; padding: 72px 0; background: none; }

/* Fil d'Ariane : « Accueil / Page » */
body .csb-lc-bandeau:not(#csb):not(#csb) .breadcrumb-nav { margin: 0 0 28px; }
body .csb-lc-bandeau:not(#csb):not(#csb) .breadcrumb-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
body .csb-lc-bandeau:not(#csb):not(#csb) .breadcrumb-nav ul li { display: inline-flex; align-items: center; margin: 0; padding: 0; font-size: 13.5px; font-weight: 400; line-height: 1.65; color: rgba(255, 255, 255, .85); }
body .csb-lc-bandeau:not(#csb):not(#csb) .breadcrumb-nav ul li::after { content: none; display: none; }
body .csb-lc-bandeau:not(#csb):not(#csb) .breadcrumb-nav ul li + li::before { content: "/"; display: inline-block; margin: 0 6px; font: inherit; color: rgba(255, 255, 255, .85); }
body .csb-lc-bandeau:not(#csb):not(#csb) .breadcrumb-nav a { color: #fff; text-decoration: none; }
body .csb-lc-bandeau:not(#csb):not(#csb) .breadcrumb-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Surtitre masqué, comme sur Formations */
body .csb-lc-bandeau:not(#csb):not(#csb) .breadcrumb-title :is(.csb-fo-surtitre, .csb-shop-hero-surtitre) { display: none !important; }

/* Titre : Source Serif 4 gras, 60 px, 14 caractères de large */
body .csb-lc-bandeau:not(#csb):not(#csb) .breadcrumb-title h1 { margin: 0; max-width: 16ch; font-family: "Source Serif 4", Georgia, "Times New Roman", serif; font-size: clamp(36px, 26px + 2.4vw, 60px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
/* Titres longs (articles, événements, activités) : taille réduite pour que le bandeau garde sa hauteur */
body:is(.csb-article-page, .csb-ed-page, .csb-ac-page) .csb-lc-bandeau:not(#csb):not(#csb) .breadcrumb-title h1 { max-width: 22ch; font-size: clamp(28px, 20px + 1.7vw, 44px); line-height: 1.18; }

/* Phrase d'accroche : 17 px */
body .csb-lc-bandeau:not(#csb):not(#csb) .breadcrumb-title p:not(.csb-fo-surtitre):not(.csb-shop-hero-surtitre) { max-width: 44ch; margin: 18px 0 0; font-size: 17px; font-weight: 400; line-height: 1.6; color: rgba(255, 255, 255, .92); }
body .csb-lc-bandeau:not(#csb):not(#csb) .csb-lc-bandeau-fond { object-fit: cover; }

/* Actions : bouton jaune compact et lien à filet jaune */
body .csb-lc-bandeau:not(#csb):not(#csb) :is(.csb-ph-actions, .csb-shop-hero-actions, .csb-fo-hero-actions) { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
body .csb-lc-bandeau:not(#csb):not(#csb) .e-primary-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; height: 44px; padding: 0 20px; border: 0; border-radius: 4px; background: var(--hero-mil); color: #171717; font-size: 14.5px; font-weight: 600; line-height: 1; box-shadow: none; transition: background-color .2s ease, color .2s ease; }
body .csb-lc-bandeau:not(#csb):not(#csb) .e-primary-btn:hover { background: #FFD84A; color: #171717; }
body .csb-lc-bandeau:not(#csb):not(#csb) .e-primary-btn::before { display: none; }
body .csb-lc-bandeau:not(#csb):not(#csb) .e-primary-btn .icon-wrap { display: none; }
body .csb-lc-bandeau:not(#csb):not(#csb) :is(.csb-ph-lien, .csb-shop-hero-tel) { display: inline-flex; align-items: center; padding: 0 0 4px; border-bottom: 2px solid var(--hero-mil); color: #fff; font-size: 14.5px; font-weight: 600; line-height: 1.3; text-decoration: none; transition: color .2s ease, border-color .2s ease; }
body .csb-lc-bandeau:not(#csb):not(#csb) :is(.csb-ph-lien, .csb-shop-hero-tel):hover { color: var(--hero-mil); text-decoration: none; }
body .csb-lc-bandeau a:focus-visible { outline: 3px solid var(--hero-mil); outline-offset: 3px; border-radius: 3px; }

/* Repères sous le texte (chiffres de l'Agenda, publications, pastilles du contact) : sobres, sur le même axe */
body .csb-lc-bandeau:not(#csb):not(#csb) .breadcrumb-nav, body .csb-lc-bandeau:not(#csb):not(#csb) .breadcrumb-title { max-width: 640px; }
body .csb-lc-bandeau:not(#csb):not(#csb) .breadcrumb-content > :not(.breadcrumb-nav):not(.breadcrumb-title) { max-width: 760px; }
body .csb-lc-bandeau:not(#csb):not(#csb) :is(.csb-ph-faits, .csb-ag-chiffres, .csb-fo-pastilles) { margin-top: 28px; }

/* Pages transactionnelles (panier, commande, fiche produit : variante « --court » existante) : même style, hauteur réduite pour garder le formulaire proche */
body .csb-shop-hero--court:not(#csb):not(#csb) .breadcrumb-content { min-height: min(360px, 50vh); padding: 56px 0; }
body .csb-shop-hero--court:not(#csb):not(#csb) .breadcrumb-title h1 { font-size: clamp(30px, 22px + 1.8vw, 48px); max-width: 18ch; }

/* --- Mobile : texte en bas du bandeau, dégradé vertical (560 px → 532 px) --- */
@media (max-width: 767px) {
	body .csb-fv-bandeau-int:not(#csb):not(#csb) { min-height: 532px; }
	body .csb-lc-bandeau:not(#csb):not(#csb)::after { background: linear-gradient(0deg, rgba(0, 52, 48, .95) 0%, rgba(0, 52, 48, .82) 45%, rgba(0, 52, 48, .2) 80%, rgba(0, 52, 48, .05) 100%); }
	body .csb-lc-bandeau:not(#csb):not(#csb) .breadcrumb-content { justify-content: flex-end; min-height: 532px; max-width: none; padding: 48px 0 44px; }
	body .csb-lc-bandeau:not(#csb):not(#csb) .breadcrumb-nav { margin-bottom: 20px; }
	body .csb-shop-hero--court:not(#csb):not(#csb) .breadcrumb-content { min-height: 300px; padding: 40px 0 36px; }
}
@media (prefers-reduced-motion: reduce) {
	body .csb-lc-bandeau:not(#csb):not(#csb) :is(.e-primary-btn, .csb-ph-lien, .csb-shop-hero-tel) { transition: none; }
}

/* =====================================================================
   Ajustements du 16 nov. 2026 : titre h1 plus petit et un peu plus large ; boutons jaunes minimalistes.
   Sauvegarde : csb-docs/sauvegarde-2026-11-16-hero-boutons/.
   ===================================================================== */
/* Titre : 60 px -> 48 px au plus ; colonne de texte 640 -> 720 px ; 16 -> 20 caractères de large */
body .csb-lc-bandeau:not(#csb):not(#csb) .breadcrumb-title h1 { max-width: 20ch; font-size: clamp(30px, 22px + 2vw, 48px); line-height: 1.15; }
body:is(.csb-article-page, .csb-ed-page, .csb-ac-page) .csb-lc-bandeau:not(#csb):not(#csb) .breadcrumb-title h1 { max-width: 26ch; font-size: clamp(26px, 19px + 1.5vw, 38px); }
body .csb-shop-hero--court:not(#csb):not(#csb) .breadcrumb-title h1 { font-size: clamp(28px, 20px + 1.6vw, 40px); max-width: 22ch; }
body .csb-lc-bandeau:not(#csb):not(#csb) .breadcrumb-nav, body .csb-lc-bandeau:not(#csb):not(#csb) .breadcrumb-title { max-width: 720px; }
body.csb-fv-page main.csb-fv .csb-fv-bandeau h1:not(#csb) { max-width: 18ch; font-size: clamp(30px, 22px + 2vw, 48px); }

/* Boutons jaunes : minimalistes (contour jaune fin, fond transparent, texte blanc ; le jaune plein n'apparaît qu'au survol) */
body .csb-lc-bandeau:not(#csb):not(#csb) .e-primary-btn { min-height: 40px; height: 40px; padding: 0 16px; border: 1.5px solid var(--hero-mil); border-radius: 4px; background: transparent; color: #fff; font-size: 15px; font-weight: 600; box-shadow: none; }
body .csb-lc-bandeau:not(#csb):not(#csb) .e-primary-btn:is(:hover, :focus-visible) { background: var(--hero-mil); border-color: var(--hero-mil); color: #171717; }
/* Formations : bouton jaune du bandeau et des sections, même style minimaliste */
body.csb-fv-page main.csb-fv .csb-fv-btn-mil:not(#csb) { min-height: 40px; padding: 0 16px; border: 1.5px solid #171717; border-radius: 4px; background: transparent; color: #171717; font-size: 15px; box-shadow: none; }
body.csb-fv-page main.csb-fv .csb-fv-bandeau .csb-fv-btn-mil:not(#csb) { color: #fff; border-color: var(--fv-mil, #FFE06A); }
body.csb-fv-page main.csb-fv .csb-fv-btn-mil:is(:hover, :focus-visible):not(#csb) { background: var(--fv-mil, #FFE06A); border-color: var(--fv-mil, #FFE06A); color: #171717; }

/* Bouton jaune avec petite flèche (16 nov. 2026) : Formations et pages intérieures */
body :is(.csb-lc-bandeau .e-primary-btn, .csb-fv-bandeau .csb-fv-btn-mil):not(#csb):not(#csb)::after { content: "\f061"; display: inline-block; position: static; width: auto; height: auto; margin: 0; background: none; font-family: var(--icon-font, "Font Awesome 6 Pro", "Font Awesome 6 Free"); font-weight: 400; font-size: 14px; line-height: 1; color: inherit; transition: transform .2s cubic-bezier(.2, .7, .2, 1); }
body :is(.csb-lc-bandeau .e-primary-btn, .csb-fv-bandeau .csb-fv-btn-mil):not(#csb):not(#csb):hover::after { transform: translateX(3px); }
body .csb-fv-bandeau .csb-fv-btn-mil:not(#csb):not(#csb) { display: inline-flex; align-items: center; gap: 10px; }
@media (prefers-reduced-motion: reduce) { body :is(.csb-lc-bandeau .e-primary-btn, .csb-fv-bandeau .csb-fv-btn-mil)::after { transition: none; } }
/* Formations : bouton principal jaune plein (comme sur les autres pages) */
body .csb-fv-bandeau .csb-fv-btn-mil:not(#csb):not(#csb) { background: var(--hero-mil); color: #171717; border: 0; min-height: 44px; padding: 0 20px; border-radius: 4px; font-size: 14.5px; font-weight: 600; }
body .csb-fv-bandeau .csb-fv-btn-mil:not(#csb):not(#csb):hover { background: #FFD84A; color: #171717; }
/* Boutons du bandeau (demande de l'owner, 16 nov. 2026) : jaune plein avec petite flèche, sur toutes les pages (remplace le contour jaune) */
body .csb-lc-bandeau:not(#csb):not(#csb) .e-primary-btn { min-height: 44px; height: 44px; padding: 0 20px; border: 0; border-radius: 4px; background: var(--hero-mil); color: #171717; font-size: 14.5px; font-weight: 600; }
body .csb-lc-bandeau:not(#csb):not(#csb) .e-primary-btn:is(:hover, :focus-visible) { background: #FFD84A; border: 0; color: #171717; }
body.csb-fv-page main.csb-fv .csb-fv-bandeau .csb-fv-btn-mil:not(#csb):not(#csb) { background: var(--hero-mil); color: #171717; border: 0; min-height: 44px; padding: 0 20px; }
body.csb-fv-page main.csb-fv .csb-fv-bandeau .csb-fv-btn-mil:is(:hover, :focus-visible):not(#csb):not(#csb) { background: #FFD84A; color: #171717; }

/* Titre plus large (16 nov. 2026) : 20 -> 28 caractères de large ; colonne de texte 720 -> 820 px */
body .csb-lc-bandeau:not(#csb):not(#csb) .breadcrumb-title h1 { max-width: 28ch; }
body:is(.csb-article-page, .csb-ed-page, .csb-ac-page) .csb-lc-bandeau:not(#csb):not(#csb) .breadcrumb-title h1 { max-width: 34ch; }
body .csb-shop-hero--court:not(#csb):not(#csb) .breadcrumb-title h1 { max-width: 28ch; }
body .csb-lc-bandeau:not(#csb):not(#csb) .breadcrumb-nav, body .csb-lc-bandeau:not(#csb):not(#csb) .breadcrumb-title { max-width: 820px; }
body .csb-lc-bandeau:not(#csb):not(#csb) .breadcrumb-title p:not(.csb-fo-surtitre):not(.csb-shop-hero-surtitre) { max-width: 52ch; }
body.csb-fv-page main.csb-fv .csb-fv-bandeau h1:not(#csb):not(#csb) { max-width: 28ch; }
body.csb-fv-page main.csb-fv .csb-fv-bandeau-texte:not(#csb):not(#csb) { max-width: 820px; }
body.csb-fv-page main.csb-fv .csb-fv-bandeau-phrase:not(#csb):not(#csb) { max-width: 52ch; }
body :is(.csb-lc-bandeau, .csb-fv-bandeau) h1:not(#csb):not(#csb) { text-wrap: balance; }

/* Formations : texte en noir (unslop, 16 nov. 2026) : titres #171717, paragraphes #262626, métadonnées #454545 ; le vert reste réservé aux états et aux accents */
main.csb-fv { --fv-encre: #171717; --fv-texte: #262626; --fv-doux: #454545; }
body.csb-fv-page main.csb-fv :is(.csb-fv-lien, .csb-fv-faits dt, .csb-fv-rdv time, .csb-fv-etapes-liste li::before, .csb-fv-faq summary::after):not(#csb) { color: #171717; }
body.csb-fv-page main.csb-fv .csb-fv-bandeau .csb-fv-lien:not(#csb) { color: #fff; }
body.csb-fv-page main.csb-fv :is(.csb-fv-filiere h3 button, .csb-fv-rdv h3 a):not(#csb) { color: #171717; }
body.csb-fv-page main.csb-fv :is(p, li, dd, dt, summary, span, small, time):not(.csb-fv-session-statut):not(.csb-fv-statut):not(#csb) { color: inherit; }
