/* MPB 3.27.24 — TEST SEULEMENT
   Rapproche le footer du contenu sur les pages MPB, sans le masquer ni fixer
   sa position. Les textes plus longs et les vues mobiles defilent naturellement.
   Aucun changement aux liens PDF, reseaux, Bloomcal ou au selecteur de langue.
*/
/* Footer modeste mais accessible, quelle que soit la langue. */
html body.mpb-site footer.site-footer {
  min-height: 0 !important;
  padding-bottom: 8px !important;
  margin-top: 0 !important;
}
html body.mpb-site footer.site-footer .footer-decoration {
  height: 6px !important;
}
html body.mpb-site footer.site-footer .footer-links-wrap {
  padding-top: 6px !important;
}
html body.mpb-site footer.site-footer .footer-links {
  margin-top: 0 !important;
  row-gap: 4px !important;
}
html body.mpb-site footer.site-footer .footer-credit {
  margin-top: 2px !important;
}

/* La marge sous le contenu, et non le footer lui-meme, provoque les grands blancs. */
@media (min-width: 1021px) {
  html body.mpb-site main.approche-page {
    min-height: 0 !important;
    padding-top: 12px !important;
    padding-bottom: 14px !important;
  }
  html body.mpb-site main.approche-page .approach-grid {
    padding-bottom: 2px !important;
    row-gap: 7px !important;
  }
  html body.mpb-site main.approche-page .approach-item {
    min-height: 132px !important;
  }
  html body.mpb-site main.qui-page:not(.parcours-view) .who-hero {
    min-height: 0 !important;
    padding-top: 13px !important;
    padding-bottom: 12px !important;
  }
  html body.mpb-site main.qui-page:not(.parcours-view) .who-portrait {
    height: clamp(440px, 31vw, 540px) !important;
    margin-top: 13px !important;
  }
  html body.mpb-site main.qui-page:not(.parcours-view) .who-copy > a.btn-parcours {
    margin-top: 15px !important;
  }
  html body.mpb-site main.tarifs-page .tarifs-hero {
    min-height: 0 !important;
  }
  html body.mpb-site main.tarifs-page .tarifs-copy {
    padding-top: 24px !important;
    padding-bottom: 20px !important;
  }
  html body.mpb-site main.tarifs-page .tarifs-photo {
    height: clamp(335px, 40vh, 420px) !important;
  }
  html body.mpb-site main.tarifs-page .tarifs-grid {
    margin-top: 16px !important;
    margin-bottom: 7px !important;
    gap: 16px !important;
  }
  html body.mpb-site main.tarifs-page .tarif-card {
    min-height: 0 !important;
    padding-top: 12px !important;
    padding-bottom: 15px !important;
  }
  html body.mpb-site main.soin-page .recognize-section {
    padding-top: 11px !important;
  }
  html body.mpb-site main.soin-page .recognize-grid {
    margin-bottom: 1px !important;
  }
  html body.mpb-site main.soin-page .soin-bottom.cta-block {
    padding-top: 7px !important;
    padding-bottom: 9px !important;
  }
  /* Parcours est volontairement une longue page. Sa fin reste accessible
     avec un defilement ordinaire, sans footer superpose au contenu. */
  html body.mpb-site main.parcours-view #mon-parcours .cta-block {
    padding-bottom: 18px !important;
  }
}
/* Sur les ecrans d'ordinateur plus courts, enlever les contraintes de hauteur
   des anciennes versions RDV ; garder des dimensions adaptables. */
@media (min-width: 761px) and (max-height: 1000px) {
  html body.mpb-site.mpb-rdv-fullheight {
    display: block !important;
    min-height: 0 !important;
  }
  html body.mpb-site.mpb-rdv-fullheight > main.rdv-page {
    flex: initial !important;
    min-height: 0 !important;
    padding-bottom: 9px !important;
  }
  html body.mpb-site.mpb-rdv-fullheight > footer.site-footer {
    margin-top: 0 !important;
  }
}
/* Tablettes / smartphones : pas de hauteur fixe, pas de coupe de contenu. */
@media (max-width: 1020px) {
  html body.mpb-site main.approche-page {padding-bottom: 24px !important;}
  html body.mpb-site main.qui-page:not(.parcours-view) .who-hero {min-height:0 !important; padding-bottom:25px !important;}
  html body.mpb-site main.tarifs-page .tarifs-grid {margin-bottom:18px !important;}
  html body.mpb-site footer.site-footer .footer-links {row-gap: 7px !important;}
}
