/* Même décor pour les pages d'accès, les espaces de formation et l'administration. */
body {
  --piaf-background-bird-size: clamp(34rem, 70vw, 68rem);
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  background-color: #f6fafd;
  background-image: linear-gradient(110deg, rgba(246, 250, 253, .96), rgba(246, 250, 253, .86) 60%, rgba(237, 246, 253, .62)), url("../img/piaf-waves-background.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: auto, max(100vw, 1920px) auto;
  background-attachment: scroll, fixed;
}

/* L'authentification conserve son colibri calé sur le logo et le formulaire. */
body:not(:has(.auth-page))::before {
  content: "";
  position: fixed;
  z-index: -1;
  top: calc(21rem - var(--piaf-background-bird-size) * .49);
  left: min(-6vw, calc(100% - var(--piaf-background-bird-size)));
  width: var(--piaf-background-bird-size);
  aspect-ratio: 1;
  background: url("../img/piaf-bird-waves.png") center / contain no-repeat;
  opacity: .24;
  pointer-events: none;
}

@media (max-width: 575.98px) {
  body:not(:has(.auth-page))::before {
    top: calc(15rem - var(--piaf-background-bird-size) * .49);
  }
}

@media print {
  body {
    background: #fff;
  }

  body::before {
    display: none;
  }
}
