/* Bloc fiche-entete : en-tête immersif de la fiche formation */
.fiche-entete { position: relative; padding: var(--space-s) 0 var(--space-m); overflow: hidden; }
.fiche-entete::before { /* halo de la couleur d'univers */
  content: ''; position: absolute; right: -10%; top: -20%; width: 70%; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--u) 22%, transparent), transparent);
}
.fiche-entete__grille { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: var(--space-l); align-items: start; }

.fiche-entete__ariane ol { display: flex; flex-wrap: wrap; gap: 0.3rem; list-style: none; padding: 0; font-size: var(--step--1); font-weight: 560; color: var(--ink-soft); }
.fiche-entete__ariane li + li::before { content: '/'; margin-right: 0.35rem; color: var(--line-strong); }
.fiche-entete__ariane a { color: var(--ink-soft); text-decoration: none; background: linear-gradient(var(--u), var(--u)) 0 100% / 0 2px no-repeat; transition: background-size var(--dur-normal) var(--ease-out), color var(--dur-fast); }
.fiche-entete__ariane a:hover { color: var(--ink); background-size: 100% 2px; }
.fiche-entete__ariane [aria-current] { color: var(--u-text); }

.fiche-entete__titre { margin-top: var(--space-xs); font-size: var(--t-page); line-height: 0.86; letter-spacing: -0.025em; }
.fiche-entete__titre.is-court { font-size: var(--t-page); }
.fiche-entete__titre.is-long { font-size: clamp(2rem, 1.4rem + 1.6vw, 2.9rem); line-height: 0.92; }
.fiche-entete__titre.is-tres-long { font-size: clamp(1.8rem, 1.3rem + 1.2vw, 2.4rem); line-height: 0.95; }
.fiche-entete__sigle {
  display: inline-block; vertical-align: 0.12em; margin-right: 0.12em; padding: 0.06em 0.22em 0.04em;
  border-radius: 12px; background: var(--u-fond); color: var(--u-ink);
  font-size: 0.5em; line-height: 1; letter-spacing: 0;
}
.fiche-entete__nom { display: inline; }
.fiche-entete__accroche { margin-top: var(--space-xs); font-size: var(--step-1); line-height: 1.45; color: var(--ink-soft); max-width: 44ch; }
.fiche-entete__contrat {
  margin-top: var(--space-m); padding: 0.9rem 1.1rem 0.9rem 1.2rem; max-width: 56ch;
  border-radius: var(--radius-m); background: var(--navy); color: #fff; font-size: var(--step--1); line-height: 1.5;
  box-shadow: inset 6px 0 0 var(--yellow);
}
.fiche-entete__contrat strong { display: block; font-family: var(--font-display); font-size: var(--step-1); color: var(--yellow); margin-bottom: 0.15rem; }
/* Entrée des textes du premier écran : ils montent dès le premier affichage, sans jamais être transparents (l'accroche
   est l'élément le plus grand du premier écran au téléphone : la mesure LCP ne doit pas attendre le script).
   Boutons et visuel : view.js. Mouvement réduit : immobile (et html.a11y-immobile du module d'accessibilité). */
@keyframes fiche-entete-monte { from { transform: translateY(var(--monte, 24px)); } to { transform: none; } }
.fiche-entete__ariane, .fiche-entete__titre, .fiche-entete__accroche, .fiche-entete__contrat, .fiche-entete__faits > div {
  animation: fiche-entete-monte 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.fiche-entete__ariane { --monte: 20px; animation-delay: 0.1s; }
.fiche-entete__titre { --monte: 0.3em; animation-duration: 1s; animation-delay: 0.18s; }
.fiche-entete__accroche { animation-delay: 0.4s; }
.fiche-entete__contrat { animation-delay: 0.47s; }
.fiche-entete__faits > div { --monte: 30px; animation-delay: 0.6s; }
.fiche-entete__faits > div:nth-child(2) { animation-delay: 0.66s; }
.fiche-entete__faits > div:nth-child(3) { animation-delay: 0.72s; }
.fiche-entete__faits > div:nth-child(4) { animation-delay: 0.78s; }
.fiche-entete__faits > div:nth-child(n + 5) { animation-delay: 0.84s; }
@media (prefers-reduced-motion: reduce) {
  .fiche-entete__ariane, .fiche-entete__titre, .fiche-entete__accroche, .fiche-entete__contrat, .fiche-entete__faits > div { animation: none; }
}
.fiche-entete__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-s); }
.fiche-entete__actions .btn { font-size: var(--step-0); min-height: 44px; }

/* L'essentiel : encadré compact, toutes les infos clés d'un coup d'œil */
.fiche-entete__essentiel {
  margin-top: var(--space-m); padding: var(--space-s) var(--space-m) var(--space-m);
  border-radius: var(--radius-l); background: var(--bg-raised);
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line), inset 0 4px 0 var(--u);
}
.fiche-entete__essentiel-titre { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); margin-bottom: 0.5rem; }
/* En bref (réponse directe en une phrase, pour les moteurs et les assistants) et date de mise à jour */
.fiche-entete__resume {
  margin-top: var(--space-s); padding-top: var(--space-s); border-top: 1px solid var(--line);
  font-size: 0.9375rem; line-height: 1.55; color: var(--ink-soft); max-width: 68ch;
}
.fiche-entete__maj { margin-top: 0.35rem; font-size: 0.875rem; color: var(--ink-soft); }

/* Visuel : grande photo en rectangle net, rien ne la chevauche */
.fiche-entete__scene { position: relative; height: clamp(380px, 52vh, 500px); margin-top: var(--space-m); }
.fiche-entete__cadre {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: 20px; box-shadow: var(--shadow-3);
}
.fiche-entete__media { position: absolute; inset: -9% 0; }
.fiche-entete__media img { will-change: transform; }
.fiche-entete__cadre .fiche-entete__video { inset: -9% 0; height: 118%; will-change: transform; }
.fiche-entete__cadre::after { /* liseré de couleur au bas du cadre */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--u); z-index: 2;
}

/* Faits clés (dans l'encadré) */
.fiche-entete__faits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem 1.2rem; }
.fiche-entete__faits > div { padding-top: 0.5rem; border-top: 1px solid var(--line); }
.fiche-entete__faits dt { display: flex; align-items: center; gap: 0.4rem; font-size: var(--step--2); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--u-text); margin-bottom: 0.2rem; }
.fiche-entete__faits dt .badge { font-size: 0.62rem; padding: 0.1em 0.45em; }
.fiche-entete__faits dd { font-family: var(--font-display); font-weight: 750; font-size: var(--step-1); line-height: 1.1; }
.fiche-entete__faits dd span { display: block; margin-top: 0.15rem; font-family: var(--font-body); font-weight: 500; font-size: var(--step--1); line-height: 1.35; color: var(--ink-soft); }
.fiche-entete__fait-large { grid-column: span 3; }
.fiche-entete__fait-large dd { font-family: var(--font-body); font-weight: 550; font-size: var(--step--1); line-height: 1.45; }
.fiche-entete__fait-large dd span { display: inline; margin-left: 0.4rem; }

@media (max-width: 960px) {
  .fiche-entete__grille { grid-template-columns: 1fr; }
}
