/* 
  Styles pour l'écran de chargement initial (Loading Screen)
  Version: 2025.09.02
*/

#root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, rgba(123, 104, 238, 0.03) 0%, rgba(255, 105, 180, 0.03) 100%);
  min-height: 100vh;
}

/* Loading spinner premium "Divine Glass" */
/* Animation de respiration pour le conteneur */
.seo-loading {
  position: relative;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 3.5rem;
  border-radius: 40px;
  box-shadow: 
    0 20px 50px rgba(123, 104, 238, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(123, 104, 238, 0.1);
  width: 90%;
  max-width: 440px;
  animation: divineBreath 4s ease-in-out infinite;
}

@keyframes divineBreath {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.01); }
}

.seo-loading img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(123, 104, 238, 0.4);
  background: white;
  padding: 12px;
  animation: divineRotate 10s linear infinite, logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 15px rgba(123, 104, 238, 0.4)); }
  50% { filter: drop-shadow(0 0 30px rgba(123, 104, 238, 0.7)); }
}

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

.seo-loading-text {
  color: #2D2D2D;
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #4B0082, #7B68EE, #FF69B4, #4B0082);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 4s linear infinite;
}

@keyframes shimmerText {
  to { background-position: 300% center; }
}

.seo-loading-subtitle {
  color: #7B68EE;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  margin-top: 0.2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
  animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Animation de chargement pour l'Horloge Divine */
.loading-animation {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.loading-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7B68EE, #FF69B4);
  box-shadow: 0 0 10px rgba(123, 104, 238, 0.3);
  animation: loadingDots 1.4s ease-in-out infinite both;
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dot:nth-child(3) { animation-delay: 0s; }

@keyframes loadingDots {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Optimisations Mobile */
@media (max-width: 768px) {
  .seo-loading {
    padding: 1.5rem;
    gap: 1rem;
    width: 95%;
    max-width: 350px;
  }
  .seo-loading img { width: 70px; height: 70px; }
  .seo-loading-text { font-size: 1.1rem; max-width: 300px; }
}

@media (prefers-color-scheme: dark) {
  .seo-loading {
    /* Fond clair même en mode sombre pour éviter le flash noir au chargement */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
  }
  .seo-loading-text {
    color: #4B0082;
  }
  .seo-loading-subtitle { color: #7B68EE; }
}
