/* Styles pour le masque de chargement initial */
:root {
  --initial-color-main: #b3cf00;
  --initial-color-background-light: #ffffff;
  --initial-color-background-dark: #0c0e12;
}

#initial-loading-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--initial-color-background-light);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.6s ease-out,
    background-color 0.3s ease;
}

html[data-theme='dark'] #initial-loading-mask {
  background-color: var(--initial-color-background-dark);
}

/* Styles de base pour que le loading soit visible immédiatement */
.initial-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.initial-logo-animation {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.initial-logo {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: initial-pulse 2s infinite;
}

.initial-logo-symbol {
  width: 100%;
  height: 100%;
  color: var(--initial-color-main);
}

html[data-theme='dark'] .initial-logo-symbol {
  color: var(--initial-color-main);
}

.initial-pulse-circle {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-color: rgba(179, 207, 0, 0.1);
  z-index: 1;
  animation: initial-pulse-circle 2s infinite;
}

.initial-loading-dots {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.initial-loading-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 50%;
  background-color: var(--initial-color-main);
  opacity: 0.6;
}

.initial-loading-dots span:nth-child(1) {
  animation: initial-dot-animation 1.4s infinite ease-in-out;
  animation-delay: 0s;
}

.initial-loading-dots span:nth-child(2) {
  animation: initial-dot-animation 1.4s infinite ease-in-out;
  animation-delay: 0.2s;
}

.initial-loading-dots span:nth-child(3) {
  animation: initial-dot-animation 1.4s infinite ease-in-out;
  animation-delay: 0.4s;
}

@keyframes initial-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes initial-pulse-circle {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.3;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}

@keyframes initial-dot-animation {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .initial-logo,
  .initial-pulse-circle,
  .initial-loading-dots span {
    animation: none;
  }
}
