/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
:root {
    --background-color: #ffffff; /* Couleur de fond */
    --accent-color:#667eea;    /* Couleur de l'anneau */
  }
  
  :root {
    --bg-color: #ffffff;     /* Fond du preloader */
    --accent-color :#667eea; /* Couleur du loader */
  }
  
  #preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease-out;
  }
  
  .preloader-content {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .preloader-logo {
    width: 80px;
    height: 80px;
    z-index: 10;
    animation: gentle-pulse 2s infinite ease-in-out;
  }
  
@media (max-width: 767px) {
    .preloader-content {
      transform: translateY(-10%); /* Ajustement fin du centrage vertical */
    }
    
    .preloader-logo {
      width: 50px;
      height: 50px;
    }
    
    .loading-ring {
      width: 50px;
      height: 50px;
      border-width: 2px;
    }
  }
  
  /* Correction pour les hautes téléphones */
  @media (max-height: 600px) and (max-width: 767px) {
    .preloader-content {
      transform: scale(0.8) translateY(-10%);
    }
  }
  
.loading-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(58, 134, 255, 0.1);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
  }
  
  /* Animation de rotation */
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Animation subtile de pulsation pour le logo */
  @keyframes gentle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
  }