/* Lot 2 : écran posé par-dessus l'app pendant l'ouverture de l'espace web (js/web-integre.js).
   Chargement : le cercle du logo se trace puis tourne avec élan (R19, même rythme que .chargement) ; jamais un rond générique.
   Pas de connexion : d'après web-horsligne (maquettes/app-ordinateur/melange) : logo, titre, phrase, Réessayer, Revenir.
   Jetons du socle seulement (espacements, rayons, cibles). */
.wi {
  position: fixed; inset: 0; z-index: 62; display: grid; place-items: center; overflow-y: auto;
  background: var(--fond); color: var(--texte);
  padding: calc(var(--haut-sur) + var(--esp-6)) calc(var(--marge) + var(--droite-sur)) calc(var(--bas-sur) + var(--esp-6)) calc(var(--marge) + var(--gauche-sur));
  animation: wi-entre 180ms var(--ease-out);
  transition: opacity 200ms var(--ease-out);
}
.wi.sort { opacity: 0; pointer-events: none; }
@keyframes wi-entre { from { opacity: 0; } }

.wi-corps { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--esp-4); width: 100%; max-width: 30rem; }
.wi-charge .wi-corps p { font-size: 15px; color: var(--texte-doux); min-height: 1.4em; }
.wi .trace.anime { animation: tracer 1100ms var(--ease-in-out) forwards, tourne-logo 1400ms cubic-bezier(.65, 0, .35, 1) 1100ms infinite; }
.wi-tard { width: auto; opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease-out), visibility 0s linear 200ms; }
.wi-tard.visible { opacity: 1; visibility: visible; transition: opacity 200ms var(--ease-out); }

/* Message (pas de connexion, erreur, onglet) : reprend .hors-ligne d'app.css, le logo en retrait. */
.wi .hors-ligne { padding: 0; gap: 0; }
.wi .wi-logo { width: 72px; opacity: .55; }
.wi .hors-ligne h1 { margin-top: var(--esp-6); font-size: 26px; text-wrap: balance; }
.wi .hors-ligne p { max-width: 34ch; color: var(--texte-doux); }
.wi-actions { display: flex; flex-direction: column; gap: var(--esp-3); }

/* Ordinateur : boutons côte à côte, comme la maquette. */
@media (min-width: 640px) {
  .wi-actions { flex-direction: row; justify-content: center; max-width: none; }
  .wi-actions .btn { width: auto; min-height: var(--cible); padding: 0 var(--esp-5); font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .wi { animation: none; }
  .wi .trace.anime { animation: none; --trace: 360deg; }
}
