/* Origin — styles communs à toutes les pages (29/11) : polices, couleurs, barre du haut, menu, boutons à coins
   coupés, pied de page. L'accueil ajoute accueil.css (la cabine), les autres pages pages.css. */

/* Paolo et Uberto (licence d'essai) retirés le 30/11 : plus aucune page ne s'en sert, et le site en ligne ne doit
   pas les publier (.vercelignore exclut assets/fonts). */

:root {
  --night: #120d0a;
  --glass: rgba(20, 14, 10, 0.58);
  --glass-hi: rgba(20, 14, 10, 0.78);
  --hair: rgba(232, 196, 128, 0.32);
  --hair-hi: rgba(232, 196, 128, 0.62);
  --gold: #e8c480;
  --gold-soft: rgba(232, 196, 128, 0.85);
  --text: #f4ecdd;
  --text-2: rgba(244, 236, 221, 0.74);
  --text-3: rgba(244, 236, 221, 0.5);
  --red: #d01a4d;
  --red-deep: #9a1036;

  --body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* 1u = 1 px en 1440x900 ; grandit avec la largeur ET la hauteur (son écran 3440x1440 -> 1,6 px) */
  --u: clamp(0.8px, min(0.06944vw, 0.1111vh), 2.4px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  font-size: calc(14 * var(--u));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
:focus-visible {
  outline: 1.5px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 50;
  padding: 8px 14px;
  background: var(--text);
  color: var(--night);
}
.skip:focus {
  left: 8px;
}

/* ---------- Barre du haut : le logo à gauche, le bouton « Jouer » du launcher à droite, rien d'autre ---------- */
.top {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(24 * var(--u)) calc(36 * var(--u)) 0;
}
.top__logo img {
  width: calc(108 * var(--u));
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}
/* Bouton = le bouton « Jouer » du launcher d'Origin (HomePage.css .hub__cta) : cramoisi plein #EE1C57, coins arrondis,
   Outfit 600 blanc, éclairci au survol. Depuis le 30/11 il mène au Discord (téléchargement du launcher coupé). */
.top__dl {
  display: inline-flex;
  align-items: center;
  height: calc(44 * var(--u));
  padding: 0 calc(24 * var(--u));
  border-radius: calc(11 * var(--u));
  background: #ee1c57;
  font-family: var(--body);
  font-weight: 600;
  font-size: calc(16 * var(--u));
  letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 calc(6 * var(--u)) calc(20 * var(--u)) rgba(238, 28, 87, 0.28);
  transition:
    filter 0.15s,
    transform 0.15s;
}
.top__dl:hover {
  filter: brightness(1.08);
}
.top__dl:active {
  transform: translateY(1px);
}

/* Bouton = le .btn des menus du jeu (crew.css) : blanc 12 %, coins 6 px, Outfit blanc, opacité .78 -> 1 au survol */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(10 * var(--u));
  height: calc(40 * var(--u));
  padding: 0 calc(22 * var(--u));
  background: rgba(255, 255, 255, 0.12);
  border-radius: calc(6 * var(--u));
  font-family: var(--body);
  font-weight: 400;
  font-size: calc(17 * var(--u));
  letter-spacing: -0.03em;
  color: #fff;
  opacity: 0.78;
  white-space: nowrap;
  transition:
    background 0.12s ease,
    opacity 0.12s ease;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
}
.btn--lg {
  height: calc(46 * var(--u));
  padding: 0 calc(28 * var(--u));
  font-size: calc(19 * var(--u));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Pied ---------- */
.foot {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(18 * var(--u));
  flex-wrap: wrap;
  padding: 0 calc(20 * var(--u)) calc(16 * var(--u));
  font-size: calc(11 * var(--u));
  color: var(--text-3);
}
.foot a {
  display: inline-flex;
  align-items: center;
  gap: calc(5 * var(--u));
  transition: color 0.2s;
}
.foot a:hover {
  color: var(--text);
}
.foot img {
  width: calc(12 * var(--u));
  height: calc(12 * var(--u));
  opacity: 0.8;
}
.foot nav {
  display: flex;
  gap: calc(16 * var(--u));
}

/* ---------- Téléphone ---------- */
@media (max-width: 760px) {
  :root {
    --u: 1px;
  }
  .top {
    padding: 14px 16px 0;
  }
  .top__logo img {
    width: 92px;
  }
  .top__dl {
    height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 14px;
  }
  .top__dl-long {
    display: none;
  }
  .foot {
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
