/* L'écran de chargement : le hall de la page marque réaliste (le logo NDJM en verre, entouré des lignes tirées de son contour).
   Les lignes gonflent sous le curseur ; en défilant, elles s'écartent comme des ondes et le logo grandit, puis l'écran s'en va sur l'accueil. */
.hall-ndjm { position: relative; display: grid; place-items: center; background: #000; color: #fff; overflow: hidden;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif; touch-action: none; }
.hall-ndjm[hidden] { display: none; }
.chargement { position: fixed; inset: 0; z-index: 200; }                          /* the loading screen, over everything */
[data-scene="fin"] { height: 100vh; height: 100svh; touch-action: auto; }           /* the closing part, the last screen of the page */
.hall-ndjm .ondes { position: absolute; inset: -8%; background: url(../assets/logo-situation/14_ondes_blanc.svg) center / max(118vw, 150vh) no-repeat; opacity: .7; }
.hall-ndjm.is-gl .ondes { display: none; }
.hall-ndjm canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hall-ndjm .verre { position: relative; width: min(58vh, 62vw); aspect-ratio: 700 / 732; scale: var(--s, 1); }
.hall-ndjm .verre i { position: absolute; inset: 0; -webkit-mask: url(../assets/njm.png) center / contain no-repeat; mask: url(../assets/njm.png) center / contain no-repeat; }
.hall-ndjm .verre .pane { -webkit-backdrop-filter: blur(14px) brightness(1.5); backdrop-filter: blur(14px) brightness(1.5); background: rgba(255,255,255,.1); }
/* the inside of the logo fills from the bottom as the site loads (--charge, 0..1, js), under the glass's light and rim */
.hall-ndjm .verre .plein { background: linear-gradient(rgba(255,255,255,.95), rgba(255,255,255,.78)); clip-path: inset(calc((1 - var(--charge, 0)) * 100%) 0 0 0); }
.hall-ndjm .verre .sheen { background: linear-gradient(calc(118deg + var(--a, 0deg)), rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 26%, rgba(255,255,255,0) 58%, rgba(255,255,255,.3) 78%, rgba(255,255,255,0) 100%); }
.hall-ndjm .verre .rim {   /* more specific than the logo's own mask above: the rim keeps its outline */ background: linear-gradient(calc(140deg + var(--a, 0deg)), rgba(255,255,255,.95), rgba(255,255,255,.25) 45%, rgba(255,255,255,.7));
  -webkit-mask-image: url(../assets/njm-rim.png); mask-image: url(../assets/njm-rim.png); }
/* the grain of the realistic pages, and the name at the bottom, as in the hall */
.hall-ndjm::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: url(../assets/grain.png); opacity: .35; }
.hall-ndjm .nom { z-index: 1; position: absolute; left: clamp(20px, 4vw, 72px); right: clamp(20px, 4vw, 72px); bottom: clamp(60px, 11vh, 120px); display: flex; justify-content: space-between; align-items: end;
  opacity: calc(1 - var(--p, 0) * 2); pointer-events: none; }
.hall-ndjm .nom b { font-weight: 600; font-size: clamp(44px, 4.4vw, 88px); line-height: .9; text-transform: uppercase; }
.hall-ndjm .nom span { font-family: "Geeza Pro", "Noto Naskh Arabic", serif; font-size: clamp(28px, 2.6vw, 50px); line-height: 1; }
/* leaving: it comes towards us, then rises away, like a floor of the lift */
.chargement.part { animation: ch-part 1.4s linear both; }   /* still on top while it leaves: it keeps the end of the gesture */
@keyframes ch-part { 0% { transform: translateY(0) scale(1); animation-timing-function: cubic-bezier(.3, 0, .35, 1); }
  24% { transform: translateY(0) scale(1.06); animation-timing-function: cubic-bezier(.55, 0, .4, 1); } 100% { transform: translateY(-110%) scale(1.3); } }
@media (prefers-reduced-motion: reduce) { .chargement.part { animation: ch-fondu .6s ease both; } @keyframes ch-fondu { to { opacity: 0; } } }
/* the count beside the logo (loading screen): a thin vertical line that fills from the bottom to the logo's level, the percentage at its top */
.chargement .compte { position: absolute; left: calc(100% + clamp(16px, 4.4vw, 80px)); top: 0; bottom: 0; width: 8ch;
  font: 400 clamp(12px, 1.1vw, 17px) / 1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #fff; pointer-events: none; }
.chargement .jauge { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.22); }
.chargement .jauge::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--charge, 0) * 100%); background: #fff; }
.chargement .pc { position: absolute; left: 1.2ch; bottom: calc(var(--charge, 0) * 100%); translate: 0 50%;
  font-variant-numeric: tabular-nums; letter-spacing: .04em; white-space: pre; }
@media (max-width: 600px) {   /* phone: the count stays inside the screen, beside the logo */
  .chargement .compte { left: calc(100% + 4vw); font-size: 11px; width: 6ch; }
}
