/*
 * Écran de démarrage (MS-4416) : remplace la page blanche affichée tant qu'Angular démarre, que la session
 * se charge et que la première page n'est pas prête. Fichier statique plutôt que <style> inline : la CSP
 * doit pouvoir se passer de `unsafe-inline` à terme. Retiré par AppComponent (retirerEcranDemarrage).
 */
#maj-boot-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #f4f5fb;
  color: rgba(41, 36, 94, 0.72);
  font-family: Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  transition: opacity 200ms ease-out;
}

#maj-boot-splash img {
  width: 64px;
  height: 64px;
  /* Pulsation discrète, seulement si l'attente dépasse le seuil de perception (300 ms). */
  animation: maj-boot-splash-pulse 1.6s ease-in-out 300ms infinite;
}

#maj-boot-splash.maj-boot-splash--hidden {
  opacity: 0;
  pointer-events: none;
}

body.dark-mode #maj-boot-splash {
  background: #1a1a1a;
  color: #e0e0e0;
}

@keyframes maj-boot-splash-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  #maj-boot-splash img {
    animation: none;
  }
}
