:root {
  color-scheme: dark;
  --ink: #211d1c;
  --accent: #df9830;
  --apple-font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body { background: var(--ink); color: #fff; font-family: var(--apple-font); -webkit-font-smoothing: antialiased; }

.launch {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  background: var(--ink);
  opacity: 1;
  transition: opacity .45s ease;
}

.launch::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(180deg, rgba(33, 29, 28, .18), rgba(33, 29, 28, .4) 55%, rgba(33, 29, 28, .68));
  content: '';
}

.launch__image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .48s ease;
  animation: image-arrive 1.4s cubic-bezier(.2, .75, .25, 1) both, image-drift 28s 1.4s ease-in-out infinite alternate;
}

.launch__video {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity .48s ease, visibility 0s .48s;
}

.launch.is-playing .launch__image { opacity: 0; }
.launch.is-playing .launch__video { opacity: 1; visibility: visible; transition-delay: 0s; }
.launch.is-playing .launch__content { opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility 0s .28s; }
.launch.is-transitioning { opacity: 0; pointer-events: none; }

.launch__content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 24px;
  text-align: center;
  animation: content-arrive .85s .15s cubic-bezier(.2, .75, .25, 1) both;
}

.launch__brand {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

.launch__start {
  position: relative;
  display: inline-grid;
  min-width: 104px;
  min-height: 46px;
  padding: 0 26px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
  animation: start-pulse 3s 1.2s ease-in-out infinite;
}

.launch__start:hover {
  transform: translateY(-2px);
  background: var(--ink);
  color: var(--accent);
  box-shadow: 0 6px 24px rgba(33, 29, 28, .32);
}

.launch__start:active { transform: translateY(0) scale(.97); }
.launch__start:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

@keyframes image-arrive { from { opacity: .55; transform: scale(1.045); } to { opacity: 1; transform: scale(1); } }
@keyframes image-drift { from { transform: scale(1); } to { transform: scale(1.055); } }
@keyframes content-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes start-pulse { 50% { box-shadow: 0 0 0 7px rgba(223, 152, 48, .16); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Loading feedback sur le bouton START */
.launch__start {
  position: relative;
}
.launch__start.is-loading {
  opacity: .85;
  pointer-events: none;
  animation: none;
}
.launch__start.is-loading::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 10px;
  border: 2px solid rgba(33, 29, 28, .25);
  border-top-color: var(--ink);
  border-radius: 50%;
  vertical-align: middle;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Spinner extérieur, sous le bouton START */
.launch__spinner {
  display: none;
  gap: 6px;
  justify-content: center;
  margin-top: 20px;
}
.launch__spinner span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-pulse 1s ease-in-out infinite;
}
.launch__spinner span:nth-child(2) { animation-delay: .15s; }
.launch__spinner span:nth-child(3) { animation-delay: .3s; }

.launch.is-loading .launch__spinner { display: flex; }
.launch.is-loading .launch__start {
  opacity: .6;
  pointer-events: none;
  animation: none;
}

@keyframes dot-pulse {
  0%, 100% { opacity: .3; transform: scale(.8); }
  50%      { opacity: 1;  transform: scale(1.15); }
}

/* Loading initial */
.launch__preload {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
}
.launch__preload span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-pulse 1s ease-in-out infinite;
}
.launch__preload span:nth-child(2) { animation-delay: .15s; }
.launch__preload span:nth-child(3) { animation-delay: .3s; }

@keyframes dot-pulse {
  0%, 100% { opacity: .3; transform: scale(.8); }
  50%      { opacity: 1;  transform: scale(1.15); }
}

.launch__preload {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.launch__preload span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-pulse 1s ease-in-out infinite;
}
.launch__preload span:nth-child(2) { animation-delay: .15s; }
.launch__preload span:nth-child(3) { animation-delay: .3s; }

.launch__content {
  transition: opacity .5s ease;
}
.launch__content.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}