@charset "UTF-8";
/* ═══════════════════════════════════════════════════════════════════
   Moi, mon budget et moi : formats complémentaires (arbitrages, marches
   à suivre, fournitures en vitrine, calculateur 50/30/20). Chargé après
   style.css. Même geste que le reste du site : l’enveloppe (panneau vélin,
   patte pliée en filet), folios numérotés, filets. Aucune nouvelle couleur :
   uniquement les variables --mbm-* du thème.
   ═══════════════════════════════════════════════════════════════════ */

/* Hauteur réelle de l’en-tête collant (style.css : .mbm-entete, sticky top 0,
   .mbm-entete-int min-height 78px, plus 1px de filet ; 66px + 1px sous 600px).
   Tout ce qui colle ou se cible par ancre se place SOUS cette hauteur. */
:root { --mbm-fx-entete: 79px; }

.screen-reader-text {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── L’enveloppe, posée sur n’importe quel bloc (même panneau que .mbm-env) ── */
.mbm-fx-decoupe {
    position: relative;
    border: 1px solid var(--mbm-filet);
    border-radius: var(--mbm-rayon);
    background-image: var(--mbm-patte);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% 22px;
    padding-top: 34px !important;
    transition: border-color .25s ease;
}

/* ── Le folio : le numéro tamponné des sections et des étapes ── */
.mbm-fx-folio {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--mbm-tampon);
    border-radius: var(--mbm-rayon);
    font-family: var(--mbm-titre);
    font-weight: 700;
    font-size: .95rem;
    line-height: 1;
    color: var(--mbm-tampon);
    background: var(--mbm-papier);
    font-variant-numeric: tabular-nums lining-nums;
}

/* ── Éléments communs ─────────────────────────────────────────── */
.mbm-fx-liste { margin: 0 0 1.2em; }
.mbm-fx-liste li,
.mbm-fx-puces li,
.mbm-fx-gd-bref li,
.mbm-fx-tu-mat li { position: relative; padding-left: 1.6em; margin-bottom: .6em; }
/* La mini-enveloppe du thème (mêmes mesures que .entry-content ul li::before). */
.mbm-fx-liste li::before,
.mbm-fx-puces li::before,
.mbm-fx-gd-bref li::before,
.mbm-fx-tu-mat li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.52em;
    width: 15px;
    height: 11px;
    border: 1.5px solid var(--mbm-tampon);
    border-radius: 1.5px;
    background: linear-gradient(var(--mbm-tampon), var(--mbm-tampon)) no-repeat 2px 4.5px / 7px 3px;
}
/* Points à vérifier : l’enveloppe vide, sans fenêtre. */
.mbm-fx-puces--vides li::before { background: none; }
.mbm-fx-liste a { color: var(--mbm-tampon); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.mbm-fx-liste a:hover { color: var(--mbm-tampon-fonce); }
.mbm-fx-liste--sources a { overflow-wrap: anywhere; }
.mbm-fx-sous { font-family: var(--mbm-texte); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mbm-gris); margin: 1.6em 0 .8em; }
.mbm-fx-note { font-size: .92rem; color: var(--mbm-gris); max-width: 64ch; }
.mbm-fx-vide { padding-top: 30px; border-top: 2px solid var(--mbm-encre); color: var(--mbm-doux); max-width: 640px; }
.mbm-fx-signature {
    margin: 48px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--mbm-filet);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mbm-gris);
}
.mbm-fx-avis {
    max-width: 72ch;
    margin: 0 0 40px;
    padding: 14px 18px 14px 20px;
    border-left: 3px solid var(--mbm-tampon);
    background: var(--mbm-velin);
    border-radius: 0 var(--mbm-rayon) var(--mbm-rayon) 0;
    color: var(--mbm-encre);
    font-weight: 600;
    font-size: .98rem;
}

/* ── En-tête des formats : texte sur blanc, étiquette-enveloppe ── */
.mbm-fx-coiffe h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); max-width: 22ch; overflow-wrap: break-word; }
.mbm-fx-coiffe .mbm-coiffe-desc { max-width: 40em; margin-bottom: 0; }
.mbm-fx-coiffe .mbm-coiffe-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
.mbm-fx-coiffe .mbm-coiffe-grille.mbm-fx-coiffe--seule { grid-template-columns: minmax(0, 1fr); }
/* La coiffe du thème superpose texte et photo sur 12 colonnes : ici, 2 colonnes côte à côte. */
.mbm-fx-coiffe .mbm-coiffe-grille { gap: 56px; align-items: stretch; }
.mbm-fx-coiffe .mbm-coiffe-texte { grid-column: auto; grid-row: auto; margin: 0; }
.mbm-fx-etiquette {
    display: grid;
    justify-items: start;
    align-content: center;
    gap: 6px;
    min-height: 220px;
    padding: 30px 32px;
    background: var(--mbm-velin);
}
.mbm-fx-etiquette-picto { color: var(--mbm-tampon); margin-bottom: 10px; }
.mbm-fx-etiquette-n { font-family: var(--mbm-titre); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--mbm-encre); }
.mbm-fx-etiquette-l { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mbm-gris); }

/* ── Index des arbitrages : lignes au folio ──────────────────── */
.mbm-fx-ix-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--mbm-filet-2); }
.mbm-fx-ix-ligne {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 140px;
    gap: 28px;
    align-items: start;
    padding: 34px 0;
    border-bottom: 1px solid var(--mbm-filet-2);
}
.mbm-fx-ix-ligne .mbm-fx-folio { width: 48px; height: 48px; font-size: 1rem; margin-top: 2px; }
.mbm-fx-ix-type { margin: 0 0 8px; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mbm-tampon); }
.mbm-fx-ix-titre { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: 10px; }
.mbm-fx-ix-titre a,
.mbm-fx-tx-titre a {
    text-decoration: none;
    background: linear-gradient(var(--mbm-tampon), var(--mbm-tampon)) 0 100% / 0 1.5px no-repeat;
    transition: background-size .25s ease;
}
.mbm-fx-ix-titre a:hover,
.mbm-fx-tx-titre a:hover { background-size: 100% 1.5px; }
.mbm-fx-ix-accroche { margin: 0; color: var(--mbm-doux); max-width: 64ch; }
.mbm-fx-ix-compte { display: grid; justify-items: end; text-align: right; gap: 4px; }
.mbm-fx-ix-compte-n { font-family: var(--mbm-titre); font-weight: 700; font-size: 2rem; line-height: 1; }
.mbm-fx-ix-compte-l { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mbm-gris); }

/* ── Index des marches à suivre : enveloppes ──────────────── */
.mbm-fx-tx-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.mbm-fx-tx-fiche {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 30px 32px 26px;
    background: var(--mbm-velin);
}
.mbm-fx-tx-fiche:hover::after { inset: -4px; border-radius: calc(var(--mbm-rayon) + 4px); }
.mbm-fx-tx-niveau { margin: 0; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mbm-tampon); }
.mbm-fx-tx-titre { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.mbm-fx-tx-accroche { margin: 0; color: var(--mbm-doux); flex: 1; }
.mbm-fx-tx-meta { margin: 8px 0 0; padding-top: 14px; border-top: 1px solid var(--mbm-filet-2); }

/* ── Face-à-face : sommaire collant SOUS l’en-tête ─────────────── */
.mbm-fx-gd { padding-block: 72px 104px; }
.mbm-fx-gd-grille {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}
.mbm-fx-gd-nav {
    position: sticky;
    top: calc(var(--mbm-fx-entete) + 24px);
    max-height: calc(100vh - var(--mbm-fx-entete) - 48px);
    overflow-y: auto;
    padding: 22px 22px 18px;
    background: var(--mbm-velin);
    border-radius: var(--mbm-rayon);
}
.mbm-fx-gd-nav .mbm-oeil { margin-bottom: 12px; }
.mbm-fx-gd-nav ol { list-style: none; margin: 0; padding: 0; counter-reset: mbmfx; }
.mbm-fx-gd-nav li { counter-increment: mbmfx; margin-bottom: 10px; font-size: .92rem; line-height: 1.35; }
.mbm-fx-gd-nav a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 4px; text-decoration: none; color: var(--mbm-doux); }
.mbm-fx-gd-nav a::before { content: counter(mbmfx, decimal-leading-zero); font-family: var(--mbm-titre); font-weight: 700; font-size: .78rem; color: var(--mbm-tampon); padding-top: 1px; }
.mbm-fx-gd-nav a:hover { color: var(--mbm-tampon); text-decoration: underline; text-underline-offset: 3px; }
.mbm-fx-gd-corps { min-width: 0; max-width: 780px; }
.mbm-fx-gd-corps p { color: var(--mbm-doux); max-width: 68ch; }
.mbm-fx-gd-sec { margin-bottom: 56px; scroll-margin-top: calc(var(--mbm-fx-entete) + 24px); }
.mbm-fx-gd-sec h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-bottom: 18px; }
.mbm-fx-gd-h2 { display: flex; align-items: center; gap: 14px; }
.mbm-fx-gd-h2 .mbm-fx-folio { width: 40px; height: 40px; }
.mbm-fx-gd-bref {
    padding: 30px 32px 18px;
    margin: 8px 0 64px;
    background: var(--mbm-velin);
    scroll-margin-top: calc(var(--mbm-fx-entete) + 32px);
}
.mbm-fx-gd-bref h2 { font-size: 1.3rem; margin-bottom: 16px; }
.mbm-fx-gd-bref li { color: var(--mbm-encre); }

/* Tableaux : toujours dans un cadre à défilement horizontal. */
.mbm-fx-table-cadre {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--mbm-filet-2);
    border-radius: var(--mbm-rayon);
    background: var(--mbm-papier);
}
.mbm-fx-table-cadre:focus-visible { outline: 2px solid var(--mbm-tampon); outline-offset: 4px; }
.mbm-fx-table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: .95rem; }
.mbm-fx-table--fiche { min-width: 0; }
.mbm-fx-table caption {
    text-align: left;
    padding: 14px 16px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mbm-gris);
    border-bottom: 1px solid var(--mbm-filet);
}
.mbm-fx-table th, .mbm-fx-table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--mbm-filet);
    color: var(--mbm-doux);
}
.mbm-fx-table thead th { background: var(--mbm-velin); color: var(--mbm-encre); font-family: var(--mbm-titre); font-weight: 700; font-size: .95rem; }
.mbm-fx-table thead a { color: var(--mbm-tampon); text-decoration: underline; text-underline-offset: 3px; }
.mbm-fx-table tbody th { color: var(--mbm-encre); font-weight: 700; background: var(--mbm-papier); }
.mbm-fx-table tbody tr:last-child th, .mbm-fx-table tbody tr:last-child td { border-bottom: 0; }
.mbm-fx-table--fiche th { width: 36%; }

.mbm-fx-cas { margin: 0; border-top: 1px solid var(--mbm-filet-2); }
.mbm-fx-cas-ligne {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--mbm-filet-2);
}
.mbm-fx-cas dt { font-family: var(--mbm-titre); font-weight: 700; color: var(--mbm-encre); line-height: 1.3; }
.mbm-fx-cas dd { margin: 0; color: var(--mbm-doux); }

/* ── Fiches de la vitrine ─────────────────────────────────────── */
.mbm-fx-fiches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 36px; }
.mbm-fx-fiches--serrees { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 44px 32px; margin-top: 26px; }
.mbm-fx-fiche-lien { display: flex; flex-direction: column; gap: 4px; height: 100%; text-decoration: none; }
.mbm-fx-fiche-vue {
    display: grid;
    place-items: center;
    aspect-ratio: 5 / 4;
    margin-bottom: 20px;
    background: var(--mbm-velin);
    color: var(--mbm-tampon);
}
.mbm-fx-fiche-lien:hover .mbm-fx-decoupe { border-color: var(--mbm-tampon); }
.mbm-fx-fiche-etat {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 3px 9px;
    border: 1px solid var(--mbm-filet-2);
    border-radius: 999px;
    background: var(--mbm-papier);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mbm-gris);
}
.mbm-fx-fiche-marque { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mbm-tampon); }
.mbm-fx-fiche-nom { font-size: 1.12rem; line-height: 1.25; color: var(--mbm-encre); }
.mbm-fx-fiche-lien:hover .mbm-fx-fiche-nom { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.mbm-fx-fiche-type { font-size: .92rem; color: var(--mbm-doux); line-height: 1.45; }

.mbm-fx-rayons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 56px; }
.mbm-fx-rayons a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border: 1px solid var(--mbm-filet-2);
    border-radius: var(--mbm-rayon);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--mbm-doux);
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.mbm-fx-rayons a:hover { border-color: var(--mbm-tampon); color: var(--mbm-tampon); }
.mbm-fx-rayons a[aria-current="page"] { background: var(--mbm-tampon); border-color: var(--mbm-tampon); color: #FFFFFF; }
.mbm-fx-rayon-n { font-size: .74rem; opacity: .8; }

/* Page d’une fiche */
.mbm-fx-fp { padding-bottom: 96px; }
.mbm-fx-fp-fil { padding-top: 36px; }
.mbm-fx-fp-haut {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 72px;
    align-items: start;
    padding-top: 12px;
}
.mbm-fx-fp-vue {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    background: var(--mbm-velin);
    color: var(--mbm-tampon);
}
.mbm-fx-fp-vue > svg { width: 34%; height: auto; }
.mbm-fx-fp-marque { margin-bottom: 12px; }
.mbm-fx-fp-titre { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.1; overflow-wrap: break-word; }
.mbm-fx-fp-type { margin: 12px 0 0; font-size: 1.05rem; color: var(--mbm-doux); }
.mbm-fx-fp-resume { margin: 24px 0 28px; color: var(--mbm-doux); }
.mbm-fx-fp-infos .mbm-fx-avis { margin-bottom: 24px; }
.mbm-fx-fp-meta { margin: 0; }
.mbm-fx-fp-meta > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--mbm-filet); font-size: .95rem; }
.mbm-fx-fp-meta dt { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mbm-gris); padding-top: 2px; }
.mbm-fx-fp-meta dd { margin: 0; color: var(--mbm-encre); overflow-wrap: anywhere; }
.mbm-fx-fp-meta a { color: var(--mbm-tampon); text-decoration: underline; text-underline-offset: 3px; }
/* Les onglets d’ancres collent SOUS l’en-tête du thème, jamais derrière. */
.mbm-fx-fp-onglets {
    position: sticky;
    top: var(--mbm-fx-entete);
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 0 28px;
    margin-top: 72px;
    background: var(--mbm-papier);
    border-bottom: 1px solid var(--mbm-filet-2);
}
.mbm-fx-fp-onglets a {
    padding: 16px 0 14px;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    color: var(--mbm-doux);
    background: linear-gradient(var(--mbm-tampon), var(--mbm-tampon)) 0 100% / 0 2px no-repeat;
    transition: background-size .22s ease, color .2s ease;
}
.mbm-fx-fp-onglets a:hover { color: var(--mbm-encre); background-size: 100% 2px; }
.mbm-fx-fp-corps { max-width: 780px; padding-top: 44px; }
.mbm-fx-fp-section { margin-bottom: 52px; scroll-margin-top: calc(var(--mbm-fx-entete) + 72px); }
.mbm-fx-fp-section h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); margin-bottom: 16px; }
.mbm-fx-fp-section h3 { font-size: 1.15rem; margin: 1.6em 0 .7em; }
.mbm-fx-fp-section > p { color: var(--mbm-doux); }
.mbm-fx-fp-section .mbm-fx-puces { color: var(--mbm-doux); }

/* ── Marche à suivre : étapes au folio, reliées par un filet ───── */
.mbm-fx-tu { padding-block: 64px 104px; }
.mbm-fx-tu-colonne { max-width: calc(780px + 2 * var(--mbm-gouttiere)); }
.mbm-fx-tu-bandeau {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    margin: 0 0 64px;
    border-block: 1px solid var(--mbm-filet-2);
}
.mbm-fx-tu-bandeau > div { padding: 18px 22px 18px 0; }
.mbm-fx-tu-bandeau > div + div { padding-left: 22px; border-left: 1px solid var(--mbm-filet); }
.mbm-fx-tu-bandeau dt { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mbm-gris); }
.mbm-fx-tu-bandeau dd { margin: 4px 0 0; font-family: var(--mbm-titre); font-weight: 700; font-size: 1.15rem; line-height: 1.3; color: var(--mbm-encre); }
.mbm-fx-tu-mat { padding: 30px 32px 18px; margin-bottom: 72px; background: var(--mbm-velin); }
.mbm-fx-tu-mat .mbm-oeil { margin-bottom: 8px; }
.mbm-fx-tu-mat h2 { font-size: 1.4rem; margin-bottom: 18px; }
.mbm-fx-tu-mat li { color: var(--mbm-encre); }
.mbm-fx-tu-etapes { list-style: none; margin: 0 0 56px; padding: 0; }
.mbm-fx-tu-etape {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 24px;
    padding-bottom: 40px;
    scroll-margin-top: calc(var(--mbm-fx-entete) + 24px);
}
/* Le filet entre 2 folios : des tirets, interrompus. */
.mbm-fx-tu-etape::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 66px;
    bottom: 10px;
    width: 1.5px;
    background: repeating-linear-gradient(180deg, var(--mbm-tampon-voile) 0 14px, transparent 14px 22px);
}
.mbm-fx-tu-etape:last-child::before { display: none; }
.mbm-fx-tu-etape .mbm-fx-folio { width: 56px; height: 56px; font-size: 1.1rem; }
.mbm-fx-tu-etape-titre { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin: 12px 0 12px; }
.mbm-fx-tu-etape-corps p { color: var(--mbm-doux); }
.mbm-fx-tu-attention {
    margin: 14px 0 0;
    padding: 12px 16px;
    border-left: 3px solid var(--mbm-tampon);
    background: var(--mbm-velin);
    border-radius: 0 var(--mbm-rayon) var(--mbm-rayon) 0;
    font-size: .98rem;
}
.mbm-fx-tu-attention strong { color: var(--mbm-encre); }
.mbm-fx-tu-controle { padding: 26px 0 8px; margin-bottom: 56px; border-top: 2px solid var(--mbm-encre); }
.mbm-fx-tu-controle h2 { font-size: 1.4rem; margin-bottom: 12px; }
.mbm-fx-tu-controle p { color: var(--mbm-doux); }
.mbm-fx-tu-suite { margin-bottom: 48px; }
.mbm-fx-tu-suite h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-bottom: 14px; }

/* ── Le calculateur ────────────────────────────────────────── */
.mbm-fx-ou-grille {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}
.mbm-fx-ou-form { padding: 32px 32px 18px; background: var(--mbm-velin); }
.mbm-fx-ou-titre { font-size: 1.4rem; margin-bottom: 20px; }
.mbm-fx-ou-groupe { margin: 0 0 22px; padding: 18px 0 0; border: 0; border-top: 1px solid var(--mbm-filet-2); min-width: 0; }
.mbm-fx-ou-groupe legend { padding: 0 0 12px; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mbm-tampon); }
.mbm-fx-champ { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; min-width: 0; }
.mbm-fx-champ label { font-size: .9rem; font-weight: 700; color: var(--mbm-encre); }
.mbm-fx-champ input,
.mbm-fx-champ select {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    font: inherit;
    font-size: 1rem;
    color: var(--mbm-encre);
    background: var(--mbm-papier);
    border: 1.5px solid var(--mbm-filet-2);
    border-radius: var(--mbm-rayon);
}
.mbm-fx-champ input:focus,
.mbm-fx-champ select:focus { outline: none; border-color: var(--mbm-tampon); box-shadow: 0 0 0 3px var(--mbm-tampon-voile); }
.mbm-fx-champ input[aria-invalid="true"] { border-color: var(--mbm-tampon-fonce); border-width: 2px; }
.mbm-fx-champ-duo { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
.mbm-fx-aide { font-size: .84rem; color: var(--mbm-gris); line-height: 1.45; }
.mbm-fx-erreur { margin: 0 0 14px; color: var(--mbm-tampon-fonce); font-weight: 700; }
.mbm-fx-erreur[hidden] { display: none; }
.mbm-fx-ou-resultat { position: sticky; top: calc(var(--mbm-fx-entete) + 32px); }
.mbm-fx-chiffres { margin: 0 0 22px; border-top: 2px solid var(--mbm-encre); }
.mbm-fx-chiffres > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--mbm-filet-2);
}
.mbm-fx-chiffres dt { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mbm-gris); }
.mbm-fx-chiffres dd { margin: 0; font-family: var(--mbm-titre); font-weight: 700; font-size: 1.6rem; color: var(--mbm-encre); white-space: nowrap; }
.mbm-fx-chiffres-fort dd { font-size: clamp(1.8rem, 5vw, 2.3rem); color: var(--mbm-tampon); white-space: normal; }
.mbm-fx-ou-phrases p { color: var(--mbm-doux); margin-bottom: .7em; }
.mbm-fx-ou-ref, .mbm-fx-ou-methode { padding-bottom: 80px; }
.mbm-fx-ou-colonne { max-width: calc(860px + 2 * var(--mbm-gouttiere)); }
.mbm-fx-ou-colonne h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); margin: 1.6em 0 .6em; }
.mbm-fx-ou-ref h2 { margin-top: 0; }
.mbm-fx-ou-colonne > p { color: var(--mbm-doux); max-width: 68ch; }
.mbm-fx-ou-ref .mbm-fx-table td { font-variant-numeric: tabular-nums; }

/* ── Bloc « Pour aller plus loin » sous un article ─────────────── */
.mbm-fx-suite { margin: 56px 0 8px; padding: 28px 30px 16px; background: var(--mbm-velin); }
.mbm-fx-suite-titre { font-size: 1.3rem; margin: 0 0 16px; }
.mbm-fx-suite ul { margin: 0; }
.mbm-fx-suite li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 14px; }
.mbm-fx-suite-type { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mbm-gris); }
.mbm-fx-suite a { color: var(--mbm-tampon); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.mbm-fx-suite a:hover { color: var(--mbm-tampon-fonce); }

/* ── Accueil : les formats, sous les rubriques (même section) ──── */
.mbm-fx-accueil { margin-top: 88px; padding-top: 36px; border-top: 1px solid var(--mbm-filet); }
.mbm-fx-accueil-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin-top: 8px; }
.mbm-fx-tuile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 26px 26px 22px;
    background: var(--mbm-velin);
    text-decoration: none;
}
.mbm-fx-tuile:hover { border-color: var(--mbm-tampon); }
.mbm-fx-tuile-picto { color: var(--mbm-tampon); margin-bottom: 10px; }
.mbm-fx-tuile h3 { font-size: 1.3rem; }
.mbm-fx-tuile:hover h3 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.mbm-fx-tuile-compte { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mbm-gris); }

/* ── Navigation : le groupe « Pour choisir » ──────────────────── */
.mbm-fx-nav { position: relative; }
.mbm-fx-nav-det > summary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding-block: 6px;
    font-weight: 400;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
}
.mbm-fx-nav-det > summary::-webkit-details-marker { display: none; }
.mbm-fx-nav-det > summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--mbm-tampon);
    border-bottom: 1.5px solid var(--mbm-tampon);
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s ease;
}
.mbm-fx-nav-det[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.mbm-fx-nav-liste {
    position: absolute;
    top: calc(100% + 22px);
    left: -22px;
    z-index: 120;
    display: grid;
    gap: 2px;
    min-width: 260px;
    padding: 14px 22px;
    background: var(--mbm-papier);
    border: 1px solid var(--mbm-filet-2);
    border-radius: var(--mbm-rayon);
}
.mbm-nav-liens .mbm-fx-nav-liste a { display: inline-block; padding-block: 8px 2px; }
.mbm-fx-nav-compte { display: block; padding-bottom: 6px; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mbm-gris); }

/* ── Plan du site ─────────────────────────────────────────────── */
.mbm-plan-groupe .mbm-fx-plan-note { font-size: .82rem; color: var(--mbm-gris); margin: -6px 0 14px; }

/* ── Réactivité ───────────────────────────────────────────────── */
@media (max-width: 1080px) {
    .mbm-fx-gd-grille { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .mbm-fx-gd-nav { position: static; max-height: none; }
    .mbm-fx-fiches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mbm-fx-accueil-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mbm-fx-fp-haut { gap: 48px; }
}

@media (max-width: 900px) {
    .mbm-fx-coiffe .mbm-coiffe-grille { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .mbm-fx-coiffe .mbm-coiffe-texte { margin: 0; }
    .mbm-fx-etiquette { min-height: 0; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 18px; padding: 20px 22px; justify-self: start; max-width: 100%; }
    .mbm-fx-etiquette-picto { grid-row: span 2; margin: 0; }
    .mbm-fx-etiquette-n { font-size: 2.2rem; }
    .mbm-fx-gd { padding-block: 48px 80px; }
    .mbm-fx-tx-grille { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .mbm-fx-fiches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; }
    .mbm-fx-fp-haut { grid-template-columns: minmax(0, 1fr); }
    .mbm-fx-fp-vue { aspect-ratio: 16 / 10; }
    .mbm-fx-fp-vue > svg { width: 22%; }
    .mbm-fx-fp-onglets { position: static; margin-top: 56px; }
    .mbm-fx-fp-section { scroll-margin-top: calc(var(--mbm-fx-entete) + 24px); }
    .mbm-fx-ou-grille { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .mbm-fx-ou-resultat { position: static; }
    .mbm-fx-ix-ligne { grid-template-columns: 48px minmax(0, 1fr); gap: 18px; }
    .mbm-fx-ix-compte { grid-column: 2; justify-items: start; text-align: left; grid-auto-flow: column; align-items: baseline; gap: 8px; }
    .mbm-fx-ix-compte-n { font-size: 1.2rem; }

    /* Le groupe de navigation dans le menu plein écran : la liste suit, à plat. */
    .mbm-fx-nav-det > summary { font-family: var(--mbm-titre); font-size: 2rem; font-weight: 700; color: var(--mbm-encre); }
    .mbm-fx-nav-liste { position: static; min-width: 0; padding: 10px 0 0 20px; background: none; border: 0; border-radius: 0; gap: 6px; }
    .mbm-nav-liens .mbm-fx-nav-liste a { font-size: 1.3rem; padding-block: 4px 0; }
    .mbm-fx-nav-compte { display: none; }
    /* Groupe ouvert : le menu centré risquerait de couper son haut sur un petit
       écran ; il repart du haut et défile. */
    .mbm-nav:has(.mbm-fx-nav-det[open]) { justify-content: flex-start; }
}

@media (max-width: 600px) {
    :root { --mbm-fx-entete: 67px; }
    .mbm-fx-fiches { gap: 40px 22px; }
    .mbm-fx-fiche-nom { font-size: 1rem; }
    .mbm-fx-fiche-etat { top: 8px; left: 8px; font-size: .58rem; padding: 2px 7px; }
    .mbm-fx-accueil-grille { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .mbm-fx-accueil { margin-top: 64px; }
    .mbm-fx-cas-ligne { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .mbm-fx-gd-bref, .mbm-fx-tu-mat, .mbm-fx-tx-fiche, .mbm-fx-ou-form, .mbm-fx-suite { padding-inline: 20px; }
    .mbm-fx-tu-etape { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
    .mbm-fx-tu-etape .mbm-fx-folio { width: 44px; height: 44px; font-size: .95rem; }
    .mbm-fx-tu-etape::before { left: 21px; top: 54px; }
    .mbm-fx-tu-bandeau { grid-template-columns: minmax(0, 1fr); }
    .mbm-fx-tu-bandeau > div { padding: 14px 0; }
    .mbm-fx-tu-bandeau > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--mbm-filet); }
    .mbm-fx-fp-meta > div { grid-template-columns: 92px minmax(0, 1fr); }
    .mbm-fx-fp-onglets { gap: 0 20px; }
    .mbm-fx-champ-duo { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .mbm-fx-table { font-size: .9rem; }
}

@media (max-width: 420px) {
    .mbm-fx-fiches { grid-template-columns: minmax(0, 1fr); }
}

/* ── Calculateur 50/30/20 : les 3 parts côte à côte ───────────── */
.mbm-fx-champ-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mbm-fx-chiffres dt span { letter-spacing: 0; }
@media (max-width: 420px) {
    .mbm-fx-champ-trio { gap: 10px; }
    .mbm-fx-champ-trio input { padding-inline: 10px; }
}
