@font-face {
  font-family: 'Orbitron';
  src: url('/assets/fonts/orbitron/Orbitron-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Orbitron';
  src: url('/assets/fonts/orbitron/Orbitron-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Orbitron', sans-serif;
  background: #0d0d0d;
  color: #f1f1f1;
}

/* ================= HEADER ================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(15,15,15,0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
  z-index: 1000;
  border-bottom: 1px solid #222;
}

header::after {
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:2px;
  background: linear-gradient(90deg, transparent, #ff7a00, transparent);
}

.logo img {
  height: 35px;
}

/* NAV DESKTOP */
nav {
  display: flex;
  align-items: center;
}

nav a {
  margin-left: 30px;
  text-decoration: none;
  color: #ccc;
}

nav a:hover {
  color: #ff7a00;
  transition: 0.3s;
}

nav .discord {
  padding: 8px 18px;
  border: 1px solid #ff7a00;
  border-radius: 30px;
}

/* ================= BURGER ================= */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.burger span {
  width: 26px;
  height: 3px;
  background: #ff7a00;
  transition: 0.3s;
}

.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ================= HERO ================= */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 80px;
  padding-top: 120px;
  background:
    radial-gradient(circle at top right, #ff7a0020, transparent),
    linear-gradient(180deg, #0d0d0d, #050505);
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.2;
  margin-bottom: 30px;
}

.hero h1 span {
  color: #ff7a00;
  text-shadow: 0 0 20px #ff7a00;
}

.hero p {
  font-family: Arial, sans-serif;
  font-size: 17px;
  color: #bbb;
  margin-bottom: 40px;
}

/* ================= BUTTON ================= */
.btn {
  display: inline-block;
  padding: 15px 35px;
  margin-left:5px;
  margin-right:5px;
  margin-bottom:20px;
  background: #ff7a00;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 40px;
  box-shadow: 0 0 25px #ff7a00;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px #ff7a00;
}

/* ================= FEATURES ================= */
.features {
  padding: 120px 80px;
  background: linear-gradient(180deg, #0f0f0f, #151515);
  border-top: 1px solid #1f1f1f;
  border-bottom: 1px solid #1f1f1f;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.feature {
  background: #161616;
  padding: 35px;
  border-radius: 18px;
  border: 1px solid #222;
  transition: 0.3s;
}

.feature:hover {
  border-color: #ff7a00;
  transform: translateY(-6px);
}

.feature h3 {
  color: #ff7a00;
  margin-bottom: 15px;
}

.feature p {
  font-family: Arial, sans-serif;
  color: #aaa;
  font-size: 15px;
  line-height: 1.6;
}

/* ================= JEUX ================= */
.games-section {
  padding: 140px 80px;
  background: #111;
  text-align: center;
}

.games-section h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.games-intro {
  font-family: Arial, sans-serif;
  color: #aaa;
  margin-bottom: 60px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.game-card {
  background: #161616;
  border: 1px solid #222;
  border-radius: 18px;
  padding: 20px 20px;
  text-align: center;
  transition: 0.3s;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: #ff7a00;
}

.game-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  margin-top: 0px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 12px #ff7a0040);
  background: #0d0d0d;
}


.game-card span {
  display: block;
  font-size: 14px;
}

/* ================= FOOTER ================= */
footer {
  padding: 50px 20px;
  background: linear-gradient(180deg, #111, #050505);
  color: #666;
  text-align: center;
  font-size: 13px;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: #ff7a00;
}

/* ================= TEAM ================= */
.team-section {
  padding: 140px 20px;
  background: linear-gradient(180deg, #0f0f0f, #151515);
  text-align: center;
}

.team-section h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.team-intro {
  font-family: Arial, sans-serif;
  color: #aaa;
  max-width: 600px;
  margin: 0 auto 80px;
  line-height: 1.6;
}

.team-section h2 {
  font-size: 26px;
  margin: 80px 0 40px;
  color: #ff7a00;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* GRID (COMME LES JEUX) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto 40px;
}

/* CARD */
.team-card {
  background: #161616;
  border: 1px solid #222;
  border-radius: 18px;
  padding: 30px 20px;
  text-align: center;
  transition: 0.3s;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: #ff7a00;
}

/* AVATAR */
.team-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 2px solid #ff7a00;
  box-shadow: 0 0 20px #ff7a0040;
}

/* NAME */
.team-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

/* ROLE */
.team-card span {
  display: inline-block;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  background: #222;
  color: #ccc;
}

/* ROLE COLORS */
.team-card.fondateur span {
  background: #ff7a00;
  color: #000;
  font-weight: bold;
}

.team-card.game-spirit span {
  background: #b30000;
  color: #fff;
}

.team-card.vip span {
  background: #ffcc00;
  color: #000;
}

/* CTA */
.team-section .btn {
  margin-top: 80px;
}

/* ================= ANIMATION SCROLL ================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= HERO VIDEO ================= */

.hero-video-container {
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Overlay utilisé pour :
   - assombrir en mode site
   - faire les fades du loop invisible
*/
.hero-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 1;
  pointer-events: none;
  opacity: 0.7; /* sombre par défaut */
  transition: opacity 0.8s ease;
}

.hero-content {
  position: relative;
  z-index: 2;
  transition: opacity 0.4s ease;
}

/* ===== MODE TRAILER ===== */

.hero-video-container.trailer-mode .hero-overlay {
  opacity: 0; /* plein écran vidéo */
}

.hero-video-container.trailer-mode .hero-content {
  opacity: 0;
  pointer-events: none;
}

/* ===== HERO TOGGLE MODE ===== */

.hero-video-container.trailer-mode .hero-overlay {
  background: rgba(0,0,0,0); /* plus sombre */
}

.hero-video-container.trailer-mode .hero-content {
  opacity: 0;
  pointer-events: none;
}

.hero-video-container.trailer-mode .hero-video {
  filter: none;
}

.hero-overlay,
.hero-content {
  transition: opacity 0.4s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: black;
  z-index: 1;
  pointer-events: none;
  animation: fadeInVideo 1.5s ease forwards;
}

.video-toggle {
  position: absolute;
  top: 110px;
  right: 40px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: 1px solid #ff7a00;
  color: #fff;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.video-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px #ff7a00;
}

.icon-unmuted {
  display: none;
}

.hero-video-container.trailer-mode .icon-muted {
  display: none;
}

.hero-video-container.trailer-mode .icon-unmuted {
  display: block;
}

@keyframes fadeInVideo {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.7; /* garde léger assombrissement */
  }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {

  header {
    padding: 0 24px;
  }

  .burger {
    display: flex;
    z-index: 1100;
  }

  nav {
    position: fixed;
    top: 0px;
    left: 0;
	bottom:0px;
    width: 100%;
    height: 100%;
    background: #0d0d0d;

    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;

    opacity: 0;
    visibility: hidden;   /* IMPORTANT */
    pointer-events: none;
    transform: translateY(-15px);

    transition: opacity 0.3s ease, transform 0.3s ease;
	
	z-index:1000;
  }

  nav.open {
    opacity: 1;
    visibility: visible;  /* IMPORTANT */
    pointer-events: auto;
    transform: translateY(0);
  }

  nav a {
    margin: 0;
    font-size: 22px;
  }

  .hero-video-container {
    cursor: pointer;
  }

  .hero {
    padding: 140px 24px 0;
    text-align: center;
    justify-content: center;
  }

  .hero h1 {
    font-size: 34px;
  }
  
  .hero-video {
    object-position: center top;
  }

  .features,
  .games-section {
    padding: 90px 24px;
  }

  .team-section {
    padding: 120px 24px;
  }

  .team-section h1 {
    font-size: 34px;
  }

  .team-section h2 {
    font-size: 22px;
  }

  .team-grid {
    gap: 24px;
  }
  
}

/* ================= TWITCH LIVE ================= */

.live-section {
  padding: 120px 80px;
  background: linear-gradient(180deg, #0f0f0f, #151515);
  border-top: 1px solid #1f1f1f;
  border-bottom: 1px solid #1f1f1f;
  display: none;
}

.live-section.visible {
  display: block;
}

.live-container {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== VIDEO STYLE IDENTIQUE À YOUTUBE ===== */

.live-thumbnail {
  flex: 1;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #222;
  background: #111;
  box-shadow: 0 0 30px #000;
  transition: 0.3s ease;
}

.live-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-thumbnail:hover {
  border-color: #ff7a00;
  box-shadow: 0 0 40px #ff7a0020;
}

.live-content {
  flex: 1;
}

.live-badge {
  display: inline-block;
  background: #ff0000;
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.live-content h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.live-content p {
  color: #aaa;
  margin-bottom: 10px;
  font-family: Arial, sans-serif;
}

.live-viewers {
  display: block;
  margin-bottom: 25px;
  color: #ff7a00;
  font-weight: bold;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {

  .live-section {
    padding: 90px 24px;
  }

  .live-container {
    flex-direction: column;
    text-align: center;
  }

}

/* ================= YOUTUBE LATEST ================= */

.youtube-section {
  display: none;
  padding: 120px 80px;
  background: #0f0f0f;
  border-top: 1px solid #1f1f1f;
}

.youtube-container {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== VIDEO RESPONSIVE ===== */

.youtube-video {
  flex: 1;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #222;
  background: #111;
  transition: 0.3s ease;
}

.youtube-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.youtube-video:hover {
  border-color: #ff7a00;
  box-shadow: 0 0 40px #ff7a0020;
}

.youtube-content {
  flex: 1;
}

.youtube-content h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.youtube-content h3 {
  font-family: Arial, sans-serif;
  color: #bbb;
  margin-bottom: 30px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {

  .youtube-section {
    padding: 90px 24px;
  }

  .youtube-container {
    flex-direction: column;
    text-align: center;
  }

  .youtube-video {
    width: 100%;
  }

}

/* ================= EVENTS ================= */

.events-section {
  padding: 140px 20px;
  background: linear-gradient(180deg, #0f0f0f, #151515);
  text-align: center;
}

.events-section h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.events-intro {
  font-family: Arial, sans-serif;
  color: #aaa;
  max-width: 600px;
  margin: 0 auto 80px;
  line-height: 1.6;
}

/* GRID */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

/* CARD */
.event-card {
  background: #161616;
  border: 1px solid #222;
  border-radius: 18px;
  overflow: hidden; /* important */
  transition: 0.3s;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-6px);
  border-color: #ff7a00;
}

/* IMAGE BANNIERE PRO */
.event-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 200px;   /* limite la hauteur */
  object-fit: cover;
  display: block;
}

/* CONTENU */
.event-content {
  padding: 25px;
}

.events-section .btn {
  margin-top: 80px;
}

/* TITLE */
.event-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

/* GAME TAG */
.event-game {
  display: inline-block;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  background: #222;
  color: #ccc;
  margin-bottom: 10px;
}

/* DATE */
.event-date {
  display: block;
  margin-bottom: 15px;
  color: #ff7a00;
  font-weight: bold;
  font-size: 14px;
}

/* DESCRIPTION */
.event-description {
  font-family: Arial, sans-serif;
  color: #aaa;
  font-size: 14px;
  line-height: 1.5;
}

/* EMPTY */
.events-empty {
  grid-column: 1 / -1;
  color: #777;
  font-family: Arial, sans-serif;
  margin-top: 40px;
}

.admin-link {
  background: #ff7a00;
  color: #000 !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: bold;
}

.admin-link:hover {
  background: #ff9d2e;
}