/* --- SPLASH SCREEN ANIMÉ --- */
#splash-screen {
  position: fixed;
  inset: 0;
  background-color: var(--bg-page, #05140d);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out, background-color 0.25s ease;
}

#splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-logo {
  width: 180px;
  height: 180px;
  margin-bottom: 24px;
}

.progress-bar-container {
  width: 140px;
  height: 3px;
  background: var(--border-color, rgba(255, 255, 255, 0.1));
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  width: 40%;
  height: 100%;
  background: var(--accent-color, #22c55e);
  border-radius: 2px;
  position: absolute;
  animation: indeterminate 1.4s infinite ease-in-out;
}

@keyframes indeterminate {
  0% { left: -40%; width: 40%; }
  50% { left: 40%; width: 60%; }
  100% { left: 100%; width: 40%; }
}

/* Animations SVG Bombe-Sucette */
.lollipop-group {
  transform-origin: 80px 80px;
  transform: rotate(45deg);
}

.fuse {
  stroke: #d97706;
  stroke-width: 3.5;
  fill: none;
  stroke-linecap: round;
}

.spark {
  fill: #f59e0b;
  transform-origin: 80px 30px;
  animation: sparkFlicker 0.2s infinite alternate;
}

.bite-holes {
  transform-origin: 48px 72px;
  animation: biteAnim 1.6s infinite ease-in-out;
}

.crumbs {
  fill: var(--accent-color, #22c55e);
  animation: crumbAnim 1.6s infinite ease-out;
}

@keyframes sparkFlicker {
  0% { transform: scale(0.8) rotate(-10deg); fill: #f59e0b; }
  100% { transform: scale(1.3) rotate(20deg); fill: #ef4444; }
}

@keyframes biteAnim {
  0%, 20% { transform: scale(0); opacity: 0; }
  28%, 82% { transform: scale(1); opacity: 1; }
  92%, 100% { transform: scale(0); opacity: 0; }
}

@keyframes crumbAnim {
  0%, 26% { opacity: 0; transform: translate(0, 0); }
  30% { opacity: 1; }
  65% { opacity: 0; transform: translate(-14px, -8px); }
  100% { opacity: 0; transform: translate(0, 0); }
}