/* =========================================================
   Écran de chargement (repris de loading.html)
   ========================================================= */
.chargement {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  background: radial-gradient(ellipse 60% 50% at 50% 45%, #0e1420 0%, #070a12 70%);
  transition: opacity .9s ease, visibility .9s ease;
}
.chargement.fini { opacity: 0; visibility: hidden; }

.chargement-loader { position: relative; width: 240px; height: 240px; }
.chargement-anneau { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(143, 184, 255, .18); }
.chargement-arc {
  position: absolute; inset: 0; border-radius: 50%; rotate: -70deg;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(143, 184, 255, .35) 70deg, transparent 72deg);
  -webkit-mask: radial-gradient(circle, transparent 119px, #000 119.5px, #000 120px, transparent 120.5px);
          mask: radial-gradient(circle, transparent 119px, #000 119.5px, #000 120px, transparent 120.5px);
  animation: tourne 3.2s linear infinite;
}
.chargement-orbite { position: absolute; inset: 0; animation: tourne 3.2s linear infinite; }
.chargement-orbite::before {
  content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: #8fb8ff; box-shadow: 0 0 12px 2px rgba(143, 184, 255, .7);
}
.chargement-orbite.lente { animation-duration: 7s; animation-direction: reverse; }
.chargement-orbite.lente::before { top: auto; bottom: -2px; width: 4px; height: 4px; margin-left: -2px; background: #e8b84a; box-shadow: 0 0 10px 2px rgba(232, 184, 74, .6); }
.chargement-chouette {
  position: absolute; top: 50%; left: 50%; width: 148px; height: 196px;
  transform: translate(-50%, -50%); animation: flotte 5s ease-in-out infinite;
}
.chargement-titre { font-size: 15px; letter-spacing: .32em; text-transform: uppercase; color: #e6ebf5; font-weight: 300; }
.points span { animation: fondu 1.8s ease-in-out infinite; opacity: .2; }
.points span:nth-child(2) { animation-delay: .3s; }
.points span:nth-child(3) { animation-delay: .6s; }
.chargement-barre { width: 160px; height: 1px; background: rgba(143, 184, 255, .18); position: relative; overflow: hidden; }
.chargement-barre::after {
  content: ""; position: absolute; inset: 0; width: 40%;
  background: linear-gradient(90deg, transparent, #8fb8ff, transparent);
  animation: glisse 2.6s ease-in-out infinite;
}

@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes flotte { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 6px)); } }
@keyframes fondu { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes glisse { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
