/* ✅ Base.css : Styles globaux et reset */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    color: #212529;
    line-height: 1.6;
}

h1, h2, h3 {
    color: #0056b3;
    border-bottom: 2px solid #ffcc00;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 15px;
}


/* === 🧠 Loader universel === */
/* === 🧠 Loader universel (unique, sans conflit) === */
#ai-loader{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,0.85);
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#ai-loader.active{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.loader-content{ text-align:center; }

.loader-icon{
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #007BFF;
  padding: 10px;
  box-shadow: 0 0 1px rgba(0, 123, 255, 0.5);
  object-fit: contain;
  display: inline-block;
  animation: pulseBrain 1.2s infinite ease-in-out;
}

.loader-text{
  color: #fff;
  margin-top: 1rem;
  font-size: 1.05rem;
  font-weight: 500;
  text-align: center;
  animation: pulse 1.5s infinite;
  opacity: 0.85;
}

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

@keyframes pulseBrain{
  0%{ transform:scale(1); }
  50%{ transform:scale(1.08); }
  100%{ transform:scale(1); }
}


