/* MGD Core 2.10.3 — correction des espaces nav → hero.
   CORRECTION CIBLÉE : ne jamais modifier display/grid/position/width des
   contenus du hero. Les grilles historiques des pages sont conservées.
   L'espace vertical appartient à une seule zone, la première section.
   La bannière photo de la home reste collée à la navigation. */
:root { --mgd-nav-to-hero: 18px; }

/* Retirer les espaces que le CSS historique ajoute sur le conteneur EN PLUS
   de ceux du hero : jusqu'à 200px pour les pages locales. Le 3e ID rend cette
   règle plus spécifique que les correctifs de pages avec 2 IDs. */
html body.mgd-core-body #mgd-page-content > .mgd-home-v2 > #mgd-main-content#mgd-main-content.mgd-page,
html body.mgd-core-body #mgd-page-content > .mgd-home-v2 > .mgd-page.mgd-city-page,
html body.mgd-core-body #mgd-page-content > .mgd-home-v2.mgd-faq-page {
  box-sizing: border-box !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}
html body.mgd-core-body #mgd-page-content,
html body.mgd-core-body #mgd-page-content > .mgd-home-v2 {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Un SEUL espace sous la nav, porté par la section héro, jamais les grilles.
   Permet aux styles propres de chaque page de gérer leurs composants. */
html body.mgd-core-body #mgd-page-content > .mgd-home-v2 > #mgd-main-content#mgd-main-content.mgd-page > :is(section.mgd-top-hero, section.mgd-clean-hero, section.mgdp-hero, section.mgd-home-hero:not(.mgd-home-hero--intro)),
html body.mgd-core-body #mgd-page-content > .mgd-home-v2 > .mgd-city-page.mgd-city-page > section.mgd-city-luxe,
html body.mgd-core-body #mgd-page-content > .mgd-home-v2.mgd-faq-page > section.mgd-faq-hero {
  box-sizing: border-box !important;
  padding-top: var(--mgd-nav-to-hero) !important;
  margin-top: 0 !important;
}

/* La home possède son introduction photographique plein cadre. */
html body.mgd-core-body #mgd-page-content > .mgd-home-v2 > #mgd-main-content#mgd-main-content.mgd-page > section.mgd-home-hero.mgd-home-hero--intro {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Les pages purement textuelles suivent la même grille d'espacement,
   sans toucher à leurs titres, textes légaux ni au formulaire de réservation. */
html body.mgd-core-body:is(.page-id-5115,.page-id-5085,.page-id-5132) #mgd-page-content > :is(.mentions-legales,.cgv,.politique-confidentialite),
html body.mgd-core-body.page-id-10180 #mgd-page-content > div[style*="max-width"] {
  box-sizing: border-box !important;
  margin-top: 0 !important;
  padding-top: var(--mgd-nav-to-hero) !important;
}

@media (max-width: 1100px) {
  :root { --mgd-nav-to-hero: 16px; }
}
@media (max-width: 600px) {
  :root { --mgd-nav-to-hero: 12px; }
}
