/* parts-kytom-splash-confirm : ex-bloc <style> de kytom-splash-confirm.php, source de vérité depuis le 09/09/2026 (plan poids-html-blueprint-light, lot 2). Tokens : var(--color-*) uniquement. */
.ksplash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bleu);
  opacity: 0;
  transition: opacity 0.45s ease;
}
/* `display: flex` (style auteur) bat la règle UA `[hidden]` : sans ce garde,
   l'overlay invisible couvre la page et avale tous les clics (bug 14/07). */
.ksplash[hidden] { display: none; }
.ksplash.is-open { opacity: 1; }
.ksplash__inner { text-align: center; padding: 0 24px; }
.ksplash__brand {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.35em;
  color: var(--color-white);
  opacity: 0.65;
  margin: 0 0 26px;
}
.ksplash__brand span { color: var(--color-orange); }
.ksplash__title {
  font-family: var(--font-heading);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: var(--font-semibold);
  color: var(--color-white);
  margin: 0;
  line-height: 1.1;
}
.ksplash__sub {
  font-size: var(--text-lg);
  color: var(--color-beige);
  margin: 14px 0 0;
}
.ksplash__bar {
  width: min(320px, 70vw);
  height: 2px;
  margin: 34px auto 0;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.ksplash__bar-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--color-orange);
  transform-origin: left;
}
.ksplash.is-open .ksplash__bar-fill { animation: ksplashDrain 5s linear forwards; }
@keyframes ksplashDrain {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
.ksplash__btn {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 26px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: var(--color-white);
  text-decoration: none;
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.ksplash__btn:hover { border-color: var(--color-orange); color: var(--color-orange); }
.ksplash__btn:focus-visible { outline: 3px solid var(--color-mint); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .ksplash { transition: none; }
  .ksplash.is-open .ksplash__bar-fill { animation: none; transform: scaleX(0); }
}
