/*
 * QUARZEO — verrouillage du header/footer commun.
 * Masque tout ancien shell recréé hors du contenu principal.
 */

body > header:not(.qzu-header),
body > qz-site-header,
body > .topbar:not(.qzu-header),
body > .qzv12-topbar,
body > footer:not(.qzu-footer),
body > qz-site-footer,
body > .siteFooter:not(.qzu-footer),
body > .editorialFooterV8,
body > .editorialFooterV9 {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Ancien shell éventuellement recréé dans un conteneur intermédiaire. */
body > *:not(main):not(.qzu-header):not(.qzu-footer) > header:not(.qzu-header),
body > *:not(main):not(.qzu-header):not(.qzu-footer) > .topbar:not(.qzu-header),
body > *:not(main):not(.qzu-header):not(.qzu-footer) > footer:not(.qzu-footer),
body > *:not(main):not(.qzu-header):not(.qzu-footer) > .siteFooter:not(.qzu-footer) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Le shell QZU reste toujours visible. */
body > .qzu-header {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  min-height: 78px !important;
  opacity: 1 !important;
}

body > .qzu-footer {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  opacity: 1 !important;
}
