/* Reset léger */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Conteneur principal */
#scene {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden; /* clé */


  /* Fond fixe */
  background-image: url("images/background.png");
    /* CLÉ DU COMPORTEMENT */
  background-size: auto 100%;
  background-position: center;
  background-repeat: no-repeat;
}

/* Images flottantes */
.floating {
  position: absolute;
  height: auto;
  will-change: transform;
  pointer-events: none;
  opacity: 0.8;
}
.festive-text {
  top: 3vh;
  left: 50%;
  transform: translateX(-50%);

  font-size: clamp(24px, 5vw, 56px);
  font-weight: 700;
  font-family: "Arial", sans-serif;
  text-align: center;

  color: #fff;
  white-space: nowrap;
}
.festive-text {
  text-shadow:
    0 0 6px #fff,
    0 0 12px #ffd700,
    0 0 24px #ffeb3b;

  animation:
    glow 2.5s ease-in-out infinite,
    blink 4s steps(1) infinite;
}
@keyframes glow {
  0%, 100% {
    text-shadow:
      0 0 6px #fff,
      0 0 12px #ffd700,
      0 0 24px #ffeb3b;
  }
  50% {
    text-shadow:
      0 0 12px #fff,
      0 0 24px #ff9800,
      0 0 48px #ffc107;
  }
}

@keyframes blink {
  0%, 90%, 100% {
    opacity: 1;
  }
  92%, 96% {
    opacity: 0.6;
  }
}
@media (max-width: 768px) {
  .floating {
    opacity: 0.8;
  }
}
.festive-wrapper {
  position: absolute;
  top: 3vh;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  flex-direction: column;   /* CLÉ */
  align-items: center;
  text-align: center;
  gap: clamp(1em, 4vh, 3em); /* CLÉ */
}
.subtitle-text {
  margin-top: 1.5em;

  font-size: clamp(14px, 2.5vw, 24px);
  font-weight: 400;
  font-family: "Arial", sans-serif;

  color: #000000;
  opacity: 0.85;

  text-shadow:
    0 0 4px rgba(255,255,255,0.6),
    0 0 10px rgba(255,215,0,0.4);
}
.festive-text,
.subtitle-text {
  position: relative; /* ou rien du tout */
}
@media (max-width: 600px) {
  .festive-text {
    top: 2vh;
    letter-spacing: 1px;
  }
}
@media (max-width: 600px) {
  .subtitle-text {
    font-size: clamp(12px, 4vw, 18px);
  }
}
