/* ============================================================
   Direction artistique survival horror
   Ambiance retro PSX / Huis clos
   ============================================================ */

:root {
  /* Nuances sombres brutes et contrastées */
  --ground: #070708;
  --surface: #0e0d10;
  --surface-raised: #141317;
  
  /* Bordures architecturales et techniques */
  --border: rgba(255, 255, 255, 0.07);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-accent: #781a1d;
  --border-accent-hover: #b81f24;

  /* Teinte d'accent : Sang industriel profond (utilisé avec parcimonie) */
  --blood: #b81f24;
  --blood-hover: #d4272d;
  --blood-dark: #3b0e11;
  --blood-wash: rgba(184, 31, 36, 0.08);

  /* Typographie & Contraste lisible */
  --text: #ede7e1;
  --text-dim: #a49d95;
  --text-muted: #857d76;

  /* Espacements & Conteneur */
  --sp-section: clamp(4.5rem, 9vw, 7.5rem);
  --container: 1180px;
  --gutter: clamp(1.2rem, 4vw, 2.5rem);

  /* Rayons nets et tactiles (angles droits ou très légers biseaux) */
  --r-sm: 2px;
  --r-md: 3px;
  --r-lg: 4px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Polices */
  --font-display: "Bebas Neue", sans-serif;
  --font-ui: "DM Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--ground);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--blood);
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav__link:focus-visible,
.nav__cta:focus-visible,
.gallery__item:focus-visible {
  outline: 2px solid var(--blood-hover);
  outline-offset: 3px;
}

body {
  font-family: var(--font-ui);
  line-height: 1.6;
  position: relative;
  background-color: var(--ground);
  color: var(--text);
}

main {
  background-color: var(--ground);
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ─── Typographie ─────────────────────────────────────────── */
h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  color: var(--text);
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 400;
  color: var(--text);
}

.section__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blood);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section__label::after {
  content: "";
  display: block;
  height: 1px;
  width: 32px;
  background: var(--border-accent);
}

.section__title {
  margin-bottom: 3.5rem;
  color: var(--text);
}

/* ─── Layout ─────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--sp-section) 0;
  background-color: var(--ground);
  border-top: 1px solid var(--border-subtle);
}

.section--dark {
  background-color: #0a090c;
}

/* ─── Reveal ─────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── Boutons Tactiles & Massifs (Sans reflets laser) ─────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  padding: 0.85rem 1.85rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
  position: relative;
  user-select: none;
  text-align: center;
}

/* Bouton primaire sombre / sang */
.btn--dark {
  background-color: #170e10;
  color: var(--text);
  border: 1px solid var(--border-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.btn--dark:hover {
  background-color: var(--blood);
  border-color: var(--blood-hover);
  color: #fff;
  transform: translateY(-2px);
}

.btn--dark:active {
  transform: translateY(0);
}

/* Bouton contour sec */
.btn--outline {
  background-color: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-strong);
}

.btn--outline:hover {
  background-color: var(--surface-raised);
  border-color: var(--text);
  color: var(--text);
  transform: translateY(-2px);
}

.btn--outline:active {
  transform: translateY(0);
}

.btn--large {
  padding: 1.05rem 2.5rem;
  font-size: 0.88rem;
}

.btn__icon {
  flex-shrink: 0;
}

/* ─── Navigation Épurée & Précise ────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(7, 7, 8, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  transition: height 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.nav.scrolled {
  height: 56px;
  background: rgba(7, 7, 8, 0.98);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 var(--gutter);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.nav__logo-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nav__logo:hover .nav__logo-icon {
  transform: scale(1.08);
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.nav__links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav__link {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s ease;
  position: relative;
  padding: 0.2rem 0;
}

.nav__link:hover,
.nav__link.active {
  color: var(--text);
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--blood);
  transition: width 0.2s ease;
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background-color: var(--blood);
  border: 1px solid var(--blood-hover);
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-sm);
  transition: background-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.nav__cta:hover {
  background-color: var(--blood-hover);
  transform: translateY(-1px);
}

/* ─── Section Hero (Clair, Brutal, Sans Glow Fictif) ──────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--ground);
  padding: 6rem 0 4rem;
}

.hero__art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../images/hero-keyart.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 40%;
  filter: brightness(0.38) contrast(1.18) saturate(0.85);
}

@media (max-width: 900px) {
  .hero__art {
    background-position: 55% 30%;
  }
}

/* Dégradé d'intégration propre avec la page */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top, var(--ground) 0%, rgba(7, 7, 8, 0.75) 45%, rgba(7, 7, 8, 0.4) 100%),
    linear-gradient(to bottom, rgba(7, 7, 8, 0.8) 0%, transparent 40%);
}

.hero__mist {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.4;
  background: radial-gradient(ellipse 100% 70% at 50% 100%, rgba(7, 7, 8, 0.95) 0%, transparent 70%);
}

.hero__bg-glow,
.story__card-glow,
.cta-band__bg {
  display: none !important;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 0 120px 40px rgba(0, 0, 0, 0.75);
}

.hero__content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  max-width: 820px;
  padding: 0 var(--gutter);
  margin-top: 1rem;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero__badge {
  background: rgba(14, 13, 16, 0.85);
  border: 1px solid var(--border-accent);
  color: var(--text);
  padding: 0.25rem 0.65rem;
  border-radius: var(--r-sm);
  font-size: 0.62rem;
}

.hero__divider {
  width: 1px;
  height: 12px;
  background: var(--border-strong);
}

.hero__fear {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blood);
  margin: 0;
}

.hero__title {
  font-size: clamp(3.8rem, 13vw, 8rem);
  font-weight: 400;
  line-height: 0.88;
  margin: 0;
  color: #fff;
  letter-spacing: 0.05em;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.95);
}

.hero__kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0;
}

.hero__sub {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-dim);
  max-width: 580px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 540px;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.hero__scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1.2rem;
}

.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--border-strong), transparent);
}

/* ─── Section Histoire / Univers ─────────────────────────── */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.story__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1.4rem;
}

.story__text p {
  color: var(--text-dim);
  margin-bottom: 1.2rem;
  font-size: 0.98rem;
  line-height: 1.65;
}

.story__text strong {
  color: var(--text);
  font-weight: 600;
}

.story__text .btn {
  margin-top: 1.2rem;
}

.story__card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  background-color: var(--surface);
}

.story__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) brightness(0.9);
}

.story__stats {
  display: flex;
  gap: 1px;
  margin-top: 1px;
  background: var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.stat {
  flex: 1;
  background: var(--surface);
  padding: 1.1rem;
  text-align: center;
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.3rem;
  letter-spacing: 0.06em;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── Section Trailer ────────────────────────────────────── */
.trailer-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 2.5rem auto 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  transition: border-color 0.25s ease;
}

.trailer-wrapper:hover {
  border-color: var(--border-strong);
}

.trailer-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── Section Caractéristiques (Bento Propre) ────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 1rem;
}

.feature-card {
  grid-column: span 4;
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--surface);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.feature-card--large {
  grid-column: span 8;
}

.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.feature-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.3s ease;
  filter: brightness(0.42) contrast(1.1);
}

.feature-card:hover .feature-card__img {
  transform: scale(1.04);
  filter: brightness(0.5) contrast(1.15);
}

.feature-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 7, 8, 0.98) 0%, rgba(7, 7, 8, 0.6) 45%, transparent 100%);
}

.feature-card__body {
  position: relative;
  z-index: 2;
  padding: 1.8rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.feature-card__num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--blood);
  letter-spacing: 0.18em;
  margin-bottom: 0.5rem;
}

.feature-card h3 {
  color: var(--text);
  margin-bottom: 0.45rem;
  font-size: 1.3rem;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ─── Section Galerie (Grille Nette) ─────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.gallery__item {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  background-color: var(--surface);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.gallery__item:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: brightness(0.88) contrast(1.1);
}

.gallery__item:hover img {
  transform: scale(1.03);
  filter: brightness(0.96) contrast(1.1);
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgba(184, 31, 36, 0.1);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery__item:hover .gallery__overlay {
  opacity: 1;
}

/* ─── Section Appel à l'action / Téléchargement ───────────── */
.cta-band {
  padding: var(--sp-section) 0;
  text-align: center;
  position: relative;
  background-color: #09080b;
  border-top: 1px solid var(--border);
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 0.9rem;
  color: var(--text);
}

.cta-band__sub {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 2.2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band__actions {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ─── Pied de Page ───────────────────────────────────────── */
.footer {
  background: var(--ground);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer__socials {
  display: flex;
  gap: 0.75rem;
}

.footer__social {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text-dim);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.footer__social:hover {
  border-color: var(--border-strong);
  color: #fff;
  background-color: var(--surface-raised);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer__copy,
.footer__made {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* ─── Lightbox Épurée (Blackout Cinéma) ──────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(3, 3, 4, 0.96);
}

.lightbox__content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 85vh;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.9);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  background-color: #000;
  transform: scale(0.97);
  transition: transform 0.25s var(--ease-out);
}

.lightbox.active .lightbox__content {
  transform: scale(1);
}

.lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  user-select: none;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  z-index: 2;
  background: rgba(14, 13, 16, 0.9);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lightbox__close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 26px;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
}

.lightbox__prev {
  left: 24px;
}

.lightbox__next {
  right: 24px;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background-color: var(--blood);
  border-color: var(--blood-hover);
  color: #fff;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav__links {
    display: none;
  }

  .story {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .features {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .feature-card,
  .feature-card--large {
    grid-column: span 1;
    height: 270px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .story__stats {
    flex-direction: column;
    gap: 1px;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-band__actions .btn {
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }

  .footer__top {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav__cta span {
    display: none;
  }

  .nav__cta {
    padding: 0.45rem 0.75rem;
  }

  .lightbox__prev,
  .lightbox__next {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .lightbox__prev {
    left: 8px;
  }

  .lightbox__next {
    right: 8px;
  }

  .lightbox__close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
}