/* ============================================================
   akt — Formations : hub, pages catégorie, pages formation
   Pages générées par scripts/build-formations.mjs — ne pas éditer le HTML.
   Préfixe fo-. Tokens partagés (tokens.css), rayons secs, Montserrat.
   ============================================================ */

.fo-page { color: var(--ink); background: var(--white); }
.fo-page em { font-style: normal; color: var(--green); }

/* ─── Fil d'Ariane ─────────────────────────────────────────── */
.fo-crumbs {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; align-items: center;
  font-size: var(--fs-xs); color: var(--ink-60); margin-bottom: var(--sp-4);
}
.fo-crumbs a { color: var(--ink-60); text-decoration: none; border-bottom: 1px solid transparent; transition: color var(--t-fast), border-color var(--t-fast); }
.fo-crumbs a:hover { color: var(--green); border-color: currentColor; }
.fo-crumbs span[aria-hidden] { opacity: 0.5; }

/* ─── Badges ───────────────────────────────────────────────── */
.fo-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fo-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.8rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: 0.02em; color: var(--green-deep);
  background: var(--white);
}
.fo-badge svg { width: 15px; height: 15px; flex: none; color: var(--accent); }
.fo-badge--solid { background: var(--green-tint); border-color: transparent; }

/* ─── Boutons ──────────────────────────────────────────────── */
.fo-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.fo-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.4rem; border-radius: var(--radius); border: 1.5px solid var(--green);
  font-size: var(--fs-sm); font-weight: var(--fw-bold); text-decoration: none;
  background: var(--green); color: var(--white);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
}
.fo-btn svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.fo-btn:hover { background: var(--green-deep); border-color: var(--green-deep); transform: translateY(-2px); }
.fo-btn:hover svg { transform: translateX(3px); }
.fo-btn--ghost { background: transparent; color: var(--green); }
.fo-btn--ghost:hover { background: var(--green); color: var(--white); }
.fo-btn--light { background: var(--white); color: var(--green-deep); border-color: var(--white); }
.fo-btn--light:hover { background: var(--green-tint); border-color: var(--green-tint); }
.fo-btn--block { width: 100%; }

/* ─── Hero (hub + catégorie) ───────────────────────────────── */
.fo-hero { padding-block: clamp(7.5rem, 12vw, 10.5rem) clamp(3.5rem, 6vw, 5.5rem); background: var(--white); }
.fo-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.fo-hero-title {
  font-size: var(--fs-h1); letter-spacing: var(--ls-display); line-height: 1.02;
  margin: 0 0 var(--sp-3); max-width: 16ch;
}
.fo-hero-lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-60); max-width: 52ch; margin: 0 0 var(--sp-4); }
.fo-hero .fo-badges { margin-bottom: var(--sp-4); }
.fo-hero-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden; background: var(--green-tint); }
.fo-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fo-hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 42, 36, 0.55)); }
.fo-hero-media figcaption {
  position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.1rem; z-index: 1;
  color: var(--white); font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--ls-label); text-transform: uppercase;
}

/* Bandeau de chiffres-clés sous le hero */
.fo-facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.fo-fact { padding: 1.4rem 1.2rem 1.4rem 0; }
.fo-fact + .fo-fact { padding-left: 1.2rem; border-left: 1px solid var(--line); }
.fo-fact-value { display: block; font-size: var(--fs-h3); font-weight: var(--fw-black); letter-spacing: var(--ls-title); color: var(--green); line-height: 1.1; }
.fo-fact-label { display: block; margin-top: 0.35rem; font-size: var(--fs-xs); color: var(--ink-60); line-height: 1.4; }

/* ─── En-tête de section ───────────────────────────────────── */
.fo-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.fo-head h2 { font-size: var(--fs-h2); letter-spacing: var(--ls-title); margin: 0 0 var(--sp-2); }
.fo-head p { font-size: var(--fs-body); line-height: 1.6; color: var(--ink-60); margin: 0; }
.section--green-deep .fo-head p { color: var(--white-70); }

/* ─── Domaines (cartes catégorie) ──────────────────────────── */
.fo-domains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
.fo-domain {
  position: relative; display: flex; flex-direction: column; min-height: 30rem;
  border-radius: var(--radius-sm); overflow: hidden; color: var(--white); text-decoration: none;
  background: var(--green-deep); isolation: isolate;
}
.fo-domain-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.9s var(--ease); }
.fo-domain::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 42, 36, 0.2) 0%, rgba(0, 42, 36, 0.72) 32%, rgba(0, 38, 33, 0.95) 62%, rgba(0, 32, 28, 0.97) 100%); }
.fo-domain:hover .fo-domain-img { transform: scale(1.05); }
.fo-domain-body { margin-top: auto; padding: clamp(1.4rem, 2.5vw, 2rem); }
.fo-domain-count { font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--accent-soft); }
.fo-domain h3 { color: var(--white); font-size: var(--fs-h3); letter-spacing: var(--ls-title); margin: 0.6rem 0 0.8rem; }
.fo-domain p { color: var(--white-70); font-size: var(--fs-sm); line-height: 1.55; margin: 0 0 1.1rem; }
.fo-domain ul { list-style: none; margin: 0 0 1.3rem; padding: 0; display: grid; gap: 0.45rem; }
.fo-domain li { font-size: var(--fs-sm); font-weight: var(--fw-med); padding-left: 1rem; position: relative; }
.fo-domain li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 1.5px; background: var(--accent-soft); }
.fo-domain-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.fo-domain-link svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.fo-domain:hover .fo-domain-link svg { transform: translateX(4px); }

/* ─── Catalogue (liste filtrable) ──────────────────────────── */
.fo-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--sp-4); }
.fo-chip {
  appearance: none; cursor: pointer; font: inherit;
  padding: 0.6rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font-size: var(--fs-sm); font-weight: var(--fw-med); color: var(--ink);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.fo-chip:hover { border-color: var(--green); color: var(--green); }
.fo-chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--white); }
.fo-chip span { opacity: 0.6; margin-left: 0.3rem; }

.fo-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.fo-row { border-bottom: 1px solid var(--line); }
.fo-row[hidden] { display: none; }
.fo-row a {
  display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 2.5rem;
  gap: var(--sp-3); align-items: center; padding: 1.6rem 0;
  color: var(--ink); text-decoration: none; transition: padding var(--t), background var(--t);
}
.fo-row a:hover { background: var(--gray-100); padding-inline: 1rem; }
.fo-row-cat { display: block; font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--accent); margin-bottom: 0.4rem; }
.fo-row-title { display: block; font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.45rem); font-weight: var(--fw-xbold); letter-spacing: var(--ls-title); line-height: 1.2; }
.fo-row-meta { font-size: var(--fs-sm); color: var(--ink-60); line-height: 1.4; }
.fo-row-meta strong { display: block; color: var(--ink); font-weight: var(--fw-bold); }
.fo-row-arrow { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast); }
.fo-row-arrow svg { width: 16px; height: 16px; }
.fo-row a:hover .fo-row-arrow { background: var(--green); border-color: var(--green); color: var(--white); }

/* ─── Cartes formation (page catégorie + suggestions) ──────── */
.fo-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: var(--sp-3); }
.fo-card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink); text-decoration: none; overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.fo-card:hover { border-color: var(--green); transform: translateY(-4px); box-shadow: var(--shadow); }
.fo-card-media { aspect-ratio: 16 / 9; background: var(--green-tint); overflow: hidden; }
.fo-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.fo-card:hover .fo-card-media img { transform: scale(1.04); }
.fo-card-body { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.5rem; flex: 1; }
.fo-card-format { font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--accent); }
.fo-card h3 { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem); letter-spacing: var(--ls-title); line-height: 1.2; margin: 0; }
.fo-card p { font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-60); margin: 0; }
.fo-card-meta { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1rem; font-size: var(--fs-xs); color: var(--ink-60); }
.fo-card-meta strong { color: var(--green-deep); font-size: var(--fs-sm); }

/* ─── Déroulé d'une formation (étapes d'accès) ─────────────── */
.fo-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; }
.fo-step { position: relative; padding: 2.4rem 1.4rem 0 0; counter-increment: step; }
.fo-step::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0;
  font-size: var(--fs-xs); font-weight: var(--fw-black); letter-spacing: 0.1em; color: var(--accent-soft);
}
.fo-step::after { content: ''; position: absolute; top: 1.35rem; left: 0; right: 0; height: 1px; background: rgba(255, 255, 255, 0.22); }
.fo-step h3 { color: var(--white); font-size: var(--fs-body); font-weight: var(--fw-xbold); letter-spacing: -0.01em; margin: 0.4rem 0 0.5rem; }
.fo-step p { color: var(--white-70); font-size: var(--fs-sm); line-height: 1.55; margin: 0; }
.fo-step strong { color: var(--white); }

/* ─── Blocs d'information (méthodes, accessibilité, financement) ── */
/* Politique de confidentialité : tableaux lisibles, défilement horizontal propre en mobile */
.fo-privacy-scroll { overflow-x: auto; margin: 1rem 0 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); }
.fo-privacy-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--fs-sm); line-height: 1.5; }
.fo-privacy-table th, .fo-privacy-table td { padding: 0.75rem 0.9rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.fo-privacy-table thead th { border-top: 0; background: var(--green-deep); color: var(--white); font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.fo-privacy-table tbody th { font-weight: var(--fw-bold); color: var(--ink); }
.fo-privacy-table td { color: var(--ink-60); }
.fo-privacy-table tbody tr:nth-child(even) { background: var(--gray-100); }
.fo-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: var(--sp-3); }   /* 6 cartes : 3 × 2 en desktop */
.fo-info-card a[href^="tel:"], .fo-note a[href^="tel:"], .fo-aside-help a[href^="tel:"] { white-space: nowrap; }
.fo-info-card { padding: clamp(1.4rem, 2.5vw, 2rem); border-radius: var(--radius); background: var(--gray-100); }
.fo-info-card h3 { font-size: var(--fs-body); font-weight: var(--fw-xbold); letter-spacing: -0.01em; margin: 0.9rem 0 0.6rem; }
.fo-info-card p, .fo-info-card li { font-size: var(--fs-sm); line-height: 1.6; color: var(--ink-60); }
.fo-info-card p { margin: 0; }
.fo-info-card ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; }
.fo-info-icon { width: 2.6rem; height: 2.6rem; border-radius: var(--radius); background: var(--white); color: var(--green); display: grid; place-items: center; }
.fo-info-icon svg { width: 20px; height: 20px; }
.fo-info-card a { color: var(--green); font-weight: var(--fw-bold); }

/* Panneau financement */
.fo-funding { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.fo-funding h2 { color: var(--white); font-size: var(--fs-h2); letter-spacing: var(--ls-title); margin: 0 0 var(--sp-2); }
.fo-funding p { color: var(--white-70); line-height: 1.6; margin: 0 0 var(--sp-3); }
.fo-funding-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.fo-funding-list li { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); color: var(--white); font-size: var(--fs-sm); line-height: 1.5; }
.fo-funding-list svg { width: 18px; height: 18px; flex: none; margin-top: 0.15rem; color: var(--accent-soft); }
.fo-legal { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--white-45); line-height: 1.5; }

/* ─── FAQ ──────────────────────────────────────────────────── */
.fo-faq { border-top: 1px solid var(--ink); max-width: 60rem; }
.fo-faq details { border-bottom: 1px solid var(--line); }
.fo-faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.4rem 0; font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem); font-weight: var(--fw-bold); letter-spacing: -0.01em;
}
.fo-faq summary::-webkit-details-marker { display: none; }
.fo-faq summary::after { content: '+'; flex: none; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-weight: var(--fw-reg); font-size: 1.2rem; transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast); }
.fo-faq details[open] summary::after { transform: rotate(45deg); background: var(--green); border-color: var(--green); color: var(--white); }
.fo-faq details p { margin: 0 0 1.5rem; max-width: 70ch; color: var(--ink-60); line-height: 1.65; }

/* ─── CTA de fin ───────────────────────────────────────────── */
.fo-cta { padding-block: var(--section-y); background: var(--green); color: var(--white); text-align: center; }
.fo-cta h2 { color: var(--white); font-size: var(--fs-h1); letter-spacing: var(--ls-display); margin: 0 auto var(--sp-2); max-width: 18ch; }
.fo-cta p { color: var(--white-70); font-size: var(--fs-lead); margin: 0 auto var(--sp-4); max-width: 48ch; line-height: 1.5; }
.fo-cta .fo-actions { justify-content: center; }
.fo-cta .fo-btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.fo-cta .fo-btn--ghost:hover { background: var(--white); color: var(--green-deep); border-color: var(--white); }

/* ============================================================
   PAGE FORMATION
   ============================================================ */
.fo-detail-hero { padding-block: clamp(7rem, 11vw, 9.5rem) clamp(2.5rem, 5vw, 4rem); background: var(--gray-100); }
.fo-detail-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.fo-detail-title { font-size: clamp(2rem, 1.3rem + 2.9vw, 4rem); letter-spacing: var(--ls-display); line-height: 1.04; margin: 0 0 var(--sp-3); }
/* Intitulés officiels longs (> 70 caractères) : gardés en entier, corps réduit */
.fo-detail-title--long { font-size: clamp(1.75rem, 1.25rem + 2.1vw, 3rem); letter-spacing: var(--ls-title); line-height: 1.1; }
.fo-detail-lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-60); margin: 0 0 var(--sp-4); max-width: 58ch; }
.fo-detail-hero .fo-badges { margin-bottom: var(--sp-4); }
.fo-detail-media { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--green-tint); }
.fo-detail-media img { width: 100%; height: 100%; object-fit: cover; }

/* Barre de caractéristiques */
.fo-keybar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: clamp(2rem, 4vw, 3rem); }
.fo-key { background: var(--white); padding: 1.2rem 1.3rem; }
.fo-key dt { font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--ink-60); margin-bottom: 0.45rem; }
.fo-key dd { margin: 0; font-size: var(--fs-body); font-weight: var(--fw-xbold); color: var(--ink); line-height: 1.3; }
.fo-key dd small { display: block; font-size: var(--fs-xs); font-weight: var(--fw-reg); color: var(--ink-60); margin-top: 0.25rem; line-height: 1.45; }

/* Sous-navigation d'ancres */
/* Collée sous la nav ; quand la nav s'efface au scroll (.nav-hidden, main.js), la
   sous-navigation remonte en haut d'écran avec la même courbe — jamais de vide. */
.fo-subnav { position: sticky; top: var(--fo-nav-h, 72px); z-index: 40; transition: top 0.45s var(--ease); background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.fo-subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.3rem; overflow-x: auto; scrollbar-width: none; }
.fo-subnav ul::-webkit-scrollbar { display: none; }
.fo-subnav a { display: block; white-space: nowrap; padding: 1rem 0.9rem; font-size: var(--fs-sm); font-weight: var(--fw-med); color: var(--ink-60); text-decoration: none; border-bottom: 2px solid transparent; transition: color var(--t-fast), border-color var(--t-fast); }
.fo-subnav a:hover, .fo-subnav a[aria-current="true"] { color: var(--green); border-color: var(--green); }

/* Mise en page contenu + aside */
.fo-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; padding-block: clamp(3rem, 6vw, 5rem); }
.fo-block { padding-block: clamp(2.5rem, 4.5vw, 3.5rem); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--fo-nav-h, 72px) + 4rem); }
.fo-block:first-child { border-top: 0; padding-top: 0; }
.fo-block > h2 { font-size: var(--fs-h2); letter-spacing: var(--ls-title); margin: 0 0 var(--sp-3); }
.fo-block > h3 { font-size: var(--fs-body); font-weight: var(--fw-xbold); margin: var(--sp-4) 0 var(--sp-2); }
.fo-block p { line-height: 1.7; color: var(--ink-60); margin: 0 0 1rem; max-width: 70ch; }
.fo-block .fo-intro { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); }

/* Objectifs numérotés */
.fo-objectives { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-4); counter-reset: obj; }
.fo-objectives li { counter-increment: obj; display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.6rem; padding: 1rem 0; border-bottom: 1px solid var(--line); line-height: 1.5; font-size: var(--fs-sm); }
.fo-objectives li::before { content: counter(obj, decimal-leading-zero); font-weight: var(--fw-black); color: var(--accent); font-size: var(--fs-sm); }

/* Public & prérequis */
.fo-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.fo-duo > div { padding: 1.6rem; border-radius: var(--radius); background: var(--gray-100); }
.fo-duo h3 { font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--green); margin: 0 0 0.8rem; }
.fo-duo p { margin: 0; font-size: var(--fs-sm); color: var(--ink); }

/* Programme — déroulé horaire */
.fo-day { margin-top: var(--sp-4); }
.fo-day:first-of-type { margin-top: 0; }
.fo-day-title { font-size: var(--fs-body); font-weight: var(--fw-xbold); color: var(--green-deep); margin: 0 0 0.6rem; padding: 0.7rem 1rem; background: var(--green-tint); border-radius: var(--radius); }
.fo-slots { list-style: none; margin: 0; padding: 0; }
.fo-slot { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: var(--sp-3); padding: 1rem 0; border-bottom: 1px solid var(--line); }
.fo-slot-time { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--ink); font-variant-numeric: tabular-nums; }
.fo-slot-time small { display: block; font-weight: var(--fw-reg); color: var(--ink-40); font-size: var(--fs-xs); margin-top: 0.15rem; }
.fo-slot-text { font-size: var(--fs-sm); line-height: 1.6; color: var(--ink); }
.fo-slot-label { display: inline-block; margin: 0 0.5rem 0.3rem 0; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--green); color: var(--white); font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: 0.02em; }
.fo-slot--pause { padding: 0.55rem 0; }
.fo-slot--pause .fo-slot-text, .fo-slot--pause .fo-slot-time { color: var(--ink-40); font-weight: var(--fw-reg); }

/* Programme — modules de parcours */
.fo-modules { display: grid; gap: 0.75rem; }
.fo-module { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.fo-module[open] { border-color: var(--green); }
.fo-module summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.2rem; align-items: center; padding: 1.3rem 1.4rem; }
.fo-module summary::-webkit-details-marker { display: none; }
.fo-module-num { width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--green-tint); color: var(--green); font-weight: var(--fw-black); font-size: var(--fs-sm); }
.fo-module[open] .fo-module-num { background: var(--green); color: var(--white); }
.fo-module-title { display: block; font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem); font-weight: var(--fw-xbold); letter-spacing: -0.01em; line-height: 1.25; }
.fo-module-meta { display: block; margin-top: 0.3rem; font-size: var(--fs-xs); color: var(--ink-60); }
.fo-module-toggle { width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform var(--t-fast); }
.fo-module-toggle svg { width: 14px; height: 14px; }
.fo-module[open] .fo-module-toggle { transform: rotate(180deg); }
.fo-sessions { list-style: none; margin: 0; padding: 0 1.4rem 1.4rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.fo-session { padding: 1.1rem 1.2rem; background: var(--gray-100); border-radius: var(--radius); }
.fo-session-head { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--accent); letter-spacing: 0.04em; text-transform: uppercase; }
.fo-session h4 { font-size: var(--fs-sm); font-weight: var(--fw-xbold); letter-spacing: -0.005em; line-height: 1.35; margin: 0.45rem 0 0.6rem; }
.fo-session ul { margin: 0; padding-left: 1rem; display: grid; gap: 0.25rem; }
.fo-session li { font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-60); }

/* Listes à coches (méthodes, évaluation, livrables) */
.fo-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.fo-checks li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.7rem; padding: 0.7rem 0; font-size: var(--fs-sm); line-height: 1.55; border-bottom: 1px dashed var(--line); }
.fo-checks li:last-child { border-bottom: 0; }
.fo-checks svg { width: 18px; height: 18px; margin-top: 0.1rem; color: var(--accent); }
.fo-checks--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-4); }
.fo-checks--grid li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }

/* Formateurs */
.fo-trainers { display: grid; gap: var(--sp-2); }
.fo-trainer { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 1.1rem; align-items: start; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); }
.fo-trainer-avatar { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--green); color: var(--white); display: grid; place-items: center; font-weight: var(--fw-black); font-size: var(--fs-sm); letter-spacing: 0.02em; }
.fo-trainer h3 { font-size: var(--fs-body); font-weight: var(--fw-xbold); margin: 0 0 0.35rem; }
.fo-trainer p { margin: 0; font-size: var(--fs-sm); line-height: 1.6; }

/* Encadrés conformité */
.fo-notes { display: grid; gap: var(--sp-2); }
.fo-note { padding: 1.4rem 1.5rem; border-left: 3px solid var(--accent); background: var(--gray-100); border-radius: 0 var(--radius) var(--radius) 0; }
.fo-note h3 { font-size: var(--fs-sm); font-weight: var(--fw-xbold); margin: 0 0 0.5rem; }
.fo-note p { margin: 0; font-size: var(--fs-sm); line-height: 1.65; }
.fo-note a { color: var(--green); font-weight: var(--fw-bold); }
.fo-version { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--ink-40); }

/* Aside collant */
.fo-aside { position: sticky; top: calc(var(--fo-nav-h, 72px) + 4.5rem); display: grid; gap: var(--sp-2); transition: top 0.45s var(--ease); }
.nav.nav-hidden ~ main .fo-subnav { top: 0; }
.nav.nav-hidden ~ main .fo-aside { top: 4.5rem; }

/* Mention obligatoire associée à la marque Qualiopi */
.fo-certif { margin: -1rem 0 var(--sp-4); font-size: var(--fs-xs); color: var(--ink-60); line-height: 1.5; max-width: 52ch; }
.fo-aside-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; background: var(--white); box-shadow: var(--shadow-sm); }
.fo-aside-price { font-size: var(--fs-h3); font-weight: var(--fw-black); letter-spacing: var(--ls-title); color: var(--ink); line-height: 1.1; }
.fo-aside-price small { display: block; font-size: var(--fs-xs); font-weight: var(--fw-med); color: var(--ink-60); letter-spacing: 0; margin-top: 0.3rem; }
.fo-aside dl { margin: 1.2rem 0; display: grid; gap: 0; }
.fo-aside dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; border-top: 1px solid var(--line); font-size: var(--fs-xs); }
.fo-aside dt { color: var(--ink-60); }
.fo-aside dd { margin: 0; font-weight: var(--fw-bold); text-align: right; }
.fo-aside .fo-actions { flex-direction: column; }
.fo-aside-help { font-size: var(--fs-xs); color: var(--ink-60); line-height: 1.55; margin: 1rem 0 0; }
.fo-aside-help a { color: var(--green); font-weight: var(--fw-bold); }
.fo-aside-opco { display: flex; gap: 0.8rem; align-items: flex-start; padding: 1.2rem 1.3rem; border-radius: var(--radius-lg); background: var(--green-deep); color: var(--white); font-size: var(--fs-xs); line-height: 1.55; }
.fo-aside-opco svg { width: 20px; height: 20px; flex: none; color: var(--accent-soft); }
.fo-aside-opco strong { display: block; font-size: var(--fs-sm); margin-bottom: 0.2rem; }

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .fo-row a { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 2.5rem; }
  .fo-row-meta--lieu { display: none; }
  .fo-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--sp-4); }
  .fo-domains { grid-template-columns: 1fr; }
  .fo-domain { min-height: 22rem; }
  .fo-sessions { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .fo-hero-grid, .fo-detail-hero-grid, .fo-funding { grid-template-columns: 1fr; }
  .fo-hero-media { aspect-ratio: 16 / 9; }
  .fo-layout { grid-template-columns: 1fr; }
  .fo-aside { position: static; }   /* en fin de contenu : la barre de caractéristiques du hero porte déjà ces infos */
  .fo-keybar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fo-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fo-fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fo-fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .fo-row a { grid-template-columns: minmax(0, 1fr) 2.5rem; row-gap: 0.6rem; }
  .fo-row-meta { grid-column: 1; }
  .fo-row-meta--prix { display: none; }
  .fo-row-arrow { grid-row: 1; grid-column: 2; }
  .fo-steps { grid-template-columns: 1fr; }
  .fo-objectives, .fo-duo, .fo-checks--grid { grid-template-columns: 1fr; }
  .fo-slot { grid-template-columns: 1fr; gap: 0.3rem; }
  .fo-module summary { grid-template-columns: auto minmax(0, 1fr); }
  .fo-module-toggle { display: none; }
  .fo-keybar { grid-template-columns: 1fr; }
}

/* ─── Page Mentions légales ────────────────────────────────── */
.fo-legal-page { max-width: var(--container-narrow); padding-block: clamp(2.5rem, 5vw, 4rem) var(--section-y); }
.fo-legal-list { margin: 0; border-top: 1px solid var(--line); }
.fo-legal-list > div { display: grid; grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr); gap: var(--sp-3); padding: 1rem 0; border-bottom: 1px solid var(--line); }
.fo-legal-list dt { font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--ink-60); padding-top: 0.2rem; }
.fo-legal-list dd { margin: 0; font-size: var(--fs-sm); line-height: 1.6; color: var(--ink); }
.fo-legal-list a, .fo-legal-page p a { color: var(--green); font-weight: var(--fw-bold); }
@media (max-width: 680px) { .fo-legal-list > div { grid-template-columns: 1fr; gap: 0.25rem; } }

/* ─── Page CGV ─────────────────────────────────────────────── */
.fo-cgv-toc { margin-bottom: var(--sp-4); padding: 1.5rem 1.6rem; border-radius: var(--radius); background: var(--gray-100); }
.fo-cgv-toc-title { margin: 0 0 0.8rem; font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--green); }
.fo-cgv-toc ol { margin: 0; padding-left: 1.3rem; columns: 2 16rem; column-gap: var(--sp-4); }
.fo-cgv-toc li { font-size: var(--fs-sm); line-height: 1.5; padding: 0.2rem 0; break-inside: avoid; }
.fo-cgv-toc a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.fo-cgv-toc a:hover { color: var(--green); border-color: currentColor; }
.fo-cgv-article > h2 { font-size: var(--fs-h3); }
.fo-cgv-num { display: block; margin-bottom: 0.4rem; font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--accent); }
.fo-cgv-list { margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: 0.55rem; }
.fo-cgv-list li { font-size: var(--fs-sm); line-height: 1.65; color: var(--ink-60); max-width: 70ch; }
.fo-legal-page .fo-block p a { color: var(--green); font-weight: var(--fw-bold); }

/* ─── Logo Qualiopi (fourni par le certificateur Qualitia — ne pas recadrer ni recolorer) ── */
.fo-qualiopi-card { background: var(--white); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: var(--sp-3); }
.fo-qualiopi-logo { display: block; width: 100%; height: auto; max-width: 30rem; }
.fo-qualiopi-card--aside { border: 1px solid var(--line); margin-bottom: 0; padding: 0.75rem 1rem; }
.fo-qualiopi-card--legal { border: 1px solid var(--line); max-width: 30rem; }

/* Certificat Qualiopi : bouton de téléchargement (inactif tant que le PDF n'est pas en ligne) */
.fo-btn--cert { flex-wrap: wrap; justify-content: flex-start; gap: 0.4rem 0.55rem; text-align: left; background: var(--white); color: var(--green-deep); border-color: var(--line); }
.fo-btn--cert > span { flex: 1 1 12rem; min-width: 0; }
.fo-btn--cert svg { width: 18px; height: 18px; }
.fo-btn--cert:hover { background: var(--green-tint); border-color: var(--green); color: var(--green-deep); }
.fo-btn--cert:hover svg { transform: translateY(2px); }
.fo-btn--cert em { margin-left: calc(18px + 0.55rem); padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--green-tint); color: var(--green); font-size: 0.72em; font-style: normal; font-weight: var(--fw-bold); white-space: nowrap; }
.fo-btn--cert.is-pending { cursor: default; }
.fo-btn--cert.is-pending:hover { transform: none; background: var(--white); border-color: var(--line); }
.fo-btn--cert.is-pending:hover svg { transform: none; }
.fo-btn--cert-wide { margin-block: var(--sp-2); }
.fo-cert-dl { margin: var(--sp-3) 0 0; }
.fo-from { display: block; margin-bottom: 0.15rem; font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--ink-60); }
