* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: default;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #000000;
  color: #f5f7ff;
  font-family: Arial, sans-serif;
}

nav {
  position: sticky;
  top: 0;
  width: 100%;
  background: #000000;
  z-index: 1000;
}

nav::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  pointer-events: none;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 90, 170, 0.10) 10%,
    rgba(0, 140, 255, 0.22) 22%,
    rgba(0, 195, 255, 0.60) 38%,
    rgba(255, 255, 255, 0.98) 50%,
    rgba(0, 195, 255, 0.60) 62%,
    rgba(0, 140, 255, 0.22) 78%,
    rgba(0, 90, 170, 0.10) 90%,
    transparent 100%
  );
  box-shadow:
    0 0 3px rgba(0, 195, 255, 0.35),
    0 0 8px rgba(0, 160, 255, 0.22),
    0 0 16px rgba(0, 110, 255, 0.10);
}

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* BASE */
.burger span {
  position: absolute;
  width: 24px;
  height: 2px;
  background: #fff;
  left: 50%;
  transform-origin: center;
  transition: all 0.10s ease;

  /* GLOW identique nav */
  box-shadow:
    0 0 1px rgba(255, 255, 255, 0.9),
    0 0 4px rgba(0, 200, 255, 0.6),
    0 0 10px rgba(0, 150, 255, 0.3);

  
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform-origin: center;
}



/* creux interne */
.burger::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 2;

  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-bottom: 22px solid rgba(0, 0, 0, 0.456); /* couleur du fond */

  transform: translate(-50%, -58%) scale(0.72);
  transform-origin: 50% 66%;
  opacity: 0;

  animation: triangleWaveInner 1.7s ease-out infinite;
}


.burger::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;

  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;

  transform: translate(-50%, -34%) scale(1);
  transform-origin: center;

  z-index: 4;
  clip-path: none;

  box-shadow:
    0 0 3px rgba(0, 200, 255, 0.3);

  animation: dotPulse 1.7s ease-out infinite;
}

.burger.active::before,
.burger.active::after {
  animation: none;
  opacity: 0;
}


/* === TRIANGLE  === */

.burger span:nth-child(1) {
  top: 50%;
}

.burger span:nth-child(2) {
  top: 50%;
}

.burger span:nth-child(3) {
  top: 50%;
}

.burger:not(.active) span:nth-child(1) {
  animation: pulse1 1.7s ease-out infinite;
}

.burger:not(.active) span:nth-child(2) {
  animation: pulse2 1.7s ease-out infinite;
}

.burger:not(.active) span:nth-child(3) {
  animation: pulse3 1.7s ease-out infinite;
}

@keyframes dotPulse {
  0%, 100% {
    transform: translate(-50%, -34%) scale(1);
    background: rgba(255, 255, 255, 0.8);
    box-shadow:
      0 0 3px rgba(0, 200, 255, 0.3);
  }

  10% {
    transform: translate(-50%, -34%) scale(1.4); /* pulse visible */
    background: rgba(200, 235, 255, 1);
    box-shadow:
      0 0 6px rgba(120, 220, 255, 1),
      0 0 14px rgba(0, 180, 255, 0.9),
      0 0 28px rgba(0, 140, 255, 0.6);
  }

  24% {
    transform: translate(-50%, -34%) scale(1);
  }
}

@keyframes pulse1 {
  0%, 100% {
    transform: translate(-75%, -3px) rotate(-60deg) scale(1);
    box-shadow:
      0 0 3px rgba(210, 235, 255, 1),
      0 0 8px rgba(70, 210, 255, 0.9),
      0 0 18px rgba(0, 170, 255, 0.72),
      0 0 32px rgba(0, 130, 255, 0.5),
      0 0 48px rgba(0, 110, 255, 0.28);
  }
  10% {
    transform: translate(-75%, -3px) rotate(-60deg) scale(1.095);
    box-shadow:
      0 0 4px rgba(235, 245, 255, 1),
      0 0 12px rgba(120, 225, 255, 1),
      0 0 28px rgba(0, 190, 255, 1),
      0 0 44px rgba(0, 145, 255, 0.82),
      0 0 64px rgba(0, 120, 255, 0.5);
  }
  24% {
    transform: translate(-75%, -3px) rotate(-60deg) scale(1);
  }
}

@keyframes pulse2 {
  0%, 100% {
    transform: translate(-25%, -3px) rotate(60deg) scale(1);
    box-shadow:
      0 0 3px rgba(210, 235, 255, 1),
      0 0 8px rgba(70, 210, 255, 0.9),
      0 0 18px rgba(0, 170, 255, 0.72),
      0 0 32px rgba(0, 130, 255, 0.5),
      0 0 48px rgba(0, 110, 255, 0.28);
  }
  10% {
    transform: translate(-25%, -3px) rotate(60deg) scale(1.095);
    box-shadow:
      0 0 4px rgba(235, 245, 255, 1),
      0 0 12px rgba(120, 225, 255, 1),
      0 0 28px rgba(0, 190, 255, 1),
      0 0 44px rgba(0, 145, 255, 0.82),
      0 0 64px rgba(0, 120, 255, 0.5);
  }
  24% {
    transform: translate(-25%, -3px) rotate(60deg) scale(1);
  }
}

@keyframes pulse3 {
  0%, 100% {
    transform: translate(-50%, 7px) scale(1);
    box-shadow:
      0 0 3px rgba(210, 235, 255, 1),
      0 0 8px rgba(70, 210, 255, 0.9),
      0 0 18px rgba(0, 170, 255, 0.72),
      0 0 32px rgba(0, 130, 255, 0.5),
      0 0 48px rgba(0, 110, 255, 0.28);
  }
  10% {
    transform: translate(-50%, 7px) scale(1.095);
    box-shadow:
      0 0 4px rgba(235, 245, 255, 1),
      0 0 12px rgba(120, 225, 255, 1),
      0 0 28px rgba(0, 190, 255, 1),
      0 0 44px rgba(0, 145, 255, 0.82),
      0 0 64px rgba(0, 120, 255, 0.5);
  }
  24% {
    transform: translate(-50%, 7px) scale(1);
  }
}

/* === ETAT ACTIF (CROIX) === */

/* on recentre TOUT */
.burger.active span {
  left: 50%;
  top: 50%;
  animation: none !important;
  transition: none;
}

/* rotation croix */
.burger.active span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.burger.active span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* on cache la base */
.burger.active span:nth-child(3) {
  opacity: 0;
}

.nav-links {
  position: relative;
  z-index: 1;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 100px;
  padding: 20px 20px;
}

nav a {
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.15s ease, color 0.2s ease;
  cursor: pointer;
}

nav a:hover {
  color: #f8fdff;
  transform: scale(1.15);
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.9),
    0 0 4px rgba(0, 200, 255, 0.6),
    0 0 10px rgba(0, 150, 255, 0.3);
}

header {
  display: flex;
  justify-content: center;
  padding: 24px 20px 24px;
}

header img {
  width: 66%;
  max-width: 900px;
  min-width: 420px;
  height: auto;
  padding-bottom: 50px;
  padding-top: 50px;
}

main {
  width: min(1200px, 92%);
  margin: 0 auto;
  text-align: center;
  padding: 10px 0 40px;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 1.5rem;
  scroll-margin-top: 100px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 60px;
  opacity: 0.8;
}

.intro {
  max-width: 950px;
  margin: 0 auto 40px;
  padding: 0 20px;
  text-align: center;
}

.hidden-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.section-divider {
  display: block;
  margin: 42px auto 20px;
  width: 75%;
  max-width: 75%;
  height: 120px;
}

.intro-tagline {
  max-width: 900px;
  margin: 0 auto 38px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 2;
  color: white;
}

.intro-text {
  max-width: 860px;
  margin: 5px auto;
  font-size: 1.08rem;
  line-height: 2.15;
  color: rgba(245, 247, 255, 0.82);
}

.universe-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 10px 0;
}

.universe-image {
    width: 100%;
    max-width: 10px; /* ajuste la taille ici */
    height: auto;
    display: block;
    margin: 30px auto 10;
    opacity: 0.5;
}


.game-section {
  max-width: 950px;
  margin: 0 auto 40px;
  padding: 0 20px;
  text-align: center;
}

.game-logo {
  display: block;
  margin: -100px auto -40px;
  width: min(420px, 78%);
  height: auto;
  opacity: 0.95;
}

.game-section .section-title {
  margin-bottom: 40px;
}

.hero-video {
    width: 100%;
}

.hero-video video {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 640px) {
  .hero-video {
    width: 110%;
    margin-left: -5%;
  }
}

.game-text {
  max-width: 860px;
  margin: 0 auto 35px;
  font-size: 1.08rem;
  line-height: 2.05;
  color: rgba(245, 247, 255, 0.82);
}

.game-text p{
  margin-bottom: 35px;
}

#unpathed {
  margin-top: 0;
  padding-top: 0;
}

#unptd {
  scroll-margin-top: 90px;
}

#ennemis {
    scroll-margin-top: 90px;
}

.enemy-carousel {
  position: relative;
  width: min(1100px, 90%);
  margin: 50px auto 20px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.enemy-card {
  display: flex;
  width: 100%;
  min-width: 100%;
  align-items: center;
  gap: 70px;
  padding: 30px 70px;
  box-sizing: border-box;
}


.enemy-card img {
  width: 42%;
  max-width: 450px;
  height: 500px;
  object-fit: contain;
  flex-shrink: 0;
}

.enemy-content {
  width: 58%;
  text-align: left;
}

.enemy-content h3 {
  margin: 0 0 20px;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #ffffff;
}



.enemy-content p {
  margin: 0;
  max-width: 550px;
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: justify;
  color: #c9c9c9;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 3rem;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover {
  opacity: 0.65;
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.5;
}

.carousel-dots .dot.active {
  background: #ffffff;
  opacity: 1;
}

@media (max-width: 768px) {
  .enemy-carousel {
    width: 100%;
    margin-top: 30px;
  }

  .enemy-card {
    flex-direction: column;
    gap: 20px;
    padding: 20px 45px;
  }

  .enemy-card img {
    width: 100%;
    height: 360px;
  }

  .enemy-content {
    width: 100%;
  }

  .enemy-content h3 {
    text-align: center;
    font-size: 2rem;
  }

  .enemy-content p {
    text-align: left;
    font-size: 0.95rem;
  }

  .carousel-btn {
    font-size: 2.2rem;
  }

  .carousel-btn.prev {
    left: 10px;
  }

  .carousel-btn.next {
    right: 10px;
  }
}

.contact-section {
  max-width: 950px;
  margin: 0 auto 40px;
  padding: 0 20px;
  text-align: center;
}

.contact-text {
  max-width: 760px;
  margin: 0 auto 34px;
  font-size: 1.05rem;
  line-height: 2;
  color: rgba(245, 247, 255, 0.78);
}

.contact-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  flex-direction: column;
  margin-bottom: 28px;
}

.contact-button {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 320px;
  padding: 16px 24px;
  background: #000;
  border: 1px solid rgba(0, 140, 255, 0.50);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  
  transition: transform 0.15s ease, color 0.2s ease, border-color 0.2s ease;
}



.contact-button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  pointer-events: none;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 90, 170, 0.10) 10%,
    rgba(0, 140, 255, 0.22) 22%,
    rgba(0, 195, 255, 0.60) 38%,
    rgba(255, 255, 255, 0.98) 50%,
    rgba(0, 195, 255, 0.60) 62%,
    rgba(0, 140, 255, 0.22) 78%,
    rgba(0, 90, 170, 0.10) 90%,
    transparent 100%
  );
  box-shadow:
    0 0 3px rgba(0, 195, 255, 0.20),
    0 0 8px rgba(0, 160, 255, 0.12);
}

.contact-button:hover {
  transform: scale(1.05);
  cursor: pointer;
  color: #f8fdff;
  border-color: rgba(0, 195, 255, 0.22);
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.9),
    0 0 4px rgba(0, 200, 255, 0.6),
    0 0 10px rgba(0, 150, 255, 0.3);
}

.contact-mail {
  text-transform: none;
  letter-spacing: 0.03em;
}

.site-footer {
  text-align: center;
  padding: 20px 20px 28px;
  color: rgba(245, 247, 255, 0.32);
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particles span {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: rgba(0, 200, 255, 0.9);
  box-shadow:
    0 0 8px rgba(0, 200, 255, 0.75),
    0 0 18px rgba(0, 150, 255, 0.45),
    0 0 30px rgba(0, 120, 255, 0.22);
  animation: rise linear infinite;
}

@keyframes rise {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }

  10% {
    opacity: 0.9;
  }

  100% {
    transform: translate3d(0, -110vh, 0);
    opacity: 0;
  }
}

section {
  margin: 0 auto 60px;
  padding: 0 20px;
  max-width: 1200px !important;
  border: none;
  border-radius: 0;
}

section h2 {
  font-size: 2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: #ffffff;
}

section p {
  max-width: 950px !important;
  margin: 0 auto;
  color: rgba(245, 247, 255, 0.78);
  line-height: 2;
  font-size: 1.05rem;
}

main > a {
  display: inline-block;
  margin-top: 10px;
  padding: 14px 26px;
  border: 1px solid #4f8cff;
  border-radius: 8px;
  color: #4f8cff;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s;
}

main > a:hover {
  background: #4f8cff;
  color: black;
}

footer {
  text-align: center;
  padding: 48px 20px 28px;
  color: rgba(245, 247, 255, 0.45);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .nav-links {
    gap: 50px;
  }

  .section-divider {
    width: 320px;
    max-width: 80%;
  }
}

@media (max-width: 640px) {
  nav {
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
  }

  .burger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;

    flex-direction: column;
    align-items: center;
    gap: 0;

    background: rgba(0, 0, 0, 0.96);

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);

    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      transform 0.25s ease;
  }

  .nav-links.open {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
    padding: 10px 0 14px;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 18px 20px;
    font-size: 14px;
  }

  header img {
  width: 100% !important;
  min-width: 0;
  padding-top: 24px;
  padding-bottom: 24px;
  }  
}

  header {
    padding-top: 20px;
  }



  .section-divider {
    width: 220px;
    max-width: 85%;
    margin-bottom: 30px;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  h2{
    font-family: 'Cinzel', serif;
  letter-spacing: 2px; 
  font-weight: 500;
  }

  @media (max-width: 768px) {
    .enemy-content h3 {
        font-size: 1.5rem;
    }
}

  h3{
    font-family: 'Cinzel', serif;
  letter-spacing: 2px; 
  font-weight: 500;
  }

  .intro-tagline {
    line-height: 1.8;
  }

  .intro-text,
  section p {
    line-height: 1.9;
    font-size: 1rem;
  }

  main > a {
    width: 100%;
    max-width: 280px;
  }
