/* =====================================================================
   Ajustements finaux de l'accueil (15 nov. 2026) : marges communes, « Le centre » compact, liens de section minimalistes,
   « Trois façons de se former » (photo d'abord), listes fléchées, FAQ en noir, Contact institutionnel, transitions.
   Chargé après csb-finition-finale.css. Référence de composition : CSB_ajustements_accueil_apercu.html (maquette, non reprise telle quelle).
   Palette : titres #171717, texte #262626, métadonnées #454545, jaune #FFE06A, vert #004540 (accents seulement).
   ===================================================================== */
body.csb-home { --aj-pad: clamp(20px, 4.5vw, 64px); --aj-trait: #dfe5e0; --aj-mil: #FFE06A; --aj-vert: #004540; --aj-ease: cubic-bezier(.2, .7, .2, 1); }

/* --- LOT 1 : un seul conteneur pour toutes les sections de l'accueil (le hero garde sa mise en page) ---
   Largeur de contenu 1240 px (celle du hero), marges latérales 20 à 64 px : plus de contenu collé aux bords entre 1100 et 1400 px. */
body.csb-home main > section:not(.v4-ouv) :is(.container, .v4-wrap, .csb-fv-wrap):not(#csb),
body.csb-home main > div:not(.v4-ouv) :is(.container, .v4-wrap, .csb-fv-wrap):not(#csb) {
  width: 100%; max-width: calc(1240px + 2 * var(--aj-pad)); margin-inline: auto; padding-inline: var(--aj-pad); box-sizing: border-box;
}
body.csb-home .csb-fv-cal-accueil :is(.csb-fv-cal-grille, .csb-fv-wrap) { margin-inline: auto; }
body.csb-home main { overflow-x: clip; }

/* --- LOT 2 : « Le centre » compact, deux colonnes de même hauteur (texte 55 % / vidéo 45 %) --- */
body.csb-home .csb-cn { padding-block: clamp(48px, 6vw, 80px); }
body.csb-home .csb-cn-grille { display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: clamp(32px, 4vw, 56px); align-items: stretch; }
body.csb-home .csb-cn-texte { display: flex; flex-direction: column; justify-content: center; }
body.csb-home .csb-cn-colonne { display: flex; min-width: 0; }
body.csb-home .csb-cn-video { position: relative; flex: 1; width: 100%; min-height: 340px; margin: 0; overflow: hidden; border-radius: 8px; background: #0e2a26; }
body.csb-home .csb-cn-video .csb-ap-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body.csb-home .csb-cn-presentation p:not(#csb) { max-width: 60ch; margin: 0 0 14px; font-size: 17px; line-height: 1.6; font-weight: 400; color: #262626; }
body.csb-home .csb-cn-phrase:not(#csb) { margin: 6px 0 14px; }
body.csb-home ul.csb-cn-demarche { list-style: none; margin: 0 0 22px; padding: 0; border-top: 0; }
body.csb-home .csb-cn-demarche li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--aj-trait); font-size: 16px; line-height: 1.5; color: #262626; }
body.csb-home .csb-cn-demarche li:first-child { border-top: 1px solid var(--aj-trait); }
body.csb-home .csb-cn-demarche li::before, body.csb-home .csb-rea-liste li::before, body.csb-home .csb-fr-liste li::before {
  content: "\f061"; flex: none; width: 16px; margin-top: 1px; font-family: var(--icon-font, "Font Awesome 6 Pro", "Font Awesome 6 Free"); font-weight: 300; font-size: 13px; line-height: 1.7; color: var(--aj-vert);
  background: none; box-shadow: none; border-radius: 0; height: auto;
}
body.csb-home .csb-cn-demarche strong { font-weight: 700; color: #171717; margin-right: -4px; }
body.csb-home .csb-cn-demarche li > * { display: inline; }
body.csb-home .csb-cn-actions { margin-top: 4px; }
@media (max-width: 991px) {
  body.csb-home .csb-cn-grille { grid-template-columns: 1fr; }
  body.csb-home .csb-cn-video { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
}

/* --- LOT 3 : actions des en-têtes de section = liens éditoriaux (texte noir, flèche fine, soulignement jaune) --- */
body.csb-home :is(.csb-fz .e-primary-btn.has-icon, .csb-videos .e-primary-btn.has-icon, .v4-prod-btn):not(#csb),
body.csb-home :is(.csb-fv-lien, .v4-lien):not(#csb) {
  display: inline-flex; align-items: center; gap: 8px; width: auto; min-height: 0; height: auto; padding: 0 0 4px; border: 0; border-bottom: 2px solid var(--aj-mil); border-radius: 0;
  background: transparent; box-shadow: none; color: #171717; font-size: 14.5px; font-weight: 600; line-height: 1.3; text-decoration: none; white-space: nowrap; transition: color .2s ease, border-color .2s ease;
}
body.csb-home :is(.csb-fz .e-primary-btn.has-icon, .csb-videos .e-primary-btn.has-icon, .v4-prod-btn):not(#csb)::before,
body.csb-home :is(.csb-fz .e-primary-btn.has-icon, .csb-videos .e-primary-btn.has-icon, .v4-prod-btn):not(#csb)::after { display: none; }
body.csb-home :is(.csb-fz .e-primary-btn, .csb-videos .e-primary-btn, .v4-prod-btn) .icon-wrap { display: inline-flex; width: auto; height: auto; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
body.csb-home :is(.csb-fz .e-primary-btn, .csb-videos .e-primary-btn, .v4-prod-btn) .icon { display: inline-flex; width: auto; height: auto; transform: none; }
body.csb-home :is(.csb-fz .e-primary-btn, .csb-videos .e-primary-btn, .v4-prod-btn) .icon i { position: static; margin: 0; font-size: 13px; color: inherit; transform: none; transition: transform .2s var(--aj-ease); }
body.csb-home :is(.csb-fz .e-primary-btn, .csb-videos .e-primary-btn, .v4-prod-btn) .icon i + i { display: none; }
body.csb-home :is(.csb-fz .e-primary-btn.has-icon, .csb-videos .e-primary-btn.has-icon, .v4-prod-btn):not(#csb):hover { background: transparent; color: var(--aj-vert); border-color: var(--aj-vert); }
body.csb-home :is(.csb-fz .e-primary-btn, .csb-videos .e-primary-btn, .v4-prod-btn):hover .icon i { transform: translateX(3px); }
body.csb-home .csb-fv-lien:not(#csb)::after, body.csb-home .v4-lien:not(#csb)::after { content: "\f061"; font-family: var(--icon-font, "Font Awesome 6 Pro", "Font Awesome 6 Free"); font-weight: 300; font-size: 13px; }
body.csb-home :is(.csb-fv-lien, .v4-lien):not(#csb):hover { color: var(--aj-vert); border-color: var(--aj-vert); }

/* --- LOT 4 : « Trois façons de se former » : photo, puis repère, titre, description, liste, lien --- */
body.csb-home .csb-rea-grille { align-items: stretch; }
body.csb-home .csb-rea-carte { display: flex; flex-direction: column; padding: 0 0 20px; border-top: 0; border-bottom: 1px solid var(--aj-trait); }
body.csb-home .csb-rea-media { display: block; overflow: hidden; border-radius: 6px; margin-bottom: 16px; background: #eef4ef; }
body.csb-home .csb-rea-media .csb-rea-photo { display: block; width: 100%; aspect-ratio: 1.65; height: auto; object-fit: cover; transition: transform .6s var(--aj-ease); }
body.csb-home .csb-rea-carte:hover .csb-rea-photo { transform: scale(1.03); }
body.csb-home .csb-rea-repere { margin-bottom: 6px; color: #454545; font-size: 12px; font-weight: 600; letter-spacing: .06em; }
body.csb-home main h3.csb-rea-titre:not(#csb) { margin: 0 0 10px; }
body.csb-home main p.csb-rea-texte:not(#csb) { margin: 0 0 12px; color: #262626; }
body.csb-home ul.csb-rea-liste { list-style: none; margin: 0 0 18px; padding: 0; }
body.csb-home .csb-rea-liste li { display: flex; gap: 10px; align-items: flex-start; padding: 0; font-size: 14.5px; line-height: 1.5; color: #262626; }
body.csb-home .csb-rea-lien { margin-top: auto; align-self: flex-start; }
@media (max-width: 767px) { body.csb-home .csb-rea-media .csb-rea-photo { aspect-ratio: 16 / 10; } }

/* --- LOT 5 : parcours pédagogique : listes fléchées et transition entre étapes --- */
body.csb-home .csb-fr-liste li::before { margin-top: 3px; }
body.csb-home .csb-fr-liste li:not(#csb) { grid-template-columns: 18px 1fr; color: #262626; }
body.csb-home .csb-fr-panneau.actif { animation: ajFondu .45s var(--aj-ease) both; }
body.csb-home .csb-fr-photos img { transition: opacity .5s ease; }
@keyframes ajFondu { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* --- LOT 6 : FAQ en noir dans tous les états, animation d'ouverture --- */
body.csb-home .faq-section :is(h2, h3, .common-title, .common-title h2):not(#csb) { color: #171717; }
body.csb-home .faq-section .accordion-button, body.csb-home .faq-section .accordion-button .csb-faq-q,
body.csb-home .faq-section .accordion-button:not(.collapsed), body.csb-home .faq-section .accordion-button:focus, body.csb-home .faq-section .accordion-button:hover:not(#csb) { color: #171717 !important; background: transparent; box-shadow: none; }
body.csb-home .faq-section .accordion-button:hover .csb-faq-q { color: #171717; text-decoration: underline; text-decoration-color: var(--aj-mil); text-decoration-thickness: 2px; text-underline-offset: 4px; }
body.csb-home .faq-section .accordion-body, body.csb-home .faq-section .accordion-body p { color: #262626; }
body.csb-home .faq-section .accordion-item { border-color: var(--aj-trait); }
body.csb-home .faq-section .accordion-button .icon-plus, body.csb-home .faq-section .accordion-button .icon-minus { color: var(--aj-vert); transition: opacity .25s ease, transform .3s var(--aj-ease); }
body.csb-home .faq-section .accordion-button:focus-visible { outline: 2px solid var(--aj-vert); outline-offset: 2px; }
body.csb-home .faq-section .accordion-collapse { transition: height .35s var(--aj-ease); }

/* --- LOT 7 : Contact institutionnel (40 / 60), coordonnées à icônes fines, champs sobres --- */
body.csb-home .csb-home-contact { padding-block: clamp(48px, 6vw, 80px); }
body.csb-home .csb-home-contact-grille { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
body.csb-home .csb-home-contact-intro h2:not(#csb) { color: #171717; }
body.csb-home .csb-home-contact-intro > p:not(#csb) { margin: 0 0 20px; max-width: 46ch; color: #262626; }
body.csb-home ul.csb-home-contact-coord { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--aj-trait); }
body.csb-home .csb-home-contact-coord li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--aj-trait); }
body.csb-home .csb-home-contact-coord i { flex: none; width: 20px; margin-top: 2px; font-size: 17px; text-align: center; color: var(--aj-vert); }
body.csb-home .csb-home-contact-coord li > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; overflow-wrap: anywhere; font-size: 15px; line-height: 1.45; color: #171717; }
body.csb-home .csb-home-contact-cle { font-size: 12px; font-weight: 600; color: #454545; }
body.csb-home .csb-home-contact-coord a { color: #171717; text-decoration: none; transition: color .2s ease; }
body.csb-home .csb-home-contact-coord a:hover { color: var(--aj-vert); }
body.csb-home .csb-home-contact-whatsapp { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 3px; border-bottom: 2px solid var(--aj-mil); font-size: 14.5px; font-weight: 600; color: #171717; text-decoration: none; transition: color .2s ease, border-color .2s ease; }
body.csb-home .csb-home-contact-whatsapp i { font-size: 17px; color: var(--aj-vert); }
body.csb-home .csb-home-contact-whatsapp:hover { color: var(--aj-vert); border-color: var(--aj-vert); }
body.csb-home .csb-home-contact-form label { color: #171717; }
body.csb-home .csb-home-contact-facultatif { font-weight: 400; color: #454545; }
body.csb-home .csb-home-contact-form :is(input, select, textarea) { border: 1px solid #cbd3cf; border-radius: 4px; background: #fff; color: #171717; transition: border-color .2s ease, box-shadow .2s ease; }
body.csb-home .csb-home-contact-form :is(input, select, textarea)::placeholder { color: #5a5f5c; opacity: 1; }
body.csb-home .csb-home-contact-form :is(input, select, textarea):focus { outline: 0; border-color: var(--aj-vert); box-shadow: 0 0 0 3px rgba(0, 69, 64, .14); }
body.csb-home .csb-home-contact-form textarea { min-height: 120px; }
body.csb-home .csb-home-contact-fin button { display: inline-flex; align-items: center; gap: 10px; background: var(--aj-mil); color: #171717; border: 0; border-radius: 4px; transition: background-color .2s ease; }
body.csb-home .csb-home-contact-fin button:hover:not(:disabled) { background: #f4c93f; }
body.csb-home .csb-home-contact-fin button i { font-size: 13px; transition: transform .2s var(--aj-ease); }
body.csb-home .csb-home-contact-fin button:hover i { transform: translateX(3px); }
body.csb-home .csb-home-contact-fin button:disabled { opacity: .65; cursor: progress; }
@media (max-width: 991px) { body.csb-home .csb-home-contact-grille { grid-template-columns: 1fr; } }

/* --- LOT 8 : survols discrets (les apparitions au défilement viennent de csb-anime.js) --- */
body.csb-home .v4-visuel img, body.csb-home .csb-fv-cal-accueil a, body.csb-home .v4-prod-carte img { transition: transform .6s var(--aj-ease), color .2s ease; }

@media (prefers-reduced-motion: reduce) {
  body.csb-home .csb-fr-panneau.actif { animation: none; }
  body.csb-home .csb-rea-photo, body.csb-home .csb-home-contact-fin button i, body.csb-home .csb-fz .e-primary-btn .icon i { transition: none; }
}

/* « Le centre » : resserrage vertical (hauteur de la section ≈ 520 px sur grand écran) */
body.csb-home .csb-cn .common-subtitle { margin-bottom: 8px; }
body.csb-home .csb-cn .common-title { margin-bottom: 14px; }
body.csb-home .csb-cn .common-title h2:not(#csb) { font-size: clamp(28px, 2.4vw, 34px); line-height: 1.2; }
body.csb-home .csb-cn-presentation p:not(#csb) { max-width: none; margin-bottom: 12px; font-size: 16px; line-height: 1.55; }
body.csb-home .csb-cn-phrase:not(#csb) { margin: 2px 0 12px; font-size: clamp(16px, 1vw + 12px, 18px); }
body.csb-home .csb-cn-demarche li { padding: 7px 0; font-size: 15.5px; }
body.csb-home .csb-cn-demarche { margin-bottom: 18px; }
body.csb-home :is(.csb-fz .e-primary-btn, .csb-videos .e-primary-btn, .v4-prod-btn) :is(.icon-wrap, .icon, .icon i):not(#csb) { color: inherit; }
body.csb-home :is(.csb-fz-intro, .csb-videos-intro) .common-title { margin-bottom: 10px; }
/* Surtitre du parcours : même modèle que « Ce que nous faisons » (trait jaune + texte noir) ; étiquette d'étape en gris foncé */
body.csb-home .csb-fr-label:not(#csb) { display: inline-flex; align-items: center; gap: 12px; color: #171717; font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; }
body.csb-home .csb-fr-label:not(#csb)::before { content: ""; width: 28px; height: 4px; border-radius: 2px; background: var(--aj-mil); }
body.csb-home .csb-fr-etiq:not(#csb) { color: #454545; }
/* « Le centre » : lignes fléchées en flux continu (le verbe ne se coupe plus sur mobile) */
body.csb-home .csb-cn-demarche li { display: block; position: relative; padding-left: 28px; }
body.csb-home .csb-cn-demarche li::before { position: absolute; left: 2px; top: 9px; }
body.csb-home .csb-cn-demarche strong { margin-right: 0; white-space: nowrap; }
/* Titre de « Le centre » : 2 px de moins */
body.csb-home .csb-cn .common-title h2:not(#csb) { font-size: clamp(26px, calc(2.4vw - 2px), 32px); }
body.csb-home main section.csb-cn .common-title h2#csb-ap-titre:not(#csb) { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; }
/* « Le centre » : phrase en italique et trois lignes fléchées, +2 px */
body.csb-home main section.csb-cn p.csb-cn-phrase:not(#csb) { font-size: clamp(18px, 1vw + 14px, 20px); }
body.csb-home main section.csb-cn ul.csb-cn-demarche li:not(#csb) { font-size: 17.5px; }
body.csb-home main section.csb-cn ul.csb-cn-demarche li:not(#csb)::before { top: 11px; }
