@media (max-width: 1024px) {
  body {
    background: transparent !important;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 0;
    pointer-events: none;
    background-image: url('img/fond-mobile-tablette-ferme-pere-cauchois.webp');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: translateZ(0);
    will-change: transform;
  }

  body > header {
    position: relative;
    z-index: 50;
  }

  body > nav {
    position: sticky;
    z-index: 40;
  }

  body > main,
  body > footer,
  body > script {
    position: relative;
    z-index: 1;
  }

  .inner-hero {
    background-image: none !important;
    background-color: transparent !important;
  }
}

@media (max-width: 600px) {
  body::before {
    background-image: url('img/fond-iphone-prairie-fleurs-ferme-pere-cauchois.webp');
    background-position: 50% 40%;
  }
}
