/* LCW — signature de chargement
   Ligne dégradée navy → teal avec un point lumineux qui la parcourt.
   Composant autonome : importer ce fichier, poser <div class="lcw-loader"> où besoin. */

.lcw-loader {
  --lcw-navy: #0B2545;
  --lcw-navy2: #13315C;
  --lcw-teal: #0E7C7B;
  --lcw-teal-bright: #4FD6C7;

  position: relative;
  width: 100%;
  max-width: 280px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--lcw-navy2) 0%,
    var(--lcw-teal) 50%,
    var(--lcw-navy2) 100%
  );
  background-size: 200% 100%;
  animation: lcw-drift 3.6s ease-in-out infinite;
  overflow: visible;
}

.lcw-loader::before {
  /* le point lumineux */
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--lcw-teal-bright);
  box-shadow:
    0 0 0 3px rgba(79, 214, 199, 0.18),
    0 0 14px 2px rgba(79, 214, 199, 0.55);
  animation: lcw-travel 2.2s cubic-bezier(.45, 0, .55, 1) infinite;
}

@keyframes lcw-travel {
  0%   { left: 0%;   opacity: 0; }
  8%   { opacity: 1; }
  50%  { left: 100%; opacity: 1; }
  92%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes lcw-drift {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 0%; }
  100% { background-position: 0% 0%; }
}

/* Variante compacte, pour un bouton ou une ligne de statut en ligne */
.lcw-loader--inline {
  max-width: 120px;
  height: 1.5px;
}

/* Étiquette optionnelle sous la ligne, style mono du site */
.lcw-loader-label {
  margin-top: 14px;
  text-align: center;
  font: 11px/1.5 ui-monospace, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #bdcbd7;
}

@media (prefers-reduced-motion: reduce) {
  .lcw-loader,
  .lcw-loader::before {
    animation: none;
  }
  .lcw-loader::before {
    left: 50%;
    opacity: 1;
  }
}
