

.fm-page {
  --fm-ease: cubic-bezier(.22, 1, .36, 1);
  --fm-fast: .28s;
  --fm-mid: .48s;
}
.fm-page [id] { scroll-margin-top: calc(var(--nav-h, 72px) + 24px); }

/* ============================================================
   HERO
============================================================ */
.fm-hero { padding: 76px 0 90px; }
.fm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 3.5rem;
  align-items: center;
  margin-top: 1.25rem;
}
.fm-hero h1 {
  margin: 1.1rem 0 1.15rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.025em;
}
.fm-hero h1 span {
  background: linear-gradient(90deg, var(--accent), #A78BFA);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.fm-hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.75rem; }
.fm-hero-facts li {
  display: inline-flex; align-items: center; gap: .5rem;
  color: rgba(226,232,255,.82);
  font-size: .89rem;
}
.fm-hero-facts i { color: var(--accent); }

/* ---- Carte de programme flottante ---- */
.fm-hero-card {
  padding: 1.5rem;
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(255,255,255,.13), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 34px 70px -34px rgba(0,0,0,.7);
  animation: fm-float 8s ease-in-out infinite alternate;
}
@keyframes fm-float { to { transform: translate3d(0, -12px, 0); } }

.fm-hc-top { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem; }
.fm-hc-ic {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--blue), var(--accent));
  color: #fff; font-size: 1.15rem; line-height: 1;
}
.fm-hc-top strong { display: block; color: #fff; font-size: 1rem; }
.fm-hc-top small { color: rgba(226,232,255,.65); font-size: .8rem; }

.fm-hc-list { display: grid; gap: .5rem; }
.fm-hc-list li {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem .8rem;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.9);
  font-size: .86rem;
  opacity: 0;
  animation: fm-in .5s var(--fm-ease) forwards;
  animation-delay: calc(var(--d) * .12s + .6s);
}
@keyframes fm-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.fm-hc-list b {
  width: 24px; height: 24px; flex-shrink: 0;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,194,255,.2);
  color: var(--accent);
  font-size: .72rem; font-weight: 800;
}
.fm-hc-list span { margin-left: auto; color: rgba(226,232,255,.55); font-size: .74rem; white-space: nowrap; }
.fm-hc-foot {
  display: flex; align-items: center; gap: .5rem;
  margin-top: 1.1rem; padding-top: .9rem;
  border-top: 1px dashed rgba(255,255,255,.14);
  color: rgba(226,232,255,.7);
  font-size: .8rem;
}
.fm-hc-foot i { color: #FBBF24; }

/* ============================================================
   CONFIRMATION D'ENVOI
============================================================ */
/* La confirmation est un dialogue : elle se place devant la page et
   se referme. L'attribut « open » étant posé dès le HTML, elle reste
   visible même sans JavaScript ; le script la rouvre alors en mode
   modal pour obtenir le fond assombri et la touche Échap. */
.fm-done {
  position: fixed; z-index: 1000;
  inset: 0;
  /* Le reset global du site applique margin:0 à tout : sans cette
     ligne, un <dialog> se colle en haut à gauche au lieu d'être
     centré. C'est le même correctif que sur .fm-modal. */
  margin: auto;
  width: min(720px, calc(100vw - 2.5rem));
  max-width: none;
  height: fit-content;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding: 2.75rem 2rem 2.25rem;
  text-align: center;
  border: 1px solid #86EFAC;
  border-radius: 24px;
  background: linear-gradient(160deg, #F0FDF4, #fff 70%);
  color: var(--text);
  box-shadow: 0 50px 100px -30px rgba(15,23,42,.55);
}
.fm-done[open] { display: block; animation: fm-pop .5s var(--fm-ease); }
.fm-done::backdrop {
  background: rgba(4,10,28,.62);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  animation: fm-fade .3s ease;
}
@keyframes fm-pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }

.fm-done-fermer {
  position: absolute; top: .85rem; right: .85rem;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(22,163,74,.12);
  color: #15803D;
  font-size: .95rem; text-decoration: none;
  transition: background var(--fm-fast), color var(--fm-fast), transform var(--fm-fast);
}
.fm-done-fermer:hover, .fm-done-fermer:focus-visible { background: #16A34A; color: #fff; transform: rotate(90deg); }

.fm-done-ic {
  width: 64px; height: 64px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #16A34A; color: #fff; font-size: 1.5rem;
  box-shadow: 0 16px 34px -16px rgba(22,163,74,.8);
}
.fm-done h2 { color: var(--text); font-size: 1.6rem; margin-bottom: .75rem; }
.fm-done p { margin-bottom: 1.75rem; }
.fm-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.fm-done-aide { margin: 1.25rem 0 0 !important; color: var(--text-muted); font-size: .8rem; }

@media (max-width: 560px) {
  .fm-done { padding: 2.4rem 1.25rem 1.9rem; border-radius: 20px; }
  .fm-done h2 { font-size: 1.28rem; }
  .fm-done-actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .fm-done[open] { animation: none; }
  .fm-done::backdrop { animation: none; }
  .fm-done-fermer:hover { transform: none; }
}

/* ============================================================
   CE QUI DISTINGUE NOS FORMATIONS
============================================================ */
.fm-why { padding: 3.5rem 0 0; background: #fff; }
.fm-why-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.fm-why-list li {
  display: flex; align-items: flex-start; gap: 1rem;
  min-width: 0;
  padding: 1.35rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.fm-why-list .fm-why-ic {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--blue), var(--accent));
  color: #fff; font-size: 1.05rem; line-height: 1;
}
.fm-why-list .fm-why-ic i { font-size: inherit; color: inherit; }
.fm-why-list strong { display: block; color: var(--text); font-size: 1rem; margin-bottom: .25rem; }
.fm-why-list li > div > span { display: block; color: var(--text-muted); font-size: .88rem; line-height: 1.6; }

/* ============================================================
   SÉLECTEUR DE PROFIL
============================================================ */
.fm-main { padding: 70px 0 90px; background: #fff; }
.fm-main .container { max-width: 1180px; }

.fm-profils {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: .9rem;
}
.fm-profil {
  position: relative;
  display: flex; align-items: center; gap: .85rem;
  min-width: 0;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: border-color var(--fm-fast), background var(--fm-fast), transform var(--fm-fast) var(--fm-ease);
}
.fm-profil input { position: absolute; opacity: 0; width: 0; height: 0; }
.fm-profil:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--blue) 40%, var(--border)); }
.fm-profil.is-on {
  border-color: var(--blue);
  background: var(--blue-light);
  box-shadow: 0 16px 34px -26px rgba(0,102,255,.9);
}
.fm-profil-ic {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg2);
  color: var(--text-muted);
  font-size: .95rem; line-height: 1;
  transition: background var(--fm-fast), color var(--fm-fast);
}
.fm-profil.is-on .fm-profil-ic { background: var(--blue); color: #fff; }
.fm-profil-txt { min-width: 0; }
.fm-profil-txt b { display: block; color: var(--text); font-size: .95rem; }
.fm-profil-txt small { display: block; color: var(--text-muted); font-size: .76rem; line-height: 1.35; }
.fm-profil input:focus-visible + .fm-profil-ic { outline: 3px solid rgba(0,102,255,.45); outline-offset: 2px; }

.fm-profil-aide {
  margin-bottom: 1.75rem;
  padding: .75rem 1.1rem;
  border-radius: 12px;
  background: var(--bg);
  border-left: 3px solid var(--blue);
  color: var(--text-muted);
  font-size: .87rem; line-height: 1.6;
}

/* ============================================================
   RECHERCHE
============================================================ */
.fm-search { position: relative; display: flex; align-items: center; gap: .5rem; margin-bottom: .9rem; }
.fm-search > i {
  position: absolute; top: 50%; left: 1.15rem;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.fm-search input {
  width: 100%;
  padding: .85rem 3rem .85rem 2.8rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  outline: none;
  transition: border-color var(--fm-fast), box-shadow var(--fm-fast);
}
.fm-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,102,255,.12); }
.fm-search input::-webkit-search-cancel-button { display: none; }
.fm-search-clear {
  position: absolute; top: 50%; right: .6rem;
  width: 32px; height: 32px;
  transform: translateY(-50%);
  border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg2);
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--fm-fast), color var(--fm-fast);
}
.fm-search-clear[hidden] { display: none; }
.fm-search-clear:hover { background: var(--blue); color: #fff; }

/* ============================================================
   FILTRES PAR DOMAINE
============================================================ */
.fm-filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.fm-filter {
  --c: var(--text);
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .95rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: .85rem; font-weight: 600;
  cursor: pointer;
  transition: background var(--fm-fast), border-color var(--fm-fast), color var(--fm-fast);
}
.fm-filter i { color: var(--c); font-size: .8rem; }
.fm-filter span { padding: .02rem .45rem; border-radius: 50px; background: var(--bg2); font-size: .7rem; }
.fm-filter:hover { border-color: var(--c); color: var(--text); }
.fm-filter.is-on { background: var(--c); border-color: var(--c); color: #fff; }
.fm-filter.is-on i { color: #fff; }
.fm-filter.is-on span { background: rgba(255,255,255,.22); color: #fff; }

.fm-result { margin-bottom: 1.75rem; font-size: .9rem; font-weight: 600; }

/* ============================================================
   CARTE DE FORMATION
============================================================ */
/* Fiches réduites : deux par ligne, le détail est dans le dialogue */
.fm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 1.5rem;
  align-items: start;
}
.fm-card {
  --c: var(--blue);
  position: relative;
  display: flex; flex-direction: column;
  min-width: 0;
  padding: 1.6rem 1.6rem 0;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 24px 50px -44px rgba(15,23,42,.6);
  transition: border-color var(--fm-mid), transform var(--fm-mid) var(--fm-ease);
}
.fm-card[hidden] { display: none; }
.fm-card::before {
  content: '';
  position: absolute; inset: 0 0 auto 0;
  height: 4px;
  z-index: 1;
  background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 35%, #fff));
}
.fm-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: 0 34px 70px -38px color-mix(in srgb, var(--c) 65%, transparent);
  opacity: 0; pointer-events: none;
  transition: opacity var(--fm-mid);
}
.fm-card:hover { transform: translate3d(0, -4px, 0); border-color: color-mix(in srgb, var(--c) 35%, var(--border)); }
.fm-card:hover::after { opacity: 1; }
.fm-card.is-target { animation: fm-flash 1.6s var(--fm-ease); }
@keyframes fm-flash {
  0%, 100% { box-shadow: 0 24px 50px -44px rgba(15,23,42,.6); }
  25%      { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 45%, transparent); }
}

/* ============================================================
   VISUELS DE LA FORMATION
   Grand format 16/9, sans voile ni filtre : l'image doit être
   lisible, c'est elle qui donne envie.
============================================================ */
.fm-media {
  position: relative;
  margin: -1.6rem -1.6rem 1.15rem;
  overflow: hidden;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.fm-carousel { position: relative; overflow: hidden; }
.fm-track {
  display: flex;
  width: 100%;
  transition: transform var(--fm-slow, .68s) var(--fm-ease);
  backface-visibility: hidden;
}
.fm-card:hover .fm-track, .fm-media.is-moving .fm-track { will-change: transform; }

.fm-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  padding: 0; border: 0;
  background: var(--bg2);
  line-height: 0;
  cursor: zoom-in;
}
.fm-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: translate3d(0, 0, 0);
  transition: transform 1s var(--fm-ease);
}
.fm-card:hover .fm-slide.is-on img { transform: scale3d(1.035, 1.035, 1); }
.fm-slide:focus-visible { outline: 3px solid var(--c); outline-offset: -3px; }

/* Vignette de remplacement quand aucune image n'est renseignée */
.fm-media-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  aspect-ratio: 16 / 9;
  background:
          radial-gradient(420px 200px at 50% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%),
          linear-gradient(150deg, color-mix(in srgb, var(--c) 10%, var(--bg)), var(--bg));
  color: color-mix(in srgb, var(--c) 75%, #0F172A);
}
.fm-media-ph i { font-size: 2rem; opacity: .8; }
.fm-media-ph span { font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* ---- Bouton « Voir les images » ---- */
.fm-see {
  position: absolute; bottom: .7rem; left: .7rem; z-index: 4;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .9rem;
  border: 0; border-radius: 50px;
  background: rgba(15,23,42,.78);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 700;
  cursor: pointer;
  transition: background var(--fm-fast), transform var(--fm-fast) var(--fm-ease);
}
.fm-see:hover { background: var(--c); transform: translateY(-2px); }
.fm-see:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.fm-media-count {
  position: absolute; top: .7rem; right: .7rem; z-index: 4;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .6rem;
  border-radius: 50px;
  background: rgba(15,23,42,.66);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff;
  font-size: .73rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---- Flèches et pastilles ---- */
.fm-nav {
  position: absolute; top: 50%; z-index: 4;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.94);
  color: var(--text);
  font-size: .8rem;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(15,23,42,.6);
  opacity: 0;
  transition: opacity var(--fm-fast), transform var(--fm-fast) var(--fm-ease), background var(--fm-fast), color var(--fm-fast);
}
.fm-nav--prev { left: .6rem; transform: translate(-8px, -50%); }
.fm-nav--next { right: .6rem; transform: translate(8px, -50%); }
.fm-card:hover .fm-nav, .fm-nav:focus-visible { opacity: 1; transform: translate(0, -50%); }
.fm-nav:hover { background: var(--c); color: #fff; }
@media (hover: none) { .fm-nav { opacity: 1; transform: translate(0, -50%); } }

.fm-dots {
  position: absolute; bottom: .75rem; right: .7rem; z-index: 4;
  display: flex; gap: .3rem;
}
.fm-dot { width: 20px; height: 16px; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.fm-dot span {
  display: block; width: 7px; height: 7px;
  border-radius: 50px;
  background: rgba(255,255,255,.7);
  box-shadow: 0 1px 4px rgba(15,23,42,.6);
  transition: width var(--fm-mid) var(--fm-ease), background var(--fm-fast);
}
.fm-dot.is-on span { width: 20px; background: #fff; }

/* ---- Contenu de la fiche réduite ---- */
.fm-card-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .85rem; }
.fm-tag {
  --t: var(--text-muted);
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .7rem;
  border-radius: 50px;
  background: color-mix(in srgb, var(--t) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--t) 28%, transparent);
  color: color-mix(in srgb, var(--t) 80%, #0F172A);
  font-size: .74rem; font-weight: 700;
}
.fm-tag--dom { --t: var(--c); }
.fm-tag--hot { --t: #DC2626; }
.fm-card > h3 { color: var(--text); font-size: 1.15rem; line-height: 1.35; }
.fm-card-resume {
  margin-top: .5rem;
  color: var(--text-muted);
  font-size: .9rem; line-height: 1.6;
}

.fm-meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin-top: 1rem; }
.fm-meta li {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--text-muted);
  font-size: .82rem;
}
.fm-meta i { color: var(--c); font-size: .78rem; }

/* ---- Bandeau tarif ---- */
.fm-price {
  margin: 1.15rem -1.6rem 0;
  padding: 1rem 1.6rem;
  background: linear-gradient(120deg, color-mix(in srgb, var(--c) 8%, var(--bg)), var(--bg));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.fm-price-main { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-bottom: .6rem; }
.fm-price-val {
  color: var(--text);
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.fm-price-val.is-quote { font-size: 1.25rem; }
.fm-price-unit { color: var(--text-muted); font-size: .86rem; }

.fm-price-all { font-size: .84rem; }
.fm-price-all summary {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .85rem;
  border-radius: 50px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: border-color var(--fm-fast), color var(--fm-fast);
}
.fm-price-all summary::-webkit-details-marker { display: none; }
.fm-price-all summary::after {  font-family: 'Font Awesome 6 Free';
  font-weight: 900; font-size: .6rem; transition: transform var(--fm-fast); }
.fm-price-all[open] summary::after { transform: rotate(180deg); }
.fm-price-all summary:hover { border-color: var(--c); color: var(--text); }
.fm-price-all ul {
  display: grid; gap: .35rem;
  margin-top: .75rem;
  padding: .9rem 1.1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  animation: fm-pop .35s var(--fm-ease);
}
.fm-price-all li { display: flex; justify-content: space-between; gap: 1rem; font-size: .84rem; }
.fm-price-all li span { color: var(--text-muted); }
.fm-price-all li b { color: var(--text); white-space: nowrap; }
.fm-price-all > p { margin-top: .6rem; color: var(--text-muted); font-size: .76rem; line-height: 1.5; }

/* ---- Corps ---- */
.fm-card-body { padding: 1.75rem 2rem; }
.fm-desc { font-size: .93rem; line-height: 1.75; margin-bottom: 1.5rem; }

.fm-block { margin-bottom: 1.75rem; }
.fm-block h4 {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  margin-bottom: .9rem;
  color: var(--text);
  font-size: 1rem;
}
.fm-block h4 > i { color: var(--c); font-size: .9rem; }
.fm-chap-count {
  margin-left: auto;
  padding: .12rem .6rem;
  border-radius: 50px;
  background: var(--bg2);
  color: var(--text-muted);
  font-size: .73rem; font-weight: 600;
}

.fm-obj { display: grid; gap: .5rem; }
.fm-obj li {
  display: flex; align-items: flex-start; gap: .65rem;
  color: var(--text);
  font-size: .9rem; line-height: 1.55;
}
.fm-obj i {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: .15rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #DCFCE7; color: #15803D; font-size: .58rem;
}

/* ---- Programme : chapitres et sous-chapitres ---- */
.fm-prog { display: grid; gap: .6rem; }
/* Dans le dialogue large, un chapitre replié occupe toute la largeur
   mais le texte ne s'étire pas au-delà du confort de lecture. */
.fm-modal .fm-chap-head strong, .fm-modal .fm-chap-head small { max-width: 80ch; }
.fm-modal .fm-desc, .fm-modal .fm-obj li, .fm-modal .fm-sous li { max-width: 92ch; }
.fm-chap {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
  transition: border-color var(--fm-fast), background var(--fm-fast);
}
.fm-chap[open] { border-color: color-mix(in srgb, var(--c) 35%, var(--border)); background: color-mix(in srgb, var(--c) 3%, #fff); }
.fm-chap summary {
  display: flex; align-items: center; gap: .9rem;
  padding: .95rem 1.1rem;
  cursor: pointer;
  list-style: none;
}
.fm-chap summary::-webkit-details-marker { display: none; }
.fm-chap summary:hover { background: color-mix(in srgb, var(--c) 5%, #fff); }
.fm-chap summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--c) 45%, transparent); outline-offset: -3px; }
.fm-chap-num {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--c) 14%, #fff);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  color: color-mix(in srgb, var(--c) 85%, #0F172A);
  font-size: .82rem; font-weight: 800;
}
.fm-chap[open] .fm-chap-num { background: var(--c); border-color: var(--c); color: #fff; }
.fm-chap-head { flex: 1; min-width: 0; }
.fm-chap-head strong { display: block; color: var(--text); font-size: .95rem; line-height: 1.4; }
.fm-chap-head small { display: block; margin-top: .15rem; color: var(--text-muted); font-size: .82rem; line-height: 1.5; }
.fm-chap-time {
  flex-shrink: 0;
  padding: .15rem .6rem;
  border-radius: 50px;
  background: var(--bg2);
  color: var(--text-muted);
  font-size: .72rem; font-weight: 700;
  white-space: nowrap;
}
.fm-chap-arrow { flex-shrink: 0; color: var(--text-muted); font-size: .72rem; transition: transform var(--fm-fast) var(--fm-ease); }
.fm-chap[open] .fm-chap-arrow { transform: rotate(180deg); }

.fm-sous { padding: 0 1.1rem 1rem 3.2rem; display: grid; gap: .4rem; }
.fm-sous li {
  display: flex; align-items: flex-start; gap: .7rem;
  min-width: 0;
  color: var(--text);
  font-size: .88rem; line-height: 1.55;
  opacity: 0;
  animation: fm-in .38s var(--fm-ease) forwards;
  animation-delay: calc(var(--d) * .05s);
}
.fm-sous-num {
  flex-shrink: 0;
  color: color-mix(in srgb, var(--c) 75%, #0F172A);
  font-size: .78rem; font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding-top: .1rem;
}
.fm-sous small { display: block; color: var(--text-muted); font-size: .8rem; }

/* ---- Prérequis et méthode ---- */
.fm-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 1.25rem; }
.fm-col {
  padding: 1.15rem 1.3rem;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.fm-col h5 {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .6rem;
  color: var(--text);
  font-size: .88rem;
}
.fm-col h5 i { color: var(--c); font-size: .8rem; }
.fm-col ul { display: grid; gap: .35rem; }
.fm-col li {
  position: relative;
  padding-left: .95rem;
  color: var(--text-muted);
  font-size: .85rem; line-height: 1.55;
}
.fm-col li::before {
  content: '';
  position: absolute; left: 0; top: .55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--c);
}

.fm-public {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .85rem 1.1rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--c) 7%, #fff);
  border: 1px dashed color-mix(in srgb, var(--c) 30%, var(--border));
  font-size: .87rem; line-height: 1.6;
}
.fm-public i { margin-top: .2rem; color: var(--c); flex-shrink: 0; }

/* ---- Pied de carte ---- */
.fm-card-foot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  margin-top: auto;
  padding: 1.15rem 0 1.5rem;
}
.fm-card-foot .btn { justify-content: center; padding-inline: .9rem; font-size: .88rem; }
.fm-detail {
  background: #fff;
  border: 1.5px solid color-mix(in srgb, var(--c) 40%, var(--border));
  color: color-mix(in srgb, var(--c) 85%, #0F172A);
}
.fm-detail:hover { background: color-mix(in srgb, var(--c) 8%, #fff); border-color: var(--c); }
.fm-choose { background: var(--c); border-color: var(--c); }
.fm-choose:hover { background: color-mix(in srgb, var(--c) 85%, #000); }
.fm-ask {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--text-muted);
  font-size: .87rem; font-weight: 600;
}
.fm-ask:hover { color: var(--c); }
.fm-ask i { transition: transform var(--fm-fast); }
.fm-ask:hover i { transform: translateX(3px); }

/* ---- Vides ---- */
.fm-empty, .fm-no-result {
  max-width: 640px; margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
  border: 2px dashed var(--border);
  border-radius: 22px;
}
.fm-no-result[hidden] { display: none; }
.fm-empty-ic {
  width: 64px; height: 64px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-light); color: var(--blue); font-size: 1.4rem;
}
.fm-empty h3, .fm-no-result h3 { color: var(--text); font-size: 1.25rem; margin-bottom: .5rem; }
.fm-empty p, .fm-no-result p { margin-bottom: 1.5rem; }
.fm-dev-note {
  margin-top: 1.5rem; padding: .9rem 1.1rem;
  border-radius: 14px;
  background: #FFFBEB; border: 1px solid #FDE68A;
  color: #92400E; font-size: .82rem;
}
.fm-dev-note code { padding: .05rem .35rem; border-radius: 6px; background: rgba(217,119,6,.14); }

/* ============================================================
   DIALOGUE : PROGRAMME DÉTAILLÉ
============================================================ */
/* Centrage : la règle « *, *::before, *::after { margin: 0 } » de
   main.css annule le margin:auto que le navigateur applique aux
   <dialog> modaux, qui se collaient donc en haut à gauche. On le
   rétablit explicitement, avec inset:0 pour centrer sur les deux axes. */
.fm-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  /* Dialogue large : le programme détaillé mérite de la place, et
     les deux colonnes « prérequis / déroulé » restent côte à côte. */
  width: min(1180px, calc(100vw - 2.5rem));
  max-width: none;
  height: min(94vh, 1060px);
  max-height: calc(100vh - 1.5rem);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 50px 100px -30px rgba(15,23,42,.6);
  overflow: hidden;
}
.fm-modal[open] { display: flex; flex-direction: column; }
.fm-modal::backdrop {
  background: rgba(4,10,28,.62);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  animation: fm-fade .3s ease;
}
@keyframes fm-fade { from { opacity: 0; } }

.fm-modal-top {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.6rem 2.25rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background:
          radial-gradient(520px 200px at 0% 0%, color-mix(in srgb, var(--c) 12%, transparent), transparent 70%),
          #fff;
}
.fm-modal-top > div { flex: 1; min-width: 0; }
.fm-modal-top h3 { margin-top: .6rem; color: var(--text); font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.3; }
.fm-modal-close {
  width: 40px; height: 40px; flex-shrink: 0;
  border: 0; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg2);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--fm-fast), color var(--fm-fast), transform var(--fm-fast);
}
.fm-modal-close:hover { background: var(--text); color: #fff; transform: rotate(90deg); }

.fm-modal-body {
  flex: 1; min-height: 0;
  overflow-y: auto;
  padding: 1.75rem 2.25rem 2rem;
  overscroll-behavior: contain;
}
.fm-meta--modal { margin-top: 0; margin-bottom: 1.25rem; }

/* Vignettes de visuels en tête du programme détaillé */
.fm-modal-gal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.fm-gal-thumb {
  position: relative;
  padding: 0; border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg2);
  cursor: zoom-in;
  line-height: 0;
  transition: border-color var(--fm-fast), transform var(--fm-fast) var(--fm-ease), box-shadow var(--fm-fast);
}
.fm-gal-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.fm-gal-thumb:hover {
  transform: translateY(-3px);
  border-color: var(--c);
  box-shadow: 0 16px 30px -20px color-mix(in srgb, var(--c) 70%, transparent);
}
.fm-gal-ic {
  position: absolute; right: .5rem; bottom: .5rem;
  width: 32px; height: 32px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,23,42,.72);
  color: #fff; font-size: .72rem;
  opacity: 0;
  transition: opacity var(--fm-fast);
}
.fm-gal-thumb:hover .fm-gal-ic, .fm-gal-thumb:focus-visible .fm-gal-ic { opacity: 1; }
.fm-gal-thumb:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }

.fm-modal-prices {
  margin-top: 1.5rem;
  padding: 1.15rem 1.35rem;
  border-radius: 16px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--c) 9%, var(--bg)), var(--bg));
  border: 1px solid color-mix(in srgb, var(--c) 22%, var(--border));
}
.fm-modal-prices h5 {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .7rem;
  color: var(--text); font-size: .9rem;
}
.fm-modal-prices h5 i { color: var(--c); }
.fm-modal-prices ul { display: grid; gap: .4rem; }
.fm-modal-prices li { display: flex; justify-content: space-between; gap: 1rem; font-size: .87rem; }
.fm-modal-prices li span { color: var(--text-muted); }
.fm-modal-prices li b { color: var(--text); white-space: nowrap; }

.fm-modal-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 2.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

/* Le dialogue reste dans une carte : on s'assure qu'aucune règle
   de la carte ne le repositionne quand il n'est pas modal. */
.fm-modal:not([open]) { display: none; }

/* ============================================================
   VISIONNEUSE PLEIN ÉCRAN
============================================================ */
.fm-lightbox {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: rgba(4,10,28,.95);
  color: #fff;
  overflow: hidden;
}
.fm-lightbox[open] { display: flex; flex-direction: column; animation: fm-fade .26s ease; }
.fm-lightbox::backdrop { background: rgba(4,10,28,.7); }
.fm-lightbox.is-settled { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

.fm-lb-top {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.fm-lb-title { flex: 1; min-width: 0; font-size: .98rem; overflow-wrap: anywhere; }
.fm-lb-counter { flex-shrink: 0; color: rgba(226,232,255,.7); font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.fm-lb-close {
  width: 42px; height: 42px; flex-shrink: 0;
  border: 0; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12); color: #fff;
  font-size: 1.05rem; cursor: pointer;
  transition: background var(--fm-fast), transform var(--fm-fast);
}
.fm-lb-close:hover { background: rgba(255,255,255,.25); transform: rotate(90deg); }

.fm-lb-stage {
  position: relative;
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem 5rem;
}
.fm-lb-stage img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 40px 90px -25px rgba(0,0,0,.8);
  backface-visibility: hidden;
}
.fm-lb-nav {
  position: absolute; top: 50%; z-index: 3;
  width: 50px; height: 50px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1); color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background var(--fm-fast), transform var(--fm-mid) var(--fm-ease);
}
.fm-lb-nav[hidden] { display: none; }
.fm-lb-prev { left: 1rem; }
.fm-lb-next { right: 1rem; }
.fm-lb-prev:hover { background: rgba(255,255,255,.24); transform: translateY(-50%) translateX(-4px); }
.fm-lb-next:hover { background: rgba(255,255,255,.24); transform: translateY(-50%) translateX(4px); }

.fm-lb-thumbs {
  display: flex; justify-content: center; gap: .5rem;
  padding: .9rem 1.25rem 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.fm-lb-thumbs::-webkit-scrollbar { display: none; }
.fm-lb-thumbs[hidden] { display: none; }
.fm-lb-thumb {
  flex: 0 0 auto;
  width: 88px; height: 56px;
  padding: 0; overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  opacity: .55; cursor: pointer;
  transition: opacity var(--fm-fast), border-color var(--fm-fast), transform var(--fm-fast) var(--fm-ease);
}
.fm-lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fm-lb-thumb:hover { opacity: .9; transform: translateY(-3px); }
.fm-lb-thumb.is-on { opacity: 1; border-color: var(--accent); transform: translateY(-3px); }

/* ============================================================
   PAGINATION
============================================================ */
.fm-pager {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin-top: 2.25rem;
}
.fm-pager[hidden] { display: none; }
.fm-page-nums { display: flex; flex-wrap: wrap; gap: .35rem; }
.fm-page-btn, .fm-page-num {
  min-width: 40px; height: 40px;
  padding: 0 .65rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: .9rem; font-weight: 700;
  cursor: pointer;
  transition: background var(--fm-fast), border-color var(--fm-fast), color var(--fm-fast), transform var(--fm-fast) var(--fm-ease);
}
.fm-page-btn:hover:not(:disabled), .fm-page-num:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.fm-page-btn:disabled { opacity: .4; cursor: not-allowed; }
.fm-page-num.is-on {
  background: var(--blue); border-color: var(--blue); color: #fff;
  box-shadow: 0 12px 26px -16px rgba(0,102,255,.9);
}

/* ============================================================
   INSCRIPTION (fond sombre)
============================================================ */
.fm-signup {
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  color: #fff;
  background:
          radial-gradient(820px 420px at 90% 0%, rgba(0,194,255,.14), transparent 60%),
          radial-gradient(700px 400px at 0% 100%, rgba(124,58,237,.16), transparent 60%),
          linear-gradient(160deg, var(--sv-navy, #060F26) 0%, var(--sv-navy-2, #0A1A42) 100%);
}
.fm-signup .sv-title h2 { color: #fff; }
.fm-signup .sv-title p  { color: rgba(226,232,255,.75); }
.fm-signup .container { max-width: 1180px; }

.fm-signup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .95fr);
  gap: 2rem;
  align-items: start;
}

/* ---- Formulaire ---- */
.fm-form {
  padding: 2rem;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 40px 80px -50px rgba(0,0,0,.8);
}
.fm-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fm-errors {
  display: flex; align-items: flex-start; gap: .85rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  animation: fm-pop .4s var(--fm-ease);
}
.fm-errors i { margin-top: .2rem; }
.fm-errors strong { display: block; margin-bottom: .3rem; font-size: .95rem; }
.fm-errors ul { display: grid; gap: .2rem; padding-left: 1rem; list-style: disc; font-size: .87rem; }

.fm-fs { border: 0; padding: 0; margin: 0 0 1.75rem; }
.fm-fs:last-of-type { margin-bottom: 0; }
.fm-fs legend {
  display: flex; align-items: center; gap: .65rem;
  margin-bottom: 1.1rem;
  color: var(--text);
  font-size: 1.02rem; font-weight: 700;
}
.fm-fs legend span {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff;
  font-size: .78rem; font-weight: 800;
}

/* Pastilles de profil */
.fm-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.fm-pill { position: relative; cursor: pointer; }
.fm-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.fm-pill > span {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 1rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-size: .88rem; font-weight: 600;
  transition: border-color var(--fm-fast), background var(--fm-fast), color var(--fm-fast), transform var(--fm-fast) var(--fm-ease);
}
.fm-pill > span:hover { transform: translateY(-2px); border-color: var(--blue); color: var(--text); }
.fm-pill input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.fm-pill input:focus-visible + span { outline: 3px solid rgba(0,102,255,.4); outline-offset: 2px; }

/* Rappel de ce que change le profil, sous les pastilles du formulaire */
.fm-pill-aide {
  position: relative;
  margin-top: .85rem;
  padding: .7rem 1rem;
  border-radius: 12px;
  background: var(--bg);
  border-left: 3px solid var(--blue);
  color: var(--text-muted);
  font-size: .85rem; line-height: 1.6;
  transition: background var(--fm-fast), border-color var(--fm-fast);
}
/* Mention passagère « tarifs mis à jour » après un changement de profil */
.fm-pill-aide::after {
  content: 'Tarifs et champs mis à jour';
  position: absolute; top: -.7rem; right: .8rem;
  padding: .12rem .6rem;
  border-radius: 50px;
  background: var(--blue); color: #fff;
  font-size: .7rem; font-weight: 700;
  opacity: 0; transform: translateY(4px);
  pointer-events: none;
  transition: opacity var(--fm-fast), transform var(--fm-fast) var(--fm-ease);
}
.fm-pill-aide.is-maj { background: var(--blue-light); border-color: var(--accent); }
.fm-pill-aide.is-maj::after { opacity: 1; transform: none; }

/* Champs */
.fm-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.fm-field { margin-bottom: 1rem; min-width: 0; }
.fm-field[hidden], .fm-row[hidden] { display: none; }
.fm-field label {
  display: block;
  margin-bottom: .4rem;
  color: var(--text);
  font-size: .87rem; font-weight: 600;
}
.fm-field label em { color: #DC2626; font-style: normal; }
.fm-field label small { color: var(--text-muted); font-weight: 400; }
.fm-field input, .fm-field textarea, .fm-field select {
  width: 100%;
  padding: .75rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  outline: none;
  transition: border-color var(--fm-fast), box-shadow var(--fm-fast);
}
.fm-field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.fm-field input:focus, .fm-field textarea:focus, .fm-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0,102,255,.12);
}
.fm-field.has-error input, .fm-field.has-error textarea, .fm-field.has-error select { border-color: #DC2626; }
.fm-err { margin-top: .35rem; color: #DC2626; font-size: .82rem; }
.fm-hint { margin-top: .35rem; color: var(--text-muted); font-size: .78rem; }
.fm-select { appearance: none; -webkit-appearance: none; background-image: none; cursor: pointer; }

/* ============================================================
   CHAMP DE RECHERCHE DES FORMATIONS
   ------------------------------------------------------------
   Remplace la liste déroulante dès que JavaScript est disponible
   (la classe .is-js est posée par formations.js). Sans lui, la
   liste déroulante native reste affichée et rien ne change.
============================================================ */
.fm-combo .fm-select[hidden] { display: none; }
.fm-combo-ancre { position: relative; }

.fm-combo-boite {
  position: relative;
  display: flex; align-items: center;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fff;
  transition: border-color var(--fm-fast), box-shadow var(--fm-fast);
}
.fm-combo-boite:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,102,255,.12); }
.fm-field.has-error .fm-combo-boite { border-color: #DC2626; }
.fm-combo.is-choisi .fm-combo-boite { border-color: var(--blue); background: var(--blue-light, #F0F5FF); }

.fm-combo-loupe {
  flex-shrink: 0;
  padding-left: .95rem;
  color: var(--text-muted);
  font-size: .9rem;
  transition: color var(--fm-fast);
}
.fm-combo.is-choisi .fm-combo-loupe { color: var(--blue); }

/* La règle .fm-field input plus haut est neutralisée : le cadre est
   désormais porté par .fm-combo-boite, pas par le champ lui-même. */
.fm-field .fm-combo-saisie {
  flex: 1; min-width: 0;
  padding: .75rem .6rem .75rem .65rem;
  border: 0; border-radius: 12px;
  background: none;
  font-size: .95rem; font-weight: 500;
  text-overflow: ellipsis;
}
.fm-field .fm-combo-saisie:focus { border: 0; box-shadow: none; }
.fm-combo-saisie::placeholder { color: var(--text-muted); font-weight: 400; }

.fm-combo-vider, .fm-combo-fleche {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  margin-right: .3rem;
  border: 0; border-radius: 9px;
  background: none;
  color: var(--text-muted);
  font-size: .8rem; cursor: pointer;
  transition: background var(--fm-fast), color var(--fm-fast), transform var(--fm-fast);
}
.fm-combo-fleche { margin-right: .45rem; }
.fm-combo-vider:hover { background: #FEE2E2; color: #DC2626; }
.fm-combo-fleche:hover { background: var(--bg); color: var(--blue); }
.fm-combo-vider[hidden] { display: none; }
.fm-combo.is-ouvert .fm-combo-fleche { transform: rotate(180deg); color: var(--blue); }

/* ---- Le panneau déroulant ---- */
.fm-combo-panneau {
  position: absolute; z-index: 40;
  top: calc(100% + 6px); left: 0; right: 0;
  padding: .4rem;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: #fff;
  box-shadow: 0 18px 46px rgba(6, 15, 38, .16);
  animation: fm-combo-ouvre .18s var(--fm-ease);
}
.fm-combo.is-haut .fm-combo-panneau { top: auto; bottom: calc(100% + 6px); transform-origin: bottom; }
.fm-combo-panneau[hidden] { display: none; }
@keyframes fm-combo-ouvre {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.fm-combo-compte {
  padding: .3rem .65rem .4rem;
  color: var(--text-muted);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .02em; text-transform: uppercase;
}
.fm-combo-liste { max-height: min(52vh, 360px); overflow-y: auto; overscroll-behavior: contain; }
.fm-combo-liste[hidden] { display: none; }

.fm-combo-groupe {
  position: sticky; top: 0; z-index: 1;
  padding: .45rem .65rem .3rem;
  background: #fff;
  color: var(--text-muted);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}

.fm-combo-opt {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 18px;
  align-items: center; gap: .55rem;
  padding: .5rem .6rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--fm-fast);
}
.fm-combo-opt.is-actif { background: var(--bg); }
.fm-combo-opt[aria-selected="true"] { background: var(--blue-light, #F0F5FF); }

.fm-combo-ic {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--c, #0066FF) 12%, #fff);
  color: var(--c, #0066FF);
  font-size: .75rem;
}
.fm-combo-corps { min-width: 0; }
.fm-combo-titre {
  display: block;
  color: var(--text);
  font-size: .9rem; font-weight: 600; line-height: 1.35;
}
.fm-combo-titre mark {
  padding: 0 1px;
  border-radius: 3px;
  background: #FEF08A;
  color: inherit; font-weight: 800;
}
.fm-combo-meta {
  display: block;
  margin-top: .1rem;
  overflow: hidden;
  color: var(--text-muted);
  font-size: .76rem; line-height: 1.4;
  white-space: nowrap; text-overflow: ellipsis;
}
.fm-combo-coche { opacity: 0; color: var(--blue); font-size: .8rem; transition: opacity var(--fm-fast); }
.fm-combo-opt[aria-selected="true"] .fm-combo-coche { opacity: 1; }

.fm-combo-vide, .fm-combo-trop {
  padding: .7rem .75rem;
  color: var(--text-muted);
  font-size: .82rem; line-height: 1.55;
}
.fm-combo-vide[hidden], .fm-combo-trop[hidden] { display: none; }
.fm-combo-vide i { color: var(--blue); }
.fm-combo-trop { border-top: 1px dashed var(--border); font-size: .76rem; }
.fm-combo-tout {
  padding: 0; border: 0; background: none;
  color: var(--blue);
  font: inherit; text-decoration: underline; cursor: pointer;
}

/* Le rappel du choix, sous le champ */
.fm-combo-choix {
  margin-top: .4rem;
  color: var(--c, var(--blue));
  font-size: .78rem; font-weight: 600;
}
.fm-combo-choix[hidden] { display: none; }

/* Message destiné aux lecteurs d'écran uniquement */
.fm-combo-etat {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 560px) {
  /* Sur téléphone, la liste occupe plus de hauteur : la frappe est
     plus coûteuse, on veut voir davantage de résultats d'un coup. */
  .fm-combo-liste { max-height: min(58vh, 420px); }
  .fm-combo-meta { font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fm-combo-panneau { animation: none; }
  .fm-combo .fm-combo-fleche { transition: none; }
}

.fm-consent {
  display: flex; align-items: flex-start; gap: .7rem;
  margin: .5rem 0 1.25rem;
  padding: .9rem 1.1rem;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: .85rem; line-height: 1.6;
}
.fm-consent.has-error { border-color: #DC2626; background: #FEF2F2; }
.fm-consent input { width: 18px; height: 18px; margin-top: .15rem; flex-shrink: 0; accent-color: var(--blue); }

.fm-submit { width: 100%; justify-content: center; }
.fm-submit.is-loading { pointer-events: none; opacity: .75; }
.fm-submit.is-loading i { animation: fm-spin 1s linear infinite; }
@keyframes fm-spin { to { transform: rotate(360deg); } }
.fm-legal { margin-top: .75rem; text-align: center; color: var(--text-muted); font-size: .78rem; }

/* ---- Récapitulatif ---- */
.fm-summary { position: sticky; top: calc(var(--nav-h, 72px) + 20px); display: grid; gap: 1rem; }
.fm-sum-card {
  padding: 1.5rem;
  border-radius: 22px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.fm-sum-title {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: 1.15rem;
  color: #fff;
  font-size: .95rem; font-weight: 700;
}
.fm-sum-title i { color: var(--accent); }

.fm-sum-list { display: grid; gap: .65rem; }
.fm-sum-list > div {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding-bottom: .65rem;
  border-bottom: 1px dashed rgba(255,255,255,.12);
}
.fm-sum-list dt { color: rgba(226,232,255,.6); font-size: .82rem; flex-shrink: 0; }
.fm-sum-list dd { color: #fff; font-size: .86rem; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.fm-sum-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-top: 1.1rem;
  padding: .9rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(0,102,255,.3), rgba(0,194,255,.18));
  border: 1px solid rgba(0,194,255,.35);
}
.fm-sum-total span { color: rgba(226,232,255,.8); font-size: .84rem; }
.fm-sum-total strong {
  color: #fff;
  font-size: 1.3rem; font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: transform var(--fm-fast) var(--fm-ease);
}
.fm-sum-total strong.is-bump { animation: fm-bump .45s var(--fm-ease); }
@keyframes fm-bump { 40% { transform: scale(1.09); } }
.fm-sum-note { margin-top: .7rem; color: rgba(226,232,255,.6); font-size: .78rem; line-height: 1.55; }

.fm-sum-trust { display: grid; gap: .55rem; padding: 0 .35rem; }
.fm-sum-trust li {
  display: flex; align-items: flex-start; gap: .6rem;
  color: rgba(226,232,255,.78);
  font-size: .83rem; line-height: 1.5;
}
.fm-sum-trust i { margin-top: .22rem; color: var(--accent); font-size: .78rem; flex-shrink: 0; }

/* ============================================================
   QUESTIONS FRÉQUENTES
============================================================ */
.fm-faq { padding: 80px 0; background: #fff; }
.fm-faq .container { max-width: 900px; }
.fm-faq-list { display: grid; gap: .75rem; }
.fm-faq-item {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
  transition: border-color var(--fm-fast), background var(--fm-fast);
}
.fm-faq-item[open] { border-color: color-mix(in srgb, var(--blue) 35%, var(--border)); background: #fff; }
.fm-faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.35rem;
  color: var(--text);
  font-size: .98rem; font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.fm-faq-item summary::-webkit-details-marker { display: none; }
.fm-faq-item summary i {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-light); color: var(--blue);
  font-size: .7rem;
  transition: transform var(--fm-fast) var(--fm-ease);
}
.fm-faq-item[open] summary i { transform: rotate(45deg); background: var(--blue); color: #fff; }
.fm-faq-item > p {
  padding: 0 1.35rem 1.25rem;
  font-size: .91rem; line-height: 1.75;
  animation: fm-in .35s var(--fm-ease);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
  .fm-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .fm-hero-card { max-width: 460px; }
  .fm-signup-grid { grid-template-columns: 1fr; }
  .fm-summary { position: static; }
  .fm-profils { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm-why-list { grid-template-columns: 1fr; }
  .fm-modal { width: calc(100vw - 1.5rem); height: min(95vh, 1000px); }
  .fm-modal-top, .fm-modal-foot { padding-left: 1.6rem; padding-right: 1.6rem; }
  .fm-modal-body { padding-left: 1.6rem; padding-right: 1.6rem; }
}
@media (max-width: 720px) {
  .fm-hero { padding: 56px 0 64px; }
  .fm-main { padding: 50px 0 70px; }
  .fm-signup, .fm-faq { padding: 60px 0; }
  .fm-card { padding: 1.3rem 1.25rem 0; }
  .fm-media { margin: -1.3rem -1.25rem 1rem; }
  .fm-modal-gal { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .fm-lb-stage { padding: .75rem; }
  .fm-lb-nav { top: auto; bottom: .5rem; width: 44px; height: 44px; transform: none; }
  .fm-lb-prev { left: .75rem; } .fm-lb-next { right: .75rem; }
  .fm-lb-prev:hover, .fm-lb-next:hover { transform: none; }
  .fm-lb-thumb { width: 66px; height: 44px; }
  .fm-price { margin-inline: -1.25rem; padding-inline: 1.25rem; }
  .fm-card-foot { grid-template-columns: 1fr; }
  .fm-modal { inset: 0; margin: 0; width: 100vw; max-width: 100vw; height: 100%; max-height: 100%; border-radius: 0; }
  .fm-modal .fm-chap-head strong, .fm-modal .fm-chap-head small,
  .fm-modal .fm-desc, .fm-modal .fm-obj li, .fm-modal .fm-sous li { max-width: none; }
  .fm-modal-top, .fm-modal-body, .fm-modal-foot { padding-left: 1.15rem; padding-right: 1.15rem; }
  .fm-modal-foot { flex-direction: column; align-items: stretch; }
  .fm-modal-foot .btn { justify-content: center; }
  .fm-modal-foot .fm-ask { justify-content: center; }
  .fm-cols, .fm-row { grid-template-columns: 1fr; }
  .fm-sous { padding-left: 1.5rem; }
  .fm-form { padding: 1.4rem 1.2rem; }
  .fm-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px 1rem; padding: .15rem 18px; scrollbar-width: none; }
  .fm-filters::-webkit-scrollbar { display: none; }
  .fm-filter { flex-shrink: 0; }
  .fm-card-foot { flex-direction: column; align-items: stretch; }
  .fm-choose { justify-content: center; }
  .fm-ask { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .fm-page *, .fm-page *::before, .fm-page *::after { animation: none !important; transition: none !important; }
  .fm-hc-list li, .fm-sous li { opacity: 1; }
  .fm-modal::backdrop { animation: none; }
  .fm-slide img, .fm-card:hover .fm-slide.is-on img { transform: none; }
  .fm-nav { opacity: 1; transform: translate(0, -50%); }
  .fm-hero-card { transform: none; }
}