/* Styles pour l'indicateur de chargement */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.spinner-overlay.show {
  opacity: 1;
  visibility: visible;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Styles pour le bouton de soumission pendant le chargement */
.contactModalBtn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.contactModalBtn.loading i {
  animation: spin 1s linear infinite;
}

/* Adaptation pour le thème sombre */
body.dark-theme .spinner {
  border-color: rgba(50, 50, 50, 0.3);
  border-top-color: #333;
}
