/* L'écran de lancement MonoLabs, sur la nuit : les deux jambes du M se
   rapprochent en tournant, le trait central s'emboîte entre elles, puis
   « MonoLabs » se déroule, « Passe en OFF » apparaît en bas, et l'app
   apparaît dessous. Environ 2,9 s, une fois par lancement. Les styles de base sont l'état final. */
.splash {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--navy);
}
.splash-lock { display: flex; align-items: center; margin-bottom: 6vh; }
/* Proportions du logo MonoLabs : le M a la hauteur des capitales du nom. */
.splash-mark { width: 71px; height: 27.6px; overflow: visible; }
.splash-mark path { transform-box: fill-box; transform-origin: center; }
.splash-word { display: block; overflow: hidden; max-width: 5.3em; font-size: 38px; }
.splash-word span {
  display: block; padding-left: .06em;
  color: var(--creme); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em;
  font-feature-settings: 'cv11'; white-space: nowrap;
}
.splash-app {
  position: absolute; left: 0; right: 0; bottom: calc(var(--safe-bottom) + 44px); margin: 0;
  color: rgba(251, 246, 239, .8); font-size: 17px; font-weight: 600; letter-spacing: .01em; text-align: center;
}

.splash.is-playing { animation: splash-out .35s ease 2.5s both; }
.is-playing .sp-leg-l { animation: sp-leg-l .6s cubic-bezier(.2, .9, .3, 1.15) .15s both; }
.is-playing .sp-leg-r { animation: sp-leg-r .6s cubic-bezier(.2, .9, .3, 1.15) .15s both; }
.is-playing .sp-mid { animation: sp-mid .5s cubic-bezier(.3, 1, .4, 1) .65s both; }
.is-playing .splash-mark { animation: sp-pop .3s ease 1.13s both; }
.is-playing .splash-word { animation: sp-word .5s cubic-bezier(.5, 0, .2, 1) 1.35s both; }
.is-playing .splash-app { animation: sp-app .5s ease 1.25s both; }
/* Un tap : on saute la fin, l'écran s'efface tout de suite. */
.splash.is-leaving { animation: splash-skip .2s ease both; }

@keyframes sp-leg-l { from { opacity: 0; transform: translate(-26px, 8px) rotate(-35deg); } }
@keyframes sp-leg-r { from { opacity: 0; transform: translate(26px, 8px) rotate(35deg); } }
@keyframes sp-mid {
  0% { opacity: 0; transform: translateY(-26px) rotate(-120deg) scale(.5); }
  65% { opacity: 1; transform: translateY(1px) rotate(6deg) scale(1.04); }
  100% { transform: none; }
}
@keyframes sp-pop { 50% { transform: scale(1.08); } }
@keyframes sp-word { from { max-width: 0; } }
@keyframes sp-app { from { opacity: 0; transform: translateY(8px); } }
@keyframes splash-out { to { opacity: 0; } }
@keyframes splash-skip { from { opacity: 1; } to { opacity: 0; } }

/* Mouvement réduit : le logo complet, sans mouvement, puis un fondu. */
@media (prefers-reduced-motion: reduce) {
  .splash.is-playing * { animation: none !important; }
  .splash.is-playing { animation-delay: 1.2s; }
}
