html, body { margin: 0; height: 100%; background: #0a0e1a; }

.splash {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  font-family: system-ui, sans-serif;
}

.splash-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

/* Fond pas encore chargé (ou en échec) : invisible, jamais d'icône d'image cassée (splash.js) */
.splash-bg.pending,
.splash-bg[hidden] {
  opacity: 0;
}

.splash-bg {
  transition: opacity .25s ease;
}

.splash-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,14,26,.35) 0%, rgba(10,14,26,.15) 40%, rgba(8,12,22,.92) 88%);
}

.splash-logo-wrap {
  position: absolute;
  top: 130px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: splash-drift 4s ease-in-out infinite;
}

.splash-logo {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-footer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
}

.splash-wordmark {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.splash-tagline {
  font-size: 13px;
  color: rgba(255,255,255,.8);
  margin-top: 6px;
}

.splash-dots {
  display: flex;
  gap: 6px;
  margin-top: 26px;
}

.splash-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: splash-pulse 1.2s ease-in-out infinite;
}

.splash-dots span:nth-child(2) { animation-delay: .2s; }
.splash-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes splash-pulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes splash-drift {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
