/* Accueil « Coming soon » : diaporama plein écran d'images du jeu, couleurs dorées de l'interface du jeu */
:root {
  --bg: #0e131d;
  --trim: #c2ad78;
  --gold-text: #f3dca2;
  --gold-hi: #ffde80;
  --gold-lo: #d69228;
  --text: #ece8de;
  --hint: #c9c2b3;
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; overflow: hidden; background: var(--bg); color: var(--text);
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
}

/* Diaporama : images empilées, fondu enchaîné et lent zoom de la visible */
.slides { position: fixed; inset: 0; z-index: 0; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.8s ease; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); }
.slide.is-active { opacity: 1; }
.slide.is-active img { animation: drift 9s ease-out forwards; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1); } }

/* Assombrit les bords et le bas pour lire le texte */
.shade {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 40%, transparent 45%, rgba(5, 8, 14, 0.55) 100%),
    linear-gradient(180deg, rgba(5, 8, 14, 0.25) 0%, transparent 30%, transparent 45%, rgba(5, 8, 14, 0.85) 100%);
}

.hero {
  position: fixed; z-index: 2; left: 0; right: 0; bottom: 0;
  padding: 0 clamp(16px, 6vw, 96px) clamp(84px, 13vh, 140px);
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 6px;
}
.hero > * { max-width: 100%; }
.brand { display: flex; align-items: center; gap: 14px; }
.emblem { width: clamp(52px, 6vw, 76px); height: auto; filter: drop-shadow(0 4px 14px rgba(40, 120, 255, 0.45)); }
.wordmark {
  font: 700 clamp(22px, 2.6vw, 32px)/1 var(--serif); letter-spacing: 0.08em; color: var(--gold-text);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}
h1 {
  margin: 10px 0 0; font: 700 clamp(44px, 8.5vw, 112px)/1 var(--serif); letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff6d8 0%, var(--gold-hi) 45%, var(--gold-lo) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.6));
}
.tagline {
  margin: 8px 0 22px; max-width: 34em; font-size: clamp(17px, 1.6vw, 21px); color: var(--text);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 26px; border-radius: 8px;
  font: 700 17px var(--serif); letter-spacing: 0.06em; text-decoration: none;
  border: 1.5px solid var(--trim); transition: filter 0.15s, transform 0.15s;
}
.button:hover { filter: brightness(1.12); transform: translateY(-1px); }
.button:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.button.primary { color: #1a1206; background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); box-shadow: 0 6px 22px rgba(214, 146, 40, 0.35); }
.button.discord {
  color: var(--gold-text); background: rgba(14, 19, 29, 0.62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* Légende de l'image et points de navigation */
.controls {
  position: fixed; z-index: 2; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 clamp(16px, 6vw, 96px) clamp(22px, 4vh, 40px);
}
.caption { margin: 0; font-size: 14px; color: var(--hint); letter-spacing: 0.04em; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); }
.dots { display: flex; gap: 8px; }
.dots button {
  position: relative; width: 34px; height: 4px; padding: 0; border: 0; border-radius: 2px; cursor: pointer;
  background: rgba(236, 232, 222, 0.3); overflow: hidden;
}
.dots button::after {
  content: ""; position: absolute; inset: 0; transform: scaleX(0); transform-origin: left;
  background: var(--gold-hi);
}
.dots button[aria-selected="true"]::after { animation: fill var(--slide-time, 7s) linear forwards; }
.dots button.is-paused::after { animation-play-state: paused; }
.dots button:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 4px; }
@keyframes fill { to { transform: scaleX(1); } }

@media (max-width: 640px) {
  .hero { justify-items: center; text-align: center; padding-bottom: 96px; }
  .actions { justify-content: center; }
  .button { padding: 11px 20px; font-size: 16px; }
  .controls { flex-direction: column-reverse; gap: 10px; padding-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide { transition-duration: 0.01s; }
  .slide.is-active img { animation: none; }
  .dots button[aria-selected="true"]::after { animation: none; transform: scaleX(1); }
}
