@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500&display=swap');

/* ── TOKENS ── */
:root {
  --navy:      #1a6a9e;
  --navy-mid:  #125080;
  --navy-rgb:  26,106,158;
  --blue:      #1254a0;
  --blue-dk:   #1a4a6e;
  --blue-lt:   #eef3f8;
  --gold:      #e8834a;
  --price-color: var(--blue);
  --cream:     #f8f5f0;
  --bg:        #eef3f8;
  --white:     #ffffff;
  --muted:     #546080;
  --light:     #8a93aa;
  --border:    rgba(26,106,158,0.08);
  --border-md: rgba(26,106,158,0.15);
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-pill: 100px;
  --sh-sm: 0 1px 4px rgba(26,106,158,0.07);
  --sh-md: 0 4px 20px rgba(26,106,158,0.09);
  --sh-lg: 0 12px 48px rgba(26,106,158,0.11);
  --ease: 0.22s ease;
  --max-w: 1200px;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--bg); color: var(--navy); line-height: 1.6; padding-top: var(--header-h, 90px); }
/* Barre d'admin WP : décaler le header fixe en dessous */
.admin-bar body { padding-top: calc(var(--header-h, 90px) + 32px); }
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar body { padding-top: calc(var(--header-h, 90px) + 46px); } .admin-bar .site-header { top: 46px; } }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 40px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── TYPOGRAPHIE ── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; font-weight: 700; }
p { color: var(--muted); line-height: 1.75; font-size: .95rem; }
.lead { font-size: 1.05rem; color: var(--muted); line-height: 1.8; }
.eyebrow { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.eyebrow-gold { color: var(--gold); }
.eyebrow-orange { color: var(--gold); }
.eyebrow-light { color: rgba(247,245,241,0.65); }

/* ── BOUTONS ── */
.btn { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: .9rem; font-weight: 500; border-radius: var(--r-pill); padding: 12px 24px; border: 2px solid transparent; cursor: pointer; transition: all var(--ease); line-height: 1; text-decoration: none; }
.btn-primary   { background: linear-gradient(135deg,var(--gold),#c85e22); color: #fff; border-color: var(--gold); }
.btn-primary:hover   { background: linear-gradient(135deg,#c85e22,#aa4d18); border-color: #c85e22; transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn-white     { background: var(--white); color: var(--blue); border-color: var(--white); }
.btn-white:hover     { background: var(--cream); border-color: var(--cream); transform: translateY(-1px); }
.btn-outline   { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover   { background: var(--blue-lt); transform: translateY(-1px); }
.btn-ghost     { background: transparent; color: rgba(247,245,241,.8); border-color: rgba(247,245,241,.35); }
.btn-ghost:hover     { color: var(--cream); border-color: rgba(247,245,241,.65); background: rgba(255,255,255,.07); }
.btn-gold      { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover      { background: #b8923e; border-color: #b8923e; transform: translateY(-1px); }
.btn-sm { padding: 8px 18px; font-size: .82rem; }
.btn-lg { padding: 15px 32px; font-size: 1rem; }

/* ── BADGES ── */
.badge { display: inline-block; padding: 3px 11px; border-radius: var(--r-pill); font-size: .72rem; font-weight: 500; }
.badge-blue  { background: var(--blue-lt); color: var(--blue); }
.badge-green { background: #e8f5ee; color: #2a7a4a; }
.badge-gold  { background: #fef0e8; color: #c8652a; }
.badge-red   { background: #faeae4; color: #c94a1a; }

/* ── HEADER ── */
.site-header {
  background: var(--navy);
  background: rgba(var(--navy-rgb), 0.95);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background .35s ease, box-shadow .35s ease;
}
.site-header::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold) 70%, transparent 100%);
  opacity: .22; pointer-events: none;
}
.site-header.scrolled { background: var(--navy); box-shadow: 0 4px 28px rgba(0,0,0,.22); }
.site-header.scrolled::after { opacity: .18; }
/* Container : hauteur pilotée par --header-h, réduite au scroll */
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h, 90px);
  transition: height .4s cubic-bezier(.4,0,.2,1);
}
.site-header.scrolled .container { height: 62px; }
/* Logo */
.site-logo { display: flex; flex-direction: column; }
.site-logo .name { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--cream); letter-spacing: -.04em; }
.site-logo .tagline { font-size: 8px; font-weight: 400; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; margin-top: 1px; }
/* Logo wrapper — styles pilotés par data-logo="brut|blanc" */
.site-logo-bg { display: inline-flex; align-items: center; transition: padding .4s cubic-bezier(.4,0,.2,1); }
.site-logo-img {
  max-height: var(--logo-height, 60px); width: auto; height: auto;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
}
/* Shrink au scroll */
.site-header.scrolled .site-logo-img { max-height: var(--logo-height-scrolled, 40px); }
/* Sans habillage */
.site-logo[data-logo="brut"] .site-logo-img,
.site-logo:not([data-logo="blanc"]) .site-logo-img { filter: drop-shadow(0 1px 6px rgba(0,0,0,.4)); }
/* Sur fond blanc */
.site-logo[data-logo="blanc"] .site-logo-bg { background: #fff; border-radius: 8px; padding: 5px 12px; box-shadow: 0 2px 10px rgba(0,0,0,.22); }
.site-logo[data-logo="blanc"] .site-logo-img { max-height: calc(var(--logo-height, 60px) - 12px); filter: none; }
.site-header.scrolled .site-logo[data-logo="blanc"] .site-logo-bg { padding: 4px 10px; }
.site-header.scrolled .site-logo[data-logo="blanc"] .site-logo-img { max-height: calc(var(--logo-height-scrolled, 40px) - 10px); }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { font-size: .85rem; color: rgba(247,245,241,.6); padding: 7px 12px; border-radius: var(--r-md); transition: all var(--ease); white-space: nowrap; }
.site-nav a:hover, .site-nav a.current { color: var(--cream); background: rgba(255,255,255,.08); }
.site-nav .btn { margin-left: 8px; padding: 8px 18px; font-size: .84rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--cream); margin: 4px 0; border-radius: 2px; transition: all var(--ease); }

/* ── HERO ── */
.hero { background: var(--navy); padding: 100px 0 80px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .18; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(26,106,158,.95) 0%, rgba(26,106,158,.7) 55%, rgba(26,106,158,.35) 100%); }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 3fr 2fr; gap: 60px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(26,79,214,.18); border: 1px solid rgba(26,79,214,.35); border-radius: var(--r-pill); padding: 6px 16px; font-size: .72rem; font-weight: 500; color: #8ab0f7; letter-spacing: .08em; margin-bottom: 20px; }
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #8ab0f7; animation: blink 2s infinite; flex-shrink: 0; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} }
.hero h1 { color: var(--cream); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub { color: rgba(247,245,241,.55); font-size: 1.05rem; line-height: 1.75; margin-bottom: 32px; font-weight: 300; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 36px; padding-top: 32px; border-top: 1px solid rgba(247,245,241,.08); }
.hero-stats .stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--cream); letter-spacing: -.04em; line-height: 1; }
.hero-stats .stat-label { font-size: .75rem; color: rgba(247,245,241,.38); margin-top: 4px; }
.hero-sessions { display: flex; flex-direction: column; gap: 10px; }
.session-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); padding: 16px 20px; transition: all var(--ease); }
.session-card:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.2); }
.session-card .sc-label { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 7px; display: block; }
.session-card .sc-title { font-family: var(--font-display); font-size: .95rem; font-weight: 600; color: var(--cream); margin-bottom: 6px; }
.session-card .sc-meta { display: flex; gap: 14px; font-size: .78rem; color: rgba(247,245,241,.4); }

/* ── TRUST BAR ── */
.trust-bar { background: var(--navy-mid); padding: 16px 0; border-top: 1px solid rgba(247,245,241,.06); border-bottom: 1px solid rgba(247,245,241,.04); }
.trust-bar .container { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; }
.trust-item { display: flex; align-items: center; gap: 10px; padding: 6px 20px; border-right: 1px solid rgba(247,245,241,.06); }
.trust-item:last-child { border-right: none; }
.trust-icon { width: 32px; height: 32px; background: rgba(232,131,74,.18); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-icon svg { width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.trust-item strong { display: block; font-size: .82rem; font-weight: 500; color: rgba(247,245,241,.88); }
.trust-item span { font-size: .75rem; color: rgba(247,245,241,.38); }

/* ── ABOUT ── */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: center; }
.about-img { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 18px; box-shadow: 0 24px 64px rgba(13,27,62,.14); }
.about-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.about-img-placeholder { position: absolute; inset: 0; background: linear-gradient(135deg, #c8d8f0, #a8bedc); display: flex; align-items: center; justify-content: center; }
.about-content { display: flex; flex-direction: column; justify-content: center; }
.about-content h2 { margin-bottom: 16px; }
.about-content p { margin-bottom: 24px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }

/* ── FORMATIONS GRID ── */
.formations-section { background: var(--bg); }
.formations-section .section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
.formation-card { background: var(--white); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); transition: all var(--ease); display: flex; flex-direction: column; }
.formation-card:hover { border-color: var(--blue); box-shadow: var(--sh-lg); transform: translateY(-3px); }
.formation-card .card-img { height: 200px; position: relative; overflow: hidden; background: linear-gradient(135deg, #1a3a6e, #1a4fd6); }
.formation-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.formation-card:hover .card-img img { transform: scale(1.04); }
.formation-card .card-cat { position: absolute; top: 12px; left: 12px; }
.formation-card .card-badges { position: absolute; bottom: 12px; left: 12px; display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.formation-card .card-dur { background: rgba(26,106,158,.65); color: var(--cream); border-radius: var(--r-pill); padding: 3px 10px; font-size: .72rem; backdrop-filter: blur(4px); }
.formation-card .card-format { font-size: .68rem; font-weight: 600; letter-spacing: .04em; border-radius: var(--r-pill); padding: 3px 9px; color: #fff; backdrop-filter: blur(4px); }
.badge-format-presentiel  { background: var(--badge-presentiel,  #1a5298); }
.badge-format-distanciel  { background: var(--badge-distanciel,  #166946); }
.badge-format-mixte       { background: var(--badge-mixte,       #8a5c2e); }
.formation-card .card-partner-logo { position: absolute; top: 10px; right: 10px; background: #fff; border-radius: 7px; padding: 5px 10px; box-shadow: 0 2px 8px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; }
.formation-card .card-partner-logo img { height: 26px; width: auto; max-width: 110px; object-fit: contain; display: block; }
.formation-card .card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-accroche { display: inline-block; font-size: .65rem; font-weight: 700; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; background: rgba(232,131,74,.1); border: 1px solid rgba(232,131,74,.28); border-radius: var(--r-pill); padding: 3px 10px; margin-bottom: 8px; }
.formation-card h3 { font-size: 1rem; margin-bottom: 8px; }
.formation-card p { font-size: .86rem; margin-bottom: 16px; flex: 1; }
.formation-card .card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); }
.formation-card .price { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: var(--price-color); letter-spacing: -.03em; }

/* ── CALENDRIER TABLE ── */
.cal-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); box-shadow: var(--sh-sm); position: relative; }
.cal-table { width: 100%; border-collapse: collapse; background: var(--white); }
.cal-table thead { background: var(--navy); }
.cal-table th { padding: 14px 18px; text-align: left; font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(247,245,241,.45); white-space: nowrap; }
.cal-table td { padding: 15px 18px; border-bottom: 1px solid var(--border); font-size: .88rem; color: var(--navy); vertical-align: middle; }
.cal-table tbody tr:last-child td { border-bottom: none; }
.cal-table tbody tr:hover td { background: var(--bg); }
/* Colonne logo */
.cal-col-logo { width: 90px; padding-left: 14px !important; padding-right: 8px !important; }
.cal-logo-cell { max-width: 72px; background: var(--white); border: 1px solid var(--border); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; padding: 6px 8px; flex-shrink: 0; box-shadow: var(--sh-sm); }
.cal-logo-img { max-height: 44px; max-width: 64px; width: auto; height: auto; display: block; }
/* Accroche badge + titre formation */
.cal-formation-sub { display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 600; color: var(--gold); letter-spacing: .07em; text-transform: uppercase; background: rgba(232,131,74,.1); border: 1px solid rgba(232,131,74,.25); border-radius: var(--r-pill); padding: 2px 8px; margin-bottom: 5px; line-height: 1.4; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cal-formation-title { display: block; font-weight: 700; color: var(--navy); text-decoration: none; font-size: .88rem; line-height: 1.4; }
.cal-formation-title:hover { color: var(--blue); }
.cal-filters { display: flex; gap: 12px; margin-bottom: 24px; align-items: flex-end; flex-wrap: wrap; }
.cal-filter-group label { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); margin-bottom: 5px; }
.cal-filter-group select { border: 1.5px solid var(--border-md); border-radius: var(--r-md); padding: 10px 14px; font-size: .86rem; color: var(--navy); font-family: var(--font-body); background: var(--white); min-width: 200px; transition: border-color var(--ease); }
.cal-filter-group select:focus { border-color: var(--blue); outline: none; }
.btn-reset { background: transparent; border: 1.5px solid var(--border-md); border-radius: var(--r-pill); padding: 10px 18px; font-size: .82rem; color: var(--muted); cursor: pointer; font-family: var(--font-body); transition: all var(--ease); }
.btn-reset:hover { border-color: var(--blue); color: var(--blue); }

/* ── FINANCEMENT CARDS ── */
/* Grille financement — pyramide : 1re carte pleine largeur, suivantes en 2 colonnes */
.fin-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.fin-cards-grid .fin-card-first { grid-column: 1 / -1; max-width: 480px; margin: 0 auto; width: 100%; }
.fin-cards-page { max-width: 860px; margin: 0 auto; }
.fin-card { background: var(--white); border-radius: var(--r-lg); padding: 24px; border: 1px solid var(--border); transition: all var(--ease); display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.fin-card:hover { border-color: var(--blue); background: var(--blue-lt); }
.fin-card-link { cursor: pointer; }
.fin-card-link:hover .fin-card-icon { background: var(--blue); }
.fin-card-link:hover .fin-card-icon svg { stroke: #fff; }
.fin-card-icon { width: 44px; height: 44px; background: var(--blue-lt); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; flex-shrink: 0; transition: background var(--ease); }
.fin-card-icon svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fin-card h3 { font-size: 1rem; margin-bottom: 8px; }
.fin-card p { font-size: .86rem; margin: 0; flex: 1; }
.fin-card-cta { margin-top: 14px; font-size: .82rem; font-weight: 600; color: var(--blue); }
/* Logo Qualiopi — trust bar et footer */
.trust-qualiopi-logo { height: 36px; width: auto; max-width: 100px; object-fit: contain; }
.footer-qualiopi-logo { height: 48px; width: auto; max-width: 130px; object-fit: contain; margin-top: 16px; opacity: .85; }

/* ── METHODE STEPS ── */
.methode-section { background: var(--navy); position: relative; overflow: hidden; }
.methode-section .container { position: relative; z-index: 1; }
.meth-lead { font-size: .95rem; line-height: 1.8; margin-bottom: 28px; }
.meth-lead, .meth-lead p { color: rgba(247,245,241,.82); }
.methode-steps { display: flex; flex-direction: column; }
.methode-step { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid rgba(247,245,241,.07); }
.methode-step:last-child { border-bottom: none; }
.step-num { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(247,245,241,.3); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: .82rem; font-weight: 700; color: rgba(247,245,241,.6); flex-shrink: 0; }
.step-content h4 { font-size: 1rem; font-weight: 700; color: var(--cream); margin-bottom: 5px; }
.step-content p { font-size: .86rem; color: rgba(247,245,241,.72); line-height: 1.65; margin: 0; }

/* ── TÉMOIGNAGES ── */
.testi-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; position: relative; transition: all var(--ease); }
.testi-card:hover { border-color: var(--blue); box-shadow: var(--sh-md); }
.testi-card::before { content: '"'; position: absolute; top: 16px; right: 20px; font-family: var(--font-display); font-size: 64px; font-weight: 800; color: var(--blue-lt); line-height: 1; pointer-events: none; }
.testi-stars { color: var(--gold); font-size: .9rem; letter-spacing: 3px; margin-bottom: 14px; }
.testi-text { font-size: .9rem; line-height: 1.8; color: var(--muted); font-style: italic; margin-bottom: 18px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: linear-gradient(135deg, #c8d8f0, #a8bedc); }
.testi-name { font-family: var(--font-display); font-size: .9rem; font-weight: 600; color: var(--navy); }
.testi-role { font-size: .78rem; color: var(--muted); }

/* ── CTA SECTION ── */
.cta-section { background: var(--navy); padding: 100px 0; position: relative; }
.cta-section .container { position: relative; z-index: 1; text-align: center; max-width: 680px; }
.cta-section h2 { color: var(--cream); margin-bottom: 16px; }
.cta-section p { color: rgba(247,245,241,.5); font-size: 1.05rem; margin-bottom: 36px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── PAGE HEADERS ── */
.page-header { background-color: var(--navy); background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px); background-size: 28px 28px; min-height: 260px; display: flex; align-items: center; padding: 64px 0; position: relative; overflow: hidden; text-align: left; }
.page-header::before { content: ''; position: absolute; top: -80px; right: -80px; width: 380px; height: 380px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.07); background: rgba(255,255,255,.025); pointer-events: none; z-index: 1; }
.page-header::after { content: ''; position: absolute; bottom: -50px; right: 26%; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(232,131,74,.14), transparent 65%); pointer-events: none; z-index: 1; }
.page-header .container { position: relative; z-index: 2; text-align: left; width: 100%; }
.page-header h1 { color: var(--cream); margin-bottom: 14px; text-align: left; }
.page-header .eyebrow { text-align: left; }
.page-header .lead { color: rgba(247,245,241,.82); max-width: 580px; text-align: left; }
.page-header .lead p { color: inherit; text-align: left; }

/* ── PAGE HEADER — FORMATION (single-formation.php) ── */
.page-header-formation {
  min-height: 300px; padding: 52px 0 0;
  background-image: none;
}
.page-header-formation::before,
.page-header-formation::after { display: none; }
.page-header-formation .pfh-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  opacity: .3; filter: saturate(.6) brightness(.85);
}
.page-header-formation .pfh-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(105deg,
    rgba(var(--navy-rgb),.97) 0%,
    rgba(var(--navy-rgb),.88) 45%,
    rgba(var(--navy-rgb),.62) 72%,
    rgba(var(--navy-rgb),.38) 100%
  );
}

/* ── BREADCRUMB BAR (sous page-header) ── */
.breadcrumb-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 10px 0; }
.breadcrumb { font-size: .8rem; color: var(--light); display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.breadcrumb a { color: var(--blue); font-weight: 500; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { color: var(--light); margin: 0 2px; }

/* ── SUBNAV FORMATION (sticky sous header) ── */
.formation-subnav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(var(--navy-rgb),.07);
  position: sticky;
  top: 62px;
  z-index: 90;
}
.formation-subnav-nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.formation-subnav-nav::-webkit-scrollbar { display: none; }
.subnav-link {
  padding: 13px 20px;
  font-size: .82rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  text-decoration: none;
  display: block;
}
.subnav-link:hover { color: var(--navy); border-bottom-color: var(--border); }
.subnav-link.active { color: var(--blue); border-bottom-color: var(--gold); font-weight: 600; }

/* ── FICHE FORMATION ── */
/* Décalage scroll : header 62px + subnav ~44px + marge 8px */
.formation-content[id] { scroll-margin-top: 120px; }

/* ── INTRO FORMATION — header gold + corps avec cercles décoratifs ── */
.formation-intro {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--sh-md);
  padding: 0;
}
/* Barre header gold */
.fi-header {
  background: linear-gradient(110deg, #b84d1e 0%, #e8834a 52%, #d06030 100%);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.fi-eyebrow {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
}
/* Métadonnées inline dans le header */
.fi-header-meta {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
}
.fi-hm-item {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  border-right: 1px solid rgba(255,255,255,.2);
}
.fi-hm-item.fi-hm-last { border-right: none; }
.fi-hm-label {
  font-size: .57rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.52);
  line-height: 1;
  margin-bottom: 3px;
}
.fi-hm-val {
  font-size: .82rem;
  font-weight: 500;
  color: #fff;
  line-height: 1;
}
/* Corps contenu — cercles concentriques décoratifs */
.fi-body {
  padding: 30px 36px 32px;
  position: relative;
  overflow: hidden;
  background: var(--white);
}
/* 3 anneaux concentriques en bas-droite via border + box-shadow */
.fi-body::before {
  content: '';
  position: absolute;
  bottom: -90px; right: -90px;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 2px solid rgba(232,131,74,.14);
  box-shadow:
    0 0 0 50px rgba(232,131,74,.05),
    0 0 0 110px rgba(232,131,74,.03);
  pointer-events: none;
}
/* Petit accent gold solide en bas-droite visible */
.fi-body::after {
  content: '';
  position: absolute;
  bottom: 20px; right: 24px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(232,131,74,.12);
  border: 1.5px solid rgba(232,131,74,.25);
  pointer-events: none;
}
.fi-body > * { position: relative; z-index: 1; }
.fi-body p { font-size: .97rem; color: var(--navy); line-height: 1.9; margin-bottom: .85em; }
.fi-body p:last-child { margin-bottom: 0; }
.fi-body strong { color: var(--navy); font-weight: 600; }
.fi-body em { color: var(--blue); font-style: italic; }
.fi-body a { color: var(--blue); text-decoration: underline; }
.fi-body h2, .fi-body h3 { font-size: 1.05rem; color: var(--navy); margin: 18px 0 8px; }
.fi-body ul, .fi-body ol { margin: 10px 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.fi-body ul li { padding-left: 20px; position: relative; font-size: .93rem; color: var(--muted); line-height: 1.7; }
.fi-body ul li::before { content: ''; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.fi-body ol { counter-reset: fi-ol; }
.fi-body ol li { padding-left: 28px; position: relative; font-size: .93rem; color: var(--muted); line-height: 1.7; counter-increment: fi-ol; }
.fi-body ol li::before { content: counter(fi-ol); position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: rgba(232,131,74,.15); color: var(--gold); font-size: .65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ── Section Financement ── */
.fund-title { margin-bottom: 14px; }
.fund-intro { margin-bottom: 20px; }
.fund-intro p { font-size: .9rem; color: var(--muted); line-height: 1.75; margin-bottom: 8px; }
.fund-intro p:last-child { margin-bottom: 0; }
.fund-intro strong { color: var(--navy); font-weight: 600; }
.fund-intro a { color: var(--blue); text-decoration: underline; word-break: break-all; font-size: .85rem; }
.fund-intro h2,.fund-intro h3,.fund-intro h4 { font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: var(--navy); margin: 16px 0 6px; }
.fund-intro ul { margin: 8px 0 12px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.fund-intro ul li { padding-left: 18px; position: relative; font-size: .88rem; color: var(--muted); line-height: 1.65; }
.fund-intro ul li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
/* Cards dispositifs */
.fund-items { display: flex; flex-direction: column; gap: 12px; }
.fund-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px 16px 22px; position: relative; overflow: hidden; }
.fund-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--gold), rgba(232,131,74,.4)); border-radius: 4px 0 0 4px; }
.fund-item-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.fund-item-name { font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: var(--navy); }
.fund-item-amount { font-size: .82rem; font-weight: 700; color: var(--gold); background: rgba(232,131,74,.1); border: 1px solid rgba(232,131,74,.25); border-radius: var(--r-pill); padding: 3px 11px; white-space: nowrap; flex-shrink: 0; }
.fund-item-conditions { font-size: .83rem; color: var(--muted); line-height: 1.65; margin-bottom: 10px; }
.fund-item-conditions p { margin: 0 0 5px; }
.fund-item-conditions p:last-child { margin: 0; }
.fund-item-link { font-size: .8rem; color: var(--blue); font-weight: 500; }
.fund-item-link:hover { color: var(--navy); }
.fund-cta { margin-top: 16px; text-align: right; }
/* Mobile */
@media (max-width: 640px) {
  .fi-header { padding: 12px 18px; }
  .fi-hm-item { padding: 0 10px; }
  .fi-hm-item:first-child { padding-left: 0; }
  .fi-body { padding: 22px 18px 24px; }
}
.formation-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; max-width: 100%; }
.formation-layout > * { min-width: 0; }
.formation-content { background: var(--white); border-radius: var(--r-lg); overflow: hidden; word-break: break-word; overflow-wrap: anywhere; box-sizing: border-box; max-width: 100%; }
/* Padding des blocs de contenu formation (remplace les inline styles) */
.fi-pad { padding: 28px 36px; }
/* Grille points forts 2 colonnes */
.key-points-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.formation-hero-img { width: 100%; height: 320px; object-fit: cover; }
.formation-body { padding: 40px; }
.formation-sidebar { position: sticky; top: 122px; } /* header 62px + subnav ~44px + marge 16px */
.sidebar-card { background: var(--white); border-radius: var(--r-lg); border: 1.5px solid var(--border-md); padding: 28px; box-shadow: var(--sh-md); }
.sidebar-price { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--price-color); letter-spacing: -.04em; padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.sidebar-price span { font-size: .82rem; font-weight: 400; color: var(--muted); font-family: var(--font-body); letter-spacing: 0; margin-left: 6px; }
.sidebar-info { list-style: none; margin-bottom: 20px; }
.sidebar-info li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.sidebar-info li:last-child { border-bottom: none; }
.sidebar-info .si-icon { width: 30px; height: 30px; background: var(--bg); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .9rem; }
.sidebar-info .si-label { font-size: .72rem; color: var(--muted); display: block; }
.sidebar-info .si-val { font-weight: 500; color: var(--navy); display: block; }
.cpf-box { background: #e6f4ed; border-radius: var(--r-md); padding: 12px 16px; text-align: center; margin-top: 14px; }
.cpf-box strong { display: block; font-size: .82rem; color: #1a6b40; font-weight: 600; }
.cpf-box span { font-size: .76rem; color: var(--muted); }

/* Sessions dropdown */
.sessions-dropdown-wrap { position: relative; margin-bottom: 10px; }
.sessions-dropdown-btn { width: 100%; justify-content: space-between; display: flex; align-items: center; gap: 6px; }
.sdb-arrow { font-size: .7rem; transition: transform .18s; line-height: 1; }
.sessions-dropdown-btn[aria-expanded="true"] .sdb-arrow { transform: rotate(180deg); }
.sessions-dropdown { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--white); border: 1.5px solid var(--border-md); border-radius: var(--r-md); box-shadow: 0 8px 28px rgba(26,106,158,.14); z-index: 200; overflow-y: auto; max-height: min(320px, 60vh); }
.sessions-dropdown-hint { font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 10px 14px 6px; border-bottom: 1px solid var(--border); margin: 0; }
/* Dropup : s'ouvre vers le haut (utilisé dans la section CTA en bas de page) */
.sessions-dropdown-wrap--up .sessions-dropdown { top: auto; bottom: calc(100% + 6px); left: 50%; right: auto; transform: translateX(-50%); min-width: 280px; width: max-content; max-width: 340px; }
.sessions-dropdown-wrap--up .sdb-arrow { transform: rotate(180deg); }
.sessions-dropdown-wrap--up .sessions-dropdown-btn[aria-expanded="true"] .sdb-arrow { transform: rotate(0deg); }
.session-dropdown-item { display: block; padding: 10px 14px; border-bottom: 1px solid var(--border); text-decoration: none; transition: background .12s; }
.session-dropdown-item:last-child { border-bottom: none; }
.session-dropdown-item:hover { background: var(--bg); }
.sdi-date { display: block; font-size: .88rem; font-weight: 600; color: var(--navy); }
.sdi-meta { display: block; font-size: .76rem; color: var(--muted); margin-top: 2px; }

.formation-section { margin-bottom: 36px; }
.formation-section h3 { font-size: 1.1rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.objectifs-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.objectifs-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--muted); }
.objectifs-list li::before { content: ''; width: 20px; height: 20px; min-width: 20px; border-radius: 50%; background: var(--blue-lt); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6l2.5 2.5 4.5-5' stroke='%231a4fd6' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; margin-top: 2px; }
.programme-item { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; margin-bottom: 8px; }
.programme-item summary { padding: 14px 18px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: .9rem; color: var(--navy); list-style: none; user-select: none; }
.programme-item summary::-webkit-details-marker { display: none; }
.programme-item summary::after { content: '+'; color: var(--blue); font-size: 1.2rem; font-weight: 400; }
.programme-item[open] summary::after { content: '−'; }
.programme-item .prog-body { padding: 0 18px 16px; font-size: .88rem; color: var(--muted); line-height: 1.7; }
.public-prereqs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-box { background: var(--bg); border-radius: var(--r-md); padding: 18px; }
.info-box h4 { font-size: .9rem; margin-bottom: 8px; }
.info-box p { font-size: .86rem; margin: 0; }

/* ── FORMULAIRE CONTACT ── */
.contact-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.contact-form-wrap { background: var(--white); border-radius: var(--r-lg); padding: 40px; }
.contact-form-wrap h2 { font-size: 1.3rem; margin-bottom: 6px; }
.contact-form-wrap .lead { font-size: .9rem; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: .82rem; font-weight: 500; color: var(--navy); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select { width: 100%; border: 1.5px solid var(--border-md); border-radius: var(--r-md); padding: 11px 14px; font-size: .9rem; font-family: var(--font-body); color: var(--navy); background: var(--white); transition: border-color var(--ease); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(26,79,214,.08); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-notice { font-size: .78rem; color: var(--muted); margin-top: 12px; }
.form-success { background: #e6f4ed; border-radius: var(--r-md); padding: 16px 20px; color: #1a6b40; font-size: .9rem; display: none; }
.contact-info-card { background: var(--navy); border-radius: var(--r-lg); padding: 32px; }
.contact-info-card h3 { color: var(--cream); font-size: 1.1rem; margin-bottom: 24px; }
.ci-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.ci-icon { width: 34px; height: 34px; background: rgba(255,255,255,.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.ci-label { font-size: .72rem; color: rgba(247,245,241,.4); display: block; margin-bottom: 2px; }
.ci-val { font-size: .9rem; color: var(--cream); font-weight: 500; }
.ci-val a { color: var(--cream); }
.ci-val a:hover { color: #8ab0f7; }
.contact-badge { background: #f5edd9; border-radius: var(--r-md); padding: 14px 16px; margin-top: 20px; }
.contact-badge strong { display: block; font-size: .82rem; color: #a07010; margin-bottom: 3px; }
.contact-badge span { font-size: .8rem; color: var(--muted); }

/* ── PAGE INSCRIPTION ── */
.page-header-sm { padding: 40px 0 36px; }
.inscription-layout { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: start; }

/* Recap */
.inscription-recap { display: flex; flex-direction: column; gap: 14px; }
.recap-card { background: var(--white); border-radius: var(--r-lg); border: 1.5px solid var(--border-md); overflow: hidden; box-shadow: var(--sh-md); }
.recap-img { position: relative; width: 100%; height: 200px; overflow: hidden; }
.recap-img img { width: 100%; height: 100%; object-fit: cover; }
.recap-cat { position: absolute; top: 10px; left: 12px; }
.recap-partner-badge { position: absolute; top: 10px; right: 12px; background: #fff; border-radius: 7px; padding: 5px 10px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.recap-partner-badge img { height: 24px; width: auto; max-width: 100px; object-fit: contain; display: block; }
.recap-body { padding: 20px 22px 22px; }
.recap-partner-inline { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.recap-partner-inline img { height: 28px; width: auto; max-width: 110px; object-fit: contain; }
.rpi-name { font-size: .8rem; font-weight: 600; color: var(--muted); }
.recap-title { font-size: 1.15rem; font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: 4px; }
.recap-subtitle { font-size: .85rem; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }
.recap-meta { list-style: none; margin: 0 0 16px; border-top: 1px solid var(--border); }
.recap-meta li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
.rm-icon { width: 28px; height: 28px; background: var(--bg); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .88rem; }
.rm-label { font-size: .7rem; color: var(--muted); display: block; }
.rm-val { font-weight: 500; color: var(--navy); display: block; }
.recap-price-block { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.rpb-amount { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--navy); letter-spacing: -.04em; }
.rpb-note { font-size: .76rem; color: var(--muted); }
.recap-badges { display: flex; gap: 6px; flex-wrap: wrap; }

/* Session highlight / hint */
.recap-session-hl { background: var(--white); border: 1.5px solid var(--gold); border-radius: var(--r-md); padding: 14px 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.rsh-top { display: flex; align-items: flex-start; gap: 10px; }
.rsh-icon { font-size: 1.1rem; margin-top: 2px; }
.rsh-eyebrow { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); display: block; margin-bottom: 2px; }
.rsh-date { display: block; font-size: .92rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.rsh-meta { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.recap-sessions-hint { background: var(--white); border-radius: var(--r-md); padding: 14px 16px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
.recap-sessions-hint--empty { border-color: #fbbf24; background: #fffbeb; color: #92400e; }
.recap-sessions-hint span { font-size: 1rem; margin-top: 1px; }
.recap-sessions-hint p { margin: 0; line-height: 1.5; }
.recap-empty { background: var(--white); border-radius: var(--r-lg); padding: 32px; text-align: center; }

/* Form card */
.inscription-form-col {}
.inscription-form-card { background: var(--white); border-radius: var(--r-lg); border: 1.5px solid var(--border-md); padding: 36px 36px 32px; box-shadow: var(--sh-md); }
.ifc-title { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.ifc-intro { font-size: .84rem; color: var(--muted); margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 18px; }
.form-label { display: block; font-size: .82rem; font-weight: 500; color: var(--navy); margin-bottom: 6px; }
.req { color: var(--gold); }
.insc-partner-section { background: var(--bg); border-radius: var(--r-md); padding: 16px; margin-bottom: 18px; border: 1px solid var(--border); }
.form-checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .88rem; color: var(--navy); font-weight: 500; line-height: 1.4; }
.form-checkbox input[type=checkbox] { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--gold); flex-shrink: 0; cursor: pointer; }
.insc-partner-fields { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border-md); }
.insc-success { background: #e6f4ed; border-radius: var(--r-md); padding: 28px; text-align: center; }
.insc-success-icon { width: 48px; height: 48px; background: #1a6b40; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; margin: 0 auto 12px; }
.insc-success strong { display: block; font-size: 1rem; color: #1a6b40; margin-bottom: 6px; }
.insc-success p { font-size: .85rem; color: var(--muted); margin: 0; }
.insc-error { background: #fef2f2; border: 1px solid #fca5a5; border-radius: var(--r-sm); padding: 12px 16px; font-size: .85rem; color: #b91c1c; margin-bottom: 14px; }
.form-legal { font-size: .72rem; color: var(--muted); line-height: 1.6; text-align: center; }

/* ── TOGGLES FAQ ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { padding: 18px 0; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: .95rem; color: var(--navy); list-style: none; user-select: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--blue); font-size: 1.3rem; font-weight: 300; flex-shrink: 0; margin-left: 16px; }
.faq-item[open] summary { color: var(--blue); }
.faq-item[open] summary::after { content: '−'; }
.faq-body { padding: 0 0 18px; font-size: .9rem; color: var(--muted); line-height: 1.75; }

/* ── POPUP EXIT INTENT (fiches formation) ── */
.ic-popup-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(10,18,40,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.ic-popup-overlay.ic-popup-open { opacity: 1; visibility: visible; }
.ic-popup {
  background: var(--white); border-radius: var(--r-xl);
  padding: 40px 36px 32px; max-width: 480px; width: calc(100% - 32px);
  position: relative; box-shadow: 0 24px 80px rgba(10,18,40,.22);
  transform: translateY(24px) scale(.98); transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.ic-popup-overlay.ic-popup-open .ic-popup { transform: translateY(0) scale(1); }
.ic-popup-close {
  position: absolute; top: 12px; right: 14px; background: var(--bg);
  border: none; border-radius: 50%; width: 30px; height: 30px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  color: var(--muted); transition: background var(--ease), color var(--ease);
}
.ic-popup-close:hover { background: var(--border); color: var(--navy); }
.ic-popup .eyebrow { margin-bottom: 8px; }
.ic-popup h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; line-height: 1.3; }
.ic-popup p { font-size: .9rem; color: var(--muted); line-height: 1.72; margin-bottom: 24px; }
.ic-popup-actions { display: flex; flex-direction: column; gap: 10px; }
.ic-popup-actions .btn { justify-content: center; }
.ic-popup-footer { text-align: center; margin-top: 14px; }
.ic-popup-skip { background: none; border: none; font-size: .76rem; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; padding: 4px 8px; transition: color var(--ease); }
.ic-popup-skip:hover { color: var(--navy); }
.ic-popup-formation-name { font-size: .78rem; color: var(--gold); font-weight: 600; letter-spacing: .04em; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.ic-popup-formation-name::before { content: ''; display: inline-block; width: 20px; height: 2px; background: var(--gold); border-radius: 2px; }

/* ── FOOTER ── */
.site-footer { background: var(--navy); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(247,245,241,.07); }
.footer-brand .name { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--cream); letter-spacing: -.04em; margin-bottom: 4px; }
.footer-brand .tag { font-size: .78rem; color: rgba(247,245,241,.35); letter-spacing: .06em; margin-bottom: 16px; display: block; }
.footer-brand p { font-size: .84rem; color: rgba(247,245,241,.38); line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; color: rgba(247,245,241,.5); font-size: .82rem; transition: all var(--ease); }
.footer-social a:hover { background: var(--blue); color: #fff; }
.footer-col h4 { font-size: .8rem; font-weight: 600; color: var(--cream); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .84rem; color: rgba(247,245,241,.4); transition: color var(--ease); }
.footer-col ul li a:hover { color: var(--cream); }
.footer-bottom { padding: 18px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: .76rem; color: rgba(247,245,241,.25); }
.footer-legal { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.footer-legal a { font-size: .76rem; color: rgba(247,245,241,.25); transition: color var(--ease); white-space: nowrap; }
.footer-legal a:hover { color: rgba(247,245,241,.55); }
.footer-legal span { font-size: .76rem; color: rgba(247,245,241,.15); }

/* ── UTILITAIRES ── */
.text-center { text-align: center; }
.text-white { color: var(--cream) !important; }
.text-muted { color: var(--muted); }
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.empty-state { text-align: center; padding: 48px; background: var(--white); border-radius: var(--r-lg); }
.empty-state p { font-size: .9rem; }

/* ── ANIMATIONS ── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */

/* Empêche le scroll horizontal global */
html, body { overflow-x: hidden; max-width: 100%; }

/* Protection anti-débordement sur tout le contenu */
img, video, iframe, table, pre, code { max-width: 100%; }

/* ── PAGE AVEC SIDEBAR (À propos, Notre méthode…) ── */
.page-with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 52px; align-items: start; }
.page-main-content { min-width: 0; }

/* ── CONTENU ÉDITORIAL (blocs WP dans page-main-content) ── */
.page-main-content > p:first-child {
  font-size: 1.06rem; line-height: 1.85; color: var(--muted); margin-bottom: 28px;
  padding: 20px 24px; background: var(--white); border-left: 4px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0; box-shadow: var(--sh-sm);
}
.page-main-content > p:first-child strong { color: var(--navy); }

.page-main-content h2.wp-block-heading {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
  color: var(--navy); margin: 44px 0 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--blue-lt); position: relative;
}
.page-main-content h2.wp-block-heading::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 48px; height: 2px; background: var(--gold);
}
.page-main-content h3 {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: var(--blue); margin: 28px 0 10px;
}

.page-main-content p {
  font-size: .95rem; line-height: 1.82; color: var(--muted); margin-bottom: 16px;
}
.page-main-content p strong { color: var(--navy); font-weight: 600; }
.page-main-content p > strong:only-child {
  display: block; font-size: .98rem; color: var(--blue); letter-spacing: .01em;
  margin-bottom: 6px;
}

.page-main-content ul.wp-block-list,
.page-main-content ol.wp-block-list {
  margin: 0 0 24px; padding: 0; list-style: none;
}
.page-main-content ul.wp-block-list li {
  padding: 7px 0 7px 22px; position: relative;
  font-size: .93rem; line-height: 1.65; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.page-main-content ul.wp-block-list li:last-child { border-bottom: none; }
.page-main-content ul.wp-block-list li::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
}
.page-main-content ol.wp-block-list { counter-reset: ic-ol; }
.page-main-content ol.wp-block-list li {
  padding: 7px 0 7px 28px; position: relative; counter-increment: ic-ol;
  font-size: .93rem; line-height: 1.65; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.page-main-content ol.wp-block-list li:last-child { border-bottom: none; }
.page-main-content ol.wp-block-list li::before {
  content: counter(ic-ol); position: absolute; left: 0; top: 7px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: .7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.page-main-content .wp-block-group,
.page-main-content .wp-block-cover { margin-bottom: 28px; }

.page-main-content hr.wp-block-separator {
  border: none; height: 1px; background: var(--border); margin: 40px 0;
}
.page-main-content hr.wp-block-separator.is-style-wide { background: linear-gradient(90deg, var(--gold), transparent); }

.page-main-content .page-main-content-section {
  background: var(--white); border-radius: var(--r-lg); padding: 28px 32px;
  border: 1px solid var(--border); box-shadow: var(--sh-sm); margin-bottom: 24px;
}

.page-sidebar { display: flex; flex-direction: column; gap: 16px; }

/* ── CTA card — base + variantes ── */
.sidebar-cta-card { border-radius: var(--r-lg); padding: 28px; margin-bottom: 20px; }
.sidebar-cta-card .btn { width: 100%; justify-content: center; }
.sb-cta-body { font-size: .87rem; margin-bottom: 20px; line-height: 1.65; }
.sb-cta-body ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sb-cta-body ul li { display: flex; align-items: flex-start; gap: 8px; font-size: .85rem; line-height: 1.5; }
.sb-cta-body ul li::before { content: ''; display: block; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-top: 5px; }
.sb-cta-body p { margin: 0 0 6px; }
.sb-cta-body p:last-child { margin-bottom: 0; }
/* bullet couleur selon variante */
.sidebar-cta-card.variant-blue .sb-cta-body ul li::before { background: rgba(255,255,255,.6); }
.sidebar-cta-card.variant-gold .sb-cta-body ul li::before { background: rgba(255,255,255,.7); }
.sidebar-cta-card.variant-light .sb-cta-body ul li::before { background: var(--gold); }

/* navy (défaut) */
.sidebar-cta-card, .sidebar-cta-card.variant-navy {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid)); }
.sidebar-cta-card .eyebrow,
.sidebar-cta-card.variant-navy .eyebrow { color: var(--gold); margin-bottom: 10px; }
.sidebar-cta-card h3,
.sidebar-cta-card.variant-navy h3 { color: var(--cream); font-size: 1.05rem; margin-bottom: 8px; }
.sidebar-cta-card .sb-cta-body,
.sidebar-cta-card.variant-navy .sb-cta-body { color: rgba(247,245,241,.75); }

/* blue */
.sidebar-cta-card.variant-blue { background: linear-gradient(135deg, var(--blue), #1b3e82); }
.sidebar-cta-card.variant-blue .eyebrow { color: rgba(255,255,255,.7); }
.sidebar-cta-card.variant-blue h3 { color: #fff; }
.sidebar-cta-card.variant-blue .sb-cta-body { color: rgba(255,255,255,.78); }

/* gold */
.sidebar-cta-card.variant-gold { background: linear-gradient(135deg, #bf5e1e, var(--gold)); }
.sidebar-cta-card.variant-gold .eyebrow { color: rgba(255,255,255,.8); }
.sidebar-cta-card.variant-gold h3 { color: #fff; }
.sidebar-cta-card.variant-gold .sb-cta-body { color: rgba(255,255,255,.82); }

/* light */
.sidebar-cta-card.variant-light { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--gold); box-shadow: var(--sh-sm); }
.sidebar-cta-card.variant-light .eyebrow { color: var(--gold); }
.sidebar-cta-card.variant-light h3 { color: var(--navy); }
.sidebar-cta-card.variant-light .sb-cta-body { color: var(--muted); }

/* btn blanc (sur fonds colorés) */
.btn-white { background: #fff; color: var(--navy); border: 2px solid transparent; }
.btn-white:hover { background: var(--cream); }

/* ── Widget — base + variantes ── */
.sidebar-widget, .sidebar-widget.variant-default { background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--border); padding: 22px; box-shadow: var(--sh-sm); }

/* accent : barre dorée gauche */
.sidebar-widget.variant-accent { background: var(--white); border-left: 4px solid var(--gold); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-sm); }

/* tinted : fond crème, sans bordure */
.sidebar-widget.variant-tinted { background: var(--bg); border: none; border-radius: var(--r-lg); padding: 22px; box-shadow: none; }
.sidebar-widget.variant-tinted .sidebar-widget-title { border-bottom-color: rgba(13,27,62,.1); }

/* navy : fond sombre */
.sidebar-widget.variant-navy { background: var(--navy); border: none; border-radius: var(--r-lg); padding: 22px; }
.sidebar-widget.variant-navy .sidebar-widget-title { color: var(--gold); border-bottom-color: rgba(255,255,255,.12); }
.sidebar-widget.variant-navy .sidebar-formation-link { color: var(--cream); border-bottom-color: rgba(255,255,255,.1); }
.sidebar-widget.variant-navy .sidebar-formation-link:hover { color: var(--gold); }
.sidebar-widget.variant-navy .sidebar-contact-line { color: rgba(247,245,241,.78); border-bottom-color: rgba(255,255,255,.1); }
.sidebar-widget.variant-navy .sidebar-contact-line:hover { color: var(--cream); }
.sidebar-widget.variant-navy .sidebar-contact-icon { background: rgba(255,255,255,.1); }
.sidebar-widget.variant-navy .btn-outline { border-color: rgba(255,255,255,.3); color: var(--cream); }
.sidebar-widget.variant-navy .btn-outline:hover { background: rgba(255,255,255,.08); }
.sidebar-widget.variant-navy p { color: rgba(247,245,241,.65); }

.sidebar-widget { border-radius: var(--r-lg); }
.sidebar-widget-title { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.sidebar-formation-link { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .86rem; color: var(--navy); font-weight: 500; transition: color var(--ease); gap: 8px; line-height: 1.4; }
.sidebar-formation-link:last-of-type { border-bottom: none; }
.sidebar-formation-link:hover { color: var(--blue); }
.sidebar-formation-link svg { flex-shrink: 0; opacity: .4; }
.sidebar-contact-line { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--muted); padding: 9px 0; border-bottom: 1px solid var(--border); transition: color var(--ease); }
.sidebar-contact-line:last-child { border-bottom: none; }
.sidebar-contact-line:hover { color: var(--navy); }
.sidebar-contact-icon { width: 32px; height: 32px; min-width: 32px; border-radius: var(--r-sm); background: var(--blue-lt); display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.formation-body table, .fi-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.formation-body, .fi-body { word-break: break-word; overflow-wrap: anywhere; }

@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .container-sm { padding: 0 28px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .formation-layout { grid-template-columns: 1fr 280px; gap: 28px; }
  .page-with-sidebar { grid-template-columns: 1fr 260px; gap: 36px; }
}
@media (max-width: 860px) {
  .page-with-sidebar { grid-template-columns: 1fr; }
  .page-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 900px) {
  .formation-layout { grid-template-columns: 1fr; }
  .formation-sidebar { position: static; }
  .formation-body { padding: 28px; }
  .fi-pad { padding: 24px 24px; }
}
@media (max-width: 768px) {
  /* Conteneur */
  .container, .container-sm { padding: 0 20px; }

  /* Hero */
  .hero { padding: 64px 0 48px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-sessions { display: none; }
  .hero h1 { font-size: clamp(1.7rem, 6vw, 2.6rem); }

  /* Typographie adaptative */
  h1 { font-size: clamp(1.6rem, 5.5vw, 2.6rem) !important; }
  h2 { font-size: clamp(1.3rem, 4.5vw, 2rem) !important; }

  /* Header */
  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); padding: 16px 20px; gap: 4px; box-shadow: var(--sh-lg); z-index: 99; }
  .nav-toggle { display: block; }

  /* Grilles */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }

  /* Section "Notre positionnement" */
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-img { aspect-ratio: 16/9; border-radius: 12px; }
  .about-content { padding: 0; }

  /* Page header */
  .page-header { min-height: 220px; padding: 48px 0; }
  .page-header h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); }

  /* Formation detail */
  .formation-layout { grid-template-columns: 1fr; }
  .formation-sidebar { position: static; }
  .formation-body { padding: 22px 18px; }
  .sidebar-card { padding: 20px 18px; }
  .formation-subnav { overflow-x: auto; }
  /* Empêche le débordement horizontal des blocs formation */
  .formation-content, .formation-intro, .fi-body { max-width: 100%; box-sizing: border-box; }
  .fi-body { overflow-x: hidden; }
  /* Padding réduit sur mobile pour les blocs fi-pad */
  .fi-pad { padding: 20px 16px; }
  /* Grille points forts : 1 colonne sur mobile */
  .key-points-grid { grid-template-columns: 1fr; }
  /* Header formation : meta items scrollables */
  .fi-header { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
  .fi-header-meta { flex-wrap: wrap; }
  .fi-hm-item { padding: 0 8px; }
  /* Sidebar en bas sur mobile */
  .formation-sidebar { margin-top: 0; }
  /* Subnav sticky désactivé sur mobile */
  .formation-subnav { position: static; }

  /* Calendrier */
  .cal-hide-mobile { display: none !important; }
  .cal-filters { flex-direction: column; align-items: stretch; }
  .cal-filter-group select { min-width: unset; width: 100%; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr; }

  /* Inscription */
  .inscription-layout { grid-template-columns: 1fr; }
  .inscription-form-card { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; }

  /* Trust bar, footer */
  .trust-bar .container { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .public-prereqs { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container, .container-sm { padding: 0 14px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .cta-btns { flex-direction: column; }
  .hero-btns { flex-direction: column; }
  .formation-body { padding: 16px 14px; }
  .sidebar-card { padding: 16px 14px; }
  .page-header { min-height: 190px; padding: 36px 0; }
  /* Sidebar : 1 colonne sur mobile (évite le débordement qui rogne le contenu) */
  .page-sidebar { grid-template-columns: 1fr; }
  .sidebar-cta-card, .sidebar-widget { max-width: 100%; box-sizing: border-box; }
  .btn-sm { padding: 6px 10px; font-size: .74rem; }
}

/* ── Calendrier responsive : tableau → cartes ── */
@media (max-width: 640px) {
  .cal-table-wrap { overflow-x: visible; box-shadow: none; border-radius: 0; background: transparent; }
  .cal-table { display: block; }
  .cal-table thead { display: none; }
  .cal-table tbody { display: flex; flex-direction: column; gap: 10px; }
  .cal-table tr {
    display: flex; flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 16px 12px;
    box-shadow: var(--sh-sm);
  }
  .cal-table tbody tr:hover td { background: transparent; }
  .cal-table td {
    display: block;
    padding: 0; border: none;
    white-space: normal !important;
    min-width: 0; font-size: .88rem;
  }
  .cal-table tbody tr:last-child td { border-bottom: none; }
  /* Titre formation */
  .cal-table td:nth-child(2) { font-size: .9rem; }
  /* Date début */
  .cal-table td:nth-child(3) {
    color: var(--muted); font-size: .78rem; margin-top: 6px;
  }
  .cal-table td:nth-child(3)::before { content: '📅 '; }
  /* Boutons actions */
  .cal-table td:last-child {
    display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap;
  }
  .cal-table td:last-child .btn {
    flex: 1; min-width: 120px;
    text-align: center; justify-content: center;
  }
}

/* Paysage téléphone */
@media (max-width: 900px) and (orientation: landscape) {
  .page-header { min-height: 170px; padding: 32px 0; }
  .hero { padding: 48px 0 36px; }
  .section { padding: 48px 0; }
}
