/* LFDC 1.3.48 — Fond permanent compatible iOS/iPadOS : un vrai calque fixe.
   Jamais background-attachment:fixed ni transformation d'un conteneur parent. */
html.lfdc-wallpaper-html,html:has(> body.lfdc-wallpaper-on) {background-color:transparent!important;background-image:none!important;}
html body.lfdc-wallpaper-on {
  background-color:transparent !important;
  background-image:none !important;
  isolation:isolate !important;
  min-height:100vh;
  min-height:100dvh;
  --lfdc-wallpaper-panel:0.85;
}
html body.lfdc-wallpaper-on > #lfdc-wallpaper-root {
  position:fixed !important;
  inset:0 !important;
  top:0 !important;right:0 !important;bottom:0 !important;left:0 !important;
  margin:0 !important;padding:0 !important;
  width:100vw !important;height:100vh !important;
  height:100dvh !important;
  max-width:none !important;max-height:none !important;
  overflow:hidden !important;
  z-index:-1 !important;
  pointer-events:none !important;
  transform:none !important;
  display:block !important;
  background-color:#101820 !important;
  contain:layout paint;
}
html body.lfdc-wallpaper-on > #lfdc-wallpaper-root > .lfdc-wallpaper-image {
  position:absolute !important;
  inset:0 !important;
  top:0 !important;left:0 !important;
  margin:0 !important;padding:0 !important;
  float:none !important;clear:none !important;
  width:100% !important;height:100% !important;
  min-width:0 !important;max-width:none !important;
  object-fit:cover !important;
  object-position:center center !important;
  display:block !important;
  border:0 !important;
  opacity:0;
  will-change:opacity;
  transition:opacity 1.1s ease-in-out;
  grid-column:auto !important;grid-row:auto !important;grid-area:auto !important;
  transform:none !important;
}
html body.lfdc-wallpaper-on > #lfdc-wallpaper-root > .lfdc-wallpaper-image.is-visible { opacity:1; }
html body.lfdc-wallpaper-on > #lfdc-wallpaper-root > .lfdc-wallpaper-image:nth-child(1) {
  grid-column:1 !important;grid-row:1 !important;
  top:0 !important;left:0 !important;right:0 !important;bottom:0 !important;
}
html body.lfdc-wallpaper-on > #lfdc-wallpaper-root > .lfdc-wallpaper-shade {
  position:absolute !important;inset:0 !important;
  left:0 !important;right:0 !important;top:0 !important;bottom:0 !important;
  width:100% !important;height:100% !important;margin:0 !important;
  transform:none !important;pointer-events:none !important;
  background:rgba(8,14,23,.21) !important;
  z-index:2 !important;
}
/* Mesmerize conserve ses textes, boutons et menus, mais ne repeint pas son
   diaporama d'en-tête au-dessus du fond plein écran. */
html body.lfdc-wallpaper-on .header-homepage,
html body.lfdc-wallpaper-on .header-wrapper,
html body.lfdc-wallpaper-on .header-wrapper > .header,
html body.lfdc-wallpaper-on .header-homepage:before,
html body.lfdc-wallpaper-on .header-homepage:after {
  background-color:transparent !important;
  background-image:none !important;
}
html body.lfdc-wallpaper-on .header-homepage .backstretch,
html body.lfdc-wallpaper-on .header-wrapper .backstretch,
html body.lfdc-wallpaper-on .header-homepage > .backstretch,
html body.lfdc-wallpaper-on .header-homepage > .background-wrapper {opacity:0 !important;visibility:hidden !important;}
/* LFDC 1.3.48 — Les grandes surfaces d'habillage sont transparentes,
   les cartes et contrôles conservent leur propre fond. Une classe structurelle
   est appliquée par wallpaper.js après inspection des conteneurs Mesmerize
   et des pages personnalisées. Cette logique REMPLACE l'ancienne règle qui
   recolorait .entry-content et les larges sections. */
html body.lfdc-wallpaper-on :is(#page,.site,.site-wrapper,#page-content,
  .page-content,.site-content,.content-wrapper,.page-wrapper,
  .homepage-sections) {
  background-color:transparent!important;
  background-image:none!important;
}
html body.lfdc-wallpaper-on .lfdc-wallpaper-clear-surface {
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
/* Une carte intérieure garde sa couleur, sa bordure et son ombre. */
html body.lfdc-wallpaper-on :is(.page-content,.site-content,.inner-page-content,
  .entry-content,.post-content) > :is(.card,.panel,.event-card,.reservation-card) {
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
}
/* Les menus, le widget flottant et les popups ne sont jamais rendus transparents. */
html body.lfdc-wallpaper-on :is(.navigation-bar,.navigation-wrapper,#offcanvas-wrapper,
  .lfdc-account-popover,.lfdc-modal,.lfdc-popup-overlay,[role="dialog"]) {backdrop-filter:none;}
@media (max-width:767px) {
  html body.lfdc-wallpaper-on > #lfdc-wallpaper-root {height:100svh !important;height:100dvh !important;}
  html body.lfdc-wallpaper-on :is(.page-content,.site-content,.inner-page-content,.content-section,.entry-content) {
    backdrop-filter:none;-webkit-backdrop-filter:none;
  }
}
@media (prefers-reduced-motion:reduce) {
  html body.lfdc-wallpaper-on > #lfdc-wallpaper-root > .lfdc-wallpaper-image {transition:none !important;will-change:auto;}
}
