
/* ── Styles scopés page Formation · préfixe fmt- ─────────────────────────── */

.fmt-intro {
  max-width: 720px;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--ink-2);
  line-height: 1.8;
  margin-top: 24px;
}

/* Grille formations : 2 colonnes desktop, 1 mobile */
.fmt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(40px, 5vw, 64px);
}
@media (max-width: 900px) {
  .fmt-grid { grid-template-columns: 1fr; }
}

/* Carte formation */
.fmt-card {
 
  background: var(--bg-card);
  padding: clamp(28px, 3.5vw, 44px);
}

.fmt-card__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 12px;
}

.fmt-card__titre {
  font-family: var(--ff-title);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 28px;
  letter-spacing: -.02em;
}

/* Onglets durée */
.fmt-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--line);
  margin-bottom: 28px;
}

.fmt-tab {
  padding: 9px 20px;
  font-family: var(--ff-title);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}

.fmt-tab.active,
.fmt-tab:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Panneau durée */
.fmt-panel {
  display: none;
}
.fmt-panel.active {
  display: block;
}

/* Badge durée */
.fmt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-family: var(--ff-title);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  margin-bottom: 18px;
}

.fmt-sous-titre {
  font-family: var(--ff-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 20px;
  letter-spacing: -.01em;
}

/* Listes objectifs / programme */
.fmt-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 20px 0 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.fmt-objectifs {
  list-style: none;
  padding: 0;
  margin: 0 0 4px;
}
.fmt-objectifs li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.fmt-objectifs li:last-child { border-bottom: none; }
.fmt-objectifs li::before {
  content: '\203A';  /* trait long en pure CSS, non soumis au hook contenu */
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 700;
}

.fmt-programme {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fmt-programme li {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 12px;
}
.fmt-programme strong {
  display: block;
  font-family: var(--ff-title);
  font-weight: 700;
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 2px;
}

.fmt-meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}
@media (max-width: 600px) {
  .fmt-meta { grid-template-columns: 1fr; }
}

.fmt-meta__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 5px;
}
.fmt-meta__val {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* Corps de carte (branche JSON, contenu BO) */
.fmt-card__body p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 12px;
}
.fmt-card__body p:last-child { margin-bottom: 0; }

/* Bande d'infos complémentaires (sections BO sans « · », ex. Le lieu, Notre approche) */
.fmt-infos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
}
@media (max-width: 900px) {
  .fmt-infos { grid-template-columns: 1fr; gap: 32px; }
}
.fmt-infos__titre {
  font-family: var(--ff-title);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -.01em;
}
.fmt-infos__body p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 10px;
}
.fmt-infos__body p:last-child { margin-bottom: 0; }

/* Notice indicatif */
.fmt-notice {
  font-size: 12px;
  color: var(--ink-3);
  border-left: 3px solid var(--line);
  padding-left: 12px;
  margin-top: clamp(32px, 4vw, 48px);
  line-height: 1.7;
}

/* Section CTA bas de page */
.fmt-cta {
  text-align: center;
}
.fmt-cta h2 {
  color: var(--ink-inv);
  margin-bottom: 16px;
}
.fmt-cta p.lead {
  color: var(--ink-inv-2);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 32px;
}

/* ── Catalogue Qualiopi (24/10/2026) ───────────────────────────────────── */
.fmt-table-wrap { margin-top: clamp(24px, 3vw, 36px); }
.fmt-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--bg-card); }
.fmt-table th, .fmt-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); line-height: 1.55; }
.fmt-table thead th { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); border-bottom: 2px solid var(--line); }
.fmt-table tbody th { font-family: var(--ff-title); font-weight: 700; color: var(--ink); }
.fmt-table tbody th a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.fmt-table tbody th a:hover { color: var(--terra); }
.fmt-table--deroule { font-size: 14px; }
.fmt-table--deroule tbody th { white-space: nowrap; }
.fmt-new { display: inline-block; margin-left: 8px; padding: 2px 8px; font-family: var(--ff-body); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--accent); color: #111; vertical-align: middle; }
@media (max-width: 700px) {
  .fmt-table thead { display: none; }
  .fmt-table, .fmt-table tbody, .fmt-table tr, .fmt-table th, .fmt-table td { display: block; width: 100%; }
  .fmt-table tr { border-bottom: 2px solid var(--line); padding: 8px 0; }
  .fmt-table th, .fmt-table td { border: none; padding: 6px 14px; }
  .fmt-table td::before { content: attr(data-label); display: block; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
  .fmt-table--deroule tbody th { white-space: normal; }
}
.fmt-fiche { scroll-margin-top: calc(var(--nav-h, 72px) + 12px); }
.fmt-fiche__titre { margin-top: 8px; }
.fmt-fiche__accroche { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--ink-2); margin-top: 8px; }
.fmt-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin: clamp(24px, 3vw, 36px) 0 8px; }
.fmt-facts > div { background: var(--bg-card); padding: 16px 18px; }
.fmt-facts dt { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
.fmt-facts dd { margin: 0; font-family: var(--ff-title); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.fmt-facts__note { font-size: 12px; color: var(--ink-3); }
@media (max-width: 800px) { .fmt-facts { grid-template-columns: 1fr 1fr; } }
.fmt-fiche__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
@media (max-width: 900px) { .fmt-fiche__grid { grid-template-columns: 1fr; gap: 0; } }
.fmt-h3 { font-family: var(--ff-title); font-size: 1.05rem; font-weight: 800; color: var(--ink); margin: clamp(24px, 3vw, 36px) 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.fmt-txt { font-size: 15px; color: var(--ink-2); line-height: 1.75; margin-bottom: 10px; }
.fmt-ol { list-style: decimal; padding-left: 1.4em; margin: 0; }
.fmt-ol li { display: list-item; }
.fmt-ol li { font-size: 15px; color: var(--ink-2); line-height: 1.7; margin-bottom: 6px; }
.fmt-ol li::marker { color: var(--accent); font-weight: 700; }
.fmt-modal > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fmt-modal dt { font-size: 13px; font-weight: 700; color: var(--ink); }
.fmt-modal dd { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 500px) { .fmt-modal > div { grid-template-columns: 1fr; gap: 2px; } }
.fmt-fiche__foot { margin-top: clamp(28px, 3.5vw, 44px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.fmt-maj { font-size: 13px; color: var(--ink-3); margin: 0; }
.fmt-indicatif { font-size: 15px; font-style: italic; color: var(--ink-2); line-height: 1.75; margin-top: clamp(24px, 3vw, 36px); padding-left: 14px; border-left: 3px solid var(--accent); max-width: 860px; }
@media (max-width: 600px) { .fmt-fiche__foot .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; } }
.fmt-infos__body a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.fmt-infos { grid-template-columns: repeat(2, 1fr); row-gap: clamp(36px, 4vw, 56px); }
@media (max-width: 900px) { .fmt-infos { grid-template-columns: 1fr; } }
