:root {
  --fond: #E8EAED;
  --texte: #15171C;
  --secondaire: #474C55;
  --filet: #C9CDD3;
  --accent: #E8461E;
  --jeu-fond: #15171C;
  --jeu-trait: #F2C230;
  --jeu-legende: #A9B0BA;
  --pied-fond: #15171C;
  --pied-texte: #E3E5E8;
  --pied-titre: #A9B0BA;
  --sans: system-ui, -apple-system, "Segoe UI", "Noto Sans", "DejaVu Sans", sans-serif;
  --chasse: ui-monospace, "SFMono-Regular", "DejaVu Sans Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--texte); }
a:hover, a:focus-visible { color: var(--secondaire); }
a:focus-visible { outline: 2px solid var(--texte); outline-offset: 2px; }

.conteneur { max-width: 68rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }

.entete { border-bottom: 1px solid var(--filet); }
.entete-ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.mot-symbole {
  font-family: var(--chasse);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--texte);
  text-decoration: none;
}
.curseur { color: var(--accent); }
@keyframes clignote { 50% { opacity: 0; } }
.navigation { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-size: 0.9375rem; }
.navigation a { padding: 0.75rem 0; }
.navigation .langue { font-family: var(--chasse); }

.scene {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  gap: 3rem 4rem;
  align-items: center;
  padding-top: 4.5rem;
  padding-bottom: 5rem;
}
.scene h1 {
  margin: 0;
  max-width: 14ch;
  font-size: 3.5rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.borne {
  background: var(--jeu-fond);
  padding: 1rem 1rem 0.75rem;
  border-radius: 1.25rem 1.25rem 0.5rem 0.5rem;
  box-shadow: 0 1.5rem 3rem -1.5rem rgba(10, 12, 15, 0.55);
}
.ecran {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 0.375rem;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 15%, var(--jeu-trait) 15% 16.67%, transparent 16.67% 83.33%,
      var(--jeu-trait) 83.33% 85%, transparent 85%),
    var(--jeu-fond);
}
.ecran::before, .ecran::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.67%;
  background: repeating-linear-gradient(var(--jeu-trait) 0 6.25%, transparent 6.25% 12.5%);
}
.ecran::before { left: 37.5%; }
.ecran::after { left: 60.83%; }
#jeu {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  touch-action: manipulation;
  cursor: pointer;
}
#jeu.en-jeu { touch-action: none; }
#jeu:focus-visible { outline: 3px solid var(--jeu-trait); outline-offset: -3px; }
.commandes {
  display: none;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.75rem 0 0;
  font-family: var(--chasse);
  font-size: 0.75rem;
  color: var(--jeu-legende);
}
.jeu-actif .commandes { display: flex; }
.commandes strong { color: var(--jeu-trait); }
.invisible {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.introuvable { padding-top: 5rem; padding-bottom: 5rem; }
.introuvable h1 { margin: 0; font-size: 2.75rem; line-height: 1.15; }
.introuvable p { margin: 1.5rem 0 0; }

.contact { border-top: 1px solid var(--filet); }
.contact .conteneur { padding-top: 3rem; padding-bottom: 3rem; }
.contact h2 {
  margin: 0 0 0.5rem;
  font-family: var(--chasse);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondaire);
}
.contact p { margin: 0; font-size: 1.25rem; }
.courriel { font-family: var(--chasse); font-size: 1.0625rem; }

.pied { background: var(--pied-fond); color: var(--pied-texte); }
.pied-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 3.5rem;
  font-size: 0.875rem;
  line-height: 1.65;
}
.pied h2 {
  margin: 0 0 0.75rem;
  font-family: var(--chasse);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pied-titre);
}
.pied p { margin: 0 0 0.75rem; }
.pied a { color: var(--pied-texte); }
.pied a:focus-visible { outline-color: var(--pied-texte); }

@media (max-width: 48rem) {
  .scene { grid-template-columns: minmax(0, 1fr); padding-top: 3rem; padding-bottom: 3.5rem; }
  .scene h1 { font-size: 2.25rem; }
  .borne { width: 100%; max-width: 22rem; justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  .curseur { animation: none; }
}
