@font-face {
  font-family: 'Encode Sans';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url(../fonts/encode-sans-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Encode Sans';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url(../fonts/encode-sans-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Gelasio';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/gelasio-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Gelasio';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/gelasio-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Gelasio';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/gelasio-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Gelasio';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/gelasio-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ==========================================================================
   MRF Relevage — « la carte du terrain »
   Papier sauge, encre ardoise, bleu hydrographique, bistre des courbes, olive bois, rouge borne.
   ========================================================================== */
:root {
  --papier: #F2F4EC;
  --encre: #1D2B36;
  --encre-douce: #3B4B57;
  --bleu: #1F5F8B;
  --bleu-fonce: #174A6D;
  --bistre: #A86B3C;
  --olive: #66783A;
  --olive-clair: rgba(102, 120, 58, .10);
  --rouge: #B81D2B;
  --rouge-fonce: #8E1420;
  --blanc: #fff;
  --filet: #CBD2C2;
  --titre: 'Encode Sans', 'Segoe UI', Arial, sans-serif;
  --texte: 'Gelasio', Georgia, 'Times New Roman', serif;
  --rayon: 6px;
  --ombre: 0 18px 30px -18px rgba(29, 43, 54, .45);
  --entete: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--papier); color: var(--encre);
  font-family: var(--texte); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
main { flex: 1 0 auto; display: block; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--bleu); text-underline-offset: 3px; }
a:hover { color: var(--bleu-fonce); }
h1, h2, h3, h4 { font-family: var(--titre); font-stretch: 112%; font-weight: 700; line-height: 1.12; margin: 0 0 .5em; color: var(--encre); text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.1vw, 3.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.2rem; font-stretch: 105%; }
p { margin: 0 0 1em; }
.conteneur { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 32px; }
.mrf-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mrf-skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--encre); color: #fff; padding: 10px 16px; border-radius: var(--rayon); }
.mrf-skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; }
::selection { background: var(--bleu); color: #fff; }

/* ---------- Boutons ---------- */
.mrf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  font-family: var(--titre); font-stretch: 105%; font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: var(--rayon); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.mrf-btn--plein { background: var(--rouge); color: #fff; }
.mrf-btn--plein:hover { background: var(--rouge-fonce); color: #fff; }
.mrf-btn--bord { background: transparent; color: var(--encre); border-color: var(--encre); }
.mrf-btn--bord:hover { background: var(--encre); color: #fff; }
.mrf-btn--sombre { background: var(--encre); color: #fff; }
.mrf-btn--sombre:hover { background: #0F1A22; color: #fff; }
.mrf-btn--clair { background: #fff; color: var(--encre); }
.mrf-btn--clair:hover { background: var(--papier); color: var(--encre); }
.mrf-btn--grand { min-height: 54px; padding: 0 30px; font-size: 1.0625rem; }
.mrf-btn.est-desactive, .mrf-form__bouton.est-desactive { opacity: .45; cursor: not-allowed; }

/* ---------- En-tête ---------- */
.mrf-header { position: sticky; top: 0; z-index: 100; height: var(--entete); background: var(--papier); border-bottom: 1px solid rgba(168, 107, 60, .4); transition: box-shadow .2s; }
.mrf-header.est-colle { box-shadow: 0 8px 20px -14px rgba(29, 43, 54, .5); }
.mrf-header__ligne { height: 100%; display: flex; align-items: center; gap: 28px; }
.mrf-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); }
.mrf-logo__symbole { display: block; }
.mrf-logo__texte { font-family: var(--titre); font-stretch: 112%; font-weight: 700; font-size: 1.05rem; line-height: 1.05; }
.mrf-nav { margin-left: auto; }
.mrf-nav__liste { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.mrf-nav__lien { display: block; padding: 8px 12px; font-family: var(--titre); font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--encre); border-bottom: 3px solid transparent; }
.mrf-nav__lien:hover { color: var(--bleu); }
.mrf-nav__lien.est-actif { border-bottom-color: var(--bleu); }
.mrf-header__cta { min-height: 42px; padding: 0 18px; }
.mrf-header__cta-court { display: none; }
.mrf-nav__bascule { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.mrf-nav__traits, .mrf-nav__traits::before, .mrf-nav__traits::after { display: block; width: 24px; height: 2.5px; background: var(--encre); border-radius: 2px; position: absolute; left: 10px; content: ""; }
.mrf-nav__traits { top: 21px; }
.mrf-nav__traits::before { left: 0; top: -7px; }
.mrf-nav__traits::after { left: 0; top: 7px; }
.mrf-nav__bascule--ferme { display: block; font-size: 2rem; line-height: 1; color: var(--encre); }
.mrf-mobile-panel { position: fixed; inset: 0; z-index: 300; background: var(--papier); display: none; flex-direction: column; padding: 14px 24px 28px; overflow-y: auto; }
.mrf-mobile-panel.est-ouvert { display: flex; }
.mrf-mobile-panel__tete { display: flex; align-items: center; justify-content: space-between; min-height: 54px; }
.mrf-mobile-panel__liste { list-style: none; margin: 18px 0; padding: 0; }
.mrf-mobile-panel__lien { display: block; padding: 14px 0; font-family: var(--titre); font-stretch: 108%; font-weight: 700; font-size: 1.3rem; text-decoration: none; color: var(--encre); border-bottom: 1px solid var(--filet); }
.mrf-mobile-panel__cta { margin-top: auto; }

/* ---------- Courbes de niveau en fond ---------- */
.mrf-hero__courbes, .mrf-art-tete__courbes, .mrf-rub-tete__courbes, .mrf-legende__courbes { position: absolute; inset: 0; pointer-events: none; background: url(../svg/courbes.svg) center / cover no-repeat; }
.mrf-art-tete__courbes, .mrf-rub-tete__courbes { background-image: url(../svg/courbes-etroit.svg); opacity: .8; }
.mrf-legende__courbes { background-image: url(../svg/courbes-clair.svg); opacity: .9; }

/* ---------- Parcelle cadastrale ---------- */
.mrf-parcelle { position: relative; }
.mrf-parcelle__photo { position: relative; z-index: 1; width: 100%; height: 100%; background: var(--olive-clair); }
.mrf-parcelle__photo img, .mrf-parcelle__photo picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.mrf-parcelle__photo.est-vide { background: linear-gradient(135deg, rgba(102, 120, 58, .16), rgba(31, 95, 139, .10)), url(../svg/courbes-etroit.svg) center / cover; }
.mrf-parcelle__limite { position: absolute; left: -3.5%; top: -3.5%; width: 107%; height: 107%; z-index: 2; pointer-events: none; overflow: visible; }
.mrf-parcelle__limite polygon { stroke: var(--bistre); stroke-width: 1.6; stroke-dasharray: 7 5; }

/* ---------- Hero ---------- */
.mrf-hero { position: relative; overflow: hidden; background: var(--papier); border-bottom: 1px solid rgba(168, 107, 60, .35); }
.mrf-hero__interieur { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 118px 420px; gap: 20px; align-items: stretch; padding-block: 34px 40px; }
.mrf-hero__texte { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.mrf-hero__texte h1 { max-width: 14em; margin-bottom: .35em; }
.mrf-hero__chapo { font-size: 1.1rem; line-height: 1.55; color: var(--encre-douce); max-width: 34em; margin-bottom: 18px; }
.mrf-hero__ancre { display: none; }
.mrf-hero__photo { width: 62%; aspect-ratio: 3 / 2; margin-top: auto; margin-left: 10px; }
.mrf-hero__trace { position: relative; min-height: 440px; }
.mrf-hero__trace svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mrf-hero__trace path, .mrf-hero__trace line { vector-effect: non-scaling-stroke; fill: none; }
.mrf-trace-route { stroke: var(--bistre); stroke-width: 2; stroke-dasharray: 8 6; }
.mrf-trace-bleu { stroke: var(--bleu); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.mrf-trace-fleche { stroke: var(--bleu); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.mrf-trace-point { fill: var(--bleu); }
.mrf-hero__cote { position: absolute; left: 0; z-index: 2; max-width: 112px; font-family: var(--titre); font-size: .8rem; font-weight: 600; line-height: 1.2; color: var(--encre-douce); background: var(--papier); padding: 2px 4px 2px 0; }
.mrf-hero__cote--haut { top: -2px; }
.mrf-hero__cote--bas { bottom: 0; }
.mrf-hero__lieu { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-family: var(--titre); font-weight: 600; font-size: .95rem; color: var(--bleu); }
.mrf-hero__lieu svg { width: 20px; height: 20px; }
.mrf-hero__borne { position: relative; align-self: start; z-index: 3; }
.mrf-hero--ville .mrf-hero__interieur { grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; }
.mrf-hero--ville .mrf-hero__photo { width: 70%; margin-top: 8px; margin-left: 0; }
.mrf-credit-photo { margin: 14px 0 0; font-size: .8rem; color: var(--encre-douce); }
.mrf-credit-photo a { color: var(--encre-douce); }

/* ---------- La borne de géomètre (formulaire) ---------- */
.mrf-form { position: relative; background: #fff; border: 1.5px solid var(--encre); border-radius: var(--rayon); padding: 18px 20px 20px; font-family: var(--titre); color: var(--encre); }
.mrf-form--borne { border-top: 0; border-radius: 4px 4px var(--rayon) var(--rayon); padding-top: 34px; box-shadow: var(--ombre); }
.mrf-form--borne::before { content: ""; position: absolute; left: -1.5px; right: -1.5px; top: 0; height: 16px; background: var(--rouge); border-radius: 22px 22px 0 0 / 14px 14px 0 0; }
.mrf-form--borne::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -14px; height: 10px; background: radial-gradient(ellipse at center, rgba(29, 43, 54, .28), rgba(29, 43, 54, 0) 70%); z-index: -1; }
.mrf-form__piege { position: absolute; left: -9999px; }
.mrf-form__tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.mrf-form__titre { font-stretch: 112%; font-weight: 700; font-size: 1.05rem; }
.mrf-form__compteur { font-size: .85rem; color: var(--encre-douce); font-weight: 600; }
.mrf-form__trace { position: relative; display: flex; justify-content: space-between; margin: 0 6px 14px; }
.mrf-form__trace::before { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: 3px; background: var(--filet); }
.mrf-form__point { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mrf-form__point i { width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 3px solid var(--filet); }
.mrf-form__point b { font-weight: 600; font-size: .78rem; color: var(--encre-douce); }
.mrf-form__point.est-fait i { background: var(--bleu); border-color: var(--bleu); }
.mrf-form__point.est-actif i { border-color: var(--bleu); box-shadow: 0 0 0 4px rgba(31, 95, 139, .2); }
.mrf-form__point.est-actif b { color: var(--encre); }
.mrf-form__etape { display: none; }
.mrf-form__etape.est-active { display: block; }
.mrf-form__question { margin: 0 0 10px; font-stretch: 108%; font-weight: 700; font-size: 1.05rem; }
.mrf-form__question--petite { margin: 14px 0 8px; font-size: .95rem; }
.mrf-form__tuiles { display: grid; gap: 8px; }
.mrf-form__tuile { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; text-align: left; background: #fff; border: 1.5px solid var(--filet); border-radius: var(--rayon); cursor: pointer; font-family: var(--titre); color: var(--encre); font-weight: 700; font-size: .98rem; line-height: 1.2; transition: border-color .15s, background .15s; }
.mrf-form__tuile:hover { border-color: var(--bleu); background: #F4F8FB; }
.mrf-form__tuile.est-choisi { border-color: var(--bleu); background: #EAF2F8; }
.mrf-form__tuile__icone { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(31, 95, 139, .12); color: var(--bleu); }
.mrf-form__tuile__icone svg { width: 21px; height: 21px; }
.mrf-form__tuile__texte { display: flex; flex-direction: column; gap: 1px; }
.mrf-form__tuile__sous { font-weight: 500; font-size: .82rem; color: var(--encre-douce); }
.mrf-form__champ { margin-bottom: 10px; }
.mrf-form__champ label { display: block; margin-bottom: 4px; font-weight: 600; font-size: .86rem; }
.mrf-form input[type=text], .mrf-form input[type=tel], .mrf-form input[type=email], .mrf-form input[type=search], .mrf-form textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; font: 500 1rem var(--titre); color: var(--encre); background: #fff; border: 1.5px solid #8E9B95; border-radius: var(--rayon);
}
.mrf-form textarea { min-height: 64px; resize: vertical; }
.mrf-form input:focus-visible, .mrf-form textarea:focus-visible { outline: 3px solid rgba(31, 95, 139, .45); outline-offset: 1px; border-color: var(--bleu); }
.mrf-form__rangee { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mrf-form__pilules-rapides { display: flex; flex-wrap: wrap; gap: 6px; }
.mrf-form__pilule { padding: 6px 12px; font: 600 .86rem var(--titre); color: var(--encre); background: var(--papier); border: 1.5px solid var(--filet); border-radius: 999px; cursor: pointer; }
.mrf-form__pilule:hover, .mrf-form__pilule.est-choisi { border-color: var(--bleu); background: #EAF2F8; }
.mrf-form__segmente { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--encre); border-radius: var(--rayon); overflow: hidden; }
.mrf-form__segmente button { min-height: 42px; border: 0; background: #fff; font: 600 .9rem var(--titre); color: var(--encre); cursor: pointer; }
.mrf-form__segmente button + button { border-left: 1.5px solid var(--encre); }
.mrf-form__segmente button.est-choisi { background: var(--encre); color: #fff; }
.mrf-form__indication { margin: 10px 0 0; font-size: .86rem; color: var(--encre-douce); }
.mrf-form__nav { display: flex; gap: 10px; margin-top: 14px; }
.mrf-form__nav .mrf-btn { min-height: 46px; padding: 0 18px; }
.mrf-form__nav .mrf-form__bouton { flex: 1; }
.mrf-form__pro { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; margin: 2px 0 6px; }
.mrf-form__pro input { width: 18px; height: 18px; accent-color: var(--bleu); }
.mrf-form__detail-bascule { padding: 4px 0; margin-bottom: 6px; background: none; border: 0; font: 600 .9rem var(--titre); color: var(--bleu); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mrf-form__erreur { display: block; margin-top: 4px; font-size: .82rem; font-weight: 600; color: var(--rouge); }
.mrf-form__mention { margin: 10px 0 0; font-family: var(--texte); font-size: .78rem; line-height: 1.4; color: var(--encre-douce); }
.mrf-form__confirmation { display: none; text-align: left; }
.mrf-form__confirmation.est-visible { display: block; }
.mrf-form:has(.mrf-form__confirmation.est-visible) .mrf-form__tete,
.mrf-form:has(.mrf-form__confirmation.est-visible) .mrf-form__trace { display: none; }
.mrf-form__confirmation-cercle { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 10px; border-radius: 50%; background: var(--bleu); color: #fff; }
.mrf-form__confirmation-cercle svg { width: 26px; height: 26px; }
.mrf-form__confirmation h3 { margin-bottom: .4em; }
.mrf-form__recap { font-family: var(--texte); font-size: .92rem; color: var(--encre-douce); }
.mrf-form__suite { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-family: var(--texte); font-size: .92rem; }
.mrf-form__suite li { display: flex; gap: 8px; align-items: flex-start; }
.mrf-form__suite svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--bleu); }
/* Variante compacte (barre latérale, pages commune) */
.mrf-form--compact, .mrf-form--compacte { padding: 14px 14px 16px; }
.mrf-barre .mrf-form { border-width: 1.5px; box-shadow: none; padding: 12px 14px 14px; }
.mrf-barre .mrf-form__tete { margin-bottom: 6px; }
.mrf-barre .mrf-form__trace { margin-bottom: 8px; }
.mrf-barre .mrf-form__tuile { padding: 6px 10px; }
.mrf-barre .mrf-form__tuile__icone { width: 30px; height: 30px; }
.mrf-barre .mrf-form__tuile__icone svg { width: 17px; height: 17px; }
.mrf-barre .mrf-form__tuile__sous { display: none; }
.mrf-barre .mrf-form__tuiles { gap: 6px; }
.mrf-barre .mrf-form__question { font-size: .95rem; margin-bottom: 8px; }
.mrf-barre .mrf-form__rangee { grid-template-columns: 1fr; gap: 0; }
.mrf-barre .mrf-form__champ { margin-bottom: 8px; }
.mrf-barre .mrf-form input[type=text], .mrf-barre .mrf-form input[type=tel], .mrf-barre .mrf-form input[type=email] { min-height: 40px; }
.mrf-barre .mrf-form__nav { margin-top: 10px; }
.mrf-barre .mrf-form__mention { font-size: .72rem; margin-top: 8px; }
.mrf-form--pleine { padding-bottom: 22px; }

/* ---------- Sections ---------- */
.mrf-section { padding-block: 48px; }
.mrf-section > .conteneur > h2, .mrf-projets h2 { margin-bottom: .25em; }
.mrf-section__intro { max-width: 40em; color: var(--encre-douce); margin-bottom: 26px; }

/* Quatre projets */
.mrf-projets__grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; align-items: start; }
.mrf-projet { display: block; color: var(--encre); text-decoration: none; }
.mrf-projet:nth-child(even) { margin-top: 28px; }
.mrf-projet__photo { width: 92%; aspect-ratio: 4 / 3; margin-bottom: 16px; margin-left: 2%; }
.mrf-projet h3 { margin-bottom: .3em; }
.mrf-projet p { font-size: .98rem; color: var(--encre-douce); margin: 0; }
a.mrf-projet:hover h3 { color: var(--bleu); text-decoration: underline; text-underline-offset: 4px; }

/* Les rubriques en légende de carte */
.mrf-legende { position: relative; overflow: hidden; background: var(--encre); color: #E8EEF1; }
.mrf-legende h2 { color: #fff; }
.mrf-legende__interieur { position: relative; }
.mrf-legende__titre { margin-bottom: 26px; }
.mrf-legende__titre p { margin: 0; color: #C9D5DC; }
.mrf-legende__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; }
.mrf-legende__liste li { border-left: 2px solid rgba(255, 255, 255, .28); padding: 4px 22px; }
.mrf-legende__liste a { display: grid; grid-template-columns: 44px 1fr; grid-template-areas: "s m" "n n" "c c"; gap: 6px 12px; align-items: center; color: #fff; text-decoration: none; }
.mrf-legende__symbole { grid-area: s; display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid #9CC3DD; color: #CFE5F4; border-radius: 50%; }
.mrf-legende__symbole svg { width: 22px; height: 22px; }
.mrf-legende__mini { grid-area: m; width: 100%; aspect-ratio: 4 / 3; max-height: 90px; background: rgba(255, 255, 255, .08); overflow: hidden; border-radius: 3px; }
.mrf-legende__mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mrf-legende__nom { grid-area: n; font-family: var(--titre); font-stretch: 108%; font-weight: 700; font-size: 1.12rem; }
.mrf-legende__nb { grid-area: c; font-size: .92rem; color: #C9D5DC; }
.mrf-legende__liste a:hover .mrf-legende__nom { text-decoration: underline; text-underline-offset: 4px; }

/* Carte des communes */
.mrf-zone-section { background: var(--olive-clair); }
.mrf-zone { display: grid; grid-template-columns: 300px 400px minmax(0, 1fr); gap: 40px; align-items: start; }
.mrf-zone__texte p { color: var(--encre-douce); margin-bottom: 20px; }
.mrf-zone__carte { position: relative; }
.mrf-zone__carte svg { display: block; width: auto; height: 560px; max-width: 100%; margin-inline: auto; }
.mrf-zone__etiquette { position: absolute; top: 4px; left: 4px; z-index: 3; padding: 5px 10px; background: var(--encre); color: #fff; font: 600 .9rem var(--titre); border-radius: 3px; pointer-events: none; }
.mrf-zone__etiquette:empty { display: none; }
.carte-dep { fill: rgba(255, 255, 255, .7); stroke: var(--bistre); stroke-width: 1; stroke-dasharray: 5 3; vector-effect: non-scaling-stroke; }
.carte-commune path { fill: rgba(31, 95, 139, .22); stroke: var(--bleu); stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .2s; }
.carte-commune circle { fill: var(--bleu); stroke: #fff; stroke-width: 1.5; }
.carte-commune { cursor: pointer; outline: none; }
a.carte-commune:hover path, a.carte-commune:focus-visible path, .carte-commune.est-survolee path { fill: rgba(184, 29, 43, .35); stroke: var(--rouge); }
a.carte-commune:hover circle, .carte-commune.est-survolee circle { fill: var(--rouge); }
.carte-commune.est-sans-page { cursor: default; }
.carte-commune.est-sans-page path { fill: rgba(31, 95, 139, .10); }
.carte-commune.est-sans-page circle { fill: #7FA3BB; }
.mrf-mini-carte svg { display: block; width: 100%; height: auto; max-height: 270px; }
.mrf-mini-carte .carte-commune { pointer-events: none; }
.mrf-mini-carte .carte-commune path { fill: rgba(31, 95, 139, .38); stroke: var(--bleu-fonce); stroke-width: 1; }
.mrf-mini-carte .carte-commune circle { fill: var(--bleu); stroke: #fff; stroke-width: 1.5; }
.mrf-mini-carte .carte-commune.est-active path { fill: rgba(184, 29, 43, .45); stroke: var(--rouge); stroke-width: 1.6; }
.mrf-mini-carte .carte-commune.est-active circle { fill: var(--rouge); stroke: #fff; stroke-width: 2; }
.mrf-mini-carte text.mrf-mini-nom { font-family: var(--titre); font-weight: 600; fill: var(--encre); stroke: var(--papier); stroke-width: calc(var(--sw, 3) * 1px); paint-order: stroke; stroke-linejoin: round; pointer-events: none; }
.mrf-mini-carte text.mrf-mini-nom.est-active { font-weight: 800; fill: var(--rouge-fonce); }
.mrf-zone__dep { margin-bottom: 14px; }
.mrf-zone__dep h3 { margin: 0 0 6px; font-size: 1rem; color: var(--bleu-fonce); }
.mrf-zone__dep p { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.mrf-zone__dep a, .mrf-zone__dep span { padding: 5px 12px; font: 600 .9rem var(--titre); border: 1.5px solid var(--bleu); border-radius: 999px; color: var(--bleu-fonce); background: #fff; text-decoration: none; }
.mrf-zone__dep span { border-color: var(--filet); color: var(--encre-douce); }
.mrf-zone__dep a:hover, .mrf-zone__dep a.est-survolee, .mrf-zone__dep span.est-survolee { background: var(--bleu); color: #fff; border-color: var(--bleu); }

/* Cartes de guides */
.mrf-derniers__grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; margin-top: 20px; align-items: start; }
.mrf-derniers__grille--liste { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mrf-carte { display: block; color: var(--encre); text-decoration: none; }
.mrf-carte__photo { width: 94%; aspect-ratio: 3 / 2; margin: 0 0 14px 2%; }
.mrf-carte__rubrique { display: block; margin-bottom: 4px; font: 600 .88rem var(--titre); color: var(--bleu); }
.mrf-carte__titre { font-size: 1.18rem; margin-bottom: .35em; }
.mrf-carte:hover .mrf-carte__titre { color: var(--bleu); text-decoration: underline; text-underline-offset: 4px; }
.mrf-carte__extrait { font-size: .95rem; color: var(--encre-douce); margin-bottom: 6px; }
.mrf-carte__meta { font: 500 .85rem var(--titre); color: var(--encre-douce); }

/* FAQ accueil + accordéons */
.mrf-faq-accueil__interieur { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: start; }
.mrf-accordeons { display: grid; gap: 0; border-top: 1.5px solid var(--encre); }
.mrf-accordeon { border-bottom: 1.5px solid var(--filet); }
.mrf-accordeon > summary { position: relative; list-style: none; padding: 16px 44px 16px 0; cursor: pointer; font-family: var(--titre); font-stretch: 105%; font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
.mrf-accordeon > summary h2 { font-size: inherit; margin: 0; font-stretch: inherit; }
.mrf-accordeon > summary::-webkit-details-marker { display: none; }
.mrf-accordeon > summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--bleu); border-bottom: 2.5px solid var(--bleu); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.mrf-accordeon[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.mrf-accordeon__corps { padding: 0 44px 16px 0; color: var(--encre-douce); }
.mrf-accordeon__corps p:last-child { margin-bottom: 0; }

/* Appel final */
.mrf-final { position: relative; background: var(--encre); color: #fff; overflow: hidden; }
.mrf-final::before { content: ""; position: absolute; inset: 0; background: url(../svg/courbes-clair.svg) center / cover; opacity: .9; }
.mrf-final__interieur { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: center; }
.mrf-final h2 { color: #fff; max-width: 14em; }
.mrf-final__contenu p { color: #D5DFE5; max-width: 34em; }
.mrf-final__boutons { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 16px; }
.mrf-final__rassure { display: flex; flex-wrap: wrap; gap: 6px 22px; font: 600 .92rem var(--titre); color: #fff !important; }
.mrf-final__rassure span { display: inline-flex; align-items: center; gap: 6px; }
.mrf-final__rassure svg { width: 18px; height: 18px; color: #9CC3DD; }
.mrf-final__photo { width: 100%; aspect-ratio: 4 / 3; }
.mrf-final .mrf-parcelle__limite polygon { stroke: #E3B48A; }

/* ---------- Pied de page ---------- */
.mrf-footer { position: relative; margin-top: auto; background: var(--encre); color: #D5DFE5; overflow: hidden; }
.mrf-footer::before { content: ""; position: absolute; inset: 0; background: url(../svg/courbes-clair.svg) center / cover; opacity: .6; pointer-events: none; }
.mrf-footer__corps { position: relative; display: grid; grid-template-columns: 1.1fr 1.2fr .9fr; gap: 48px; padding-block: 44px 28px; }
.mrf-footer .mrf-logo { color: #fff; }
.mrf-footer__devise { margin: 14px 0 16px; max-width: 24em; font-size: .98rem; }
.mrf-footer h3 { margin: 0 0 10px; font-size: 1rem; color: #fff; }
.mrf-footer__h3-suite { margin-top: 20px !important; }
.mrf-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mrf-footer a { color: #fff; text-decoration: none; }
.mrf-footer a:hover { text-decoration: underline; text-underline-offset: 3px; color: #fff; }
.mrf-footer__communes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mrf-footer__communes span { color: #B9C6CE; }
.mrf-footer__recherche { display: flex; max-width: 320px; }
.mrf-footer__recherche input { flex: 1; min-width: 0; min-height: 42px; padding: 0 12px; font: 500 .95rem var(--titre); color: var(--encre); background: #fff; border: 0; border-radius: var(--rayon) 0 0 var(--rayon); }
.mrf-footer__recherche button { width: 46px; border: 0; background: var(--bleu); color: #fff; cursor: pointer; border-radius: 0 var(--rayon) var(--rayon) 0; }
.mrf-footer__recherche button svg { width: 20px; height: 20px; }
.mrf-footer__base { position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 16px 22px; border-top: 1px solid rgba(255, 255, 255, .22); font-size: .88rem; color: #B9C6CE; }
.mrf-footer__base p { margin: 0; }

/* ---------- Pages simples / bandeau ---------- */
.mrf-bandeau-simple { position: relative; background: var(--olive-clair); background-image: url(../svg/courbes-etroit.svg); background-size: cover; background-position: center; border-bottom: 1px solid rgba(168, 107, 60, .35); padding-block: 36px 34px; }
.mrf-bandeau-simple h1 { margin-bottom: .2em; }
.mrf-bandeau-simple p { margin: 0; color: var(--encre-douce); max-width: 40em; }
.mrf-page-simple { max-width: 820px; padding-block: 40px 56px; }
.mrf-404 { padding-block: 56px 72px; text-align: left; }
.mrf-404__symbole { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(31, 95, 139, .12); color: var(--bleu); margin-bottom: 14px; }
.mrf-404__symbole svg { width: 28px; height: 28px; }
.mrf-404__chapo { font-size: 1.15rem; color: var(--encre-douce); }
.mrf-404__recherche { display: flex; gap: 10px; max-width: 520px; margin: 18px 0 20px; }
.mrf-404__recherche input { flex: 1; min-height: 48px; padding: 0 14px; font: 500 1rem var(--titre); border: 1.5px solid #8E9B95; border-radius: var(--rayon); background: #fff; }
.mrf-404__rubriques { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }

/* Qui sommes-nous, équipe, crédits */
.mrf-qsn__grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; align-items: start; }
.mrf-qsn__bloc h2 { font-size: 1.4rem; }
.mrf-equipe__grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.mrf-auteur-box { display: flex; gap: 16px; align-items: flex-start; margin: 20px 0; }
.mrf-auteur-box--grand { gap: 24px; }
.mrf-auteur-box__nom { margin: 0; font-family: var(--titre); font-stretch: 108%; font-weight: 700; font-size: 1.15rem; }
.mrf-auteur-box__nom a { color: var(--encre); text-decoration: none; }
.mrf-auteur-box__nom a:hover { color: var(--bleu); text-decoration: underline; }
.mrf-auteur-box__role { display: block; font: 500 .9rem var(--titre); color: var(--encre-douce); }
.mrf-auteur-box__bio { margin: 6px 0 0; font-size: .95rem; color: var(--encre-douce); }
.mrf-monogramme { flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: var(--bleu); color: #fff; font: 700 1rem var(--titre); object-fit: cover; }
.mrf-credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.mrf-credits__carte { margin: 0; }
.mrf-credits__carte img { display: block; width: 100%; height: 170px; object-fit: cover; border-radius: 3px; margin-bottom: 8px; }
.mrf-credits__carte figcaption { display: grid; gap: 2px; font-size: .9rem; }

/* Demande de devis en plein écran */
.mrf-devis { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - var(--entete)); }
.mrf-devis__interieur { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 64px; align-items: center; padding-block: 28px; }
.mrf-devis__texte h1 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); max-width: 13em; }
.mrf-devis__texte p { color: var(--encre-douce); max-width: 30em; }
.mrf-devis__photo { width: 70%; aspect-ratio: 3 / 2; margin-top: 16px; }
.mrf-devis__borne { align-self: center; }

/* ---------- Rubrique ---------- */
.mrf-rub-tete, .mrf-art-tete { position: relative; overflow: hidden; background: var(--olive-clair); border-bottom: 1px solid rgba(168, 107, 60, .35); }
.mrf-rub-tete__interieur { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 56px; align-items: center; padding-block: 34px 40px; }
.mrf-rub-tete__photo { width: 100%; aspect-ratio: 3 / 2; }
.mrf-rub-tete__chapo, .mrf-art-tete__chapo { font-size: 1.12rem; color: var(--encre-douce); max-width: 32em; }
.mrf-fil { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; font: 500 .9rem var(--titre); color: var(--encre-douce); }
.mrf-fil a { color: var(--encre-douce); }
.mrf-cote { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 7px 14px; background: #fff; border: 1.5px solid var(--encre); border-radius: var(--rayon); font: 600 .9rem var(--titre); color: var(--encre); }
.mrf-cote__triangle { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 12px solid var(--bleu); flex: none; }
.mrf-rub-vide { background: var(--papier); }
.mrf-rub-vide .conteneur { max-width: 760px; }

/* ---------- Article ---------- */
.mrf-art-tete__interieur { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 56px; align-items: center; padding-block: 32px 52px; }
.mrf-art-tete.est-sans-photo .mrf-art-tete__interieur { grid-template-columns: minmax(0, 820px); padding-block: 32px 36px; }
.mrf-art-tete h1 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
.mrf-art-tete__auteur { display: flex; align-items: center; gap: 12px; margin-top: 16px; font: 500 .95rem var(--titre); }
.mrf-art-tete__auteur a { color: var(--encre); font-weight: 700; }
.mrf-art-tete__visuel { position: relative; }
.mrf-art-tete__photo { width: 100%; aspect-ratio: 3 / 2; }
.mrf-art-tete__visuel .mrf-cote { position: absolute; left: 14px; bottom: -22px; z-index: 4; max-width: calc(100% - 28px); }
.mrf-article-grille { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; padding-block: 44px 48px; }
.mrf-barre { position: sticky; top: calc(var(--entete) + 20px); align-self: start; }
.mrf-barre__bloc { display: grid; gap: 14px; }
.mrf-lecture__texte { display: flex; justify-content: space-between; font: 600 .85rem var(--titre); color: var(--encre-douce); }
.mrf-lecture-progress { height: 4px; margin-top: 6px; background: var(--filet); border-radius: 2px; overflow: hidden; }
.mrf-lecture-progress__barre { display: block; height: 100%; width: 0; background: var(--bleu); }
.mrf-sommaire__titre, .mrf-barre__titre { margin: 0 0 6px; font: 700 1rem var(--titre); }
.mrf-sommaire ol { margin: 0; padding: 0; list-style: none; max-height: 112px; overflow: auto; border-left: 2px solid var(--filet); }
.mrf-sommaire li a { display: block; padding: 3px 0 3px 12px; margin-left: -2px; border-left: 2px solid transparent; font: 500 .9rem/1.3 var(--titre); color: var(--encre-douce); text-decoration: none; }
.mrf-sommaire li a:hover, .mrf-sommaire li a.est-actif { color: var(--bleu); border-left-color: var(--bleu); }

/* Corps de texte */
.mrf-corps { font-size: 1.125rem; line-height: 1.72; }
.mrf-corps--article, .mrf-corps > * { max-width: 70ch; }
.mrf-corps h2 { margin-top: 1.8em; font-size: clamp(1.45rem, 2.2vw, 1.85rem); scroll-margin-top: 90px; }
.mrf-corps h3 { margin-top: 1.5em; scroll-margin-top: 90px; }
.mrf-corps h2:first-child { margin-top: 0; }
.mrf-corps img { border-radius: 3px; }
.mrf-corps blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--bleu); font-style: italic; }
.mrf-corps ul, .mrf-corps ol { padding-left: 1.3em; }
.mrf-corps table { width: 100%; border-collapse: collapse; font: 500 .95rem var(--titre); margin: 1.4em 0; }
.mrf-corps th, .mrf-corps td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--filet); }
.mrf-corps th { background: var(--olive-clair); }
.mrf-corps .chapo, p.chapo { font-size: 1.22rem; line-height: 1.55; color: var(--encre-douce); }
.mrf-corps .mrf-accordeons { margin-block: 1.4em; max-width: none; }

/* Repères chiffrés */
.mrf-reperes, .mrf-encadre-reperes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 1.6em 0; max-width: none !important; border-top: 2px solid var(--encre); border-bottom: 1px solid var(--filet); }
.mrf-repere { margin: 0; padding: 14px 16px 14px 0; display: flex; flex-direction: column; gap: 2px; }
.mrf-repere + .mrf-repere { padding-left: 16px; border-left: 1px solid var(--filet); }
.mrf-repere strong { font: 700 1.5rem/1.1 var(--titre); font-stretch: 110%; color: var(--bleu-fonce); }
.mrf-repere span { font: 500 .9rem/1.35 var(--titre); color: var(--encre-douce); }

/* Étapes : tracé bleu qui monte */
.mrf-etapes { list-style: none; counter-reset: etape; margin: 1.6em 0 .6em; padding: 0 0 0 46px; position: relative; max-width: none !important; }
.mrf-etapes::before { content: ""; position: absolute; left: 14px; top: 8px; bottom: 8px; width: 4px; background: var(--bleu); border-radius: 2px; }
.mrf-etapes > li { position: relative; counter-increment: etape; padding: 0 0 18px; display: grid; gap: 2px; }
.mrf-etapes > li::before { content: counter(etape); position: absolute; left: -46px; top: 0; width: 32px; height: 32px; display: grid; place-items: center; background: #fff; border: 3px solid var(--bleu); border-radius: 50%; font: 700 .95rem var(--titre); color: var(--bleu-fonce); }
.mrf-etapes > li strong { font: 700 1.08rem var(--titre); font-stretch: 105%; }
.mrf-etapes > li span { font-size: 1rem; color: var(--encre-douce); }
.mrf-etapes-legende { font: 500 .88rem var(--titre); color: var(--encre-douce); }

/* Comparatif : fiches de parcelle */
.mrf-comparatif { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 1.6em 0; max-width: none !important; }
.mrf-comparatif--trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mrf-comparatif__carte { margin: 0; padding: 16px 18px; background: #fff; border: 1.5px dashed var(--bistre); border-radius: 3px; font-size: 1rem; line-height: 1.5; }
.mrf-comparatif__carte strong { display: block; margin-bottom: 4px; font: 700 1.08rem var(--titre); font-stretch: 105%; color: var(--bleu-fonce); }

/* Encadrés */
.mrf-encadre { margin: 1.6em 0; padding: 16px 20px; background: #fff; border-left: 5px solid var(--bleu); border-radius: 0 var(--rayon) var(--rayon) 0; font-size: 1.02rem; line-height: 1.6; max-width: none !important; }
.mrf-encadre > :last-child { margin-bottom: 0; }
.mrf-encadre--retenir { background: #EAF2F8; }
.mrf-encadre--alerte, .mrf-encadre.bon-a-savoir { border-left-color: var(--bistre); background: #FBF3EC; }
.mrf-encadre strong:first-child { font-family: var(--titre); }
.mrf-encadre--faq, .mrf-encadre--sources { border-left-color: var(--olive); background: var(--olive-clair); }
.mrf-encadre--faq details, .faq details { border-bottom: 1px solid var(--filet); padding: 10px 0; }
.faq summary { cursor: pointer; font: 700 1.05rem var(--titre); }
.faq summary span { font: inherit; }
.mrf-encadre--sources { font-size: .92rem; }
.mrf-encadre--sources ul, .mrf-encadre--sources ol { margin: 6px 0 0; }

/* Lire aussi */
.mrf-lire-aussi { background: var(--olive-clair); border-top: 1px solid rgba(168, 107, 60, .3); }

/* Page commune */
.mrf-ville-grille { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.mrf-ville-aside { display: flex; flex-direction: column; gap: 22px; align-self: stretch; }
.mrf-ville-aside__devis { position: sticky; top: calc(var(--entete) + 20px); }
.mrf-ville-aside__titre { margin: 8px 0 6px; font: 700 1rem var(--titre); }
.mrf-ville-aside__voisines p { display: flex; flex-wrap: wrap; gap: 6px; }
.mrf-ville-aside__voisines a { padding: 5px 12px; font: 600 .9rem var(--titre); border: 1.5px solid var(--bleu); border-radius: 999px; text-decoration: none; background: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .mrf-hero__interieur { grid-template-columns: minmax(0, 1fr) 96px 400px; gap: 14px; }
  .mrf-zone { grid-template-columns: 260px 360px minmax(0, 1fr); gap: 28px; }
  .mrf-zone__carte svg { height: 520px; }
  .mrf-footer__corps { gap: 32px; }
  .mrf-nav__liste { gap: 0; }
  .mrf-nav__lien { padding: 8px 9px; font-size: .9rem; }
}
@media (max-width: 1024px) {
  .mrf-nav { display: none; }
  .mrf-nav__bascule:not(.mrf-nav__bascule--ferme) { display: block; }
  .mrf-header__cta { margin-left: auto; }
  .mrf-hero__interieur { grid-template-columns: minmax(0, 1fr) 400px; }
  .mrf-hero__trace { display: none; }
  .mrf-projets__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mrf-zone { grid-template-columns: minmax(0, 1fr) 360px; }
  .mrf-zone__liste { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
  .mrf-derniers__grille, .mrf-derniers__grille--liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mrf-faq-accueil__interieur { grid-template-columns: 1fr; gap: 20px; }
  .mrf-article-grille, .mrf-ville-grille { grid-template-columns: 1fr; }
  .mrf-barre, .mrf-ville-aside, .mrf-ville-aside__devis { position: static; }
  .mrf-qsn__grille { grid-template-columns: 1fr; gap: 28px; }
  .mrf-footer__corps { grid-template-columns: 1fr 1fr; }
  .mrf-final__interieur, .mrf-rub-tete__interieur, .mrf-art-tete__interieur { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; }
}
@media (max-width: 760px) {
  .conteneur { padding-inline: 20px; }
  body { font-size: 1.03rem; }
  .mrf-header__cta-long { display: none; }
  .mrf-header__cta-court { display: inline; }
  .mrf-logo__texte { font-size: .95rem; }
  .mrf-section { padding-block: 36px; }
  .mrf-hero__interieur { grid-template-columns: 1fr; gap: 24px; padding-block: 24px 36px; }
  .mrf-hero--ville .mrf-hero__interieur { grid-template-columns: 1fr; gap: 24px; }
  .mrf-hero__ancre { display: inline-flex; margin-bottom: 18px; }
  .mrf-hero__chapo { margin-bottom: 14px; }
  .mrf-hero__photo, .mrf-hero--ville .mrf-hero__photo { width: 92%; margin: 4px 0 0 2%; }
  .mrf-projets__grille { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .mrf-projet:nth-child(even) { margin-top: 0; }
  .mrf-projet h3 { font-size: 1rem; }
  .mrf-projet p { font-size: .88rem; }
  .mrf-legende__liste { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .mrf-legende__liste li { padding: 4px 14px; }
  .mrf-zone { grid-template-columns: 1fr; gap: 20px; }
  .mrf-zone__carte svg { height: auto; width: min(100%, 340px); }
  .mrf-zone__liste { display: block; }
  .mrf-derniers__grille, .mrf-derniers__grille--liste { grid-template-columns: 1fr; }
  .mrf-final__interieur, .mrf-rub-tete__interieur, .mrf-art-tete__interieur { grid-template-columns: 1fr; gap: 28px; }
  .mrf-art-tete__interieur { padding-bottom: 56px; }
  .mrf-final__photo { max-width: 420px; }
  .mrf-footer__corps { grid-template-columns: 1fr; gap: 28px; }
  .mrf-equipe__grille { grid-template-columns: 1fr; }
  .mrf-comparatif, .mrf-comparatif--trois { grid-template-columns: 1fr; }
  .mrf-form__rangee { grid-template-columns: 1fr; gap: 0; }
  .mrf-devis__interieur { grid-template-columns: 1fr; gap: 24px; }
  .mrf-devis__photo { display: none; }
  .mrf-form__tuile__sous { font-size: .8rem; }
  .mrf-reperes .mrf-repere + .mrf-repere { border-left: 0; padding-left: 0; }
}
@media (max-width: 420px) {
  .mrf-form { padding-inline: 14px; }
  .mrf-form__trace { margin-inline: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.mrf-legende__mini.est-vide { display: none; }
.mrf-legende__liste a { grid-template-columns: 44px 1fr; grid-template-areas: "m m" "s n" "s c"; row-gap: 4px; }
.mrf-legende__mini { grid-area: m; width: 100%; aspect-ratio: 16 / 9; max-height: 150px; margin-bottom: 12px; border-radius: 4px; box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.mrf-legende__liste a:hover .mrf-legende__mini img { transform: scale(1.03); }
.mrf-legende__mini img { transition: transform .35s ease; }
@media (prefers-reduced-motion: reduce) { .mrf-legende__mini img { transition: none; } }
.mrf-encadre > strong:first-child { display: block; margin-bottom: 2px; }
.mrf-sommaire ol { max-height: 120px; }
.mrf-article-grille { grid-template-columns: minmax(0, 720px) 360px; justify-content: center; }
.mrf-corps--article, .mrf-corps > * { max-width: 100%; }
@media (max-width: 1024px) { .mrf-article-grille { grid-template-columns: 1fr; } }

/* En-tête : libellés sur une ligne (menu + bouton), jamais sur deux */
.mrf-nav__lien, .mrf-header__cta, .mrf-header__cta span { white-space: nowrap; }
.mrf-logo, .mrf-header__cta { flex-shrink: 0; }
@media (max-width: 1320px) { .mrf-header__ligne { gap: 16px; } .mrf-nav__liste { gap: 0; } .mrf-nav__lien { padding: 8px 8px; font-size: .9rem; } }
@media (max-width: 1199px) { .mrf-nav { display: none; } .mrf-nav__bascule:not(.mrf-nav__bascule--ferme) { display: block; } .mrf-header__cta { margin-left: auto; } }

/* ==========================================================================
   PASSE 2 (10/11/2026) — tout ce qui suit vient APRÈS les media queries du fichier :
   chaque bloc redéclare donc lui-même ses versions 1200 / 1100 / 1024 / 760 / 420, du plus large
   au plus étroit (une règle étroite doit toujours suivre la règle large qu'elle corrige).
   ========================================================================== */

/* ---------- Accueil : premier écran (photo en parcelle + borne qui la chevauche + tracé bleu) ---------- */
.mrf-ton { color: var(--bleu); }
.mrf-hero--accueil .mrf-hero__interieur { display: grid; grid-template-columns: minmax(0, 1fr) 430px; grid-template-rows: auto 1fr; column-gap: 40px; row-gap: 0; align-items: start; padding-block: 34px 44px; }
.mrf-hero--accueil .mrf-hero__texte { grid-column: 1; grid-row: 1; display: block; }
.mrf-hero--accueil .mrf-hero__texte h1 { font-size: clamp(2rem, 3.3vw, 3.1rem); max-width: 15em; margin-bottom: .35em; }
.mrf-hero--accueil .mrf-hero__chapo { max-width: 40em; margin-bottom: 0; }
.mrf-hero--accueil .mrf-hero__ancre { display: none; }
.mrf-hero--accueil .mrf-hero__visuel { grid-column: 1; grid-row: 2; position: relative; z-index: 1; justify-self: end; width: min(760px, 53vw); margin: 22px -150px 0 0; }
.mrf-hero--accueil .mrf-hero__photo { width: 100%; height: 330px; margin: 0; aspect-ratio: auto; }
.mrf-hero--accueil .mrf-parcelle__photo picture, .mrf-hero--accueil .mrf-parcelle__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; }
.mrf-hero--accueil .mrf-hero__borne { grid-column: 2; grid-row: 1 / span 2; z-index: 3; align-self: start; }
.mrf-hero--accueil .mrf-form { padding: 32px 18px 18px; }
.mrf-hero--accueil .mrf-form__tuile { padding: 7px 12px; }
.mrf-hero__pastille { position: absolute; left: 7%; top: 12%; z-index: 4; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 15px 8px 11px; background: var(--encre); color: #fff; font: 700 .88rem/1.1 var(--titre); border-radius: 999px; box-shadow: 0 10px 20px -10px rgba(29, 43, 54, .7); }
.mrf-hero__pastille svg { width: 18px; height: 18px; flex: none; color: #fff; }
.mrf-hero--accueil .mrf-hero__trace { position: absolute; right: 112px; bottom: 46px; width: 150px; height: 232px; min-height: 0; z-index: 2; pointer-events: none; }
.mrf-trace-halo { stroke: var(--papier); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.mrf-hero--accueil .mrf-hero__cote { left: auto; max-width: none; padding: 3px 9px; white-space: nowrap; font-size: .76rem; color: var(--encre); background: var(--papier); border: 1px solid rgba(168, 107, 60, .55); border-radius: 3px; }
.mrf-hero--accueil .mrf-hero__cote--haut { top: -30px; right: 14px; }
.mrf-hero--accueil .mrf-hero__cote--bas { left: 0; bottom: 32px; }
@media (max-width: 1200px) {
  .mrf-hero--accueil .mrf-hero__interieur { grid-template-columns: minmax(0, 1fr) 400px; column-gap: 36px; }
}
@media (max-width: 1100px) {
  .mrf-hero--accueil .mrf-hero__interieur { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; padding-block: 28px 40px; }
  .mrf-hero--accueil .mrf-hero__texte, .mrf-hero--accueil .mrf-hero__visuel, .mrf-hero--accueil .mrf-hero__borne { grid-column: 1; grid-row: auto; }
  .mrf-hero--accueil .mrf-hero__texte h1 { max-width: 18em; }
  .mrf-hero--accueil .mrf-hero__ancre { display: inline-flex; margin-top: 4px; }
  .mrf-hero--accueil .mrf-hero__visuel { justify-self: stretch; width: 100%; margin: 24px 0 0; }
  .mrf-hero--accueil .mrf-hero__photo { height: auto; aspect-ratio: 16 / 9; }
  .mrf-hero--accueil .mrf-hero__trace { display: none; }
  /* le tracé devient un trait bleu vertical entre la photo et la borne */
  .mrf-hero--accueil .mrf-hero__visuel::after { content: ""; position: absolute; left: 12%; top: 100%; z-index: 2; width: 5px; height: 40px; background: var(--bleu); border-radius: 3px; }
  .mrf-hero--accueil .mrf-hero__borne { max-width: 520px; margin-top: 40px; }
}
@media (max-width: 760px) {
  .mrf-hero--accueil .mrf-hero__interieur { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 22px 36px; }
  .mrf-hero--accueil .mrf-hero__texte h1 { font-size: clamp(1.85rem, 8.2vw, 2.3rem); }
  .mrf-hero--accueil .mrf-hero__chapo { font-size: 1.02rem; margin-bottom: 14px; }
  .mrf-hero--accueil .mrf-hero__ancre { display: inline-flex; margin: 0; }
  .mrf-hero--accueil .mrf-hero__visuel { width: 100%; margin: 22px 0 0; }
  .mrf-hero--accueil .mrf-hero__photo { width: 100%; margin: 0; aspect-ratio: 5 / 4; }
  .mrf-hero__pastille { left: 6%; top: 9%; font-size: .8rem; padding: 7px 12px 7px 9px; }
  .mrf-hero--accueil .mrf-hero__visuel::after { left: 14%; height: 36px; }
  .mrf-hero--accueil .mrf-hero__borne { max-width: none; margin-top: 36px; }
}

/* ---------- Accueil : tuile de chiffres vérifiables ---------- */
.mrf-chiffres { background: #fff; border-bottom: 1px solid var(--filet); }
.mrf-chiffres__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mrf-chiffres__liste li { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-left: 1px solid var(--filet); }
.mrf-chiffres__liste li:first-child { border-left: 0; padding-left: 0; }
.mrf-chiffres__liste strong { font-family: var(--texte); font-weight: 700; font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: 1; color: var(--bleu-fonce); }
.mrf-chiffres__liste span { font: 600 .98rem/1.3 var(--titre); color: var(--encre-douce); }
@media (max-width: 760px) {
  .mrf-chiffres__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mrf-chiffres__liste li, .mrf-chiffres__liste li:first-child { padding: 16px 12px 16px 14px; border-left: 1px solid var(--filet); }
  .mrf-chiffres__liste li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .mrf-chiffres__liste li:nth-child(n+3) { border-top: 1px solid var(--filet); }
  .mrf-chiffres__liste strong { font-size: 2.2rem; }
  .mrf-chiffres__liste span { font-size: .9rem; }
}

/* ---------- Accueil : « Quel est votre projet ? » — étiquette de rubrique sur la photo ---------- */
.mrf-projet__etiquette { position: absolute; left: 10%; bottom: 16%; z-index: 4; max-width: 80%; padding: 4px 10px; background: var(--encre); color: #fff; font: 700 .76rem/1.25 var(--titre); letter-spacing: .02em; border-radius: 3px; }

/* ---------- Accueil : les rubriques en légende de carte (B2 : rien ne sort de l'écran à 390) ---------- */
@media (max-width: 1100px) {
  .mrf-legende__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
}
@media (max-width: 760px) {
  .mrf-legende__liste { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .mrf-legende__liste li { min-width: 0; padding: 14px 0 14px 14px; border-left: 2px solid rgba(255, 255, 255, .28); }
  .mrf-legende__liste li + li { margin-top: 6px; }
  .mrf-legende__liste a { grid-template-columns: 96px 36px minmax(0, 1fr); grid-template-areas: "m s n" "m s c"; gap: 2px 12px; align-items: center; min-width: 0; }
  .mrf-legende__liste a:has(.est-vide) { grid-template-columns: 36px minmax(0, 1fr); grid-template-areas: "s n" "s c"; }
  .mrf-legende__mini { width: 96px; max-height: none; aspect-ratio: 4 / 3; margin: 0; box-shadow: none; }
  .mrf-legende__symbole { width: 36px; height: 36px; }
  .mrf-legende__symbole svg { width: 18px; height: 18px; }
  .mrf-legende__nom { min-width: 0; font-size: 1.05rem; line-height: 1.2; overflow-wrap: anywhere; }
  .mrf-legende__nb { min-width: 0; font-size: .88rem; }
}

/* ---------- Accueil : la zone (B3 — texte + encadré à pictos | carte | communes par département) ---------- */
.mrf-zone-section { padding-block: 40px; }
.mrf-zone { grid-template-columns: 340px 405px minmax(0, 1fr); gap: 36px; align-items: start; }
.mrf-zone__texte > h1, .mrf-zone__texte > h2 { font-size: clamp(1.5rem, 2.1vw, 1.95rem); }
.mrf-zone__texte > p { margin-bottom: 16px; }
.sbzone-bloc.mrf-zone-info { display: block; max-width: none; margin: 4px 0 0; padding: 16px 18px 6px; background: #fff; border: 1.5px dashed var(--bistre); border-radius: var(--rayon); box-shadow: none; }
.mrf-zone-info__titre { margin: 0 0 6px; font-size: 1.05rem; font-stretch: 108%; }
.mrf-zone-info__ligne { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--filet); }
.mrf-zone-info__picto { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(31, 95, 139, .12); color: var(--bleu); }
.mrf-zone-info__picto svg { width: 18px; height: 18px; }
.mrf-zone-info__ligne p { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--encre-douce); }
.mrf-zone-info__ligne strong { font-family: var(--titre); color: var(--encre); }
.mrf-zone__carte svg { height: 580px; }
.carte-dep { stroke: var(--encre-douce); stroke-width: 1.5; stroke-dasharray: none; }
.carte-dep-95 { fill: rgba(31, 95, 139, .14); }
.carte-dep-60 { fill: rgba(102, 120, 58, .18); }
.carte-dep-28 { fill: rgba(168, 107, 60, .18); }
.carte-dep-45 { fill: rgba(29, 43, 54, .10); }
.carte-commune path { fill: rgba(31, 95, 139, .45); stroke: var(--bleu-fonce); }
.carte-commune circle { fill: var(--bleu); stroke: #fff; stroke-width: 2; }
.carte-noms text { font-family: var(--titre); font-weight: 700; font-size: 30px; fill: var(--encre); stroke: var(--papier); stroke-width: 6px; paint-order: stroke; stroke-linejoin: round; pointer-events: none; }
.mrf-zone__dep { margin-bottom: 12px; padding-left: 12px; border-left: 4px solid var(--bleu); }
.mrf-zone__dep--60 { border-left-color: var(--olive); }
.mrf-zone__dep--28 { border-left-color: var(--bistre); }
.mrf-zone__dep--45 { border-left-color: var(--encre); }
.mrf-zone__dep h3 { display: flex; align-items: center; gap: 8px; }
.mrf-zone__dep .mrf-zone__num, .mrf-zone__num { display: inline-grid; border: 0; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 3px; background: var(--bleu); color: #fff !important; font: 700 .8rem/1 var(--titre); }
.mrf-zone__dep--60 .mrf-zone__num { background: var(--olive); }
.mrf-zone__dep--28 .mrf-zone__num { background: var(--bistre); }
.mrf-zone__dep--45 .mrf-zone__num { background: var(--encre); }
.mrf-zone__toutes { margin-top: 8px; }
@media (max-width: 1200px) {
  .mrf-zone { grid-template-columns: 290px 380px minmax(0, 1fr); gap: 32px; }
  .mrf-zone__carte svg { height: 545px; }
}
@media (max-width: 1024px) {
  .mrf-zone { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px 32px; }
  .mrf-zone__carte svg { height: auto; width: 100%; max-width: 340px; }
  .mrf-zone__liste { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
  .mrf-zone__toutes { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 760px) {
  .mrf-zone-section { padding-block: 32px; }
  .mrf-zone { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .mrf-zone__carte svg { width: min(100%, 360px); max-width: none; }
  .mrf-zone__liste { display: block; }
  .mrf-zone__toutes { display: flex; width: 100%; margin-top: 10px; }
}

/* ---------- Page ville : mini-carte sous la borne, barre latérale collante ---------- */
.mrf-hero--ville .mrf-hero__interieur { grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; align-items: stretch; padding-block: 32px 40px; }
.mrf-hero--ville .mrf-hero__texte { display: flex; flex-direction: column; }
.mrf-hero--ville .mrf-hero__texte h1 { font-size: clamp(2rem, 3vw, 2.7rem); max-width: 16em; }
.mrf-hero--ville .mrf-hero__photo { position: relative; flex: 1 1 260px; width: 100%; min-height: 260px; height: auto; margin: 8px 0 0; aspect-ratio: auto; }
.mrf-hero--ville .mrf-parcelle__photo { position: absolute; inset: 0; height: auto; }
.mrf-hero__colonne { display: grid; gap: 20px; align-content: start; min-width: 0; }
.mrf-hero--ville .mrf-form { padding: 30px 18px 16px; }
.mrf-hero__carte { margin: 0; padding: 10px 12px 12px; background: #fff; border: 1.5px solid var(--filet); border-radius: var(--rayon); }
.mrf-hero__carte svg { max-height: 230px; margin-inline: auto; }
.mrf-hero__carte figcaption { display: flex; align-items: center; gap: 8px; margin-top: 8px; font: 500 .92rem/1.3 var(--titre); color: var(--encre-douce); }
.mrf-hero__carte figcaption strong { color: var(--encre); margin-right: -4px; }
.mrf-hero__carte-pin { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--rouge); border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--rouge); }
.mrf-ville-aside { align-self: start; position: sticky; top: calc(var(--entete) + 20px); gap: 18px; }
.mrf-ville-aside__devis { position: static; }
@media (max-width: 1024px) {
  .mrf-hero--ville .mrf-hero__interieur { grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; }
  .mrf-ville-aside { position: static; }
}
@media (max-width: 760px) {
  .mrf-hero--ville .mrf-hero__interieur { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .mrf-hero--ville .mrf-hero__photo { flex: none; min-height: 0; aspect-ratio: 4 / 3; margin: 4px 0 0; }
  .mrf-hero--ville .mrf-parcelle__photo { position: relative; inset: auto; height: 100%; }
  .mrf-hero__carte svg { max-height: 240px; }
}

/* ---------- Grille de rubrique / d'auteur : rangées pleines, jamais une carte orpheline ---------- */
.mrf-grille-rangees { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 36px 32px; margin-top: 20px; align-items: start; }
.mrf-grille-rangees > .mrf-carte { grid-column: span var(--span, 4); min-width: 0; }
.mrf-grille--une > .mrf-carte--une { grid-column: span 6; grid-row: span 2; }
.mrf-carte--une .mrf-carte__photo { width: 96%; aspect-ratio: 1 / .95; }
.mrf-carte--une .mrf-carte__titre { font-size: 1.55rem; }
.mrf-carte--une .mrf-carte__extrait { font-size: 1.02rem; }
@media (max-width: 1024px) {
  .mrf-grille-rangees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mrf-grille-rangees > .mrf-carte { grid-column: auto; }
  .mrf-grille-rangees > .mrf-carte:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .mrf-grille--une > .mrf-carte--une { grid-column: 1 / -1; grid-row: auto; }
  .mrf-grille--une > .mrf-carte:last-child { grid-column: auto; }
  .mrf-carte--une .mrf-carte__photo { aspect-ratio: 3 / 2; width: 94%; }
}
@media (max-width: 760px) {
  .mrf-grille-rangees, .mrf-grille--une { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .mrf-grille-rangees > .mrf-carte, .mrf-grille-rangees > .mrf-carte:last-child:nth-child(odd), .mrf-grille--une > .mrf-carte--une, .mrf-grille--une > .mrf-carte:last-child { grid-column: 1 / -1; }
}

/* ---------- Article : sommaire sans mot orphelin ---------- */
.mrf-sommaire ol { max-height: 150px; }
.mrf-sommaire li a { text-wrap: balance; overflow-wrap: break-word; }

/* ---------- Article et page ville : FAQ en panneau, accordéon à chevron ---------- */
.faq, .mrf-encadre--faq { margin: 1.9rem 0; padding: 20px 24px 6px; background: rgba(102, 120, 58, .08); border: 1.5px solid var(--filet); border-left: 5px solid var(--olive); border-radius: 0 var(--rayon) var(--rayon) 0; }
.faq > h2, .faq > h3 { margin: 0 0 6px; font-size: 1.3rem; line-height: 1.2; }
.faq details, .mrf-encadre--faq details { padding: 0; border-bottom: 1px solid var(--filet); }
.faq details:last-child, .mrf-encadre--faq details:last-child { border-bottom: 0; }
.faq summary { position: relative; display: block; list-style: none; padding: 14px 40px 14px 0; cursor: pointer; font: 700 1.05rem/1.3 var(--titre); font-stretch: 105%; color: var(--encre); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--bleu); border-bottom: 2.5px solid var(--bleu); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--bleu-fonce); }
.faq details > :not(summary) { padding-right: 36px; color: var(--encre-douce); }
.faq details > p { margin: 0 0 14px; font-size: 1.02rem; line-height: 1.6; }
.faq details > p:last-child { margin-bottom: 16px; }

/* ---------- Article : le corps dans un panneau, rythme vertical constant ---------- */
.mrf-corps--article { padding: 40px 44px; background: #fff; border: 1px solid var(--filet); border-radius: var(--rayon); }
.mrf-corps--article > * { margin-top: 0; margin-bottom: 1.25rem; }
.mrf-corps--article > h2 { margin-top: 2.5rem; margin-bottom: .5rem; }
.mrf-corps--article > h3 { margin-top: 2rem; margin-bottom: .4rem; font-size: 1.3rem; }
.mrf-corps--article > h2:first-child, .mrf-corps--article > h3:first-child { margin-top: 0; }
.mrf-corps--article > :is(.mrf-encadre, .mrf-reperes, .mrf-encadre-reperes, .mrf-etapes, .mrf-comparatif, .faq, .mrf-accordeons, figure, blockquote, table, .mrf-etapes-legende) { margin-top: 1.9rem; margin-bottom: 1.9rem; }
.mrf-corps--article > :last-child { margin-bottom: 0; }
.mrf-corps--article .mrf-encadre:not(.mrf-encadre--retenir):not(.mrf-encadre--alerte):not(.bon-a-savoir):not(.mrf-encadre--faq):not(.mrf-encadre--sources) { background: var(--papier); }
.mrf-corps--article .mrf-comparatif__carte { background: var(--papier); }
@media (max-width: 760px) {
  .mrf-corps--article { padding: 22px 18px; }
  .mrf-corps--article > h2 { margin-top: 2rem; }
  .faq, .mrf-encadre--faq { padding: 16px 16px 4px; }
  .faq details > :not(summary) { padding-right: 8px; }
}

/* ---------- Notre équipe (B4) : une carte par personne ---------- */
.mrf-equipe-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; align-items: stretch; }
.mrf-equipe-carte { display: flex; flex-direction: column; min-width: 0; padding: 28px 28px 24px; background: #fff; border: 1px solid var(--filet); border-radius: var(--rayon); box-shadow: var(--ombre); }
.mrf-equipe-carte__tete { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 26px; align-items: start; margin-bottom: 20px; }
.mrf-equipe-carte__portrait { width: 160px; aspect-ratio: 1; margin: 6px; }
.mrf-equipe-carte__portrait--monogramme { display: grid; place-items: center; }
.mrf-equipe-carte__nom { margin: 0 0 2px; font-size: 1.5rem; }
.mrf-equipe-carte__nom a { color: var(--encre); text-decoration: none; }
.mrf-equipe-carte__nom a:hover { color: var(--bleu); text-decoration: underline; text-underline-offset: 4px; }
.mrf-equipe-carte__role { margin: 0 0 10px; font: 600 .9rem var(--titre); color: var(--bleu-fonce); }
.mrf-equipe-carte__bio { margin: 0; font-size: .98rem; line-height: 1.55; color: var(--encre-douce); }
.mrf-equipe-carte__chiffres { list-style: none; margin: 0 0 16px; padding: 14px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--encre); border-bottom: 1px solid var(--filet); }
.mrf-equipe-carte__chiffres li { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; border-left: 1px solid var(--filet); }
.mrf-equipe-carte__chiffres li:first-child { padding-left: 0; border-left: 0; }
.mrf-equipe-carte__chiffres strong { font: 700 1.9rem/1 var(--texte); color: var(--bleu-fonce); }
.mrf-equipe-carte__chiffres span { font: 600 .84rem/1.25 var(--titre); color: var(--encre-douce); }
.mrf-equipe-carte__rubriques { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mrf-equipe-carte__rubriques a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 5px 4px 12px; font: 600 .86rem var(--titre); color: var(--bleu-fonce); text-decoration: none; background: #fff; border: 1.5px solid var(--bleu); border-radius: 999px; }
.mrf-equipe-carte__rubriques a:hover { background: #EAF2F8; }
.mrf-equipe-carte__rubriques b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; background: var(--bleu); color: #fff; font: 700 .75rem var(--titre); border-radius: 999px; }
.mrf-equipe-carte__sous-titre { margin: 20px 0 6px; font: 700 .8rem var(--titre); letter-spacing: .08em; text-transform: uppercase; color: var(--encre-douce); }
.mrf-equipe-guides { list-style: none; margin: 0; padding: 0; }
.mrf-equipe-guides li { border-bottom: 1px solid var(--filet); }
.mrf-equipe-guides a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 0; color: var(--encre); text-decoration: none; }
.mrf-equipe-guides__vignette { display: block; width: 64px; height: 48px; overflow: hidden; background: var(--olive-clair); border-radius: 3px; }
.mrf-equipe-guides__vignette img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mrf-equipe-guides__texte { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mrf-equipe-guides__texte em { font: 600 .76rem var(--titre); font-style: normal; color: var(--bleu); }
.mrf-equipe-guides__texte strong { font: 700 .95rem/1.25 var(--titre); }
.mrf-equipe-guides a:hover strong { color: var(--bleu); text-decoration: underline; text-underline-offset: 3px; }
.mrf-equipe-carte__tous { margin-top: auto; padding-top: 18px; font: 700 .98rem var(--titre); color: var(--bleu-fonce); }
@media (max-width: 1024px) {
  .mrf-equipe-grille { gap: 24px; }
  .mrf-equipe-carte { padding: 22px 20px 20px; }
  .mrf-equipe-carte__tete { grid-template-columns: 120px minmax(0, 1fr); gap: 18px; }
  .mrf-equipe-carte__portrait { width: 114px; }
}
@media (max-width: 760px) {
  .mrf-equipe-grille { grid-template-columns: minmax(0, 1fr); }
  .mrf-equipe-carte__tete { grid-template-columns: 110px minmax(0, 1fr); }
  .mrf-equipe-carte__portrait { width: 104px; }
  .mrf-equipe-carte__nom { font-size: 1.3rem; }
}
@media (max-width: 420px) {
  .mrf-equipe-carte__tete { grid-template-columns: minmax(0, 1fr); }
  .mrf-equipe-carte__chiffres li { padding: 0 8px; }
}

/* ==========================================================================
   PASSE 3 (10/11/2026) — suit tout le reste : ses règles larges sont dans des min-width,
   ses règles étroites dans des max-width, pour ne rien écraser par erreur.
   ========================================================================== */

/* ---------- Accueil : H1 mot-clé, accroche dessous ---------- */
.mrf-hero__accroche { margin: 0 0 10px; max-width: 34em; font: 700 clamp(1.1rem, 1.55vw, 1.4rem)/1.25 var(--titre); font-stretch: 108%; color: var(--encre); text-wrap: balance; }
@media (min-width: 1101px) {
  /* l'accroche ajoute une ligne : la photo perd 30 px pour que le héros reste sous 704 px */
  .mrf-hero--accueil .mrf-hero__interieur { padding-block: 30px 40px; }
  .mrf-hero--accueil .mrf-hero__photo { height: 300px; }
}
@media (max-width: 760px) {
  .mrf-hero__accroche { font-size: 1.08rem; margin-bottom: 8px; }
}

/* ---------- Article : photo dans le texte, découpée en parcelle, avec crédit ---------- */
.mrf-fig-texte { margin: 2.2rem 0 0; }
.mrf-corps--article > .mrf-fig-texte { margin-top: 2.2rem; margin-bottom: 0; }
.mrf-fig-texte__photo { width: 94%; margin-inline: auto; aspect-ratio: 16 / 9; }
.mrf-fig-texte figcaption { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-left: 3%; font: 500 .86rem/1.4 var(--titre); color: var(--encre-douce); }
.mrf-fig-texte .mrf-cote__triangle { border-left-width: 6px; border-right-width: 6px; border-bottom-width: 10px; }
@media (max-width: 600px) {
  .mrf-fig-texte__photo { width: 96%; aspect-ratio: 3 / 2; }
  .mrf-fig-texte figcaption { padding-left: 2%; font-size: .82rem; }
}

/* ---------- Article : « Sources » en encadré (fond teinté, filet olive, titre court) ---------- */
.mrf-corps .mrf-encadre--sources { margin: 2.2rem 0 0; padding: 14px 22px 12px; font-size: .94rem; line-height: 1.55; }
.mrf-corps--article > .mrf-encadre--sources { margin-top: 2.2rem; margin-bottom: 0; }
.mrf-corps .mrf-encadre--sources > :is(h2, h3) { margin: 0 0 .5rem; padding: 0; font: 700 .8rem/1.2 var(--titre); font-stretch: 105%; letter-spacing: .09em; text-transform: uppercase; color: var(--encre-douce); }
.mrf-corps .mrf-encadre--sources p { margin: 0 0 .45rem; }
.mrf-corps .mrf-encadre--sources > :last-child { margin-bottom: 0; }
.mrf-corps .mrf-encadre--sources a { color: var(--bleu-fonce); font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Article : « Mis à jour le » dans le bloc auteur ---------- */
.mrf-auteur-box__maj { margin: 10px 0 0; padding-top: 8px; border-top: 1px dotted var(--bistre); font: 600 .84rem var(--titre); color: var(--encre-douce); }
.mrf-auteur-box__maj time { color: var(--encre); }

/* ---------- Article en mobile : le 1er paragraphe doit commencer au-dessus du pli (390 × 700) ---------- */
@media (max-width: 600px) {
  .mrf-art-tete__interieur { gap: 14px; padding-block: 14px 24px; }
  .mrf-art-tete .mrf-fil { margin-bottom: 8px; }
  .mrf-art-tete h1 { font-size: clamp(1.55rem, 7vw, 1.8rem); margin-bottom: .3em; }
  .mrf-art-tete__chapo { font-size: 1rem; line-height: 1.45; margin-bottom: .6em; }
  .mrf-art-tete__auteur { margin-top: 8px; }
  .mrf-art-tete__photo { aspect-ratio: 16 / 9; max-height: 184px; }
  /* l'étiquette passe sur la photo au lieu de la prolonger vers le bas */
  .mrf-art-tete__visuel .mrf-cote { left: 8px; bottom: 10px; max-width: calc(100% - 16px); padding: 4px 9px; gap: 7px; font-size: .74rem; line-height: 1.25; }
  .mrf-article-grille { padding-block: 20px 32px; }
}

/* ---------- Rubrique : bloc dépliant « Ce que couvre cette rubrique » ---------- */
.mrf-rub-couvre { max-width: 860px; margin-top: 40px; background: #fff; border: 1.5px solid var(--filet); border-left: 5px solid var(--olive); border-radius: 0 var(--rayon) var(--rayon) 0; }
.mrf-rub-couvre > summary { position: relative; display: block; min-height: 48px; padding: 14px 56px 14px 22px; list-style: none; cursor: pointer; font: 700 1.05rem/1.3 var(--titre); font-stretch: 105%; color: var(--encre); }
.mrf-rub-couvre > summary::-webkit-details-marker { display: none; }
.mrf-rub-couvre > summary::marker { content: ""; }
.mrf-rub-couvre > summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--bleu); border-bottom: 2.5px solid var(--bleu); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.mrf-rub-couvre[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.mrf-rub-couvre > summary:hover { color: var(--bleu-fonce); }
.mrf-rub-couvre__corps { padding: 0 22px 8px; font-size: 1.02rem; line-height: 1.65; color: var(--encre-douce); }
.mrf-rub-couvre__corps p { margin: 0 0 .9rem; }
.mrf-rub-couvre__guides a { color: var(--bleu-fonce); font-weight: 600; }
@media (max-width: 600px) {
  .mrf-rub-couvre { margin-top: 28px; }
  .mrf-rub-couvre > summary { padding: 14px 48px 14px 16px; }
  .mrf-rub-couvre > summary::after { right: 18px; }
  .mrf-rub-couvre__corps { padding: 0 16px 6px; }
}

/* ---------- Passe 3 bis : mobile — étiquette d'en-tête sur une ligne (la date est dans le bloc auteur), sommaire latéral masqué une fois empilé sous l'article ---------- */
@media (max-width: 600px) { .mrf-art-tete__visuel .mrf-cote__maj { display: none; } .mrf-art-tete__visuel .mrf-cote { white-space: nowrap; } }
@media (max-width: 1024px) { .mrf-sommaire[data-mrf-sommaire-rail] { display: none; } }
