/* ==========================================================
   PROJET OPTIMUS — Gaming · Cosy · High-tech
   ========================================================== */

:root {
  --bg-0: #07070d;
  --bg-1: #0d0d18;
  --bg-2: #141428;
  --surface: #17172a;
  --text: #f2f2f6;
  --text-dim: #a8a8bd;
  --neon-violet: #8a5cff;
  --neon-cyan: #00e0ff;
  --gold: #ffb347;
  --danger: #ff4f6d;
  --radius: 14px;
  --shadow-neon: 0 0 18px rgba(138, 92, 255, .45), 0 0 40px rgba(0, 224, 255, .15);
  --max-w: 1200px;
  --nav-h: 72px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background subtle grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(138, 92, 255, .12), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(0, 224, 255, .10), transparent 55%);
  z-index: -1;
}

/* ============ UTIL ============ */
.container { width: min(100% - 2.5rem, var(--max-w)); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.section__head { text-align: center; margin-bottom: clamp(2rem, 5vw, 4rem); }
.eyebrow {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  font-size: .82rem;
  margin: 0 0 .75rem;
}
h1, h2, h3 { font-family: 'Orbitron', 'Rajdhani', sans-serif; line-height: 1.1; margin: 0 0 1rem; letter-spacing: .02em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 700; }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--text-dim); max-width: 60ch; }
.lead.center { margin-inline: auto; }
.center { text-align: center; }
.text-neon {
  background: linear-gradient(90deg, var(--neon-violet), var(--neon-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gold { color: var(--gold); }
.warning { color: var(--gold); font-weight: 500; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.5rem;
  border-radius: 999px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .95rem;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--neon-violet), #5c28ff);
  color: #fff;
  box-shadow: var(--shadow-neon);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 24px rgba(138, 92, 255, .7), 0 0 60px rgba(0, 224, 255, .25); }
.btn--ghost {
  border: 1px solid rgba(255, 255, 255, .25);
  color: var(--text);
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, .04);
}
.btn--ghost:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); }

/* ============ NAV ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 2rem);
  z-index: 50;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 20, .75);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, .06);
}
.nav__brand {
  display: inline-flex;
  gap: .35rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  letter-spacing: .08em;
}
.nav__logo { font-size: 1.05rem; }
.nav__logo--accent {
  background: linear-gradient(90deg, var(--neon-violet), var(--neon-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav__links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .9rem;
}
.nav__links a { position: relative; padding: .25rem 0; color: var(--text); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-violet), var(--neon-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__burger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 6px; align-items: center; }
.nav__burger span { width: 24px; height: 2px; background: var(--text); transition: transform .3s ease, opacity .3s ease; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(10, 10, 20, .96);
    backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 1.6rem;
    font-size: 1.1rem;
    transform: translateY(-120%);
    transition: transform .35s ease;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .nav.is-open .nav__links { transform: translateY(0); }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  padding: var(--nav-h) 1.25rem 2rem;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 13, .55) 0%, rgba(7, 7, 13, .35) 45%, rgba(7, 7, 13, .95) 100%),
    radial-gradient(circle at 50% 40%, transparent, rgba(7, 7, 13, .4));
  z-index: 1;
}
.hero__content { position: relative; z-index: 2; max-width: 920px; }
.hero__kicker {
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin: 0 0 1rem;
  font-size: .85rem;
}
.hero__title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.6rem, 9vw, 6.5rem);
  font-weight: 900;
  line-height: .95;
  margin: 0;
  display: flex;
  flex-direction: column;
  letter-spacing: .04em;
}
.hero__title--neon {
  background: linear-gradient(90deg, var(--neon-violet), var(--neon-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(138, 92, 255, .55));
}
.hero__tagline {
  margin: 1.5rem auto 2.25rem;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--text-dim);
  max-width: 30ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-radius: 20px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}
.hero__scroll span {
  width: 3px;
  height: 8px;
  background: var(--neon-cyan);
  border-radius: 2px;
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ============ CONCEPT ============ */
.concept {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .concept { grid-template-columns: 1.1fr 1fr; } }
.concept__media img {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow-neon);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.concept__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.75rem;
}
.concept__tags li {
  padding: .5rem 1rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: .06em;
  font-size: .92rem;
}

/* ============ UNIVERS GRID ============ */
.univers-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .univers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .univers-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid rgba(255, 255, 255, .06);
  transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(138, 92, 255, .5);
  box-shadow: var(--shadow-neon);
}
.card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 1.5rem; }
.card__icon { font-size: 1.8rem; margin: 0 0 .25rem; }
.card p:last-child { color: var(--text-dim); margin: 0; }

/* ============ DUALSENSE ============ */
.dualsense {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .dualsense { grid-template-columns: 1fr 1.1fr; } }
.dualsense__media img {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow-neon);
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.bullets { display: grid; gap: .6rem; margin: 1.25rem 0 1.5rem; }
.bullets li {
  padding: .5rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .08);
  font-size: 1.02rem;
}

/* ============ BAR GRID ============ */
.bar-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .bar-grid {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .bar-grid__item--big { grid-row: 1 / span 2; }
}
.bar-grid__item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .06);
}
.bar-grid__item img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform .6s ease;
}
.bar-grid__item:hover img { transform: scale(1.04); }
.bar-grid__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .85));
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============ EVENTS ============ */
.event {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  grid-template-columns: 1fr;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.event:first-of-type { border-top: 0; }
@media (min-width: 860px) {
  .event { grid-template-columns: 1fr 1fr; }
  .event--reverse .event__media { order: 2; }
}
.event__media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .08);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.event__media--mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.event__media--mosaic img {
  aspect-ratio: 1/1;
  border-radius: 10px;
}
.event__icon { font-size: 2rem; margin: 0 0 .25rem; }

/* Formules anniversaire */
.formules {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .formules { grid-template-columns: 1fr 1fr; } }
.formule {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid rgba(255, 255, 255, .08);
}
.formule--prime {
  border-color: rgba(255, 179, 71, .35);
  box-shadow: 0 0 20px rgba(255, 179, 71, .1);
}
.formule__badge {
  position: absolute;
  top: -12px;
  right: 1rem;
  background: linear-gradient(90deg, var(--gold), #ff8a47);
  color: #140a00;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: .15em;
  font-size: .75rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  margin: 0;
}
.formule__name {
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .95rem;
  margin: 0 0 .5rem;
  color: var(--text-dim);
}
.formule__price {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  margin: 0 0 1rem;
  color: var(--text);
}
.formule--prime .formule__price { color: var(--gold); }
.formule__price span { font-size: .9rem; font-weight: 500; color: var(--text-dim); }
.formule ul { display: grid; gap: .4rem; margin: 0 0 1rem; }
.formule ul li {
  padding-left: 1.25rem;
  position: relative;
  font-size: .95rem;
  color: var(--text-dim);
}
.formule ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--neon-cyan);
}
.formule--prime ul li::before { color: var(--gold); }
.formule__min {
  margin: 0;
  font-size: .82rem;
  font-style: italic;
  color: var(--text-dim);
}

/* ============ MISS GUYANE ============ */
.miss__video {
  max-width: 960px;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(138, 92, 255, .3);
  box-shadow: var(--shadow-neon);
}
.miss__video video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  object-fit: cover;
}

/* ============ GALERIE ============ */
.galerie {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 180px;
}
@media (min-width: 720px) { .galerie { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; } }
@media (min-width: 1060px) { .galerie { grid-template-columns: repeat(4, 1fr); } }
.galerie img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .05);
  transition: transform .5s ease, box-shadow .3s ease;
}
.galerie img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-neon);
}
.galerie img:nth-child(1),
.galerie img:nth-child(7) { grid-row: span 2; }

/* ============ INFOS PRATIQUES ============ */
.infos__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .infos__grid { grid-template-columns: repeat(3, 1fr); } }
.info-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid rgba(255, 255, 255, .08);
}
.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text);
}
.horaires li {
  display: flex;
  justify-content: space-between;
  padding: .55rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .08);
  font-size: .95rem;
}
.horaires li:last-child { border-bottom: 0; }
.horaires li span:first-child { color: var(--text-dim); letter-spacing: .05em; }
.horaires li span:last-child { font-family: 'Rajdhani', sans-serif; font-weight: 600; }
.horaires li.closed span:last-child { color: var(--danger); }
.info-card__big {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}
.info-card__big a:hover { color: var(--neon-cyan); }
.socials {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}
.socials a {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .9rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: border-color .25s ease, color .25s ease;
  font-size: .95rem;
}
.socials a:hover { border-color: var(--neon-violet); color: var(--neon-violet); }
.socials svg { flex: 0 0 auto; }

/* ============ FOOTER ============ */
.footer {
  background: #050509;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .05);
}
.footer__inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
@media (min-width: 720px) {
  .footer__inner { grid-template-columns: 2fr 1fr 1fr; align-items: start; }
}
.footer__brand p {
  color: var(--text-dim);
  margin-top: .75rem;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: .85rem;
}
.footer__col a { display: block; padding: .2rem 0; }
.footer__col a:hover { color: var(--neon-cyan); }
.footer__col--socials a { color: var(--text-dim); }
.footer__bottom {
  text-align: center;
  font-size: .82rem;
  color: var(--text-dim);
  margin: 1.5rem 0 0;
  letter-spacing: .05em;
}

/* ============ REVEAL ON SCROLL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section scroll anchors (compensate sticky nav) */
#concept, #univers, #events, #miss, #infos { scroll-margin-top: calc(var(--nav-h) + 1rem); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__video { display: none; }
  .hero { background: url('../images/projet_optimus_presentation.jpeg') center/cover; }
}
