/* Eyzulabs — feuille commune au site du studio et aux pages de jeu.
   Palette prise sur le jeu lui-meme : le bleu nuit des hublots, la creme des
   nappes, le laiton des presentoirs. Pas de noir pur, il eteint les captures. */

:root {
  --nuit:        #0a131d;
  --nuit-2:      #0f1c29;
  --nuit-3:      #15293a;
  --bord:        rgba(246, 239, 226, .13);
  --bord-fort:   rgba(246, 239, 226, .26);
  --creme:       #f6efe2;
  --creme-doux:  #a9b3bf;
  --laiton:      #d2a84c;
  --laiton-vif:  #efc978;
  --largeur:     1140px;
  --rayon:       14px;
  --sortie:      cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--nuit);
  color: var(--creme);
  font: 16.5px/1.68 Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }

.enveloppe { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }

/* ---------- titres ---------- */

.titre, h1, h2, h3 {
  font-family: Archivo, Inter, -apple-system, "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin: 0;
}
h2 { font-size: clamp(27px, 3.6vw, 40px); }
h3 { font-size: 20px; letter-spacing: -.01em; }

.sur-titre {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--laiton);
  margin: 0 0 14px;
}

.chapeau { color: var(--creme-doux); font-size: 17px; max-width: 62ch; }

/* ---------- barre du haut ---------- */

.barre {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 22px;
  height: 66px; padding: 0 clamp(16px, 4vw, 40px);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.barre[data-defile="oui"] {
  background: rgba(10, 19, 29, .88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--bord);
}
.barre .marque {
  font-family: Archivo, sans-serif; font-weight: 800; font-size: 17px;
  letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
}
.barre .marque b { color: var(--laiton); font-weight: 800; }
.barre nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.barre nav a {
  padding: 8px 13px; border-radius: 9px; text-decoration: none;
  font-size: 14.5px; font-weight: 500; color: var(--creme-doux);
  transition: color .18s, background-color .18s;
}
.barre nav a:hover { color: var(--creme); background: rgba(246, 239, 226, .07); }
.barre nav a[aria-current] { color: var(--creme); }
@media (max-width: 640px) { .barre nav a.cache-tel { display: none; } }

/* ---------- boutons ---------- */

.bouton {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 11px;
  font-size: 15.5px; font-weight: 650; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--sortie), box-shadow .2s var(--sortie),
              background-color .2s, border-color .2s;
}
.bouton:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .bouton:hover { transform: none; } }

.bouton-or {
  background: linear-gradient(180deg, var(--laiton-vif), var(--laiton));
  color: #1b1405;
  box-shadow: 0 10px 26px -12px rgba(210, 168, 76, .85);
}
.bouton-or:hover { box-shadow: 0 16px 34px -12px rgba(210, 168, 76, .95); }

.bouton-clair {
  background: rgba(246, 239, 226, .08);
  border-color: var(--bord-fort);
  color: var(--creme);
  backdrop-filter: blur(8px);
}
.bouton-clair:hover { background: rgba(246, 239, 226, .14); }

/* ---------- hero ---------- */

.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; }
.hero-fond { position: absolute; inset: 0; overflow: hidden; }
.hero-fond video, .hero-fond img { width: 100%; height: 100%; object-fit: cover; }
.hero-voile {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,19,29,.82) 0%, rgba(10,19,29,.30) 34%, rgba(10,19,29,.78) 72%, var(--nuit) 100%),
    linear-gradient(90deg, rgba(10,19,29,.70) 0%, rgba(10,19,29,0) 62%);
}
.hero .enveloppe { position: relative; padding-top: 140px; padding-bottom: 64px; }

.hero h1 {
  font-size: clamp(38px, 10.5vw, 128px);
  text-transform: uppercase;
  letter-spacing: -.035em;
  text-shadow: 0 6px 40px rgba(0, 0, 0, .55);
}
.hero .sous-titre {
  display: inline-block; margin-top: 14px; padding: 7px 15px;
  background: rgba(10, 19, 29, .72); border: 1px solid var(--bord-fort);
  border-radius: 999px; backdrop-filter: blur(6px);
  font-size: 13px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
}
.hero .accroche { margin: 22px 0 0; max-width: 54ch; font-size: 18px; color: #e3dcd0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.hero .prix { font-size: 14.5px; color: var(--creme-doux); }
.hero .prix b { color: var(--creme); font-weight: 650; }

/* ---------- bandeau de chiffres ---------- */

.chiffres {
  display: grid; gap: 1px; background: var(--bord);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-block: 1px solid var(--bord);
}
.chiffres div { background: var(--nuit); padding: 26px 18px; text-align: center; }
.chiffres b {
  display: block; font-family: Archivo, sans-serif; font-weight: 800;
  font-size: 30px; color: var(--laiton-vif); font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.chiffres i {
  font-style: normal; font-size: 11.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--creme-doux);
}

/* ---------- sections ---------- */

section { padding: clamp(60px, 9vw, 104px) 0; }
section.serre { padding-block: clamp(46px, 6vw, 70px); }

.duo {
  display: grid; gap: clamp(28px, 5vw, 62px); align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.duo + .duo { margin-top: clamp(56px, 8vw, 96px); }
.duo.inverse > *:first-child { order: 2; }
@media (max-width: 719px) { .duo.inverse > *:first-child { order: 0; } }

.cadre {
  border-radius: var(--rayon); overflow: hidden;
  border: 1px solid var(--bord); background: var(--nuit-2);
  box-shadow: 0 26px 60px -34px rgba(0, 0, 0, .9);
}
.cadre img, .cadre video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.liste { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 11px; }
.liste li { position: relative; padding-left: 26px; color: var(--creme-doux); }
.liste li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--laiton); transform: rotate(45deg);
}
.liste li b { color: var(--creme); font-weight: 600; }

/* ---------- cartes ---------- */

.cartes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); margin-top: 36px; }
.carte {
  background: var(--nuit-2); border: 1px solid var(--bord);
  border-radius: var(--rayon); padding: 24px;
  transition: border-color .2s, transform .2s var(--sortie), background-color .2s;
}
.carte:hover { border-color: var(--bord-fort); transform: translateY(-3px); background: var(--nuit-3); }
.carte .pastille {
  display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 15px;
  border-radius: 10px; background: rgba(210, 168, 76, .14);
  border: 1px solid rgba(210, 168, 76, .32); font-size: 18px;
}
.carte p { margin: 9px 0 0; color: var(--creme-doux); font-size: 15px; }

/* ---------- galerie ---------- */

.galerie { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); margin-top: 34px; }
.galerie button {
  padding: 0; border: 1px solid var(--bord); border-radius: 12px; overflow: hidden;
  background: var(--nuit-2); cursor: zoom-in; display: block;
  transition: border-color .2s, transform .2s var(--sortie);
}
.galerie button:hover { border-color: var(--laiton); transform: translateY(-3px); }
.galerie img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.visionneuse {
  position: fixed; inset: 0; z-index: 90; display: none;
  place-items: center; padding: 3vw;
  background: rgba(5, 9, 14, .93); backdrop-filter: blur(6px);
  border: 0; width: 100%; height: 100%; cursor: zoom-out;
}
.visionneuse[open] { display: grid; }
.visionneuse img { max-width: 100%; max-height: 94vh; border-radius: 10px; object-fit: contain; }
.visionneuse::backdrop { background: transparent; }

/* ---------- tableau fiche ---------- */

.fiche { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 26px; }
.fiche th {
  text-align: left; width: 210px; padding: 11px 16px 11px 0; vertical-align: top;
  color: var(--creme-doux); font-weight: 500;
  border-bottom: 1px solid var(--bord);
}
.fiche td { padding: 11px 0; border-bottom: 1px solid var(--bord); }
.fiche a { color: var(--laiton-vif); }
@media (max-width: 560px) {
  .fiche, .fiche tbody, .fiche tr, .fiche th, .fiche td { display: block; width: auto; }
  .fiche th { border: 0; padding-bottom: 2px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; }
  .fiche td { padding-top: 0; }
}

/* ---------- appel final ---------- */

.appel {
  position: relative; overflow: hidden; border-radius: 20px;
  border: 1px solid var(--bord); padding: clamp(36px, 6vw, 64px);
  background: linear-gradient(135deg, var(--nuit-3), var(--nuit-2));
  text-align: center;
}
.appel::after {
  content: ""; position: absolute; inset: -40% 30% auto; height: 300px;
  background: radial-gradient(ellipse at top, rgba(210, 168, 76, .18), transparent 70%);
  pointer-events: none;
}
.appel > * { position: relative; }
.appel .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

/* ---------- pied ---------- */

footer { border-top: 1px solid var(--bord); padding: 42px 0 54px; font-size: 14.5px; color: var(--creme-doux); }
footer .rangee { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; }
footer a { color: var(--creme-doux); text-decoration: none; }
footer a:hover { color: var(--laiton-vif); }
footer .liens { display: flex; flex-wrap: wrap; gap: 18px; }
footer .mention { margin-top: 22px; font-size: 13px; color: #6f7c89; }

/* ---------- apparition au defilement ---------- */

.monte { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--sortie), transform .6s var(--sortie); }
.monte[data-vu="oui"] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .monte { opacity: 1; transform: none; transition: none; } }
