/* ==========================================
   BACKGROUND & DECORATIVE ELEMENTS
   ========================================== */

/* Fond animé */
.fond {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(186, 85, 211, 1),
    rgba(72, 61, 139, 1),
    rgba(10, 10, 30, 1)
  );
  background-size: 100% 200%;
  background-position: top;
  animation: fondMouvant 15s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -3;
}

.halo {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

#stars {
  position: fixed;
  inset: 0;
  z-index: -1;
}

@keyframes fondMouvant {
  0% {
    background-position: top;
  }
  100% {
    background-position: bottom;
  }
}

/* Empêcher les éléments de fond de bloquer les clics */
.fond,
.halo,
.baguette-bg,
.baguette-bg-right,
#stars,
canvas {
  pointer-events: none;
}

/* Baguettes décoratives */
.baguette-bg,
.baguette-bg-right {
  position: fixed;
  width: 100vw;
  height: calc(100vh + 200px);
  background-size: 50%;
  background-repeat: no-repeat;
  background-attachment: scroll;
  z-index: 2;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.baguette-bg {
  left: 0;
  top: -105px;
  background-image: url("../../images/image.webp");
  background-position: left top;
}

.baguette-bg-right {
  right: 0;
  bottom: -60px;
  background-image: url("../../images/image2.webp");
  background-position: right bottom;
}
