/*
 * Preloader affiché avant le démarrage de l'application, quand Tailwind n'est pas encore disponible.
 * Double statique de « shared/src/components/ui/Preloader.tsx » : les modifier ensemble.
 * Le site et la boutique en ont chacun une copie identique.
 * Fichier séparé : la politique de sécurité refuse les styles écrits dans la page.
 */
.preloader {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  background: #fcfbf9;
}

.preloader__circle {
  position: relative;
  display: flex;
  width: 8rem;
  height: 8rem;
  align-items: center;
  justify-content: center;
}

.preloader__ring {
  position: absolute;
  inset: 0;
  border: 4px solid transparent;
  border-block-color: #783817;
  border-radius: 50%;
  animation: preloader-spin 1s linear infinite;
}

.preloader__badge {
  display: flex;
  width: 7rem;
  height: 7rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
}

.preloader__logo {
  position: relative;
  width: 92px;
  height: 47px;
  overflow: hidden;
}

.preloader__logo img {
  position: absolute;
  top: -9%;
  left: -11.4%;
  width: 121.2%;
  height: 119.4%;
  filter: brightness(1.035);
}

.preloader__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes preloader-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .preloader__ring {
    animation: none;
  }
}
