/* Écran de démarrage, affiché avant le chargement d'Angular : les couleurs sont en dur car les jetons ne sont pas encore là. */
html,
body {
  margin: 0;
  background-color: #fff7ea;
  color: #2a120c;
}

.app-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
}

.app-loading[role='status'] {
  min-height: 100vh;
}

.app-loading p {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.app-loading svg {
  max-width: 100%;
  height: auto;
}

.app-loading svg path {
  stroke-width: 5;
  stroke-linecap: round;
}

.app-loading svg .track {
  stroke: #e5cdaa;
  stroke-width: 4;
}

.app-loading svg .thread {
  stroke-dasharray: 44 16;
  animation: thread-a 1.8s linear infinite;
}

.app-loading svg .thread-a {
  stroke: #70101c;
}

.app-loading svg .thread-b {
  stroke: #f6bc45;
  animation-name: thread-b;
}

.app-loading svg .diamond {
  transform-origin: 120px 44px;
  animation: breathe 1.8s ease-in-out infinite;
}

.app-loading svg .frame {
  fill: #fff7ea;
  stroke: #d69a2d;
  stroke-width: 2.5;
}

.app-loading svg .core {
  fill: #70101c;
}

@keyframes thread-a {
  to {
    stroke-dashoffset: -120;
  }
}

@keyframes thread-b {
  to {
    stroke-dashoffset: 120;
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.9);
  }
  50% {
    transform: scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-loading svg .thread {
    stroke-dasharray: none;
    animation: none;
  }

  .app-loading svg .diamond {
    animation: none;
  }
}
