/* Loader affiché avant le démarrage de l'application (voir src/index.html et src/app/boot-loader.ts).
   Hors de index.html pour qu'une Content-Security-Policy puisse interdire les styles inline. */
.spin {
  animation: spin 2s linear infinite;
}

.boot-loader {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 16px;
  z-index: 2147483000;
  background: linear-gradient(135deg, #fafbfc 0%, #eef0f3 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #3a3f47;
  transition: opacity 0.25s ease;
}

.boot-loader-hidden {
  opacity: 0;
  pointer-events: none;
}

.boot-loader-logo {
  width: 96px;
  height: 96px;
}

.boot-loader-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(27, 58, 104, 0.12);
  border-top-color: #3f6591;
  border-radius: 50%;
  animation-duration: 0.9s;
}

.boot-loader-error {
  max-width: 420px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}

.boot-loader-error[hidden] {
  display: none;
}

.boot-loader-error-title {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
}

.boot-loader-error-text {
  margin-bottom: 20px;
  color: #6c757d;
}

.boot-loader-retry {
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  background: #3f6591;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
