/* Chargements : orbe (coach CV), barres liquides (coach Lettre), anneau à reflet (refresh du flux). Voir js/loaders.js. */
.ld-txt { display: grid; justify-items: center; gap: 3px; text-align: center; }
.ld-txt b { font-size: 14px; }
.ld-step { font-style: normal; font-size: 12px; color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.02em; }
.ld-step.in { animation: ld-step-in 0.4s var(--ease); }
@keyframes ld-step-in { from { opacity: 0; transform: translateY(5px); } }

/* ---------- Orbe ---------- */
.ld-orb-wrap { display: grid; justify-items: center; gap: 14px; padding: 4px 0 2px; }
.ld-orb {
  position: relative; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 50% 38%, color-mix(in oklab, var(--primary) 28%, #0a1620) 0%, #050a10 72%);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--primary) 30%, transparent), 0 10px 40px -6px var(--glow-1), 0 0 60px -10px color-mix(in oklab, var(--accent) 45%, transparent);
  animation: ld-morph 0.7s var(--ease) both, ld-breathe 2.4s ease-in-out 0.7s infinite;
}
/* L'orbe naît de la zone d'import : une pilule large qui se replie en sphère. */
@keyframes ld-morph { from { width: 190px; height: 40px; border-radius: 20px; } }
@keyframes ld-breathe { 50% { transform: scale(1.05); box-shadow: 0 0 0 1px color-mix(in oklab, var(--primary) 45%, transparent), 0 12px 48px -4px var(--glow-1), 0 0 80px -6px color-mix(in oklab, var(--accent) 55%, transparent); } }
.ld-orb-blob { position: absolute; width: 62%; height: 62%; filter: blur(9px); mix-blend-mode: screen; opacity: 0.9; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
.ld-orb-blob.b1 { background: var(--primary); left: 6%; top: 18%; animation: ld-blob 3.2s ease-in-out infinite; }
.ld-orb-blob.b2 { background: var(--accent); right: 4%; top: 30%; animation: ld-blob 3.8s ease-in-out -1.2s infinite reverse; }
.ld-orb-blob.b3 { background: color-mix(in oklab, var(--primary) 50%, #ffffff); width: 40%; height: 40%; left: 30%; bottom: 4%; opacity: 0.55; animation: ld-blob 2.6s ease-in-out -0.6s infinite; }
@keyframes ld-blob {
  0%, 100% { transform: translate(0, 0) rotate(0deg); border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  33% { transform: translate(14%, -12%) rotate(120deg); border-radius: 63% 37% 35% 65% / 55% 62% 38% 45%; }
  66% { transform: translate(-10%, 10%) rotate(240deg); border-radius: 36% 64% 52% 48% / 62% 33% 67% 38%; }
}
.ld-orb-gloss { position: absolute; inset: 7% 22% 52%; border-radius: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)); filter: blur(1px); z-index: 2; }
.ld-orb-rim { position: absolute; inset: 0; border-radius: 50%; padding: 1.5px; z-index: 3;
  background: conic-gradient(from 0deg, var(--primary), var(--accent), transparent 40%, var(--primary) 70%, var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: rot 2.2s linear infinite; }
.cv-up.busy .cv-drop { border-style: solid; border-color: color-mix(in oklab, var(--primary) 35%, transparent); background: color-mix(in oklab, var(--primary) 4%, transparent); }

/* ---------- Barres liquides ---------- */
.ld-liquid { display: grid; justify-items: center; align-content: center; gap: 18px; min-height: 300px; }
.ld-bars { display: flex; align-items: center; gap: 9px; height: 84px; padding: 0 12px; filter: url(#ld-goo) drop-shadow(0 8px 18px var(--glow-1)); }
.ld-bars i { position: relative; width: 16px; height: 20px; border-radius: 999px; background: linear-gradient(180deg, color-mix(in oklab, var(--c) 55%, #ffffff), var(--c));
  animation: ld-wave 1.5s cubic-bezier(0.45, 0, 0.25, 1) calc(var(--i) * -0.14s) infinite; }
.ld-bars i::after { content: ""; position: absolute; left: 50%; top: -14px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--c);
  animation: ld-drop 1.5s cubic-bezier(0.45, 0, 0.25, 1) calc(var(--i) * -0.14s) infinite; }
@keyframes ld-wave { 0%, 100% { height: 18px; } 35% { height: 64px; } 60% { height: 30px; } 80% { height: 42px; } }
@keyframes ld-drop { 0%, 30%, 100% { transform: translateY(14px) scale(0.3); opacity: 0; } 50% { transform: translateY(-18px) scale(1); opacity: 1; } 75% { transform: translateY(-4px) scale(0.7); opacity: 0.8; } }

/* ---------- Anneau à reflet ---------- */
.ld-ring { position: relative; width: var(--s); height: calc(var(--s) * 1.7); display: grid; align-content: start; }
.ld-ring-spin { width: var(--s); height: var(--s); animation: rot 1.1s linear infinite; filter: drop-shadow(0 0 10px color-mix(in oklab, var(--primary) 45%, transparent)); }
.ld-ring-spin svg { display: block; overflow: visible; }
.ld-ring-spin circle { animation: ld-dash 2.2s ease-in-out infinite; }
@keyframes ld-dash { 50% { stroke-dashoffset: -24; } }
/* Reflet : copie retournée, estompée vers le bas (le sol brillant de l'original). */
.ld-ring-mirror { position: absolute; top: calc(var(--s) * 1.06); opacity: 0.22; transform: scaleY(-1); filter: blur(1.5px);
  -webkit-mask: linear-gradient(to top, #000, transparent 55%); mask: linear-gradient(to top, #000, transparent 55%); }

@media (prefers-reduced-motion: reduce) {
  .ld-orb, .ld-orb-blob, .ld-orb-rim, .ld-bars i, .ld-bars i::after, .ld-ring-spin, .ld-ring-spin circle, .ld-step.in { animation: none !important; }
  .ld-bars i { height: calc(20px + var(--i) * 4px); }
  .ld-bars i::after { display: none; }
}
