/* ============================================
   ✅ LOADING.CSS - VERSION SIMPLE NOIR & BLANC
   ============================================ */

/* Container principal */
.app-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  z-index: 9999;
}

/* Container du loader */
.modern-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
}

/* ===== ICÔNE LOGO ===== */
.loader-icon {
  width: 80px;
  height: 80px;
  background: #f3f4f6;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 3s ease-in-out infinite;
}

.loader-icon svg {
  width: 48px;
  height: 48px;
  color: #1f2937;
  stroke-width: 2.5;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ===== SPINNER ===== */
.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #e5e7eb;
  border-top-color: #1f2937;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ===== TEXTE ===== */
.loader-text {
  text-align: center;
  color: #1f2937;
}

.loader-text h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.025em;
  color: #111827;
}

.loader-text p {
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  color: #6b7280;
  animation: pulse 2s ease-in-out infinite;
}

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

/* ===== BARRE DE PROGRESSION ===== */
.loader-progress {
  width: 100%;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  max-width: 300px;
}

.loader-progress-bar {
  height: 100%;
  background: #1f2937;
  border-radius: 2px;
  animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .modern-loader {
    gap: 1.5rem;
  }

  .loader-icon {
    width: 64px;
    height: 64px;
  }

  .loader-icon svg {
    width: 36px;
    height: 36px;
  }

  .loader-spinner {
    width: 48px;
    height: 48px;
  }

  .loader-text h2 {
    font-size: 1.5rem;
  }

  .loader-text p {
    font-size: 0.875rem;
  }
}

/* ===== ANIMATION D'APPARITION ===== */
.app-loading {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
