/* =====================================================================
   SolidCreativity - socle v2 commun à tout le site : variables, menu
   (components/nav-v2.php), et pour les pages historiques (html.v2-chrome,
   avec Bootstrap 3 + solidCreativity.css) : hero et typo de la home.
   ===================================================================== */

:root {
  --ink: #1d2027; --ink-2: #4a505b; --muted: #6a707b;
  --bg: #f6f6f3; --card: #ffffff; --line: #e4e4df;
  --green: #7cb810; --green-dk: #4f7a0a; --green-dkr: #3f6208; --green-lt: #b6e06a;
  --night: #0c0e13;
  --r: 22px; --r-sm: 14px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
  --shadow-h: 0 2px 4px rgba(16,24,40,.06), 0 22px 48px rgba(16,24,40,.12);
  --wrap: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.v2-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .v2-wrap { padding: 0 18px; } }

/* ---------- Barre de navigation ---------- */
.v2-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, box-shadow .3s; }
.v2-nav.scrolled, .v2-nav.menu-open { background: rgba(246,246,243,.92); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-color: var(--line); box-shadow: 0 4px 20px rgba(0,0,0,.05); }
.v2-nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.v2-logo { font-weight: 700; font-size: 24px; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.v2-logo .s { font-weight: 700; color: #d0d0d0; transition: color .3s; }
.v2-logo .c { font-weight: 400; color: var(--green); }
.v2-nav.scrolled .v2-logo .s, .v2-nav.menu-open .v2-logo .s { color: #555; }
.v2-nav.scrolled .v2-logo .c, .v2-nav.menu-open .v2-logo .c { color: var(--green-dk); }

.v2-menu-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.v2-dd { position: relative; display: flex; align-items: center; }
.v2-nav .v2-dd-link, .v2-nav .v2-icon-link { display: inline-flex; align-items: center; padding: 10px 6px 10px 12px; font-size: 14.4px; font-weight: 500; color: rgba(255,255,255,.9); text-decoration: none; background: none; border: 0; cursor: pointer; transition: color .2s; }
.v2-nav .v2-icon-link { padding: 10px 11px; }
.v2-dd-btn { display: inline-flex; align-items: center; padding: 8px 8px 8px 2px; background: none; border: 0; color: rgba(255,255,255,.75); cursor: pointer; }
.v2-dd-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; transition: transform .2s; }
.v2-dd.open .v2-dd-btn svg { transform: rotate(180deg); }
.v2-nav .v2-dd-link:hover, .v2-nav .v2-icon-link:hover, .v2-dd.open .v2-dd-link { color: var(--green-lt); text-decoration: none; }
.v2-nav.scrolled .v2-dd-link, .v2-nav.scrolled .v2-icon-link, .v2-nav.scrolled .v2-dd-btn { color: var(--ink-2); }
.v2-nav.scrolled .v2-dd-link:hover, .v2-nav.scrolled .v2-icon-link:hover, .v2-nav.scrolled .v2-dd.open .v2-dd-link { color: var(--green-dk); }
.v2-nav .v2-dd-link[aria-current="page"] { color: var(--green-lt); }
.v2-icon-txt { display: none; }

.v2-dd-panel { position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; display: flex; gap: 28px; padding: 20px 24px; background: #fff; border-radius: var(--r-sm); box-shadow: var(--shadow-h); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
.v2-dd:nth-child(n+3) .v2-dd-panel { left: auto; right: 0; }
.v2-dd.open .v2-dd-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
.v2-dd:first-child .v2-dd-panel { display: grid; left: -160px; grid-template-columns: repeat(3, auto); column-gap: 32px; row-gap: 14px; width: max-content; }
.v2-dd:first-child .v2-dd-group:first-child { grid-column: 1 / -1; }
.v2-dd-group { min-width: 170px; }
.v2-dd-h { margin: 0 0 8px; font-size: 11.52px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.v2-dd-group ul { list-style: none; margin: 0; padding: 0; }
.v2-nav .v2-dd-group a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; font-size: 14.72px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.v2-nav .v2-dd-group a:hover { background: var(--bg); color: var(--green-dk); }
.v2-nav .v2-dd-group a .fa { width: 16px; text-align: center; color: var(--muted); }
.v2-nav .v2-dd-group a:hover .fa { color: var(--green-dk); }
.v2-nav .v2-dd-group a[aria-current="page"] { color: var(--green-dk); font-weight: 600; }

.v2-burger { display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.v2-burger span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .25s, background .3s; }
.v2-nav.scrolled .v2-burger span, .v2-nav.menu-open .v2-burger span { background: var(--ink); }
.v2-nav.menu-open .v2-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.v2-nav.menu-open .v2-burger span:nth-child(2) { opacity: 0; }
.v2-nav.menu-open .v2-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Partage (repris de solidCreativity.css) */
.nav-share-item { position: relative; }
.mr-share-trigger svg { display: block; stroke: currentColor; pointer-events: none; }
.mr-share-trigger[aria-expanded="true"] { color: var(--green-lt); }
.mr-share-menu { position: absolute; top: 100%; right: 0; min-width: 220px; padding: 6px; background: #fff; border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 2px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .18s, transform .18s; z-index: 1050; }
.mr-share-menu.is-open { opacity: 1; pointer-events: auto; transform: none; }
.mr-share-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; background: transparent; border: 0; border-radius: 6px; font-size: 14px; font-weight: 500; line-height: 1.2; color: #333; text-align: left; cursor: pointer; }
.mr-share-item:hover, .mr-share-item:focus-visible { background: #f4f4f7; outline: none; }
.mr-share-item.is-copied { background: #e8f5ee; color: #2a7a4b; }
.mr-share-icon-wrap { width: 26px; height: 26px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mr-share-icon-wrap svg { width: 62%; height: 62%; }
.mr-icon-linkedin { background: #0077B5; fill: #fff; }
.mr-icon-x { background: #000; fill: #fff; }
.mr-icon-whatsapp { background: #25D366; fill: #fff; }
.mr-icon-email { background: #6B7280; }
.mr-icon-email svg rect { fill: #fff; stroke: #fff; stroke-width: 1.4; }
.mr-icon-email svg polyline { stroke: #fff; stroke-width: 1.4; fill: none; }
.mr-icon-copy { background: #3C37E1; color: #fff; }

@media (max-width: 1024px) {
  .v2-burger { display: inline-flex; }
  .v2-menu { position: fixed; top: 68px; left: 0; right: 0; bottom: 0; overflow-y: auto; background: var(--bg); padding: 8px 24px 40px; display: none; }
  .v2-nav.menu-open .v2-menu { display: block; }
  .v2-menu-list { flex-direction: column; align-items: stretch; gap: 0; }
  .v2-dd { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .v2-nav .v2-dd-link { flex: 1; padding: 16px 0; font-size: 16.8px; color: var(--ink); }
  .v2-dd-btn { padding: 12px; color: var(--ink-2); }
  .v2-dd-panel, .v2-dd:nth-child(n+3) .v2-dd-panel, .v2-dd:first-child .v2-dd-panel { position: static; width: 100%; display: none; flex-direction: column; gap: 14px; padding: 0 0 16px; border: 0; box-shadow: none; background: none; opacity: 1; visibility: visible; transform: none; }
  .v2-dd.open .v2-dd-panel { display: flex; }
  .v2-nav .v2-dd-group a { white-space: normal; }
  .v2-icon-item { border-bottom: 1px solid var(--line); }
  .v2-nav .v2-icon-link { padding: 14px 0; gap: 12px; color: var(--ink); font-size: 16px; }
  .v2-icon-txt { display: inline; }
  .nav-share-item { display: none; }
}

/* =====================================================================
   Pages historiques (html.v2-chrome) : menu v2 par-dessus Bootstrap 3
   ===================================================================== */
html.v2-chrome body { padding-top: 68px; }
html.v2-chrome:has(section.inner-sm[class*="hero-"]) body { padding-top: 0; }
/* Sans hero en tête : barre claire dès le haut */
html.v2-chrome:not(:has(section.inner-sm[class*="hero-"])) .v2-nav { background: rgba(246,246,243,.95); border-color: var(--line); }
html.v2-chrome:not(:has(section.inner-sm[class*="hero-"])) .v2-logo .s { color: #555; }
html.v2-chrome:not(:has(section.inner-sm[class*="hero-"])) .v2-logo .c { color: var(--green-dk); }
html.v2-chrome:not(:has(section.inner-sm[class*="hero-"])) .v2-dd-link,
html.v2-chrome:not(:has(section.inner-sm[class*="hero-"])) .v2-icon-link,
html.v2-chrome:not(:has(section.inner-sm[class*="hero-"])) .v2-dd-btn { color: var(--ink-2); }
html.v2-chrome:not(:has(section.inner-sm[class*="hero-"])) .v2-burger span { background: var(--ink); }

/* Neutralise Bootstrap / solidCreativity.css dans le menu */
.v2-nav { font-family: var(--font); font-size: 16px; line-height: 1.6; }
.v2-nav ul, .v2-nav p { margin: 0; }
.v2-nav a, .v2-nav a:hover, .v2-nav a:focus { text-decoration: none; }
.v2-nav button { font: inherit; line-height: 1.2; }
.v2-nav .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; }
.v2-nav .v2-logo:hover, .v2-nav .v2-logo:focus { text-decoration: none; }
html.v2-chrome .skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
html.v2-chrome .skip-link:focus { position: fixed; left: 16px; top: 16px; width: auto; height: auto; padding: 8px 16px; background: #fff; color: #000; z-index: 9999; }
html.v2-chrome.v2-noscroll body, body.v2-noscroll { overflow: hidden; }
@media (max-width: 1024px) { .v2-nav .v2-dd-link { color: var(--ink); } }

/* ---------- Hero des pages historiques (même rendu que la home) ---------- */
html.v2-chrome section.inner-sm[class*="hero-"] { position: relative; isolation: isolate; padding: 124px 0 64px; background-color: #1a1c20; background-position: center 35%; color: rgba(255,255,255,.88); }
html.v2-chrome section.inner-sm[class*="hero-"]::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,12,16,.88) 0%, rgba(10,12,16,.66) 50%, rgba(10,12,16,.45) 100%), linear-gradient(0deg, rgba(10,12,16,.55), transparent 60%); }
html.v2-chrome section.inner-sm[class*="hero-"] .box { background: none; border: 0; box-shadow: none; min-height: 0; padding: 0; color: rgba(255,255,255,.88); max-width: 1140px; }
/* Titre sur toute la largeur, lignes équilibrées ; le reste du hero garde une largeur de lecture */
html.v2-chrome section.inner-sm[class*="hero-"] .box > :not(h1):not(.row):not(.modal) { max-width: 860px; }
html.v2-chrome section.inner-sm[class*="hero-"] .box.centered > :not(h1):not(.row):not(.modal) { margin-left: auto; margin-right: auto; }
html.v2-chrome section.inner-sm[class*="hero-"] :is(h1, h2) { text-wrap: balance; }
html.v2-chrome section.inner-sm[class*="hero-"] .box.centered { margin-left: auto; margin-right: auto; }
html.v2-chrome section.inner-sm[class*="hero-"] h1 { color: #fff; font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -.02em; margin: 6px 0 18px; }
html.v2-chrome section.inner-sm[class*="hero-"] h2,
html.v2-chrome section.inner-sm[class*="hero-"] h3,
html.v2-chrome section.inner-sm[class*="hero-"] h4 { color: #fff; }
html.v2-chrome section.inner-sm[class*="hero-"] p,
html.v2-chrome section.inner-sm[class*="hero-"] li { color: rgba(255,255,255,.88); }
html.v2-chrome section.inner-sm[class*="hero-"] strong,
html.v2-chrome section.inner-sm[class*="hero-"] b { color: #fff; }
html.v2-chrome section.inner-sm[class*="hero-"] a:not(.btn):not([class*="btn-"]) { color: var(--green-lt); }
html.v2-chrome section.inner-sm[class*="hero-"] a:not(.btn):not([class*="btn-"]):hover { color: #fff; }
html.v2-chrome section.inner-sm[class*="hero-"] .hero-soustitre { color: var(--green-lt); border-left-color: var(--green); font-style: normal; font-weight: 500; }
html.v2-chrome section.inner-sm[class*="hero-"] .breadcrumb { background: none; padding: 0; margin: 0 0 6px; font-size: 13px; }
html.v2-chrome section.inner-sm[class*="hero-"] .breadcrumb > li,
html.v2-chrome section.inner-sm[class*="hero-"] .breadcrumb > .active,
html.v2-chrome section.inner-sm[class*="hero-"] .breadcrumb > li + li::before { color: rgba(255,255,255,.6); }
html.v2-chrome section.inner-sm[class*="hero-"] .breadcrumb a:not(.btn) { color: rgba(255,255,255,.85); }
html.v2-chrome section.inner-sm[class*="hero-"] .mini-fiche,
html.v2-chrome section.inner-sm[class*="hero-"] .company-info { background: none; border: 0; padding: 0; color: rgba(255,255,255,.88); }
html.v2-chrome section.inner-sm[class*="hero-"] :is(mh3, mh4) { color: #fff; }
/* Cartes blanches et modales placées dans le hero : texte foncé */
html.v2-chrome section.inner-sm[class*="hero-"] :is(.cadreHero, .modal) { color: var(--ink-2); }
html.v2-chrome section.inner-sm[class*="hero-"] :is(.cadreHero, .modal) :is(p, li, span, label, div, small) { color: var(--ink-2); }
html.v2-chrome section.inner-sm[class*="hero-"] :is(.cadreHero, .modal) :is(h2, h3, h4, h5, strong, b, mh3, mh4) { color: var(--ink); }
html.v2-chrome section.inner-sm[class*="hero-"] :is(.cadreHero, .modal) a:not(.btn):not([class*="btn-"]) { color: var(--green-dk); }
@media (max-width: 560px) {
  html.v2-chrome section.inner-sm[class*="hero-"] { padding: 104px 0 48px; }
  html.v2-chrome section.inner-sm[class*="hero-"]::after { background: linear-gradient(0deg, rgba(10,12,16,.9) 10%, rgba(10,12,16,.6)); }
}

/* ---------- Typo des titres (comme la home), police inchangée ---------- */
/* Pied de page (fond sombre) exclu : il garde ses titres clairs d'origine */
html.v2-chrome :is(h1, h2, h3):not(footer *) { font-weight: 700; letter-spacing: -.015em; }
html.v2-chrome :is(h1, h2, h3, h4):not(footer *) { color: var(--ink); }
html.v2-chrome body { color: var(--ink-2); line-height: 1.6; }

/* Barres collantes et ancres : sous le menu fixe (68 px au lieu de 50) */
html.v2-chrome { scroll-padding-top: 84px; }
html.v2-chrome #navbar-references.navbar-static-top.affix { top: 68px; }

/* Hero allégé : accroche façon home ; contenu déplacé juste après le hero */
html.v2-chrome section.inner-sm[class*="hero-"] p.lead { font-size: 18px; line-height: 1.55; max-width: 720px; color: rgba(255,255,255,.88); }
.hero-suite { padding: 40px 0 8px; }
.hero-suite .cadreHero, .formation-pedagogie .cadreHero { border: 1px solid #e4e4df; border-radius: 14px; padding: 20px 22px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06); }
html.v2-chrome .formation-pedagogie { padding: 56px 0 40px; }
/* Barre des catégories : collée sous le menu à l'endroit où on l'atteint (au lieu d'un seuil fixe en px) */
html.v2-chrome #navbar-references, html.v2-chrome #navbar-references.affix, html.v2-chrome #navbar-references.affix-top { position: sticky; top: 68px; z-index: 90; }

/* ---------- Accessibilité (contrastes, liens dans le texte, <main>) ---------- */
html.v2-chrome main#main-content:focus { outline: none; }
/* Vert de la marque trop clair sous un texte blanc (2,4:1) : vert foncé de la home (7:1) */
html.v2-chrome .btn-primary, html.v2-chrome .btn-success,
html.v2-chrome .prochaine-session .btn-session, html.v2-chrome .prochaine-session .btn-success.btn-session,
html.v2-chrome .prochaine-session .badge-formation, html.v2-chrome .filtre-reset { background: var(--green-dk); background-image: none; border-color: var(--green-dk); color: #fff; }
html.v2-chrome .btn-primary:hover, html.v2-chrome .btn-primary:focus, html.v2-chrome .btn-success:hover, html.v2-chrome .btn-success:focus,
html.v2-chrome .prochaine-session .btn-session:hover, html.v2-chrome .prochaine-session .btn-success.btn-session:hover, html.v2-chrome .filtre-reset:hover { background: var(--green-dkr); border-color: var(--green-dkr); color: #fff; }
html.v2-chrome .btn-info { background: #23708a; background-image: none; border-color: #23708a; color: #fff; }
html.v2-chrome .btn-info:hover, html.v2-chrome .btn-info:focus { background: #1b5a6f; border-color: #1b5a6f; color: #fff; }
/* Liens dans un texte : en gras plutôt que soulignés */
html.v2-chrome main :is(p, li, td, dd) a:not(.btn):not([class*="v2-"]) { font-weight: 600; }
/* Lien dans un titre (déjà gras) : couleur de lien distincte du texte */
html.v2-chrome main :is(h2, h3, h4) a:not(.btn):not([class*="v2-"]) { color: var(--green-dk); }
/* Onglets (programme jour par jour) : onglet actif lisible */
html.v2-chrome .nav-tabs > li.active > a, html.v2-chrome .nav-tabs > li.active > a:hover, html.v2-chrome .nav-tabs > li.active > a:focus { color: var(--ink); }
/* Menu transparent sur le hero : léger voile sombre en haut (lisibilité du logo, et fond calculable par les outils d'audit) */
html.v2-chrome:has(section.inner-sm[class*="hero-"]) .v2-nav:not(.scrolled):not(.menu-open) { background-image: linear-gradient(rgba(10,12,16,.35), rgba(10,12,16,0)); }
/* Sous-menu Formations : « Toutes nos formations » en lien d'appel bien visible */
.v2-nav .v2-dd:first-child .v2-dd-group:first-child a { display: inline-flex; margin: 0; padding: 8px 14px; border-radius: 999px; background: #eef6e0; color: var(--green-dk); font-weight: 600; }
.v2-nav .v2-dd:first-child .v2-dd-group:first-child a .fa { color: var(--green-dk); }
.v2-nav .v2-dd:first-child .v2-dd-group:first-child a::after { content: "\2192"; margin-left: 2px; transition: transform .2s; }
.v2-nav .v2-dd:first-child .v2-dd-group:first-child a:hover { background: var(--green-dk); color: #fff; }
.v2-nav .v2-dd:first-child .v2-dd-group:first-child a:hover .fa { color: #fff; }
.v2-nav .v2-dd:first-child .v2-dd-group:first-child a:hover::after { transform: translateX(3px); }
