/* Style pour l'écran de chargement - ADAPTATIF SELON LE THÈME */
/* Note: Le body n'est PAS caché ici car le script inline dans index.html 
   gère l'overlay de chargement. Cacher le body ici créerait un double écran. */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* Mode clair par défaut */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
  }
  
  /* Mode sombre pour l'écran de chargement */
  .loading-screen.dark-theme {
    background-color: #1E1E24; /* Mode sombre (phantom) */
  }
  
  .loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
  }
  
  .loading-logo {
    max-width: 120px;
    margin-bottom: 30px;
    animation: pulse 1.5s infinite ease-in-out;
  }
  
  .loading-bar-container {
    width: 200px;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.1); /* Fond adapté au mode clair */
    border-radius: 2px;
    overflow: hidden;
    transition: background-color 0.3s ease;
  }
  
  /* Barre de progression pour mode sombre */
  .loading-screen.dark-theme .loading-bar-container {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, #34B3FA, #75FAF3); /* Dégradé adapté */
    border-radius: 2px;
    transition: width 0.8s ease;
  }

  /* Animation pulse pour le logo */
  @keyframes pulse {
    0%, 100% {
      opacity: 1;
      transform: scale(1);
    }
    50% {
      opacity: 0.7;
      transform: scale(1.05);
    }
  }
  
  