/* État de chargement HEKA, « poids seul au centre » : seul endroit où se règlent sa mise en page, ses couleurs et ses
   animations, pour le rendu serveur (Ui\Loader, qui insère ce fichier en ligne) comme pour le script (heka-loader.js).
   `.heka-load` et `.heka-load-failed` empilent la scène et les silhouettes du plugin (invisibles, elles réservent la
   hauteur) dans la même cellule de grille. */
.heka-load, .heka-load-failed { display: grid; grid-template-columns: minmax(0, 1fr); }
.heka-load > *, .heka-load-failed > * { grid-area: 1 / 1; }
.heka-load { visibility: hidden; }
.heka-load.is-visible { visibility: visible; }
/* Textes de l'écran affichés d'emblée, la barre et le filet suivent (vérification du paiement). */
.heka-load.is-text .heka-load-title, .heka-load.is-text .heka-load-sub { visibility: visible; }
/* La scène occupe toute la zone et centre le bloc ; sur une zone plus haute que l'écran, `sticky` (haut et bas à la même
   distance, sous un en-tête fixe) le garde au milieu de la partie visible, sans sortir de la zone. */
.heka-load-stage { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; }
.heka-load-stage .heka-load-box { position: -webkit-sticky; position: sticky; top: calc(50vh - 110px); top: calc(50svh - 110px); bottom: calc(50vh - 110px); bottom: calc(50svh - 110px); box-sizing: border-box; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 560px; margin: 0; padding: 16px; text-align: center; line-height: 1.3; }
.heka-load-stage .heka-load-status { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; margin: 0; padding: 0; }
.heka-load-stage .heka-load-barbell { display: block; flex: 0 0 auto; width: 120px; height: 78px; max-width: 100%; margin: 0 0 8px; color: #172a6f; overflow: visible; }
.heka-load-stage .heka-load-title { display: block; margin: 0; padding: 0; font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: normal; text-transform: none; color: #0d0f12; }
.heka-load-stage .heka-load-sub { display: block; margin: 0; padding: 0; font-size: 15px; font-weight: 400; line-height: 1.4; color: #6b7280; }
.heka-load-stage .heka-load-rail { flex: 0 0 auto; width: 160px; max-width: 100%; height: 3px; margin: 12px 0 0; overflow: hidden; border-radius: 3px; background: rgba(23, 42, 111, 0.18); }
.heka-load-stage .heka-load-rail i { display: block; width: 35%; height: 100%; border-radius: 3px; background: #172a6f; animation: hekaLoadRail 1.2s ease-in-out infinite; }
.heka-load-stage .heka-load-lift { animation: hekaLoadLift 1.5s cubic-bezier(0.55, 0.05, 0.35, 1) infinite; }
/* Échec : même place, le message et le bouton du plugin. */
.heka-load-stage .heka-load-box.is-failure { gap: 12px; }
@keyframes hekaLoadLift { 0%, 100% { transform: translateY(14px); } 45%, 60% { transform: translateY(-14px); } }
@keyframes hekaLoadRail { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
@media (prefers-reduced-motion: reduce) {
  .heka-load-stage .heka-load-lift, .heka-load-stage .heka-load-rail i { animation: none; }
}
