/*
Theme Name:   Maison Retraite France
Theme URI:    https://maisonretraitefrance.fr/
Description:  Thème enfant d'ASAP pour l'annuaire des maisons de retraite et EHPAD en France.
Author:       SeoFune
Author URI:   https://seofune.es/
Template:     asap
Version:      3.2.0
Text Domain:  maisonretraitefrance
*/

/* =====================================================================
   VERSION 3.2.0
   Synchroniser avec MRF_VERSION dans functions.php et le pied de page.
   ===================================================================== */

:root {
    --mrf-bleu:        #01437F;
    --mrf-bleu-fonce:  #042C53;
    --mrf-bleu-moyen:  #185FA5;
    --mrf-bleu-clair:  #E6F1FB;
    --mrf-vert:        #18753C;
    --mrf-vert-clair:  #E1F5EE;
    --mrf-rouge:       #C9191E;
    --mrf-rouge-clair: #FDF3F3;
    --mrf-texte:       #1E1E1E;
    --mrf-texte-doux:  #5F5E5A;
    --mrf-gris:        #F6F6F6;
    --mrf-gris-2:      #EFEFEE;
    --mrf-bordure:     #DDDCD8;
    --mrf-largeur:     1140px;
    --mrf-radius:      8px;
}

/* ---------------------------------------------------------------------
   1. Correctifs ASAP — le contenu reste collé à gauche sans cela
   --------------------------------------------------------------------- */

.content-single, .content-page, .content-loop, .content-area,
.content-all, .the-content, .content-category {
    max-width: var(--mrf-largeur);
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.content-thin {
    max-width: 820px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.content-single img, .content-page img, .content-loop img,
.content-area img, .the-content img, .content-category img,
.content-thin img { max-width: 100%; height: auto; }

@media screen and (max-width: 782px) {
    .content-single, .content-page, .content-loop, .content-area,
    .content-all, .the-content, .content-category, .content-thin {
        padding: 14px;
    }
}

/* ---------------------------------------------------------------------
   2. Base
   --------------------------------------------------------------------- */

body.mrf {
    margin: 0;
    color: var(--mrf-texte);
    background: #fff;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    /* Un interligne de 1,75 sur un site que l'on lit en s'inquiétant :
       la lecture y gagne plus qu'une police plus grande. */
    line-height: 1.75;
    font-size: 17px;
}

.mrf-conteneur {
    max-width: var(--mrf-largeur);
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.mrf a { color: var(--mrf-bleu); }
.mrf h1, .mrf h2, .mrf h3, .mrf h4 { line-height: 1.3; color: var(--mrf-texte); }
.mrf h1 { font-size: 2rem;    margin: 0 0 .55em; letter-spacing: -.01em; }
.mrf h2 { font-size: 1.42rem; margin: 3em 0 .8em; }
.mrf h3 { font-size: 1.12rem; margin: 2em 0 .6em; }
.mrf p  { margin: 0 0 1.35em; }
/* Le rythme de lecture ne vaut QUE pour les listes du contenu
   rédactionnel. Écrit « .mrf ul », il l'emportait sur toutes les listes
   à classe du thème — pastilles, coordonnées, étiquettes, bandeau de
   chiffres — puisqu'une classe plus un élément pèsent davantage qu'une
   classe seule. Le bandeau de l'accueil perdait ainsi ses 48 px de
   marge sans que rien ne le signale. */
.mrf ul:not([class]), .mrf ol:not([class]) { margin: 0 0 1.5em 1.25em; padding: 0; }
.mrf ul:not([class]) > li, .mrf ol:not([class]) > li { margin-bottom: .6em; }
.mrf .mrf-editorial ul, .mrf .mrf-editorial ol { margin: 0 0 1.5em 1.25em; padding: 0; }
.mrf .mrf-editorial li { margin-bottom: .6em; }
.mrf h2 + p, .mrf h3 + p { margin-top: 0; }

.mrf-lien-fleche::after { content: " \2192"; }

/* ---------------------------------------------------------------------
   3. En-tête
   --------------------------------------------------------------------- */

.mrf-entete {
    background: var(--mrf-bleu);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 500;
}

.mrf-entete-barre {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 62px;
}

.mrf-marque {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -.01em;
    white-space: nowrap;
}
.mrf-marque { display: flex; align-items: center; padding: 9px 0; }
.mrf-logo { display: block; height: 40px; width: auto; max-width: 100%; }
.custom-logo-link { display: inline-block; }
.custom-logo { height: 44px; width: auto; max-width: 100%; display: block; }
@media screen and (max-width: 520px) { .mrf-logo { height: 34px; } }

.mrf-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.mrf-nav a {
    display: block;
    color: #DCEAF7;
    text-decoration: none;
    font-size: .92rem;
    padding: 8px 12px;
    border-radius: 6px;
}
.mrf-nav a:hover, .mrf-nav .current-menu-item > a { background: rgba(255,255,255,.14); color: #fff; }

.mrf-burger {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    border-radius: 6px;
    padding: 7px 11px;
    font-size: .9rem;
    cursor: pointer;
}

@media screen and (max-width: 900px) {
    .mrf-burger { display: block; }
    .mrf-nav { display: none; width: 100%; }
    .mrf-nav.ouvert { display: block; padding-bottom: 12px; }
    .mrf-nav ul { flex-direction: column; gap: 0; }
    .mrf-nav a { padding: 11px 12px; border-top: 1px solid rgba(255,255,255,.15); border-radius: 0; }
    .mrf-entete-barre { flex-wrap: wrap; }
}

/* ---------------------------------------------------------------------
   4. Fil d'Ariane
   --------------------------------------------------------------------- */

.mrf-ariane { font-size: .82rem; color: var(--mrf-texte-doux); padding: 14px 0 0; }
.mrf-ariane a { color: var(--mrf-texte-doux); text-decoration: none; }
.mrf-ariane a:hover { text-decoration: underline; }
.mrf-ariane span { margin: 0 6px; opacity: .6; }

/* ---------------------------------------------------------------------
   5. Mise en page à deux colonnes (fiche)
   --------------------------------------------------------------------- */

.mrf-page { padding: 10px 0 64px; }

/* Sur l'accueil, la première grille suit un bandeau coloré :
   il lui faut plus d'air qu'après un simple fil d'Ariane. */
.mrf-hero + .mrf-page { padding-top: 54px; }

.mrf-deux-colonnes {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 36px;
    align-items: start;
}

@media screen and (max-width: 980px) {
    .mrf-deux-colonnes { grid-template-columns: 1fr; gap: 24px; }
    .mrf-colonne-laterale { order: -1; }
}

.mrf-colonne-laterale { position: sticky; top: 82px; }
@media screen and (max-width: 980px) { .mrf-colonne-laterale { position: static; } }

/* ---------------------------------------------------------------------
   6. Encarts de la colonne latérale
   --------------------------------------------------------------------- */

.mrf-encart {
    border: 1px solid var(--mrf-bordure);
    border-radius: var(--mrf-radius);
    padding: 18px 20px;
    margin-bottom: 18px;
    background: #fff;
}
.mrf-encart h2, .mrf-encart h3 {
    font-size: .95rem;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--mrf-bleu);
}
.mrf-encart-bleu { background: var(--mrf-bleu-clair); border-color: #C6DDF2; }

.mrf-coord { list-style: none; margin: 0; padding: 0; }
.mrf-coord li { margin: 0; }
.mrf-coord li { display: flex; gap: 10px; margin-bottom: 11px; font-size: .92rem; line-height: 1.5; }
.mrf-coord li:last-child { margin-bottom: 0; }
.mrf-coord .mrf-etiq { color: var(--mrf-texte-doux); min-width: 82px; flex: 0 0 82px; }
.mrf-coord a { word-break: break-word; }

.mrf-bouton {
    display: block;
    text-align: center;
    background: var(--mrf-bleu);
    color: #fff !important;
    text-decoration: none;
    padding: 11px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: .95rem;
}
.mrf-bouton:hover { background: var(--mrf-bleu-fonce); }
.mrf-bouton-clair {
    background: #fff;
    color: var(--mrf-bleu) !important;
    border: 1px solid var(--mrf-bleu);
}
.mrf-bouton-clair:hover { background: var(--mrf-bleu-clair); }

/* Horaires : uniquement rendus si la donnée existe */
.mrf-horaires { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.mrf-horaires li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid var(--mrf-gris-2);
}
.mrf-horaires li:last-child { border-bottom: none; }
.mrf-horaires .mrf-jour-actuel {
    font-weight: 600;
    color: var(--mrf-bleu);
    background: var(--mrf-bleu-clair);
    margin: 0 -8px;
    padding: 6px 8px;
    border-radius: 4px;
    border-bottom-color: transparent;
}

/* ---------------------------------------------------------------------
   7. Contenu de la fiche
   --------------------------------------------------------------------- */

.mrf-chapeau { font-size: 1.05rem; color: var(--mrf-texte-doux); margin-bottom: 1.4em; }

.mrf-etiquettes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.mrf-etiquettes li { margin: 0; }
.mrf-etiquette {
    background: var(--mrf-gris);
    border: 1px solid var(--mrf-bordure);
    border-radius: 20px;
    padding: 4px 13px;
    font-size: .82rem;
    color: var(--mrf-texte-doux);
}
.mrf-etiquette-bleue { background: var(--mrf-bleu-clair); border-color: #C6DDF2; color: var(--mrf-bleu); }

.mrf-tableau { width: 100%; border-collapse: collapse; margin: 0 0 8px; font-size: .95rem; }
.mrf-tableau th, .mrf-tableau td { padding: 11px 12px; border-bottom: 1px solid var(--mrf-bordure); text-align: left; }
.mrf-tableau thead th { background: var(--mrf-gris); font-weight: 600; font-size: .88rem; }
.mrf-tableau td.mrf-montant { text-align: right; white-space: nowrap; font-weight: 600; }
.mrf-tableau tr:last-child th, .mrf-tableau tr:last-child td { border-bottom: none; }

.mrf-note { font-size: .86rem; line-height: 1.65; color: var(--mrf-texte-doux); margin: 0 0 1.8em; }

.mrf-prix-vedette {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--mrf-bleu-clair);
    border-radius: var(--mrf-radius);
    padding: 18px 22px;
    margin: 0 0 18px;
}
.mrf-prix-vedette strong { font-size: 1.7rem; color: var(--mrf-bleu-fonce); line-height: 1; }
.mrf-prix-vedette span { font-size: .9rem; color: var(--mrf-bleu-moyen); }

.mrf-liste-check { list-style: none; margin: 0 0 1.2em; padding: 0; }
.mrf-liste-check li { padding-left: 26px; position: relative; margin-bottom: .45em; }
.mrf-liste-check li::before {
    content: "\2713";
    position: absolute; left: 0; top: 0;
    color: var(--mrf-vert); font-weight: 700;
}
.mrf-liste-check li.mrf-absent { color: #9A9A96; }
.mrf-liste-check li.mrf-absent::before { content: "\2013"; color: #BFBFBB; }

.mrf-info {
    background: var(--mrf-bleu-clair);
    border-left: 5px solid var(--mrf-bleu);
    border-radius: 0 var(--mrf-radius) var(--mrf-radius) 0;
    padding: 16px 20px;
    margin: 22px 0;
    font-size: .93rem;
}
.mrf-info p:last-child { margin-bottom: 0; }

.mrf-alerte {
    background: var(--mrf-rouge-clair);
    border-left: 5px solid var(--mrf-rouge);
    border-radius: 0 var(--mrf-radius) var(--mrf-radius) 0;
    padding: 16px 20px;
    margin: 22px 0;
    font-size: .93rem;
}
.mrf-alerte p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------
   8. Publicité
   --------------------------------------------------------------------- */

.mrf-pub { margin: 34px 0; text-align: center; overflow: hidden; max-width: 100%; }
.mrf-pub + h2 { margin-top: 50px; }

/* ---------------------------------------------------------------------
   9. Cartes d'établissements (archives)
   --------------------------------------------------------------------- */

.mrf-cartes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 16px;
    margin: 22px 0 30px;
}

.mrf-fiche-carte {
    border: 1px solid var(--mrf-bordure);
    border-radius: var(--mrf-radius);
    padding: 18px 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.mrf-fiche-carte:hover { border-color: #B9CFE4; box-shadow: 0 2px 10px rgba(1,67,127,.07); }

.mrf-carte-type {
    display: inline-block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--mrf-bleu);
    background: var(--mrf-bleu-clair);
    border-radius: 4px;
    padding: 3px 8px;
    margin-bottom: 8px;
}

.mrf-fiche-carte h3 { margin: 0 0 8px; font-size: 1.04rem; line-height: 1.35; }
.mrf-fiche-carte h3 a { text-decoration: none; color: var(--mrf-texte); }
.mrf-fiche-carte h3 a:hover { color: var(--mrf-bleu); text-decoration: underline; }

.mrf-carte-adresse { font-size: .88rem; color: var(--mrf-texte-doux); margin: 0 0 12px; line-height: 1.5; }

.mrf-carte-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 14px; padding: 0; }
.mrf-carte-tags li { margin: 0; }
.mrf-carte-tags li {
    font-size: .76rem;
    background: var(--mrf-gris);
    border: 1px solid var(--mrf-bordure);
    border-radius: 20px;
    padding: 2px 10px;
    color: var(--mrf-texte-doux);
    margin: 0;
}
.mrf-carte-plus {
    font-size: .84rem;
    color: var(--mrf-texte-doux);
    margin: 0 0 11px;
    line-height: 1.45;
}
.mrf-carte-plus strong { color: var(--mrf-texte); font-weight: 500; }

.mrf-carte-tags .mrf-tag-bleu {
    background: var(--mrf-bleu-clair);
    border-color: #C6DDF2;
    color: var(--mrf-bleu);
}

.mrf-carte-tags .mrf-tag-vert {
    background: var(--mrf-vert-clair);
    border-color: #BCE3D5;
    color: #0F6E56;
}

.mrf-carte-pied {
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid var(--mrf-gris-2);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.mrf-carte-prix { font-size: .82rem; color: var(--mrf-texte-doux); }
.mrf-carte-prix strong { font-size: 1.18rem; color: var(--mrf-bleu-fonce); }
.mrf-carte-sansprix { font-size: .82rem; color: #9A9A96; }
.mrf-carte-lien { font-size: .88rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.mrf-carte-lien:hover { text-decoration: underline; }

.mrf-pagination { margin: 30px 0; text-align: center; }
.mrf-pagination .page-numbers {
    display: inline-block;
    padding: 8px 13px;
    margin: 0 2px;
    border: 1px solid var(--mrf-bordure);
    border-radius: 6px;
    text-decoration: none;
    font-size: .92rem;
}
.mrf-pagination .current { background: var(--mrf-bleu); color: #fff; border-color: var(--mrf-bleu); }

/* ---------------------------------------------------------------------
   9b. Index A-Z filtrant
   --------------------------------------------------------------------- */

.mrf-az {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 20px 0 6px;
    padding: 14px 16px;
    background: var(--mrf-gris);
    border: 1px solid var(--mrf-bordure);
    border-radius: var(--mrf-radius);
}

.mrf-az-lettre {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    min-width: 34px;
    justify-content: center;
    padding: 7px 9px;
    border-radius: 5px;
    font-size: .95rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1;
    color: var(--mrf-bleu);
    background: #fff;
    border: 1px solid var(--mrf-bordure);
    cursor: pointer;
}
.mrf-az-lettre span { font-size: .68rem; font-weight: 400; opacity: .6; }
.mrf-az-lettre:hover { background: var(--mrf-bleu-clair); border-color: #C6DDF2; }
.mrf-az-lettre.actif {
    background: var(--mrf-bleu);
    border-color: var(--mrf-bleu);
    color: #fff;
}
.mrf-az-lettre.actif span { opacity: .8; }

/* Sans JavaScript, tous les groupes restent visibles. */
.mrf-az-bloc.js .mrf-az-groupe { display: none; }
.mrf-az-bloc.js .mrf-az-groupe.actif { display: block; }

.mrf-az-groupe { margin: 24px 0 0; }

.mrf-az-titre {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--mrf-bleu);
    font-size: 1.4rem;
}
.mrf-az-titre span { color: var(--mrf-bleu); font-weight: 700; }
.mrf-az-titre em {
    font-style: normal;
    font-size: .82rem;
    font-weight: 400;
    color: var(--mrf-texte-doux);
}

.mrf-region small { font-weight: 400; color: var(--mrf-texte-doux); font-size: .8em; }

@media screen and (max-width: 700px) {
    .mrf-az { padding: 12px; gap: 4px; }
    .mrf-az-lettre { min-width: 30px; padding: 6px 7px; font-size: .88rem; }
    .mrf-az-lettre span { display: none; }
}

/* ---------------------------------------------------------------------
   10. Accueil
   --------------------------------------------------------------------- */

.mrf-hero { background: var(--mrf-bleu-clair); padding: 62px 0 46px; }
.mrf-hero h1 { color: var(--mrf-bleu-fonce); max-width: 19em; margin-bottom: 22px; }
.mrf-hero-sous {
    color: var(--mrf-bleu-moyen);
    font-size: 1.08rem;
    line-height: 1.75;
    max-width: 38em;
    margin-bottom: 38px;
}

.mrf-recherche { display: flex; gap: 10px; flex-wrap: wrap; max-width: 620px; }
.mrf-recherche input[type="search"], .mrf-recherche input[type="text"] {
    flex: 1 1 260px;
    border: 1px solid #C6DDF2;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 1rem;
    box-sizing: border-box;
    background: #fff;
}
.mrf-recherche button {
    background: var(--mrf-bleu);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 26px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}
.mrf-recherche button:hover { background: var(--mrf-bleu-fonce); }

.mrf-grille { display: grid; gap: 20px; margin: 0 0 22px; }
.mrf-grille-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.mrf-grille-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.mrf-grille-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.mrf-carte {
    border: 1px solid var(--mrf-bordure);
    border-radius: var(--mrf-radius);
    padding: 26px 26px 24px;
    background: #fff;
}
.mrf-carte h3 { margin: 0 0 10px; font-size: 1.06rem; }
.mrf-carte p { font-size: .94rem; color: var(--mrf-texte-doux); margin-bottom: 16px; line-height: 1.65; }
.mrf-carte a { font-size: .92rem; font-weight: 500; text-decoration: none; }
.mrf-carte a:hover { text-decoration: underline; }

.mrf-regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 24px 0 28px; }
.mrf-region {
    border: 1px solid var(--mrf-bordure);
    border-radius: 6px;
    padding: 13px 16px;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: .94rem;
    color: var(--mrf-texte);
}
.mrf-region:hover { background: var(--mrf-bleu-clair); border-color: #C6DDF2; }
.mrf-region b { font-weight: 600; }
.mrf-region em { font-style: normal; color: var(--mrf-texte-doux); font-size: .86rem; }

.mrf-puces { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 32px; padding: 0; list-style: none; }
.mrf-puces li { margin: 0; }
.mrf-puce {
    background: var(--mrf-gris);
    border: 1px solid var(--mrf-bordure);
    border-radius: 20px;
    padding: 8px 17px;
    font-size: .88rem;
    text-decoration: none;
    color: var(--mrf-texte);
}
.mrf-puce:hover { background: var(--mrf-bleu-clair); border-color: #C6DDF2; }
.mrf-puce b { color: var(--mrf-texte-doux); font-weight: 400; }

.mrf-tarif-bloc { border-radius: var(--mrf-radius); padding: 24px 24px 22px; }
.mrf-tarif-bloc h3 { margin: 0 0 9px; font-size: 1.02rem; }
.mrf-tarif-bloc p { margin: 0; font-size: .93rem; line-height: 1.65; }
.mrf-tarif-heb   { background: var(--mrf-bleu-clair);  color: var(--mrf-bleu-moyen); }
.mrf-tarif-heb h3   { color: var(--mrf-bleu-fonce); }
.mrf-tarif-dep   { background: var(--mrf-vert-clair);  color: #0F6E56; }
.mrf-tarif-dep h3   { color: #085041; }
.mrf-tarif-soins { background: var(--mrf-gris-2);      color: var(--mrf-texte-doux); }
.mrf-tarif-soins h3 { color: #444441; }

.mrf-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 12px; margin: 26px 0; }
.mrf-chiffre { background: var(--mrf-gris); border-radius: var(--mrf-radius); padding: 16px 18px; }
.mrf-chiffre b { display: block; font-size: 1.6rem; line-height: 1.2; color: var(--mrf-bleu-fonce); }
.mrf-chiffre span { font-size: .85rem; color: var(--mrf-texte-doux); }

/* ---------------------------------------------------------------------
   11. Pied de page
   --------------------------------------------------------------------- */

.mrf-pied { background: #F4F6F8; border-top: 3px solid var(--mrf-bleu); margin-top: 50px; }
.mrf-pied-grille {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 34px;
    padding: 38px 0 30px;
}
@media screen and (max-width: 820px) {
    .mrf-pied-grille { grid-template-columns: 1fr; gap: 26px; padding: 28px 0 22px; }
}
.mrf-pied h2 {
    font-size: .88rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--mrf-bleu);
    margin: 0 0 12px;
}
.mrf-pied ul { list-style: none; margin: 0; padding: 0; }
.mrf-pied li { margin-bottom: 8px; font-size: .9rem; }
.mrf-pied a { color: var(--mrf-texte); text-decoration: none; }
.mrf-pied a:hover { text-decoration: underline; color: var(--mrf-bleu); }
.mrf-pied p { font-size: .88rem; color: var(--mrf-texte-doux); margin: 0 0 10px; }

.mrf-pied-bas {
    border-top: 1px solid var(--mrf-bordure);
    padding: 16px 0 22px;
    font-size: .82rem;
    color: var(--mrf-texte-doux);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.mrf-pied-bas a { color: var(--mrf-texte-doux); }

/* ---------------------------------------------------------------------
   12. Divers
   --------------------------------------------------------------------- */

.mrf-invisible {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px,1px,1px,1px);
    white-space: nowrap;
}

.mrf-req { color: var(--mrf-rouge); font-weight: 700; }

.mrf-colonnes { display: flex; flex-wrap: wrap; gap: 26px; margin: 38px 0; }
.mrf-colonnes > div { flex: 1 1 280px; box-sizing: border-box; padding: 26px 28px; border-radius: 0 var(--mrf-radius) var(--mrf-radius) 0; }
.mrf-oui { border-left: 6px solid var(--mrf-vert); background: var(--mrf-vert-clair); }
.mrf-non { border-left: 6px solid var(--mrf-rouge); background: var(--mrf-rouge-clair); }
.mrf-oui h3 { margin-top: 0; color: var(--mrf-vert); }
.mrf-non h3 { margin-top: 0; color: var(--mrf-rouge); }

/* ---------------------------------------------------------------------
   13. Formulaire de contact (Contact Form 7)
   --------------------------------------------------------------------- */

.wpcf7 {
    border: 1px solid var(--mrf-bordure);
    border-radius: var(--mrf-radius);
    padding: 26px 28px 22px;
    background: #FCFCFB;
    margin: 24px 0 32px;
}

.wpcf7 form > p { margin: 0 0 18px; }
.wpcf7 form > p:last-of-type { margin-bottom: 0; }

.wpcf7 label {
    display: block;
    font-size: .92rem;
    font-weight: 600;
    color: var(--mrf-texte);
    line-height: 1.5;
}

/* CF7 insère un <br> entre le libellé et le champ : on le neutralise
   pour piloter l'espacement au CSS. */
.wpcf7 label br { display: none; }

.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 7px; }

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    color: var(--mrf-texte);
    background: #fff;
    border: 1px solid var(--mrf-bordure);
    border-radius: 6px;
    padding: 11px 13px;
    line-height: 1.5;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
    appearance: none;
}

.wpcf7 textarea { min-height: 170px; resize: vertical; }

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--mrf-bleu);
    box-shadow: 0 0 0 3px rgba(1, 67, 127, .12);
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder { color: #9A9A96; }

/* Liste déroulante : flèche dessinée, pour un rendu identique partout */
.wpcf7 select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2301437F' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

/* ---- case de consentement ---- */

.wpcf7 .wpcf7-acceptance { display: block; }

.wpcf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; }

.wpcf7 .wpcf7-acceptance label {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: .9rem;
    font-weight: 400;
    line-height: 1.55;
    color: var(--mrf-texte-doux);
    background: var(--mrf-bleu-clair);
    border: 1px solid #C6DDF2;
    border-radius: 6px;
    padding: 14px 16px;
    cursor: pointer;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--mrf-bleu);
    cursor: pointer;
}

.wpcf7 .wpcf7-acceptance a { font-weight: 500; }

/* ---- bouton ---- */

.wpcf7 input[type="submit"] {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background: var(--mrf-bleu);
    border: none;
    border-radius: 6px;
    padding: 13px 34px;
    cursor: pointer;
    transition: background .15s;
    -webkit-appearance: none;
    appearance: none;
}
.wpcf7 input[type="submit"]:hover { background: var(--mrf-bleu-fonce); }
.wpcf7 input[type="submit"]:disabled { background: #9AA6B2; cursor: not-allowed; }

.wpcf7 .wpcf7-spinner { margin: 0 0 0 12px; vertical-align: middle; }

/* ---- validation et messages ---- */

.wpcf7 .wpcf7-not-valid { border-color: var(--mrf-rouge); }

.wpcf7 .wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    font-size: .84rem;
    font-weight: 500;
    color: var(--mrf-rouge);
}

.wpcf7 form .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 14px 18px;
    border: 1px solid var(--mrf-bordure);
    border-left-width: 5px;
    border-radius: 0 6px 6px 0;
    font-size: .93rem;
    line-height: 1.55;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: var(--mrf-vert);
    background: var(--mrf-vert-clair);
    color: #0F5B45;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
    border-color: #B8860B;
    background: #FDF6E3;
    color: #6B5310;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    border-color: var(--mrf-rouge);
    background: var(--mrf-rouge-clair);
    color: #8E1215;
}

@media screen and (max-width: 600px) {
    .wpcf7 { padding: 20px 18px 18px; }
    .wpcf7 input[type="submit"] { width: 100%; padding: 14px; }
}

/* ---------------------------------------------------------------------
   14. Statistiques
   --------------------------------------------------------------------- */

.mrf-tableau-large { overflow-x: auto; margin: 20px 0; }
.mrf-tableau-large table { min-width: 620px; }
.mrf-tableau td.mrf-vide { color: #B8B8B4; }

.mrf-classement { list-style: none; counter-reset: rang; margin: 20px 0; padding: 0; }
.mrf-classement li {
    counter-increment: rang;
    display: grid;
    grid-template-columns: 2.2rem 1fr auto;
    align-items: baseline;
    gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--mrf-bordure);
}
.mrf-classement li:first-child { border-top: 1px solid var(--mrf-bordure); }
.mrf-classement li::before {
    content: counter(rang);
    font-weight: 700;
    color: var(--mrf-bleu);
    font-size: 1.05rem;
}
.mrf-classement span a { text-decoration: none; font-weight: 500; }
.mrf-classement span a:hover { text-decoration: underline; }
.mrf-classement em {
    font-style: normal;
    font-weight: 700;
    color: var(--mrf-bleu-fonce);
    white-space: nowrap;
}
.mrf-classement small {
    grid-column: 2 / -1;
    font-size: .8rem;
    color: var(--mrf-texte-doux);
}

/* ---------------------------------------------------------------------
   15. Carte de France
   --------------------------------------------------------------------- */

.mrf-carte-bloc { margin: 34px 0 44px; padding: 0; }

.mrf-carte-titre {
    margin: 0 0 14px;
    font-size: 1.15rem;
    font-weight: 600;
}

.mrf-carte {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    margin: 0 auto;
}

.mrf-carte path { transition: fill .12s; }
.mrf-carte a:hover path,
.mrf-carte a:focus path {
    fill: var(--mrf-vert);
    outline: none;
}

.mrf-carte-legende {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    justify-content: center;
    margin: 16px auto 10px;
    padding: 0;
    max-width: 620px;
    font-size: .84rem;
    color: var(--mrf-texte-doux);
}
.mrf-carte-legende li {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
}
.mrf-carte-legende span {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    flex: 0 0 auto;
}

.mrf-carte-bloc figcaption { text-align: center; }

@media screen and (max-width: 600px) {
    .mrf-carte-legende { font-size: .78rem; gap: 5px 12px; }
}

/* ---------------------------------------------------------------------
   16. Pictogrammes, bandeau de chiffres, histogramme
   --------------------------------------------------------------------- */

.mrf-icone { display: block; flex: 0 0 auto; }

.mrf-carte-icone { padding: 28px 26px 26px; }
.mrf-carte-icone .mrf-icone {
    color: var(--mrf-bleu);
    margin-bottom: 18px;
}
.mrf-carte-icone h2 {
    font-size: 1.06rem;
    margin: 0 0 10px;
    font-weight: 600;
    line-height: 1.35;
}
.mrf-carte-icone p { margin-bottom: 14px; line-height: 1.6; }

.mrf-acces { margin-bottom: 20px; gap: 20px; }

/* Bandeau de chiffres dans l'en-tête d'accueil */
/* Le bandeau est un bloc blanc posé sur le fond bleu, et non une ligne
   de plus sous le formulaire : une simple séparation ne suffisait pas à
   le détacher visuellement du champ de recherche. */
.mrf-hero-chiffres {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px 54px;
    margin: 40px 0 0;
    padding: 24px 28px;
    background: #fff;
    border-radius: var(--mrf-radius);
    box-shadow: 0 1px 4px rgba(1, 67, 127, .07);
}
.mrf-hero-chiffres li { margin: 0; }
.mrf-hero-chiffres b {
    display: block;
    font-size: 1.55rem;
    line-height: 1.15;
    color: var(--mrf-bleu-fonce);
    font-weight: 700;
}
.mrf-hero-chiffres span {
    font-size: .82rem;
    color: var(--mrf-bleu-moyen);
}

/* Les trois tarifs */
.mrf-tarif-bloc .mrf-icone { margin-bottom: 9px; opacity: .85; }
.mrf-tarif-heb   .mrf-icone { color: var(--mrf-bleu-fonce); }
.mrf-tarif-dep   .mrf-icone { color: #085041; }
.mrf-tarif-soins .mrf-icone { color: #444441; }

/* Sources */
.mrf-source {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border: 1px solid var(--mrf-bordure);
    border-radius: var(--mrf-radius);
    padding: 24px 24px 22px;
}
.mrf-source .mrf-icone { color: var(--mrf-bleu); margin-top: 3px; }
.mrf-source h3 { margin: 0 0 5px; font-size: 1rem; }
.mrf-source p { margin: 0; font-size: .9rem; color: var(--mrf-texte-doux); }

/* Colonnes oui / non : le pictogramme dans le titre */
.mrf-oui h3, .mrf-non h3 {
    display: flex;
    align-items: center;
    gap: 9px;
}
.mrf-oui h3 .mrf-icone { color: var(--mrf-vert); }
.mrf-non h3 .mrf-icone { color: var(--mrf-rouge); }

/* Histogramme */
.mrf-histo-bloc { margin: 30px 0 42px; padding: 0; }
.mrf-histo {
    display: block;
    width: 100%;
    max-width: 720px;
    height: auto;
    margin: 0 auto;
}
.mrf-histo rect { transition: fill .12s; }
.mrf-histo rect:hover { fill: var(--mrf-vert); }
.mrf-histo-bloc figcaption { text-align: center; }

@media screen and (max-width: 700px) {
    body.mrf { font-size: 16px; }
    .mrf-conteneur { padding: 0 18px; }
    .mrf h2 { margin: 2.4em 0 .7em; }
    .mrf-hero { padding: 44px 0 46px; }
    .mrf-hero-chiffres {
        gap: 18px 30px;
        margin-top: 30px;
        padding-top: 24px;
    }
    .mrf-hero-chiffres b { font-size: 1.32rem; }
    .mrf-hero + .mrf-page { padding-top: 30px; }
}

@media print {
    .mrf-entete, .mrf-pied, .mrf-pub, .mrf-colonne-laterale .mrf-bouton { display: none; }
    .mrf-deux-colonnes { grid-template-columns: 1fr; }
}
