#loader {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(12px); /* flou élégance */
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity .8s ease;
}


.loader {
    width: 60px;
    height: 60px;
    border: 6px solid #ddd;
    border-top-color: #331084; /* couleur du cercle */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 40px auto; /* centrer */
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* Conteneur des points */
.dots {
  display: flex;
  gap: 12px;
}

/* Points style Apple */
.dots span {
  width: 12px;
  height: 12px;
  background: rgb(68, 135, 229);
  border-radius: 50%;
  animation: pulse 1.4s infinite ease-in-out both;
}

/* Délai pour donner l'effet d'onde */
.dots span:nth-child(1) { animation-delay: 0s; }
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }
.dots span:nth-child(4) { animation-delay: 0.6s; }

@keyframes pulse {
  0%, 80%, 100% { opacity: .3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.4); }
}