/* ==========================================================================
   Pages formation — version B (MTC, MTE)
   --------------------------------------------------------------------------
   Feuille autonome, chargée par les pages refondues (MTC et MTE, formation
   et equipe pedagogique). Tout est scopé sous .fp pour ne rien changer aux
   pages soeurs restees sur l'ancien gabarit ; la couleur de filiere vient
   du modificateur .fp--mtc ou .fp--mte pose sur le meme element.
   style.css est compilé depuis scss/ : ne pas fusionner ces regles dedans
   sans repasser par les sources SCSS.
   ========================================================================== */

.fp {
  --fp-ink: #4A4A4A;
  --fp-ink-2: #666666;
  --fp-meta: #999999;
  --fp-green: #43AA8B;
  --fp-green-dark: #216051;
  --fp-brown: #CA9E67;
  --fp-accent: #E9BC63;
  --fp-accent-bg: #FEF9F1;
  --fp-beige: #F9F5EF;
  --fp-rule: #EAD8C2;
  --fp-dash: #DFC5A4;
  --fp-blue: #2F83D9;
  --fp-blue-bg: #EBF4FF;
  --fp-mp: #A97E45;
  --fp-conge: #F8C7C7;
  --fp-portrait: #d41816;
  --fp-weekend: #FDFBF7;
  --fp-display: "Euclid Flex Medium", "Euclid Flex", sans-serif;
  --fp-text: "Suisse intl", Arial, sans-serif;
  --fp-medium: "Suisse intl Medium", "Suisse intl", Arial, sans-serif;

  font-family: var(--fp-text);
  font-size: 16px;
  line-height: 24px;
  color: var(--fp-ink);
}

/* couleur de filiere : seules ces deux variables changent d'une page a l'autre */
.fp--mtc { --fp-accent: #E9BC63; --fp-accent-bg: #FEF9F1; }
.fp--mte { --fp-accent: #43AA8B; --fp-accent-bg: #EEF6F4; }
.fp--epsn { --fp-accent: #43AA8B; --fp-accent-bg: #EEF6F4; } /* pages sans filiere : contact */

.fp *,
.fp *::before,
.fp *::after { box-sizing: border-box; }

.fp p { margin: 0; color: var(--fp-ink); font-size: 16px; line-height: 24px; }
.fp a { color: var(--fp-green); transition: all .3s ease-in-out; }
.fp a:hover { color: var(--fp-green-dark); }
.fp h1, .fp h2, .fp h3 { font-family: var(--fp-display); font-weight: 500; margin: 0; }
.fp strong { font-family: var(--fp-medium); font-weight: 500; }

.fp-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.fp-section { padding-top: 80px; padding-bottom: 80px; }
.fp-section--tinted { background: var(--fp-accent-bg); }
.fp-section--beige { background: var(--fp-beige); }
.fp-h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.2; color: var(--fp-brown); }
.fp-h3 { font-size: 22px; line-height: 28px; }
.fp-eyebrow {
  font-family: var(--fp-medium); font-weight: 500; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--fp-brown);
}
.fp-lede { font-size: 19px; line-height: 28px; }
.fp-small { font-size: 14px; line-height: 21px; color: var(--fp-ink-2); }
.fp-stack { display: flex; flex-direction: column; }
.fp-grid { display: grid; }
[id^="b-"] { scroll-margin-top: 184px; }

/* --- Boutons ------------------------------------------------------------ */
.fp .fp-cta {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--fp-green); color: #fff; text-decoration: none;
  border-radius: 50px; padding: 16px 40px; box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transition: all .3s ease-in-out; text-align: center;
}
.fp .fp-cta:hover { background: var(--fp-green-dark); color: #fff; text-decoration: none; box-shadow: none; }
.fp-cta__label { font-family: var(--fp-medium); font-weight: 500; font-size: 20px; line-height: 26px; }
.fp-cta__sub { font-size: 12.5px; line-height: 18px; opacity: .9; }
.fp-cta--block { display: flex; width: 100%; padding-left: 20px; padding-right: 20px; }
.fp .fp-pill {
  display: inline-block; border: 2px solid var(--fp-green); color: var(--fp-green);
  background: none; border-radius: 50px; padding: 14px 23px;
  font-family: var(--fp-medium); font-weight: 500; text-decoration: none;
  transition: all .3s ease-in-out;
}
.fp .fp-pill:hover { background: var(--fp-green); color: #fff; text-decoration: none; }
.fp-link { font-family: var(--fp-medium); font-weight: 500; }

/* --- Hero --------------------------------------------------------------- */
.fp-hero { background: var(--fp-accent-bg); overflow: hidden; }
.fp-hero__inner {
  max-width: 1280px; margin: 0 auto; padding: 56px 24px 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 40px; align-items: center;
}
.fp-hero__main { display: flex; flex-direction: column; gap: 22px; align-self: end; }
.fp-hero__tags { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fp-badge {
  background: var(--fp-accent); color: var(--fp-ink); font-family: var(--fp-medium); font-weight: 500;
  font-size: 13px; letter-spacing: .06em; padding: 4px 10px;
}
.fp-hero__kicker {
  font-family: var(--fp-medium); font-weight: 500; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--fp-brown);
}
.fp-hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.05; color: var(--fp-ink); }
.fp-hero__lede { max-width: 560px; }
.fp-hero__illu { width: 100%; max-width: 460px; display: block; }
.fp-brief {
  margin-bottom: 64px; background: #fff; box-shadow: 0 0 20px rgba(0,0,0,.15);
  padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column;
  border-top: 6px solid var(--fp-accent);
}
.fp-brief__title { font-family: var(--fp-display); font-weight: 500; font-size: 22px; line-height: 28px; margin-bottom: 14px; }
.fp-brief__row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-top: 1px solid var(--fp-rule);
}
.fp-brief__row:last-of-type { border-bottom: 1px solid var(--fp-rule); }
.fp-brief__key { color: var(--fp-ink-2); }
.fp-brief__val { font-family: var(--fp-medium); font-weight: 500; text-align: right; }
.fp-brief__cta { display: flex; justify-content: center; margin-top: 24px; }
.fp-brief__note { margin-top: 14px; font-size: 14px; color: var(--fp-ink-2); text-align: center; }
/* valeurs pilotees par le Google Sheet : reserve une place avant le rendu Vue */
.fp-sheet { display: inline-block; min-width: 90px; }

/* --- Barre d'ancres ----------------------------------------------------- */
/* la navbar du site est fixe : 120px en desktop, 64px sous 1200px (navbar.css) */
.fp-anchors { position: sticky; top: 120px; z-index: 5; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.nv-is-hidden .fp-anchors { top: 0; }
.fp-anchors__inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; gap: 6px;
  overflow-x: auto; height: 56px; align-items: center; white-space: nowrap;
}
.fp-anchors a {
  font-family: var(--fp-medium); font-weight: 500; font-size: 15px; color: var(--fp-ink);
  text-decoration: none; padding: 6px 14px; border-radius: 60px; border: 1px solid var(--fp-rule);
  transition: all .3s ease-in-out;
}
.fp-anchors a:hover { background: var(--fp-accent); border-color: var(--fp-accent); color: var(--fp-ink); }

/* --- Video -------------------------------------------------------------- */
.fp-video { max-width: 1080px; margin: 0 auto; padding: 64px 24px 0; }
.fp-video__frame { position: relative; box-shadow: 0 0 20px rgba(0,0,0,.15); }
.fp-video video { width: 100%; display: block; background: #fff; object-fit: cover; aspect-ratio: 16 / 9; }
.fp-video__play {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none; background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
}
.fp-video__play span {
  width: clamp(56px, 9vw, 96px); height: clamp(56px, 9vw, 96px); border-radius: 50%;
  background: var(--fp-green); box-shadow: 0 4px 12px rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: center; transition: all .3s ease-in-out;
}
.fp .fp-video__play:hover,
.fp .fp-video__play:focus { background: transparent; }
.fp-video__play:hover span { background: var(--fp-green-dark); box-shadow: none; }
.fp-video__play svg { width: 40%; height: 40%; margin-left: 8%; fill: #fff; }
.fp-video.is-playing .fp-video__play { display: none; }

/* --- Disciplines M2 ----------------------------------------------------- */
.fp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.fp-tile {
  background: var(--fp-accent-bg); border-top: 4px solid var(--fp-accent);
  padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px;
}
.fp-tile__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fp-tile__name { font-family: var(--fp-display); font-weight: 500; font-size: 22px; line-height: 28px; }
.fp-tile__hours { font-family: var(--fp-display); font-weight: 500; font-size: 28px; line-height: 1; white-space: nowrap; }
.fp-tile__hours small { font-size: 15px; }

.fp-cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; align-items: start; }
.fp-card-beige { background: var(--fp-beige); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.fp-listrows { display: flex; flex-direction: column; }
.fp-listrows > div { padding: 9px 0; border-top: 1px solid var(--fp-rule); }
.fp-note {
  padding: 10px 14px; border: 1px dashed var(--fp-dash);
  font-size: 14px; line-height: 21px; color: var(--fp-ink-2);
}

/* --- Approche ----------------------------------------------------------- */
.fp-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px 48px; }
.fp-cards-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.fp-card {
  background: #fff; padding: 24px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,.08);
}
.fp-card__num { font-family: var(--fp-display); font-size: 28px; line-height: 1; color: var(--fp-accent); }
.fp-card__title { font-family: var(--fp-display); font-weight: 500; font-size: 20px; line-height: 26px; }
.fp-card p { font-size: 15px; line-height: 22px; }

/* --- Forces ------------------------------------------------------------- */
.fp-forces { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
.fp-force { border-top: 1px solid var(--fp-rule); padding: 18px 0 8px; display: flex; flex-direction: column; gap: 10px; }
.fp-force__title { font-family: var(--fp-display); font-weight: 500; font-size: 20px; line-height: 26px; }
.fp-force p { font-size: 15px; line-height: 22px; }
.fp-force__more { display: flex; flex-direction: column; gap: 10px; }
.fp-force__toggle {
  align-self: flex-start; background: none; border: none; padding: 0;
  font-family: var(--fp-medium); font-weight: 500; font-size: 15px; color: var(--fp-green); cursor: pointer;
}
.fp .fp-force__toggle:hover,
.fp .fp-force__toggle:focus { background: none; color: var(--fp-green-dark); }
.fp-force__toggle .fp-force__less,
.fp-force__toggle.collapsed .fp-force__open { display: inline; }
.fp-force__toggle .fp-force__open,
.fp-force__toggle.collapsed .fp-force__less { display: none; }

/* --- Programme ---------------------------------------------------------- */
.fp-legend { display: flex; gap: 16px; font-size: 14px; flex-wrap: wrap; }
.fp-legend span { display: flex; gap: 8px; align-items: center; }
.fp-swatch { width: 14px; height: 14px; display: inline-block; }
.fp-swatch--mtc { background: var(--fp-accent); }
.fp-swatch--tc { background: var(--fp-blue); }
.fp-swatch--mp { background: var(--fp-mp); }
.fp-swatch--conge { background: var(--fp-conge); }

.fp-modules { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.fp-modules__list { display: flex; flex-direction: column; gap: 8px; flex: 1 1 300px; min-width: 0; }
.fp-modtab {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%;
  padding: 14px 16px; border: none; border-left: 4px solid var(--fp-blue); background: transparent;
  font: inherit; color: var(--fp-ink); cursor: pointer; text-align: left; transition: all .3s ease-in-out;
}
.fp-modtab--spec { border-left-color: var(--fp-accent); }
/* survol : la ligne prend la teinte de son module, le texte reste lisible.
   Neutralise le button:hover global de style.css (vert plein, texte blanc). */
.fp .fp-modtab:hover,
.fp .fp-modtab:focus {
  background: var(--fp-blue-bg);
  border-left-color: var(--fp-blue);
  /* epaissit le filet sans decaler le texte */
  box-shadow: inset 4px 0 0 var(--fp-blue);
  color: var(--fp-ink);
}
.fp .fp-modtab--spec:hover,
.fp .fp-modtab--spec:focus {
  background: var(--fp-accent-bg);
  border-left-color: var(--fp-accent);
  box-shadow: inset 4px 0 0 var(--fp-accent);
}
.fp .fp-modtab:hover .fp-modtab__label span,
.fp .fp-modtab:focus .fp-modtab__label span { color: var(--fp-ink-2); }
.fp .fp-modtab:hover .fp-modtab__dot { background: var(--fp-blue); }
.fp .fp-modtab--spec:hover .fp-modtab__dot { background: var(--fp-accent); }

.fp .fp-modtab.is-active,
.fp .fp-modtab.is-active:hover { background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.12); color: var(--fp-ink); }
.fp-modtab__label { display: flex; flex-direction: column; gap: 2px; }
.fp-modtab__label b { font-family: var(--fp-medium); font-weight: 500; }
.fp-modtab__label span { font-size: 13px; color: var(--fp-ink-2); }
.fp-modtab__dot { width: 8px; height: 8px; border-radius: 8px; background: transparent; flex-shrink: 0; }
.fp-modtab.is-active .fp-modtab__dot { background: var(--fp-blue); }
.fp-modtab--spec.is-active .fp-modtab__dot { background: var(--fp-accent); }
.fp-modules__panels { flex: 2 1 520px; min-width: 0; }
.fp-modpanel {
  display: none; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.12);
  padding: clamp(22px, 3vw, 36px); flex-direction: column; gap: 16px;
}
.fp-modpanel.is-active { display: flex; }
.fp-modpanel h3 { font-size: 28px; line-height: 36px; }
.fp-modpanel__items { display: flex; flex-direction: column; }
.fp-modpanel__items > div { padding: 10px 0; border-top: 1px solid var(--fp-rule); }
.fp-modpanel__items > div:last-child { font-family: var(--fp-medium); font-weight: 500; }

/* M3 + M4 + M5 relevent du tronc commun : filet et surtitre en bleu */
.fp-mp { border-top: 6px solid var(--fp-blue); background: var(--fp-beige); padding: 28px clamp(18px, 3vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.fp-mp__eyebrow { color: var(--fp-blue); }
.fp-mp h3 { font-size: 26px; line-height: 32px; }
.fp-mp__sub { color: var(--fp-ink-2); }
.fp-mp p { max-width: 820px; }
.fp-mp__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.fp-seminaire {
  background: #fff; padding: 14px 16px; display: grid; grid-template-columns: 28px 1fr;
  gap: 10px; box-shadow: 0 0 10px rgba(0,0,0,.06);
}
.fp-seminaire__num { font-family: var(--fp-display); font-size: 22px; line-height: 1; color: var(--fp-mp); }
.fp-seminaire__txt { display: flex; flex-direction: column; gap: 2px; }
.fp-seminaire__txt b { font-family: var(--fp-medium); font-weight: 500; line-height: 21px; }
.fp-seminaire__txt span { font-size: 14px; line-height: 20px; color: var(--fp-ink-2); }
.fp-mp__foot { font-size: 15px; line-height: 22px; color: var(--fp-ink-2); }

/* --- Un mois de cours --------------------------------------------------- */
.fp-rythme { background: var(--fp-beige); padding: clamp(20px, 3vw, 36px); display: flex; flex-wrap: wrap; gap: 32px 48px; }
.fp-rythme__col { display: flex; flex-direction: column; gap: 14px; flex: 1 1 300px; min-width: 0; }
.fp-rythme__legend { display: flex; flex-direction: column; font-size: 15px; }
.fp-rythme__legend > div {
  display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: center;
  padding: 8px 0; border-top: 1px solid var(--fp-rule);
}
.fp-rythme__legend b { font-family: var(--fp-medium); font-weight: 500; white-space: nowrap; }
.fp-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.fp-figure { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--fp-rule); }
.fp-figure b { font-family: var(--fp-display); font-weight: 500; font-size: 26px; line-height: 1.1; }
.fp-figure span { font-size: 14px; line-height: 20px; color: var(--fp-ink-2); }
.fp-cal { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.fp-cal__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.fp-cal__head b { font-family: var(--fp-display); font-weight: 500; font-size: 20px; }
.fp-cal__head span { font-size: 13px; color: var(--fp-ink-2); }
.fp-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.fp-cal__dow { font-family: var(--fp-medium); font-weight: 500; font-size: 13px; text-align: center; padding-bottom: 4px; }
.fp-cal__day {
  background: #fff; border: 1px solid var(--fp-rule); min-height: 74px; padding: 5px;
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.fp-cal__day--we { background: var(--fp-weekend); }
.fp-cal__day--out { background: transparent; border: none; }
.fp-cal__num { font-size: 12px; color: var(--fp-meta); }
.fp-cal__day--on .fp-cal__num { color: var(--fp-ink); font-family: var(--fp-medium); font-weight: 500; }
.fp-cal__tag {
  font-family: var(--fp-medium); font-weight: 500; font-size: 12px; line-height: 15px;
  padding: 3px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fp-cal__tag--m2 { background: var(--fp-accent); color: var(--fp-ink); }
.fp-cal__tag--m1 { background: var(--fp-blue); color: #fff; }
.fp-cal__tag--mp { background: var(--fp-mp); color: #fff; }
.fp-cal__tag--conge { background: var(--fp-conge); color: var(--fp-ink); }

/* --- Equipe (apercu + page dediee) -------------------------------------- */
.fp-team { display: flex; flex-direction: column; gap: 16px; padding: 8px 0 16px; }
.fp-team__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.fp-team__head b { font-family: var(--fp-display); font-weight: 500; font-size: 22px; }
.fp-team__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 20px 16px; }
.fp .fp-team__member {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; text-decoration: none; color: var(--fp-ink);
}
.fp .fp-team__member:hover { color: var(--fp-ink); text-decoration: none; }
.fp-team__member img {
  width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--fp-accent);
  object-fit: cover; background: var(--fp-accent-bg); flex-shrink: 0;
}
.fp-team__name { font-family: var(--fp-medium); font-weight: 500; font-size: 15px; line-height: 20px; }
.fp-team__role { font-size: 13px; line-height: 18px; color: var(--fp-ink-2); }

.fp-quote-wrap { border-top: 1px solid var(--fp-rule); border-bottom: 1px solid var(--fp-rule); }
.fp-quote { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 48px 16px; text-align: center; }
.fp-quote__mark { color: #E4606A; font-size: 26px; line-height: 1; }
.fp-quote p {
  font-family: var(--fp-display); font-weight: 500; font-size: 27px; line-height: 1.55;
  color: var(--fp-brown); max-width: 900px;
}
.fp-quote__sign { font-size: 15px; color: var(--fp-ink-2); }

/* --- Diplomes ----------------------------------------------------------- */
.fp-diplome { border-top: 1px solid var(--fp-rule); border-bottom: 1px solid var(--fp-rule); }
.fp-diplome__inner {
  max-width: 1280px; margin: 0 auto; padding: 48px 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 32px; align-items: center;
}
.fp-diplome h2 { font-size: 26px; line-height: 32px; color: var(--fp-ink); }
.fp-accreds { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.fp-accreds img { height: 44px; width: auto; filter: grayscale(100%); }
.fp-steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 3px; }
.fp-step { background: var(--fp-accent-bg); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.fp-step--now { background: var(--fp-accent); }
.fp-step span { font-family: var(--fp-medium); font-weight: 500; font-size: 13px; color: var(--fp-ink-2); }
.fp-step--now span { color: var(--fp-ink); }
.fp-step b { font-family: var(--fp-display); font-weight: 500; font-size: 19px; line-height: 25px; }

/* --- Admission ---------------------------------------------------------- */
.fp-admission { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; }
.fp-prereq { display: flex; flex-direction: column; }
.fp-prereq__title { font-family: var(--fp-display); font-size: 22px; margin-bottom: 12px; }
.fp-prereq > div { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--fp-rule); }
.fp-prereq b { font-family: var(--fp-display); font-weight: 500; font-size: 20px; color: var(--fp-brown); }

/* --- Prix --------------------------------------------------------------- */
.fp-prix { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; }
.fp-periods { display: flex; gap: 6px; flex-wrap: wrap; }
.fp-period {
  padding: 8px 18px; border-radius: 60px; border: 1px solid var(--fp-accent); background: #fff;
  color: var(--fp-ink); font: inherit; font-family: var(--fp-medium); font-weight: 500;
  cursor: pointer; transition: all .3s ease-in-out;
}
.fp .fp-period:hover,
.fp .fp-period:focus { background: var(--fp-accent-bg); color: var(--fp-ink); }
.fp .fp-period.is-active,
.fp .fp-period.is-active:hover { background: var(--fp-accent); color: var(--fp-ink); }
.fp-pricebox { background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.1); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.fp-pricebox__old { color: var(--fp-meta); font-size: 14px; }
.fp-pricebox__old .formation-prices--original { text-decoration: line-through; }
.fp-pricebox__amount { font-family: var(--fp-display); font-weight: 500; font-size: 40px; line-height: 1.1; }
.fp-pricebox__amount > span { display: none; }
.fp-pricebox__amount > span.is-active { display: inline; }
.fp-pricebox__caption { color: var(--fp-ink-2); }
.fp-pricelinks { display: flex; flex-wrap: wrap; gap: 20px; font-family: var(--fp-medium); font-weight: 500; font-size: 15px; }
.fp-aide { display: flex; flex-direction: column; gap: 14px; align-self: center; }
.fp-aide__num { font-family: var(--fp-display); font-size: 64px; line-height: 1; color: var(--fp-green); }
.fp-aide__txt { font-family: var(--fp-display); font-size: 22px; line-height: 28px; }

/* --- CTA final + barre mobile ------------------------------------------- */
.fp-final { max-width: 900px; margin: 0 auto; padding: 72px 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.fp-final h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.2; color: var(--fp-ink); }
.fp-stickybar {
  position: sticky; bottom: 0; z-index: 6; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.17);
  padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.fp-stickybar span { font-size: 14px; line-height: 18px; }
.fp-stickybar b { font-family: var(--fp-medium); font-weight: 500; }
.fp-stickybar a {
  background: var(--fp-green); color: #fff; text-decoration: none; font-family: var(--fp-medium);
  font-weight: 500; padding: 10px 18px; border-radius: 50px; font-size: 15px; white-space: nowrap;
}
.fp-stickybar a:hover { background: var(--fp-green-dark); color: #fff; }

/* --- Page equipe pedagogique -------------------------------------------- */
.fp-team-hero { background: var(--fp-accent-bg); border-bottom: 6px solid var(--fp-accent); }
.fp-team-hero__inner { max-width: 1280px; margin: 0 auto; padding: 48px 24px 56px; display: flex; flex-direction: column; gap: 20px; }
.fp-back { font-family: var(--fp-medium); font-weight: 500; font-size: 15px; text-decoration: none; }
.fp-team-hero h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; color: var(--fp-ink); }
.fp-team-index { max-width: 1280px; margin: 0 auto; padding: 48px 24px 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 12px; }
.fp-team-index a {
  display: flex; gap: 14px; align-items: center; padding: 14px; text-decoration: none;
  color: var(--fp-ink); box-shadow: 0 0 10px rgba(0,0,0,.1); transition: all .3s ease-in-out;
}
.fp-team-index a:hover { box-shadow: 0 0 30px rgba(0,0,0,.2); color: var(--fp-ink); }
.fp-team-index img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--fp-portrait); object-fit: cover; flex-shrink: 0; }
.fp-profiles { max-width: 1280px; margin: 0 auto; padding: 32px 24px 40px; display: flex; flex-direction: column; }
.fp-profile { display: flex; flex-wrap: wrap; gap: 32px 48px; padding: 48px 0; border-top: 1px solid var(--fp-rule); scroll-margin-top: 24px; }
.fp-profile__aside { display: flex; flex-direction: column; gap: 14px; flex: 1 1 280px; min-width: 0; }
.fp-profile__aside img { width: 160px; height: 160px; border-radius: 50%; border: 6px solid var(--fp-portrait); object-fit: cover; display: block; }
.fp-profile h2 { font-size: 28px; line-height: 36px; color: var(--fp-ink); }
.fp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fp-tags span {
  font-family: var(--fp-medium); font-weight: 500; font-size: 13px; line-height: 18px;
  padding: 5px 12px; border-radius: 60px; background: var(--fp-accent-bg); border: 1px solid var(--fp-accent);
}
.fp-profile__bio { display: flex; flex-direction: column; gap: 14px; flex: 2 1 520px; min-width: 0; max-width: 760px; }
.fp-team-outro { max-width: 900px; margin: 0 auto; padding: 72px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.fp-team-outro h2 { font-size: 30px; line-height: 38px; color: var(--fp-ink); }
.fp-team-outro img { height: 28px; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .fp-anchors { top: 64px; }
  [id^="b-"] { scroll-margin-top: 128px; }
}

@media (max-width: 767.98px) {
  .fp-section { padding-top: 56px; padding-bottom: 56px; }
  .fp-hero__inner { padding-top: 32px; }
  .fp-brief { margin-bottom: 32px; }
  /* onglets programme -> accordeon : chaque panneau suit son onglet */
  .fp-modules { display: flex; flex-direction: column; gap: 0; }
  .fp-modules__list { display: contents; }
  .fp-modules__panels { display: contents; }
  .fp-modtab { background: #fff; margin-top: 8px; }
  .fp-modpanel { box-shadow: none; border-left: 4px solid var(--fp-rule); padding: 16px 16px 20px; }
  .fp-mod-1 { order: 1; } .fp-mod-2 { order: 2; } .fp-mod-3 { order: 3; }
  .fp-mod-4 { order: 4; } .fp-mod-5 { order: 5; } .fp-mod-6 { order: 6; }
  .fp-mod-7 { order: 7; } .fp-mod-8 { order: 8; } .fp-mod-9 { order: 9; }
  .fp-mod-10 { order: 10; } .fp-mod-11 { order: 11; } .fp-mod-12 { order: 12; }
  .fp-cal__day { min-height: 56px; }
  .fp-cal__tag { font-size: 10px; padding: 2px 3px; }
  .fp-quote p { font-size: 21px; }
  .fp-aide__num { font-size: 48px; }
}

@media (min-width: 768px) {
  .fp-stickybar { display: none; }
}

/* --- Modales (détail des montants, politique des prix, diplômes) ---------
   style.css stylait ces tableaux sous « .formation-infos-specific », un
   conteneur que la refonte a supprime : les regles ci-dessous les reprennent
   a leur compte, scopees sous .fp-modal pour ne rien changer aux pages
   soeurs qui utilisent les memes classes.
   ------------------------------------------------------------------------ */
/* la modale porte aussi .fp et son modificateur de filiere : elle herite
   donc des variables, y compris la couleur d'accent */
.fp-modal { font-family: var(--fp-text); color: var(--fp-ink); }
.fp-modal .modal-dialog { max-width: 920px; margin: 32px auto; }
.fp-modal .modal-content {
  border: none; border-radius: 0; border-top: 6px solid var(--fp-accent);
  box-shadow: 0 0 30px rgba(0,0,0,.25); background: #fff;
}
.fp-modal .modal-body { padding: clamp(24px, 3vw, 40px); }
.fp-modal .close {
  position: absolute; top: 14px; right: 18px; z-index: 2;
  font-size: 30px; line-height: 1; font-weight: 400; color: var(--fp-ink-2);
  opacity: 1; background: none; border: none; padding: 4px 8px; cursor: pointer;
  transition: color .3s ease-in-out;
}
.fp-modal .close:hover, .fp-modal .close:focus { color: var(--fp-ink); background: none; opacity: 1; }
.fp-modal__eyebrow {
  display: block; font-family: var(--fp-medium); font-weight: 500; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--fp-brown-dark); margin-bottom: 6px;
}
.fp-modal h3 {
  font-family: var(--fp-display); font-weight: 500; font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2; color: var(--fp-ink); margin: 0 0 20px;
}
.fp-modal p { font-family: var(--fp-text); font-size: 16px; line-height: 24px; color: var(--fp-ink); margin: 0; }
.fp-modal .body-text { margin-bottom: 24px; }
.fp-modal a { color: var(--fp-green); font-family: var(--fp-medium); font-weight: 500; }
.fp-modal a:hover { color: var(--fp-green-dark); }
.fp-modal ul { margin: 0; padding: 0; list-style: none; }
.fp-modal ul li {
  padding: 12px 0 12px 22px; border-top: 1px solid var(--fp-rule); position: relative;
  font-size: 16px; line-height: 24px;
}
.fp-modal ul li:last-child { border-bottom: 1px solid var(--fp-rule); }
.fp-modal ul li::before {
  content: ""; position: absolute; left: 0; top: 21px;
  width: 8px; height: 8px; border-radius: 8px; background: var(--fp-accent);
}

/* tableaux : cinq colonnes pour les montants, quatre pour les offres */
.fp-modal .price-table__header,
.fp-modal .price-table__el,
.fp-modal .price-table__footer {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 12px;
  align-items: baseline; padding: 11px 12px;
}
.fp-modal .policy-price__header,
.fp-modal .policy-price__el {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 12px;
  align-items: baseline; padding: 11px 12px;
}
.fp-modal .price-table__header,
.fp-modal .policy-price__header {
  border-bottom: 1px solid var(--fp-rule);
}
.fp-modal .price-table__header p,
.fp-modal .policy-price__header p {
  font-family: var(--fp-medium); font-weight: 500; font-size: 13px;
  letter-spacing: .04em; text-transform: uppercase; color: var(--fp-brown-dark); line-height: 18px;
}
.fp-modal .price-table__el,
.fp-modal .policy-price__el { border-bottom: 1px solid var(--fp-rule); font-size: 15px; }
.fp-modal .price-table__el p,
.fp-modal .policy-price__el p { font-size: 15px; line-height: 21px; }
.fp-modal .price-table__el:nth-of-type(even),
.fp-modal .policy-price__el:nth-of-type(even) { background: var(--fp-accent-bg); }
.fp-modal .price-table__el p:first-child,
.fp-modal .policy-price__el p:first-child { font-family: var(--fp-medium); font-weight: 500; }
.fp-modal .price-table__footer {
  background: var(--fp-beige); border-bottom: 3px solid var(--fp-accent); margin-top: 2px;
}
.fp-modal .price-table__footer p { font-family: var(--fp-medium); font-weight: 500; font-size: 15px; }

/* sous 768 px les colonnes deviennent des paires libelle / valeur */
@media (max-width: 767.98px) {
  .fp-modal .modal-dialog { margin: 12px; }
  .fp-modal .price-table__header,
  .fp-modal .policy-price__header { display: none; }
  .fp-modal .price-table__el,
  .fp-modal .price-table__footer,
  .fp-modal .policy-price__el {
    /* align-items reste a baseline depuis la vue en colonnes : il empeche
       les lignes de s'etirer, donc la valeur ne se cale pas a droite */
    display: flex; flex-direction: column; align-items: stretch;
    gap: 4px; padding: 14px 12px;
  }
  .fp-modal .price-table__el p,
  .fp-modal .price-table__footer p,
  .fp-modal .policy-price__el p {
    display: flex; justify-content: space-between; gap: 16px;
  }
  .fp-modal .price-table__el p::before,
  .fp-modal .price-table__footer p::before,
  .fp-modal .policy-price__el p::before {
    content: attr(data-title);
    font-family: var(--fp-text); font-weight: 400; font-size: 13px; color: var(--fp-ink-2);
  }
}

/* --- Elements propres aux pages MTE -------------------------------------- */
.fp-swatch--mte { background: #43AA8B; }

/* portrait manquant : initiales dans le meme cercle */
.fp-team__initials {
  width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--fp-portrait);
  background: var(--fp-accent-bg); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fp-display); font-weight: 500; font-size: 22px; color: var(--fp-brown);
}
.fp-team__initials--sm { width: 56px; height: 56px; font-size: 18px; }
.fp-team__initials--lg { width: 160px; height: 160px; border-width: 6px; font-size: 48px; }

/* les deux parcours du rythme en 4 ans */
.fp-parcours { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; align-items: start; }
.fp-parcours__col {
  background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.1); border-top: 4px solid var(--fp-accent);
  padding: 24px; display: flex; flex-direction: column; gap: 18px;
}
.fp-parcours__head { display: flex; flex-direction: column; gap: 4px; }
.fp-parcours__title { font-family: var(--fp-display); font-weight: 500; font-size: 22px; line-height: 28px; }
.fp-parcours__annees { display: flex; flex-direction: column; }
.fp-parcours__annee {
  display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--fp-rule);
}
.fp-parcours__label { font-family: var(--fp-medium); font-weight: 500; font-size: 15px; }
.fp-parcours__modules { display: flex; flex-wrap: wrap; gap: 6px; }
.fp-parcours__module {
  font-size: 13px; line-height: 18px; padding: 4px 9px; white-space: nowrap;
  background: var(--fp-beige); color: var(--fp-ink);
}
.fp-parcours__module b { font-family: var(--fp-medium); font-weight: 500; }
.fp-parcours__module--tc { background: #EBF4FF; }
.fp-parcours__module--spec { background: var(--fp-accent-bg); }
.fp-parcours__module--mp { background: #F9F5EF; }
.fp-parcours__forts { font-family: var(--fp-medium); font-weight: 500; font-size: 15px; }

@media (max-width: 575.98px) {
  .fp-parcours__annee { grid-template-columns: 1fr; gap: 6px; }
}

/* L'illustration MTE est un JPEG a fond blanc : multiply la fond dans le
   fond pastel du hero sans retoucher le fichier. */
.fp--mte .fp-hero__illu { mix-blend-mode: multiply; }

/* --- Page contact : acces et plan ---------------------------------------- */
.fp-acces { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px 48px; align-items: start; }
.fp-acces__col { display: flex; flex-direction: column; gap: 28px; }
.fp-acces__mode { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--fp-rule); padding-top: 16px; }
.fp-acces__titre { font-family: var(--fp-display); font-weight: 500; font-size: 20px; line-height: 26px; }
.fp-acces__plan { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.fp-acces__plan a { display: block; }
.fp-acces__plan img {
  width: 100%; height: auto; display: block; background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,.12); transition: all .3s ease-in-out;
}
.fp-acces__plan a:hover img { box-shadow: 0 0 30px rgba(0,0,0,.2); }
/* Hero sans illustration (page contact) : le titre se cale en haut, a la
   meme hauteur que l'encart, au lieu d'etre pousse en bas. */
.fp-hero--simple .fp-hero__inner { align-items: start; padding-bottom: 56px; }
.fp-hero--simple .fp-hero__main { align-self: start; }
.fp-hero--simple .fp-brief { margin-bottom: 0; }

.fp-map { border-top: 1px solid var(--fp-rule); }
.fp-map iframe { display: block; }
