/* ==========================================================================
   MPB - Annuaire des formations
   Charte Mon Photographe Bébé : Mulish, accent bordeaux, rose / pêche / sauge
   Toutes les classes sont préfixées "mf-" pour ne rien casser sur le site.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@200;300;400;500;600;700&family=Nothing+You+Could+Do&display=swap');

.mf-root {
  --mf-bordeaux: #9b2f45;
  --mf-bordeaux-fonce: #84273a;
  --mf-rose: #f3dfe3;
  --mf-rose-clair: #f9eef0;
  --mf-peche: #f9e2d6;
  --mf-sauge: #e3ebe1;
  --mf-fond: #fbf5f3;
  --mf-blanc: #ffffff;
  --mf-texte: #474746;
  --mf-texte-doux: #6a6a68;
  --mf-bord: #ebdcda;
  --mf-rayon: 28px;
  --mf-rayon-petit: 16px;
  --mf-ombre: 0 18px 40px -24px rgba(155, 47, 69, 0.28);
  --mf-sans: 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mf-main: 'Nothing You Could Do', 'Segoe Script', cursive;

  font-family: var(--mf-sans);
  color: var(--mf-texte);
  background: var(--mf-blanc);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
.mf-root *, .mf-root *::before, .mf-root *::after { box-sizing: border-box; }
body.mf-body { margin: 0; background: #fff; }
.mf-root img { max-width: 100%; display: block; }
.mf-root a { color: var(--mf-bordeaux); }
.mf-root h1, .mf-root h2, .mf-root h3, .mf-root p { margin: 0; }
.mf-root [hidden] { display: none !important; }

/* ---------- Structure ---------- */
.mf-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.mf-section { padding: 56px 0; }
.mf-fond { background: var(--mf-fond); }

.mf-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--mf-bord); }
.mf-topbar-liens { display: flex; gap: 10px; flex-wrap: wrap; }

.mf-eyebrow { display: inline-flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mf-bordeaux); }
.mf-eyebrow.mf-trait::after { content: ''; width: 48px; height: 1px; background: var(--mf-bordeaux); }

.mf-titre { font-weight: 300; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.12; letter-spacing: -0.01em; color: var(--mf-texte); }
.mf-titre-2 { font-weight: 300; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; }
.mf-titre-3 { font-weight: 600; font-size: 21px; line-height: 1.3; }
.mf-main { font-family: var(--mf-main); color: var(--mf-bordeaux); font-weight: 400; font-size: 1.05em; padding: 0 0.08em; }
.mf-surligne { background: linear-gradient(transparent 58%, var(--mf-peche) 58%); padding: 0 0.12em; }
.mf-surligne.mf-rose { background: linear-gradient(transparent 58%, var(--mf-rose) 58%); }
.mf-surligne.mf-sauge { background: linear-gradient(transparent 58%, var(--mf-sauge) 58%); }
.mf-chapo { font-size: 19px; color: var(--mf-texte-doux); max-width: 62ch; }
.mf-discret { color: var(--mf-texte-doux); font-size: 15px; }

/* ---------- Boutons ---------- */
.mf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; padding: 16px 30px; border-radius: 999px; background: var(--mf-bordeaux); color: #fff !important; transition: background 0.2s, transform 0.2s; }
.mf-btn:hover { background: var(--mf-bordeaux-fonce); transform: translateY(-1px); }
.mf-btn:focus-visible, .mf-root a:focus-visible, .mf-root button:focus-visible, .mf-root input:focus-visible, .mf-root select:focus-visible, .mf-root textarea:focus-visible { outline: 2px solid var(--mf-bordeaux); outline-offset: 3px; }
.mf-btn.mf-clair { background: var(--mf-rose-clair); color: var(--mf-bordeaux) !important; }
.mf-btn.mf-clair:hover { background: var(--mf-rose); }
.mf-btn.mf-gris { background: #f3eeec; color: var(--mf-texte) !important; }
.mf-btn.mf-gris:hover { background: #e9e4e3; }
.mf-btn.mf-petit { padding: 11px 20px; font-size: 12px; }
.mf-btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.mf-lien { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 600; color: var(--mf-bordeaux); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Cartes et pastilles ---------- */
.mf-carte { background: #fff; border: 1px solid var(--mf-bord); border-radius: var(--mf-rayon); padding: 32px; box-shadow: var(--mf-ombre); }
.mf-carte.mf-plate { box-shadow: none; }
.mf-pastille { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--mf-rose); color: var(--mf-bordeaux); font-size: 13px; font-weight: 600; white-space: nowrap; }
.mf-pastille.mf-peche { background: var(--mf-peche); color: #8a4a2c; }
.mf-pastille.mf-sauge { background: var(--mf-sauge); color: #4d6349; }
.mf-pastille.mf-gris { background: #f2efee; color: var(--mf-texte-doux); }
.mf-pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.mf-rond { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--mf-rose); color: var(--mf-bordeaux); }
.mf-rond.mf-peche { background: var(--mf-peche); }
.mf-rond.mf-sauge { background: var(--mf-sauge); }
.mf-rond svg, .mf-ico { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mf-ico.mf-mini { width: 18px; height: 18px; color: var(--mf-bordeaux); flex: none; }

/* ---------- En-tête de l'annuaire ---------- */
.mf-hero { position: relative; overflow: hidden; background: var(--mf-fond); border-radius: var(--mf-rayon); padding: 64px 56px; margin-top: 32px; }
.mf-hero::before { content: ''; position: absolute; right: -90px; top: -110px; width: 380px; height: 330px; background: var(--mf-peche); border-radius: 46% 54% 38% 62% / 55% 44% 56% 45%; }
.mf-hero::after { content: ''; position: absolute; right: 190px; bottom: -130px; width: 260px; height: 220px; background: rgba(243, 223, 227, 0.75); border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%; }
.mf-hero > * { position: relative; z-index: 1; }
.mf-hero .mf-titre { margin: 18px 0 20px; max-width: 16ch; }
.mf-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.mf-energie { position: absolute; z-index: 1; width: 46px; height: 40px; color: var(--mf-bordeaux); }

/* ---------- Choix par catégorie ---------- */
.mf-groupes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 28px; }
.mf-tuile { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; background: #fff; border: 1px solid var(--mf-bord); border-radius: 22px; padding: 18px 20px; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.mf-tuile:hover { transform: translateY(-2px); box-shadow: var(--mf-ombre); }
.mf-tuile[aria-pressed='true'] { border-color: var(--mf-bordeaux); background: var(--mf-rose-clair); }
.mf-tuile strong { display: block; font-weight: 600; font-size: 17px; line-height: 1.25; }
.mf-tuile span.mf-discret { font-size: 14px; }
.mf-sous-titre { margin: 40px 0 0; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Filtres ---------- */
.mf-filtres { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.mf-champ { display: flex; flex-direction: column; gap: 7px; }
.mf-champ > label, .mf-champ > .mf-label { font-size: 14px; font-weight: 600; }
.mf-champ .mf-aide { font-size: 14px; color: var(--mf-texte-doux); font-weight: 400; }
.mf-input, .mf-select, .mf-textarea { width: 100%; font: inherit; font-size: 16px; color: var(--mf-texte); background: #fff; border: 1px solid var(--mf-bord); border-radius: 14px; padding: 13px 16px; }
.mf-textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.mf-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%239b2f45' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.mf-input::placeholder, .mf-textarea::placeholder { color: #b3a9a8; }
.mf-compteur { font-size: 13px; color: var(--mf-texte-doux); text-align: right; }
.mf-erreur { color: #a32a2a; font-size: 14px; font-weight: 600; }
.mf-resultats { margin: 30px 0 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Grille des formations ---------- */
.mf-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 26px; }
.mf-fiche { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mf-bord); border-radius: var(--mf-rayon); overflow: hidden; text-decoration: none; color: inherit !important; box-shadow: var(--mf-ombre); transition: transform 0.2s; }
.mf-fiche:hover { transform: translateY(-3px); }
.mf-fiche-visuel { position: relative; aspect-ratio: 16 / 10; background: var(--mf-fond); overflow: hidden; }
.mf-fiche-visuel img { width: 100%; height: 100%; object-fit: cover; }
.mf-fiche-visuel .mf-pastille { position: absolute; left: 16px; top: 16px; background: rgba(255, 255, 255, 0.94); }
.mf-fiche-corps { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.mf-fiche-corps h3 { font-size: 21px; font-weight: 600; line-height: 1.3; }
.mf-fiche-corps p { font-size: 16px; color: var(--mf-texte-doux); }
.mf-infos { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--mf-bord); display: grid; gap: 8px; font-size: 15px; }
.mf-infos li { display: flex; gap: 10px; align-items: flex-start; }
.mf-fiche-pied { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mf-prix { font-size: 24px; font-weight: 300; color: var(--mf-bordeaux); line-height: 1; }
.mf-prix small { white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--mf-texte-doux); }
.mf-fleche { white-space: nowrap; font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mf-bordeaux); }
.mf-vide { text-align: center; padding: 56px 24px; background: var(--mf-fond); border-radius: var(--mf-rayon); }

/* Visuel de remplacement quand le formateur n'a pas (encore) d'image */
.mf-visuel-defaut { position: absolute; inset: 0; background: var(--mf-fond); overflow: hidden; }
.mf-visuel-defaut i { position: absolute; display: block; }
.mf-visuel-defaut i:nth-child(1) { width: 62%; height: 78%; left: -12%; top: -22%; background: var(--mf-rose); border-radius: 46% 54% 38% 62% / 55% 44% 56% 45%; }
.mf-visuel-defaut i:nth-child(2) { width: 52%; height: 70%; right: -10%; bottom: -26%; background: var(--mf-peche); border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%; }
.mf-visuel-defaut i:nth-child(3) { width: 30%; height: 42%; right: 22%; top: 12%; background: var(--mf-sauge); border-radius: 50% 50% 44% 56% / 58% 46% 54% 42%; }
.mf-visuel-defaut svg { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; transform: translate(-50%, -50%); color: var(--mf-bordeaux); stroke: currentColor; fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Page d'une formation ---------- */
.mf-retour { display: inline-flex; align-items: center; gap: 8px; margin: 28px 0 22px; font-weight: 600; font-size: 15px; text-decoration: none; }
.mf-detail-tete { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; }
.mf-detail-tete .mf-titre { font-size: clamp(30px, 3.8vw, 46px); margin: 16px 0 18px; }
.mf-detail-visuel { position: relative; }
.mf-detail-visuel::before { content: ''; position: absolute; right: -22px; bottom: -22px; width: 62%; height: 62%; background: var(--mf-peche); border-radius: 46% 54% 38% 62% / 55% 44% 56% 45%; }
.mf-detail-visuel .mf-cadre { position: relative; aspect-ratio: 4 / 3; border-radius: var(--mf-rayon); overflow: hidden; background: var(--mf-fond); box-shadow: var(--mf-ombre); }
.mf-detail-visuel img { width: 100%; height: 100%; object-fit: cover; }
.mf-detail-corps { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 44px; align-items: start; margin-top: 56px; }
.mf-bloc { margin-bottom: 44px; }
.mf-bloc h2 { margin: 14px 0 18px; }
.mf-texte-long { white-space: pre-line; }
.mf-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mf-liste li { display: flex; gap: 14px; align-items: flex-start; }
.mf-liste li::before { content: ''; flex: none; width: 10px; height: 10px; margin-top: 9px; border-radius: 50%; background: var(--mf-bordeaux); }
.mf-recap { position: sticky; top: 24px; background: var(--mf-fond); border-radius: var(--mf-rayon); padding: 30px; }
.mf-recap .mf-prix { font-size: 40px; }
.mf-recap dl { margin: 22px 0; display: grid; gap: 16px; }
.mf-recap dt { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mf-bordeaux); }
.mf-recap dd { margin: 4px 0 0; font-size: 16px; }
.mf-recap .mf-btn { width: 100%; }
.mf-session { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.mf-session + .mf-session { border-top: 1px dashed var(--mf-bord); }
.mf-formateur { display: flex; gap: 22px; align-items: flex-start; padding: 24px; background: var(--mf-fond); border-radius: 22px; }
.mf-formateur + .mf-formateur { margin-top: 16px; }
.mf-formateur-photo { width: 96px; height: 96px; flex: none; border-radius: 50%; overflow: hidden; background: var(--mf-rose); display: grid; place-items: center; font-size: 30px; font-weight: 300; color: var(--mf-bordeaux); }
.mf-formateur-photo img { width: 100%; height: 100%; object-fit: cover; }
.mf-visuel-large { border-radius: var(--mf-rayon); overflow: hidden; box-shadow: var(--mf-ombre); }
.mf-note { background: var(--mf-fond); border-radius: 18px; padding: 16px 20px; font-size: 15px; color: var(--mf-texte-doux); }

/* ---------- Formulaires (compte et dépôt) ---------- */
.mf-etroit { max-width: 560px; margin: 0 auto; }
.mf-moyen { max-width: 920px; margin: 0 auto; }
.mf-onglets { display: flex; gap: 6px; background: var(--mf-fond); border-radius: 999px; padding: 6px; margin: 26px 0; }
.mf-onglets button { flex: 1; border: 0; background: transparent; font: inherit; font-weight: 600; padding: 12px 16px; border-radius: 999px; cursor: pointer; color: var(--mf-texte-doux); }
.mf-onglets button[aria-selected='true'] { background: #fff; color: var(--mf-bordeaux); box-shadow: 0 6px 16px -10px rgba(155, 47, 69, 0.5); }
.mf-form { display: grid; gap: 20px; }
.mf-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mf-trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mf-rubrique { scroll-margin-top: 24px; }
.mf-rubrique + .mf-rubrique { margin-top: 26px; }
.mf-rubrique-tete { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.mf-rubrique-tete .mf-num { font-size: 34px; font-weight: 300; color: var(--mf-bordeaux); line-height: 1; }
.mf-choix { display: flex; flex-wrap: wrap; gap: 10px; }
.mf-choix label { position: relative; cursor: pointer; }
.mf-choix input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.mf-choix span { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--mf-bord); background: #fff; font-size: 15px; font-weight: 500; transition: background 0.15s, border-color 0.15s; }
.mf-choix input:checked + span { background: var(--mf-rose); border-color: var(--mf-bordeaux); color: var(--mf-bordeaux); font-weight: 600; }
.mf-choix input:focus-visible + span { outline: 2px solid var(--mf-bordeaux); outline-offset: 3px; }
.mf-choix input:disabled + span { opacity: 0.4; cursor: not-allowed; }
.mf-groupe-choix { margin-top: 16px; }
.mf-groupe-choix > p { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mf-bordeaux); margin-bottom: 10px; }
.mf-ligne { display: grid; gap: 14px; padding: 18px; border-radius: 18px; background: var(--mf-fond); }
.mf-ligne + .mf-ligne { margin-top: 12px; }
.mf-ligne-tete { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15px; }
.mf-depot { display: flex; align-items: center; gap: 18px; padding: 16px; border: 1px dashed var(--mf-bordeaux); border-radius: 18px; background: var(--mf-rose-clair); }
.mf-depot-apercu { width: 132px; height: 88px; flex: none; border-radius: 12px; overflow: hidden; background: #fff; display: grid; place-items: center; color: var(--mf-bordeaux); }
.mf-depot-apercu.mf-rond-photo { width: 88px; border-radius: 50%; }
.mf-depot-apercu img { width: 100%; height: 100%; object-fit: cover; }
.mf-depot input[type='file'] { font: inherit; font-size: 14px; max-width: 100%; }
.mf-barre-actions { position: sticky; bottom: 0; z-index: 5; margin-top: 30px; padding: 18px 22px; background: rgba(255, 255, 255, 0.96); border: 1px solid var(--mf-bord); border-radius: 22px; box-shadow: var(--mf-ombre); display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.mf-message { border-radius: 16px; padding: 14px 18px; font-size: 15px; font-weight: 500; }
.mf-message.mf-ok { background: var(--mf-sauge); color: #3f553b; }
.mf-message.mf-ko { background: #f9e1e1; color: #8c2424; }
.mf-message.mf-info { background: var(--mf-peche); color: #7a4127; }

/* ---------- Espace formateur et administration ---------- */
.mf-tete-espace { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: 36px 0 30px; }
.mf-rangee { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 18px; background: #fff; border: 1px solid var(--mf-bord); border-radius: 22px; }
.mf-rangee + .mf-rangee { margin-top: 14px; }
.mf-rangee-visuel { position: relative; aspect-ratio: 16 / 11; border-radius: 14px; overflow: hidden; background: var(--mf-fond); }
.mf-rangee-visuel img { width: 100%; height: 100%; object-fit: cover; }
.mf-rangee h3 { font-size: 19px; font-weight: 600; margin: 8px 0 4px; }
.mf-rangee-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.mf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-bottom: 30px; }
.mf-stat { display: flex; align-items: center; gap: 16px; padding: 22px; background: #fff; border: 1px solid var(--mf-bord); border-radius: 22px; }
.mf-stat b { display: block; font-size: 34px; font-weight: 300; line-height: 1; color: var(--mf-bordeaux); }
.mf-stat span { font-size: 15px; font-weight: 600; }

/* ---------- Bandeaux ---------- */
.mf-demo { background: var(--mf-peche); color: #7a4127; font-size: 14px; font-weight: 600; text-align: center; padding: 9px 16px; }
.mf-cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; background: var(--mf-fond); border-radius: var(--mf-rayon); padding: 40px 44px; margin: 56px 0; }
.mf-cta::before { content: ''; position: absolute; left: -70px; bottom: -90px; width: 240px; height: 210px; background: var(--mf-sauge); border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%; }
.mf-cta > * { position: relative; }
.mf-pied { padding: 28px 0 44px; font-size: 14px; color: var(--mf-texte-doux); text-align: center; }

/* ---------- Mise en page "espace membre" (exemple d'intégration) ---------- */
.mf-membre { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 100vh; }
.mf-membre-menu { background: var(--mf-fond); border-right: 1px solid var(--mf-bord); padding: 34px 14px; display: flex; flex-direction: column; gap: 6px; }
.mf-membre-logo { text-align: center; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 30px; line-height: 1.5; }
.mf-membre-logo b { display: block; font-family: var(--mf-main); font-size: 30px; letter-spacing: 0; text-transform: none; font-weight: 400; }
.mf-membre-menu a { display: flex; align-items: center; gap: 14px; padding: 15px 20px; border-radius: 22px; text-decoration: none; color: var(--mf-texte) !important; font-weight: 600; }
.mf-membre-menu a.mf-actif { background: var(--mf-rose); color: var(--mf-bordeaux) !important; }
.mf-membre-menu a .mf-ico { color: var(--mf-bordeaux); }
.mf-membre-menu .mf-sep { margin-top: auto; padding: 20px 20px 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mf-bordeaux); }
.mf-membre-contenu { padding: 14px 44px 60px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .mf-filtres { grid-template-columns: 1fr 1fr; }
  .mf-filtres .mf-champ:first-child { grid-column: 1 / -1; }
  .mf-detail-tete, .mf-detail-corps { grid-template-columns: 1fr; }
  .mf-recap { position: static; }
  .mf-membre { grid-template-columns: 1fr; }
  .mf-membre-menu { border-right: 0; border-bottom: 1px solid var(--mf-bord); }
  .mf-membre-menu .mf-sep { margin-top: 10px; }
}
@media (max-width: 720px) {
  .mf-wrap { padding: 0 18px; }
  .mf-hero { padding: 40px 26px; }
  .mf-hero::before { width: 220px; height: 200px; right: -90px; top: -100px; }
  .mf-hero::after { display: none; }
  .mf-carte { padding: 22px; }
  .mf-deux, .mf-trois, .mf-filtres { grid-template-columns: 1fr; }
  .mf-grille { grid-template-columns: 1fr; }
  .mf-rangee { grid-template-columns: 1fr; }
  .mf-rangee-actions { justify-content: flex-start; }
  .mf-formateur { flex-direction: column; }
  .mf-depot { flex-direction: column; align-items: flex-start; }
  .mf-cta { padding: 30px 24px; }
  .mf-membre-contenu { padding: 10px 18px 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .mf-root * { transition: none !important; }
}

/* ==========================================================================
   Mise en page inspirée de « Ma mission de la semaine »
   Grande carte en deux parties, étapes reliées, lignes à vignette, encarts
   ========================================================================== */
.mf-page-tete { padding: 46px 0 36px; }
.mf-page-tete .mf-titre { font-size: clamp(36px, 4.8vw, 60px); margin-bottom: 14px; }
.mf-page-tete .mf-chapo { max-width: 78ch; }
.mf-colonnes { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 40px; align-items: start; }
.mf-cote { display: grid; gap: 30px; }

/* Petit intitulé avec le point bordeaux */
.mf-point { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mf-bordeaux); }
.mf-point::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--mf-bordeaux); box-shadow: 0 0 0 6px var(--mf-rose); margin-left: 6px; }

/* La grande carte en deux parties */
.mf-une { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--mf-bord); border-radius: var(--mf-rayon); overflow: hidden; box-shadow: 0 34px 46px -34px rgba(155, 47, 69, 0.42); }
.mf-une::before { content: ''; position: absolute; left: 0; top: 34px; bottom: 34px; width: 5px; background: var(--mf-bordeaux); border-radius: 0 5px 5px 0; }
.mf-une-gauche { padding: 40px 40px 42px 46px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.mf-une-gauche h1, .mf-une-gauche h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; line-height: 1.22; }
.mf-une-gauche h2 a { color: inherit; text-decoration: none; }
.mf-une-gauche .mf-resume { font-size: 18px; color: var(--mf-texte-doux); }
.mf-une-gauche .mf-btn { margin-top: 10px; padding: 19px 34px; font-size: 15px; }
.mf-meta { width: 100%; display: flex; flex-wrap: wrap; gap: 10px 26px; padding-top: 20px; border-top: 1px solid var(--mf-bord); font-size: 16px; color: var(--mf-texte-doux); }
.mf-meta span { display: inline-flex; align-items: center; gap: 9px; }
.mf-une-droite { background: var(--mf-fond); border-left: 1px solid var(--mf-bord); padding: 40px 36px; min-width: 0; }
.mf-panneau-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mf-panneau-tete > span:first-child, .mf-petit-titre { font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mf-texte-doux); }
.mf-panneau-tete .mf-prix { font-size: 30px; font-weight: 600; white-space: nowrap; }
.mf-barre { height: 5px; border-radius: 5px; background: var(--mf-rose); margin: 18px 0 26px; }
.mf-panneau-pied { margin-top: 6px; padding-top: 20px; border-top: 1px solid var(--mf-bord); font-size: 15px; color: var(--mf-texte-doux); }

/* Étapes numérotées reliées par un fil */
.mf-etapes { list-style: none; margin: 0; padding: 0; counter-reset: etape; }
.mf-etapes li { position: relative; counter-increment: etape; padding: 4px 0 22px 54px; min-height: 36px; font-size: 16px; line-height: 1.45; }
.mf-etapes li::before { content: counter(etape); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid var(--mf-bord); display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--mf-bordeaux); }
.mf-etapes li::after { content: ''; position: absolute; left: 18px; top: 38px; bottom: 0; width: 1px; background: #e2ccd1; }
.mf-etapes li:last-child::after { display: none; }
.mf-etapes li.mf-suite { padding-top: 0; color: var(--mf-texte-doux); font-size: 15px; counter-increment: none; min-height: 0; }
.mf-etapes li.mf-suite::before { display: none; }
.mf-etapes.mf-grand li { font-size: 17px; padding-bottom: 26px; }
.mf-etapes.mf-grand li::before { background: var(--mf-fond); }
.mf-fiches { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.mf-fiches dt, .mf-fiches .mf-petit-titre { display: block; font-size: 12px; margin-bottom: 3px; color: var(--mf-bordeaux); font-weight: 700; }
.mf-fiches dd { margin: 0; }
dl.mf-fiches > div { padding-bottom: 14px; border-bottom: 1px dashed #e2ccd1; }
dl.mf-fiches > div:last-child { border-bottom: 0; padding-bottom: 0; }

/* Lignes de formation : vignette, texte, flèche */
.mf-lignes { display: grid; gap: 16px; }
.mf-ligne-f { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 16px 22px 16px 16px; background: #fff; border: 1px solid var(--mf-bord); border-radius: 26px; text-decoration: none; color: inherit !important; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.mf-ligne-f:hover { transform: translateY(-2px); box-shadow: var(--mf-ombre); border-color: #dfbcc4; }
.mf-ligne-f-visuel { position: relative; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: var(--mf-fond); }
.mf-ligne-f-visuel img { width: 100%; height: 100%; object-fit: cover; }
.mf-ligne-f-visuel .mf-visuel-defaut svg { width: 34px; height: 34px; }
.mf-ligne-f h3 { font-size: 20px; font-weight: 600; line-height: 1.28; margin: 10px 0 6px; }
.mf-ligne-f p { font-size: 16px; color: var(--mf-texte-doux); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mf-ligne-f .mf-meta { border: 0; padding-top: 10px; font-size: 15px; gap: 6px 20px; }
.mf-ligne-f-fin { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; text-align: right; }
.mf-ligne-f-fin .mf-prix { font-size: 24px; font-weight: 600; }
.mf-va { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--mf-rose-clair); color: var(--mf-bordeaux); font-size: 20px; transition: background 0.2s, color 0.2s; }
.mf-ligne-f:hover .mf-va { background: var(--mf-bordeaux); color: #fff; }
.mf-liste-tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 44px 0 20px; }
.mf-liste-tete .mf-select { width: auto; padding: 10px 40px 10px 16px; font-size: 15px; border-radius: 999px; }

/* Encart beige avec le coin pêche */
.mf-encart { position: relative; overflow: hidden; background: var(--mf-fond); border-radius: var(--mf-rayon); padding: 32px 30px; }
.mf-encart > * { position: relative; z-index: 1; }
.mf-encart .mf-coin { position: absolute; z-index: 0; right: 0; top: 0; width: 190px; height: 180px; pointer-events: none; }
.mf-encart-tete { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.mf-encart-tete .mf-rond { width: 78px; height: 78px; background: #fff; box-shadow: 0 14px 26px -14px rgba(155, 47, 69, 0.35); }
.mf-encart-tete .mf-rond svg { width: 30px; height: 30px; }
.mf-encart-tete strong { display: block; font-size: 22px; font-weight: 600; line-height: 1.25; margin-top: 4px; }
.mf-encart .mf-btn { width: 100%; margin-top: 20px; padding: 19px 24px; font-size: 15px; }

/* Catégories : cartes en ligne façon « Mes bilans » */
.mf-cat-liste { display: grid; gap: 14px; margin-top: 18px; }
.mf-cat { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; background: #fff; border: 1px solid var(--mf-bord); border-radius: 24px; padding: 14px 18px 14px 14px; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.mf-cat:hover { transform: translateY(-1px); box-shadow: var(--mf-ombre); }
.mf-cat .mf-rond { width: 62px; height: 62px; border-radius: 18px; }
.mf-cat > span:nth-child(2) { flex: 1; min-width: 0; }
.mf-cat strong { display: block; font-size: 18px; font-weight: 600; line-height: 1.25; }
.mf-cat .mf-discret { display: block; font-size: 15px; margin-top: 2px; }
.mf-cat .mf-jauge { display: block; height: 4px; border-radius: 4px; background: var(--mf-rose); margin-top: 10px; overflow: hidden; }
.mf-cat .mf-jauge i { display: block; height: 100%; background: var(--mf-bordeaux); border-radius: 4px; }
.mf-cat .mf-fl { color: var(--mf-bordeaux); font-size: 20px; }
.mf-cat[aria-pressed='true'] { border-color: var(--mf-bordeaux); background: var(--mf-rose-clair); }
.mf-sous-cats { padding: 4px 4px 6px; }
.mf-sous-cats .mf-choix span { font-size: 14px; padding: 8px 14px; }
.mf-filtres-cote { display: grid; gap: 14px; margin-top: 18px; }
.mf-bandeau-note { background: var(--mf-fond); border-radius: 22px; padding: 22px 28px; font-size: 16px; color: var(--mf-texte-doux); margin: 40px 0 0; }

@media (max-width: 1180px) {
  .mf-colonnes { grid-template-columns: 1fr; }
  .mf-colonnes .mf-cote { order: -1; }
  .mf-colonnes.mf-cote-apres .mf-cote { order: 1; }
  .mf-cat-liste { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .mf-sous-cats { grid-column: 1 / -1; }
  .mf-filtres-cote { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
@media (max-width: 860px) {
  .mf-une { grid-template-columns: 1fr; }
  .mf-une-droite { border-left: 0; border-top: 1px solid var(--mf-bord); }
  .mf-une-gauche { padding: 32px 26px 32px 32px; }
  .mf-une-droite { padding: 30px 26px; }
}
@media (max-width: 720px) {
  .mf-ligne-f { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 14px; align-items: start; }
  .mf-ligne-f-fin { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--mf-bord); }
  .mf-ligne-f h3 { font-size: 18px; }
  .mf-encart { padding: 26px 22px; }
  .mf-une-gauche .mf-btn { width: 100%; }
}

/* Ajustements */
.mf-btn { white-space: nowrap; }
.mf-une-gauche .mf-btn { padding: 18px 30px; font-size: 14px; }
.mf-encart .mf-coin { width: 150px; height: 142px; }
@media (max-width: 1180px) {
  /* Sur petit écran : catégories et filtres d'abord, la liste ensuite, l'encart formateur à la fin */
  .mf-colonnes:not(.mf-cote-apres) > .mf-cote { display: contents; }
  .mf-colonnes:not(.mf-cote-apres) > .mf-cote > * { order: -1; }
  .mf-colonnes:not(.mf-cote-apres) > .mf-cote > .mf-encart { order: 2; }
}
@media (max-width: 720px) { .mf-btn { white-space: normal; } }

/* Dans l'habillage du site : le titre respire sous l'en-tête */
.mf-root strong, .mf-root b { font-weight: 600; }
.mf-titre { font-weight: 200; }

/* Vignettes photo des catégories */
.mf-cat-img { width: 84px; height: 84px; flex: none; border-radius: 18px; object-fit: cover; }
.mf-cat { padding: 12px 18px 12px 12px; }

/* Fiche formation : petit visuel carré à côté du titre */
.mf-tete-visuel { display: flex; align-items: center; gap: 24px; width: 100%; }
.mf-tete-visuel > div:last-child { min-width: 0; }
.mf-vignette { position: relative; flex: none; width: 150px; aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; background: var(--mf-fond); box-shadow: var(--mf-ombre); }
.mf-vignette img, .mf-visuel-carre img { width: 100%; height: 100%; object-fit: cover; }
.mf-visuel-carre { width: min(100%, 380px); aspect-ratio: 1 / 1; border-radius: var(--mf-rayon); overflow: hidden; box-shadow: var(--mf-ombre); }
.mf-depot-apercu { width: 96px; height: 96px; }
@media (max-width: 720px) { .mf-tete-visuel { gap: 16px; align-items: flex-start; } .mf-vignette { width: 96px; border-radius: 16px; } }

/* Page allégée */
.mf-plus-filtres summary { cursor: pointer; font-size: 15px; font-weight: 600; color: var(--mf-bordeaux); list-style: none; }
.mf-plus-filtres summary::-webkit-details-marker { display: none; }
.mf-plus-filtres summary::after { content: ' +'; }
.mf-plus-filtres[open] summary::after { content: ' -'; }
.mf-cat strong { font-size: 19px; }

/* Filtres et tri sur une ligne, au-dessus de la liste */
.mf-liste-tete { margin-bottom: 14px; }
.mf-barre-filtres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.mf-barre-filtres .mf-champ > label { font-size: 13px; color: var(--mf-texte-doux); }
.mf-barre-filtres .mf-select { padding: 11px 38px 11px 14px; font-size: 15px; border-radius: 999px; }
@media (max-width: 720px) { .mf-barre-filtres { grid-template-columns: 1fr 1fr; } }

/* Fiche formation : titre à gauche, visuel carré à droite */
.mf-une.mf-une-fiche { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.mf-une-fiche .mf-tete-visuel { align-items: flex-start; justify-content: space-between; gap: 32px; }
.mf-une-fiche .mf-tete-visuel > div:first-child { flex: 1; min-width: 0; }
.mf-une-fiche .mf-vignette { width: 260px; border-radius: 24px; }
.mf-une-fiche h1 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 300; line-height: 1.18; margin-top: 16px; }
.mf-une-fiche h1 .mf-main { font-size: 1.12em; white-space: nowrap; }
@media (max-width: 1180px) { .mf-une.mf-une-fiche { grid-template-columns: 1fr; } .mf-une-fiche .mf-une-droite { border-left: 0; border-top: 1px solid var(--mf-bord); } }
@media (max-width: 720px) {
  .mf-une-fiche .mf-tete-visuel { flex-direction: column; gap: 20px; }
  .mf-une-fiche .mf-vignette { width: min(100%, 320px); }
}

/* ==========================================================================
   Version allégée : tailles réduites, fiche formation sans gros blocs
   ========================================================================== */
.mf-page-tete { padding: 40px 0 30px; }
.mf-page-tete .mf-titre { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 12px; }
.mf-page-tete .mf-chapo { font-size: 17px; max-width: 70ch; }
.mf-intro-note { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--mf-texte-doux); max-width: 80ch; }
.mf-ligne-f { grid-template-columns: 112px minmax(0, 1fr) auto; gap: 20px; padding: 14px 20px 14px 14px; border-radius: 22px; }
.mf-ligne-f h3 { font-size: 18px; margin: 8px 0 4px; }
.mf-ligne-f p { font-size: 15px; }
.mf-ligne-f .mf-meta { font-size: 14px; padding-top: 8px; }
.mf-ligne-f-fin .mf-prix { font-size: 20px; }
.mf-ligne-f .mf-pastille, .mf-f-carte .mf-pastille { font-size: 12px; padding: 4px 11px; }
.mf-cat strong { font-size: 17px; }
.mf-cat-img { width: 68px; height: 68px; border-radius: 16px; }

.mf-f-tete { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: center; padding: 8px 0 40px; border-bottom: 1px solid var(--mf-bord); }
.mf-f-cats { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mf-bordeaux); }
.mf-f-tete h1 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 300; line-height: 1.15; letter-spacing: -0.01em; margin: 14px 0 16px; }
.mf-f-resume { font-size: 18px; color: var(--mf-texte-doux); max-width: 58ch; }
.mf-f-faits { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.mf-f-faits li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--mf-bord); border-radius: 999px; font-size: 14px; font-weight: 500; background: #fff; }
.mf-f-visuel { position: relative; aspect-ratio: 1 / 1; border-radius: 24px; overflow: hidden; background: var(--mf-fond); box-shadow: var(--mf-ombre); }
.mf-f-visuel img { width: 100%; height: 100%; object-fit: cover; }
.mf-f-corps { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; padding-top: 8px; }
.mf-f-section { padding: 34px 0; border-bottom: 1px solid var(--mf-bord); }
.mf-f-section:last-of-type { border-bottom: 0; }
.mf-f-section h2 { font-size: 24px; font-weight: 300; margin-bottom: 18px; }
.mf-f-texte-long p { margin-bottom: 12px; max-width: 72ch; }
.mf-f-sous { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mf-bordeaux); margin: 26px 0 12px; }
.mf-f-objectifs, .mf-f-pratique { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 72ch; }
.mf-f-objectifs li { display: flex; gap: 12px; align-items: flex-start; }
.mf-f-objectifs .mf-ico { margin-top: 4px; }
.mf-f-pratique li { padding-left: 16px; border-left: 2px solid var(--mf-rose); }
.mf-f-section .mf-formateur { background: transparent; padding: 0; gap: 20px; }
.mf-f-section .mf-formateur-photo { width: 84px; height: 84px; }
.mf-f-carte { position: sticky; top: 110px; margin-top: 34px; background: #fff; border: 1px solid var(--mf-bord); border-radius: 24px; padding: 26px; box-shadow: var(--mf-ombre); font-size: 15px; }
.mf-f-prix { font-size: 30px; font-weight: 600; color: var(--mf-bordeaux); line-height: 1.1; }
.mf-f-prix small { font-size: 13px; font-weight: 600; color: var(--mf-texte-doux); }
.mf-f-info { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--mf-bord); }
.mf-f-label { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mf-texte-doux); margin-bottom: 6px; }
.mf-f-carte .mf-session { align-items: center; }
.mf-f-carte .mf-session strong { font-weight: 600; }
@media (max-width: 1080px) {
  .mf-f-corps { grid-template-columns: 1fr; gap: 0; }
  .mf-f-carte { position: static; order: -1; margin-top: 28px; }
  .mf-f-corps { display: flex; flex-direction: column; }
}
@media (max-width: 720px) {
  .mf-f-tete { grid-template-columns: 1fr; gap: 24px; }
  .mf-f-visuel { max-width: 300px; }
  .mf-ligne-f { grid-template-columns: 76px minmax(0, 1fr); }
}

/* Titres de formation bien lisibles (Mulish en demi-gras), prix juste dessous */
.mf-ligne-f h3 { font-size: 20px; font-weight: 600; color: #2c2c2a; margin: 0 0 4px; line-height: 1.25; }
.mf-ligne-prix { font-size: 17px !important; font-weight: 600; color: var(--mf-bordeaux) !important; margin-bottom: 6px; display: block !important; }
.mf-ligne-prix small { font-size: 12px; font-weight: 600; color: var(--mf-texte-doux); }
.mf-ligne-f p:not(.mf-ligne-prix) { font-size: 14.5px; }
.mf-ligne-f-fin { justify-content: center; }
.mf-f-tete h1 { font-weight: 600; color: #2c2c2a; font-size: clamp(28px, 3vw, 40px); margin: 0 0 10px; line-height: 1.2; }
@media (max-width: 720px) { .mf-ligne-f-fin { display: none; } }

/* Visuels carrés un peu plus grands, rubrique one-to-one */
.mf-ligne-f { grid-template-columns: 148px minmax(0, 1fr) auto; gap: 24px; padding: 16px 22px 16px 16px; }
.mf-f-tete { grid-template-columns: minmax(0, 1fr) 360px; }
.mf-intro-oto { font-size: 15px; color: var(--mf-texte-doux); margin: 0 0 18px; max-width: 70ch; }
.mf-prix small, .mf-ligne-prix small, .mf-f-prix small { font-weight: 400; }
@media (max-width: 720px) { .mf-ligne-f { grid-template-columns: 92px minmax(0, 1fr); gap: 16px; } .mf-f-tete { grid-template-columns: 1fr; } }

/* Sous le titre : une phrase, puis trois repères sur une ligne */
.mf-points { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 14px; color: var(--mf-texte-doux); }
.mf-points li { display: inline-flex; align-items: center; gap: 8px; }

.mf-page-tete .mf-chapo { max-width: none; }

/* Phrase d'introduction et repères collés l'un à l'autre, plus d'air en dessous */
.mf-page-tete .mf-chapo { line-height: 1.35; margin: 0; }
.mf-points { margin-top: 6px; line-height: 1.4; }
.mf-page-tete { padding-bottom: 40px; }
