/* Game Campus — landing temporaire
   Valeurs reprises de la maquette OpenPencil (gameCampusSite.fig, 1440x900 / 390x844).
   Panneau bleu #0F71AD, accents ambre #E8B64C. */

:root {
  --bleu: #0F71AD;
  --bleu-nuit: #0D1512;
  --ambre: #E8B64C;
  --creme: #F4EBD8;
  --texte: #DCE6DB;
  --texte-2: #9FB0A4;
  --pied: #93A697;
  --mono: Consolas, "Courier New", monospace;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--bleu-nuit);
  color: var(--texte);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- illustration ---------- */

.hero {
  position: fixed;
  inset: 0;
  background: var(--bleu-nuit) url("assets/hero-poster.jpg") center / cover no-repeat;
}

.hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* L'illustration est du pixel art : un agrandissement lissé détruirait les pixels. */
  image-rendering: pixelated;
}

/* pastille de marque, posée sur l'illustration : 48,48 · 300x56 */
.chip {
  position: absolute;
  left: 48px;
  top: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 300px;
  height: 56px;
  padding-left: 20px;
  background: rgba(15, 113, 173, 0.90);
  border-radius: 4px;
}

.chip__puce {
  width: 16px;
  height: 16px;
  background: var(--ambre);
  flex: 0 0 auto;
}

.chip__label {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--creme);
  white-space: nowrap;
}

/* ---------- panneau d'annonce (desktop) ----------
   816→1440 sur 1440 = 43,33 % ; positions verticales en % de la hauteur,
   ce qui conserve les proportions de la maquette 900 px sur tout écran. */

.panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 43.33%;
  height: 100%;
  background: rgba(15, 113, 173, 0.96);
}

/* filet ambre de 2 px, à la jointure illustration / panneau */
.panel::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--ambre);
}

.panel__body { position: absolute; inset: 0; }

.title {
  position: absolute;
  left: 64px;
  top: 25.33%;
  margin: 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(38px, 4.3vw, 62px);
  line-height: 1.1;
  letter-spacing: 1px;
  color: var(--creme);
}

.rule {
  position: absolute;
  left: 66px;
  top: 36.67%;
  width: 72px;
  height: 3px;
  background: var(--ambre);
}

.lead {
  position: absolute;
  left: 64px;
  top: 41.33%;
  width: 470px;
  max-width: calc(100% - 96px);
  margin: 0;
  font-size: 21px;
  line-height: 32px;
  color: var(--texte);
}

.note {
  position: absolute;
  left: 64px;
  top: 54.44%;
  width: 470px;
  max-width: calc(100% - 96px);
  margin: 0;
  font-size: 15px;
  line-height: 24px;
  color: var(--texte-2);
}

.foot {
  position: absolute;
  left: 64px;
  top: 90.22%;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--pied);
}

/* ---------- mobile : 390x844 dans la maquette ---------- */

@media (max-width: 900px) {
  .hero {
    position: relative;
    inset: auto;
    height: 320px;
  }

  .chip {
    left: 16px;
    top: 16px;
    width: 196px;
    height: 38px;
    padding-left: 14px;
    gap: 10px;
  }

  .chip__puce { width: 12px; height: 12px; }

  .chip__label { font-size: 12px; letter-spacing: 3px; }

  /* le filet passe à l'horizontale, sous l'illustration */
  .panel {
    position: relative;
    width: 100%;
    height: auto;
    background: var(--bleu);
  }

  .panel::before {
    left: 0;
    right: 0;
    top: -2px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .panel__body {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 322px);
    padding: 76px 24px 0;
  }

  .title, .rule, .lead, .note, .foot {
    position: static;
  }

  .title {
    font-size: 38px;
    letter-spacing: 0;
  }

  .rule {
    margin: 18px 0 0 2px;
    width: 56px;
  }

  .lead {
    margin: 21px 0 0;
    font-size: 16px;
    line-height: 24px;
    width: auto;
    max-width: none;
  }

  .note {
    margin: 19px 0 0;
    font-size: 13px;
    line-height: 20px;
    width: auto;
    max-width: none;
    color: var(--pied);
  }

  .foot {
    margin-top: auto;
    padding-bottom: 24px;
    font-size: 10px;
    letter-spacing: 2px;
  }
}

/* Mouvement réduit : on garde l'affiche, pas la boucle. */
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}
