/* =====================================================================
   Moreha : formats complémentaires (partis pris, chantiers guidés,
   matériauthèque, calcul des rouleaux de papier peint).
   Même atelier que le magazine : fond pierre, encre noyer, accent ocre,
   fiches cernées d'un filet d'encre de 1,5 px, rayon de 4 px, étiquettes
   à encoche, numéros et libellés en PT Mono. Chargée après style.css.
   ===================================================================== */

/* ---------------------------------------------------------------------
   Hauteur réelle de l'en-tête fixe
   style.css : bandeau de 74 px (--mh-hh), 60 px sous 760 px.
   Avec les formats, une seconde ligne de 38 px s'ajoute au-dessus de 860 px.
   --------------------------------------------------------------------- */
:root { --mh-fx-barre: 38px; --mh-fx-haut: var(--mh-hh); }
body.mh-a-formats { --mh-fx-haut: calc(var(--mh-hh) + var(--mh-fx-barre)); padding-top: var(--mh-fx-haut); }

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

/* Seconde ligne du bandeau : les formats pratiques, en PT Mono, sous un filet. */
.mh-fx-barre { height: var(--mh-fx-barre); border-top: 1px solid var(--mh-line); background: var(--mh-stone); }
.mh-fx-barre-int { height: 100%; display: flex; align-items: center; gap: 26px; }
.mh-fx-barre-int .mh-label { color: var(--mh-soft); }
.mh-fx-barre ul { display: flex; align-items: center; gap: 24px; }
.mh-fx-barre a { position: relative; font-family: var(--mh-mono); font-size: 0.74rem; letter-spacing: .04em; color: var(--mh-ink); transition: color .3s var(--ease); }
.mh-fx-barre a::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 1.5px; background: var(--mh-ochre); transform: rotate(-8deg) translateY(-1px); }
.mh-fx-barre a:hover, .mh-fx-barre a[aria-current="page"] { color: var(--mh-ochre-deep); }
.mh-fx-barre a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--mh-ochre); text-underline-offset: 4px; }

/* Dans le menu mobile seulement */
.mh-nav-formats { display: none; }

/* ---------------------------------------------------------------------
   Coiffe des formats (reprend .mh-coiffe du thème)
   --------------------------------------------------------------------- */
.mh-fx-coiffe .mh-coiffe-inner { padding-top: 64px; padding-bottom: 64px; }
.mh-fx-coiffe h1 { max-width: 22ch; }
.mh-fx-coiffe .mh-badge-cat { margin-bottom: 18px; }
.mh-fx-coiffe .mh-fil span[aria-current] { color: rgba(255,255,255,.5); }

/* ---------------------------------------------------------------------
   Briques communes
   --------------------------------------------------------------------- */
.mh-fx-h2 { font-size: clamp(1.45rem, 2.2vw, 1.8rem); border-bottom: 1.5px solid var(--mh-ink); padding-bottom: 12px; margin-bottom: 20px; }
.mh-fx-num { font-family: var(--mh-mono); font-weight: 400; font-size: 0.8rem; color: var(--mh-ochre-deep); letter-spacing: .06em; margin-right: 12px; vertical-align: 0.3em; }
.mh-fx-sous { font-size: 1.15rem; margin: 22px 0 10px; }
.mh-fx-sec { margin-top: 54px; scroll-margin-top: calc(var(--mh-fx-haut) + 24px); }
.mh-fx-sec:first-child { margin-top: 0; }
.mh-fx-sec p, .mh-fx-bref p, .mh-fx-controle p { color: var(--mh-soft); margin-bottom: 1.1em; }
.mh-fx-note { font-size: 0.9rem; color: var(--mh-soft); margin: 14px 0 22px; padding-left: 14px; border-left: 3px solid var(--mh-ochre); }
.mh-fx-vide { color: var(--mh-soft); text-align: center; padding: 40px 0; }
.mh-fx-signature { margin-top: 54px; padding-top: 18px; border-top: 1.5px solid var(--mh-ink); font-family: var(--mh-mono); font-size: 0.78rem; letter-spacing: .04em; color: var(--mh-soft); }
.mh-fx-lecture { max-width: 780px; margin-inline: auto; }

/* L'aplat ocre pâle : « En bref », matériel, points à vérifier. */
.mh-fx-bref { background: var(--mh-ochre-tint); border: 1.5px solid var(--mh-ink); border-radius: 4px; padding: 26px 28px 10px; scroll-margin-top: calc(var(--mh-fx-haut) + 24px); }
.mh-fx-bref .mh-fx-h2 { border-bottom-color: rgba(33,29,23,.25); }
.mh-fx-bref .mh-label { margin-bottom: 8px; }

/* Listes de liens et sources */
.mh-fx-liens li a { word-break: break-word; }
.mh-fx-sources li { font-size: 0.93rem; }

/* Tableaux : le défilement horizontal reste dans le cadre, jamais sur la page. */
.mh-fx-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1.5px solid var(--mh-ink); border-radius: 4px; background: var(--mh-surface); }
.mh-fx-table-wrap:focus-visible { outline: 2px solid var(--mh-ochre); outline-offset: 3px; }
.mh-fx-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.92rem; }
.mh-fx-table caption { caption-side: top; text-align: left; padding: 14px 16px 10px; font-family: var(--mh-mono); font-size: 0.72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mh-ochre-deep); }
.mh-fx-table th, .mh-fx-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--mh-line); }
.mh-fx-table thead th { background: var(--mh-ink); color: var(--mh-stone); font-family: var(--mh-display); font-weight: 600; font-size: 1rem; border-top: none; }
.mh-fx-table thead th a { color: inherit; text-decoration: underline; text-decoration-color: var(--mh-ochre); text-underline-offset: 3px; }
.mh-fx-table tbody th { font-weight: 600; color: var(--mh-ink); width: 30%; }
.mh-fx-table td { color: var(--mh-soft); }
.mh-fx-table tbody tr:nth-child(even) { background: var(--mh-stone); }
.mh-fx-table--fiche { min-width: 0; }

/* Choix selon le cas : une ligne par cas, filet d'encre */
.mh-fx-cas { border-top: 1.5px solid var(--mh-ink); }
.mh-fx-cas-ligne { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--mh-line); }
.mh-fx-cas dt { font-weight: 600; }
.mh-fx-cas dd { color: var(--mh-soft); }

/* ---------------------------------------------------------------------
   Cartes de la matériauthèque : des échantillons cernés d'encre
   --------------------------------------------------------------------- */
.mh-fx-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 24px; }
.mh-fx-grille--serree { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.mh-fx-carte { display: flex; }
.mh-fx-carte-lien { display: flex; flex-direction: column; width: 100%; border: 1.5px solid var(--mh-ink); border-radius: 4px; background: var(--mh-surface); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.mh-fx-carte-lien:hover { transform: translateY(-4px); box-shadow: var(--sh-1); }
.mh-fx-carte-vue { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; background: var(--mh-stone-2); border-bottom: 1.5px solid var(--mh-ink); color: var(--mh-ochre-deep); }
.mh-fx-carte-vue .mh-tag { position: absolute; top: 12px; left: 0; }
.mh-fx-carte-vue--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mh-fx-picto-grand { width: 38%; height: auto; }
.mh-fx-carte-corps { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1; }
.mh-fx-carte-corps .mh-fiche-cat { margin-bottom: 2px; }
.mh-fx-carte-nom { font-size: 1.12rem; line-height: 1.12; }
.mh-fx-carte-type { font-size: 0.86rem; color: var(--mh-soft); }
.mh-fx-carte-stock { margin-top: auto; padding-top: 10px; font-family: var(--mh-mono); font-size: 0.68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mh-ochre-deep); }

/* ---------------------------------------------------------------------
   Index des partis pris : liste à filets numérotée
   --------------------------------------------------------------------- */
.mh-fx-ix, .mh-fx-tx, .mh-fx-bt { padding: 64px 0 88px; }
.mh-fx-ix-liste { border-top: 2px solid var(--mh-ink); max-width: 980px; margin-inline: auto; }
.mh-fx-ix-ligne { display: grid; grid-template-columns: 96px minmax(0, 1fr) 170px; gap: 24px; align-items: start; padding: 28px 0; border-bottom: 1.5px solid var(--mh-ink); }
.mh-fx-ix-ligne .mh-tag { justify-self: start; margin-top: 4px; }
.mh-fx-ix-titre { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 4px 0 10px; }
.mh-fx-ix-titre a { background-image: linear-gradient(var(--mh-ochre), var(--mh-ochre)); background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .4s var(--ease); padding-bottom: 2px; }
.mh-fx-ix-ligne:hover .mh-fx-ix-titre a { background-size: 100% 2px; }
.mh-fx-ix-accroche { color: var(--mh-soft); font-size: 0.97rem; }
.mh-fx-ix-compte { justify-self: end; text-align: right; font-family: var(--mh-mono); font-size: 0.72rem; letter-spacing: .04em; color: var(--mh-soft); margin-top: 8px; }

/* ---------------------------------------------------------------------
   Index des chantiers guidés : fiches sans image
   --------------------------------------------------------------------- */
.mh-fx-tx-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.mh-fx-tx-fiche { display: flex; }
.mh-fx-tx-lien { display: flex; flex-direction: column; gap: 8px; width: 100%; border: 1.5px solid var(--mh-ink); border-radius: 4px; background: var(--mh-surface); padding: 0 24px 22px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.mh-fx-tx-lien:hover { transform: translateY(-4px); box-shadow: var(--sh-1); }
.mh-fx-tx-lien .mh-tag { align-self: flex-start; margin: 20px 0 8px -24px; }
.mh-fx-tx-titre { font-size: 1.32rem; line-height: 1.1; }
.mh-fx-tx-accroche { color: var(--mh-soft); font-size: 0.93rem; }
.mh-fx-tx-meta { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--mh-line); font-family: var(--mh-mono); font-size: 0.72rem; letter-spacing: .04em; color: var(--mh-soft); }

/* ---------------------------------------------------------------------
   Matériauthèque : rayons en étiquettes
   --------------------------------------------------------------------- */
.mh-fx-bt-rayons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.mh-fx-bt-rayons a { font-family: var(--mh-mono); font-size: 0.76rem; letter-spacing: .03em; border: 1.5px solid var(--mh-ink); border-radius: 3px; padding: 8px 14px; background: var(--mh-surface); transition: background-color .25s var(--ease), color .25s var(--ease); }
.mh-fx-bt-rayons a:hover { background: var(--mh-ochre-tint); }
.mh-fx-bt-rayons a[aria-current="page"] { background: var(--mh-ochre); color: var(--mh-ink); }
.mh-fx-bt-n { color: var(--mh-ochre-deep); margin-left: 4px; }
.mh-fx-bt-rayons a[aria-current="page"] .mh-fx-bt-n { color: var(--mh-ink); }

/* ---------------------------------------------------------------------
   Parti pris et chantier guidé : sommaire collant + colonne
   --------------------------------------------------------------------- */
.mh-fx-gd, .mh-fx-tu { padding: 60px 0 88px; }
.mh-fx-gd-grille { display: grid; grid-template-columns: 250px minmax(0, 780px); gap: 56px; justify-content: center; align-items: start; }
.mh-fx-corps { min-width: 0; }
.mh-fx-sommaire {
    position: sticky;
    top: calc(var(--mh-fx-haut) + 24px);
    max-height: calc(100vh - var(--mh-fx-haut) - 48px);
    overflow-y: auto;
    border: 1.5px solid var(--mh-ink); border-radius: 4px; background: var(--mh-surface); padding: 18px 18px 12px;
}
.mh-fx-sommaire .mh-label { margin-bottom: 10px; }
.mh-fx-sommaire li { border-top: 1px solid var(--mh-line); }
.mh-fx-sommaire a { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; padding: 9px 0; font-size: 0.88rem; line-height: 1.35; transition: color .25s var(--ease); }
.mh-fx-sommaire a:hover { color: var(--mh-ochre-deep); }
.mh-fx-sommaire-n { font-family: var(--mh-mono); font-size: 0.72rem; color: var(--mh-ochre-deep); padding-top: 2px; }

/* Relevé d'un chantier : reprend .mh-reperes du thème, au-dessus de la grille */
.mh-fx-releve { max-width: 1086px; margin: 0 auto 44px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.mh-fx-releve dd { font-size: 1.35rem; }

/* Étapes : numéros sur étiquette ocre reliés par un filet */
.mh-fx-etapes { position: relative; margin-top: 46px; }
.mh-fx-etape { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding-bottom: 34px; scroll-margin-top: calc(var(--mh-fx-haut) + 24px); }
.mh-fx-etape::before { content: ''; position: absolute; left: 27px; top: 42px; bottom: 0; width: 1.5px; background: var(--mh-ochre); opacity: .7; }
.mh-fx-etape:last-child::before { display: none; }
.mh-fx-etape-n { display: flex; align-items: center; justify-content: center; width: 56px; height: 40px; font-family: var(--mh-mono); font-size: 0.86rem; background: var(--mh-ochre); color: var(--mh-ink); border-radius: 3px; }
.mh-fx-etape-titre { font-size: 1.3rem; margin: 6px 0 10px; }
.mh-fx-etape-corps p { color: var(--mh-soft); margin-bottom: .9em; }
.mh-fx-attention { border: 1.5px solid var(--mh-ink); border-radius: 4px; background: var(--mh-ochre-tint); padding: 12px 16px; color: var(--mh-ink) !important; font-size: 0.93rem; }
.mh-fx-controle { margin-top: 20px; border: 1.5px solid var(--mh-ink); border-left: 5px solid var(--mh-ochre); border-radius: 4px; background: var(--mh-surface); padding: 22px 26px 8px; scroll-margin-top: calc(var(--mh-fx-haut) + 24px); }

/* ---------------------------------------------------------------------
   Fiche de la matériauthèque
   --------------------------------------------------------------------- */
.mh-fx-fp { padding: 56px 0 36px; }
.mh-fx-fp-grille { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 56px; align-items: start; }
.mh-fx-fp-vue { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border: 5px solid #fff; border-radius: 4px; box-shadow: var(--sh-2); background: var(--mh-stone-2); color: var(--mh-ochre-deep); transform: rotate(-1.2deg); overflow: hidden; }
.mh-fx-fp-vue .mh-tag { position: absolute; top: 16px; left: 0; }
.mh-fx-fp-vue--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mh-fx-fil { font-family: var(--mh-mono); font-size: 0.72rem; letter-spacing: .03em; color: var(--mh-soft); margin-bottom: 20px; }
.mh-fx-fil a { color: var(--mh-ink); }
.mh-fx-fil a:hover { color: var(--mh-ochre-deep); }
.mh-fx-fp-titre { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 8px 0 10px; }
.mh-fx-fp-type { color: var(--mh-soft); margin-bottom: 20px; }
.mh-fx-fp-resume { margin-bottom: 20px; }
.mh-fx-fp-dispo { border: 1.5px solid var(--mh-ink); border-radius: 4px; background: var(--mh-surface); padding: 14px 18px; font-size: 0.93rem; color: var(--mh-soft); margin-bottom: 22px; }
.mh-fx-fp-dispo strong { color: var(--mh-ink); }
.mh-fx-fp-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border-top: 1.5px solid var(--mh-ink); }
.mh-fx-fp-meta > div { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--mh-line); }
.mh-fx-fp-meta dt { font-family: var(--mh-mono); font-size: 0.68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mh-soft); }
.mh-fx-fp-meta dd { font-weight: 600; }
.mh-fx-fp-meta a { text-decoration: underline; text-decoration-color: var(--mh-ochre); text-underline-offset: 3px; }
.mh-fx-fp-suite { padding: 20px 0 80px; }
.mh-fx-onglets { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; max-width: 780px; margin: 0 auto 40px; padding: 14px 0; border-top: 1.5px solid var(--mh-ink); border-bottom: 1.5px solid var(--mh-ink); }
.mh-fx-onglets a { font-family: var(--mh-mono); font-size: 0.76rem; letter-spacing: .04em; }
.mh-fx-onglets a:hover { color: var(--mh-ochre-deep); }

/* ---------------------------------------------------------------------
   Outil : rouleaux de papier peint
   --------------------------------------------------------------------- */
.mh-fx-rp { padding: 60px 0 40px; }
.mh-fx-rp-grille { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: start; max-width: 1086px; }
.mh-fx-rp-form, .mh-fx-rp-resultat { border: 1.5px solid var(--mh-ink); border-radius: 4px; background: var(--mh-surface); padding: 28px 30px; }
.mh-fx-rp-resultat { position: sticky; top: calc(var(--mh-fx-haut) + 24px); background: var(--mh-walnut); color: #EFE9DD; border-color: var(--mh-walnut); }
.mh-fx-rp-resultat .mh-fx-h2 { color: #fff; border-bottom-color: rgba(239,233,221,.25); }
.mh-fx-rp-groupe { border: none; margin: 0 0 20px; padding: 0; min-width: 0; }
.mh-fx-rp-groupe .mh-label { margin-bottom: 10px; }
.mh-fx-rp-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mh-fx-rp-champ { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.mh-fx-rp-champ label { font-family: var(--mh-mono); font-size: 0.7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--mh-soft); }
.mh-fx-rp-champ input, .mh-fx-rp-champ select { width: 100%; padding: 11px 13px; border: 1px solid var(--mh-line); border-radius: 3px; font-family: var(--mh-corps); font-size: 1rem; background: var(--mh-stone); color: var(--mh-ink); transition: border-color .25s var(--ease); }
.mh-fx-rp-champ input:focus, .mh-fx-rp-champ select:focus { outline: none; border-color: var(--mh-ochre); }
.mh-fx-rp-aide { font-size: 0.82rem; color: var(--mh-soft); }
.mh-fx-rp-erreur { border: 1.5px solid var(--mh-ink); border-radius: 4px; background: var(--mh-ochre-tint); padding: 10px 14px; font-size: 0.92rem; }
.mh-fx-rp-chiffres > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(239,233,221,.16); }
.mh-fx-rp-chiffres dt { font-family: var(--mh-mono); font-size: 0.72rem; letter-spacing: .05em; text-transform: uppercase; color: #C9C0AE; }
.mh-fx-rp-chiffres dd { font-family: var(--mh-display); font-size: 1.35rem; font-weight: 600; color: #fff; }
.mh-fx-rp-total { border-bottom: none !important; padding-top: 18px !important; }
.mh-fx-rp-total dt { color: #D9B871; }
.mh-fx-rp-total dd { font-size: 2.6rem; line-height: 1; color: var(--mh-ochre); }
.mh-fx-rp-phrase { margin-top: 14px; font-size: 0.93rem; color: #C9C0AE; }
.mh-fx-rp-resultat .mh-fx-note { color: #C9C0AE; }
.mh-fx-rp-ref { padding: 40px 0 0; }
.mh-fx-rp-ref p { color: var(--mh-soft); margin-bottom: 18px; }
.mh-fx-rp-sous { display: block; font-family: var(--mh-mono); font-weight: 400; font-size: 0.68rem; color: var(--mh-soft); }
.mh-fx-rp-methode { padding: 54px 0 88px; }
.mh-fx-rp-methode .mh-fx-h2 { margin-top: 44px; }
.mh-fx-rp-methode .mh-fx-h2:first-child { margin-top: 0; }
.mh-fx-rp-methode p { color: var(--mh-soft); margin-bottom: 1.1em; }

/* ---------------------------------------------------------------------
   Accueil : ligne des formats sous les casiers
   --------------------------------------------------------------------- */
.mh-fx-acces { margin-top: 44px; }
.mh-fx-acces .mh-label { margin-bottom: 14px; }
.mh-fx-acces-liste { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--mh-ink); }
.mh-fx-acces-liste li { border-bottom: 1.5px solid var(--mh-ink); }
.mh-fx-acces-liste li + li { border-left: 1.5px solid var(--mh-ink); }
.mh-fx-acces-lien { display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px 18px; transition: background-color .3s var(--ease); }
.mh-fx-acces-lien:hover { background: var(--mh-surface); }
.mh-fx-acces-icone { grid-row: span 2; width: 30px; height: 30px; color: var(--mh-ochre-deep); }
.mh-fx-acces-icone svg { width: 100%; height: 100%; }
.mh-fx-acces-nom { font-family: var(--mh-display); font-weight: 600; font-size: 1.08rem; line-height: 1.15; }
.mh-fx-acces-compte { font-family: var(--mh-mono); font-size: 0.68rem; letter-spacing: .04em; color: var(--mh-soft); }

/* ---------------------------------------------------------------------
   Sous un article : « Pour aller plus loin »
   --------------------------------------------------------------------- */
.mh-fx-suite { margin: 40px 0 10px; border: 1.5px solid var(--mh-ink); border-radius: 4px; background: var(--mh-surface); padding: 22px 26px; }
.mh-fx-suite .mh-label { margin-bottom: 6px; }
.mh-fx-suite-titre { font-size: 1.35rem; margin-bottom: 12px; }
.mh-fx-suite li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-top: 1px solid var(--mh-line); }
.mh-fx-suite-type { font-family: var(--mh-mono); font-size: 0.7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--mh-ochre-deep); padding-top: 3px; }
.mh-fx-suite a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--mh-ochre); text-underline-offset: 3px; }
.mh-fx-suite a:hover { color: var(--mh-ochre-deep); }

/* Plan du site */
.mh-fx-plan-rayon { font-size: 1.05rem; margin: 16px 0 6px; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1100px) {
    .mh-fx-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mh-fx-gd-grille { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
    .mh-fx-barre-int .mh-label { display: none; }
}
@media (max-width: 1024px) {
    .mh-fx-tx-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mh-fx-acces-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mh-fx-acces-liste li:nth-child(odd) { border-left: none; }
    .mh-fx-rp-grille { grid-template-columns: minmax(0, 1fr); }
    .mh-fx-rp-resultat { position: static; }
}
@media (max-width: 900px) {
    .mh-fx-gd-grille { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .mh-fx-sommaire { position: static; max-height: none; }
    .mh-fx-fp-grille { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .mh-fx-fp-vue { max-width: 380px; width: 100%; margin-inline: auto; }
    .mh-fx-grille, .mh-fx-grille--serree { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mh-fx-ix-ligne { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .mh-fx-ix-compte { justify-self: start; text-align: left; margin-top: 0; }
}
/* Sous 860 px, le burger remplace la navigation : la seconde ligne disparaît,
   ses liens passent dans le menu plein écran. */
@media (max-width: 860px) {
    .mh-fx-barre { display: none; }
    body.mh-a-formats { --mh-fx-haut: var(--mh-hh); }
    .mh-nav-formats { display: flex; flex-direction: column; margin-top: 22px; }
    .mh-nav-formats li { border-top: 1px solid var(--mh-line); }
    .mh-nav-formats li:last-child { border-bottom: 1px solid var(--mh-line); }
    .mh-nav-formats a { display: block; padding: 13px 0; font-family: var(--mh-mono); font-size: 0.86rem; letter-spacing: .03em; color: var(--mh-ink); }
    .mh-nav-formats a[aria-current="page"] { color: var(--mh-ochre-deep); }
}
@media (max-width: 760px) {
    body.mh-a-formats { --mh-fx-haut: 60px; }
    .mh-fx-ix, .mh-fx-tx, .mh-fx-bt, .mh-fx-gd, .mh-fx-tu { padding: 44px 0 64px; }
    .mh-fx-tx-liste { grid-template-columns: minmax(0, 1fr); }
    .mh-fx-cas-ligne { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .mh-fx-bref { padding: 20px 18px 6px; }
    .mh-fx-rp-form, .mh-fx-rp-resultat { padding: 22px 18px; }
    .mh-fx-rp-duo { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .mh-fx-suite { padding: 18px; }
    .mh-fx-suite li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .mh-fx-acces-liste { grid-template-columns: minmax(0, 1fr); }
    .mh-fx-acces-liste li + li { border-left: none; }
    .mh-fx-coiffe .mh-coiffe-inner { padding: 52px 22px; }
    .mh-fx-etape { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
    .mh-fx-etape-n { width: 44px; height: 34px; }
    .mh-fx-etape::before { left: 21px; top: 36px; }
}
@media (max-width: 480px) {
    .mh-fx-grille, .mh-fx-grille--serree { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .mh-fx-carte-lien, .mh-fx-tx-lien { transition: none; }
    .mh-fx-carte-lien:hover, .mh-fx-tx-lien:hover { transform: none; }
}
