/* Palette inspirée de ton image */
:root {
  --bg-color: #050608;
  --bg-elevated: #0b0f16;
  --accent-blue: #0b75d1;
  --accent-blue-soft: rgba(11, 117, 209, 0.4);
  --text-color: #f5f5f5;
  --text-muted: #c8c8c8;
}

/* Reset simple */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

/* remplace ton body actuel par ceci (garde les couleurs) */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
}

/* pour que le contenu prenne l’espace restant entre header et footer */
main {
  flex: 1;
}
/* ---------- HEADER & NAV ---------- */

.tg-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(
    to bottom,
    rgba(5, 6, 8, 0.98),
    rgba(5, 6, 8, 0.92),
    rgba(5, 6, 8, 0.88)
  );
  border-bottom: 1px solid var(--accent-blue-soft);
  backdrop-filter: blur(10px);
}

.tg-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */

.tg-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.tg-logo-img {
  width: 40px;
  height: auto;
  /*border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(11, 117, 209, 0.8);*/
}

.tg-logo-text {
  font-family: "Bangers", system-ui, sans-serif;
  text-decoration: none;
  letter-spacing: 0.06em;
  font-size: 1.4rem;
  color: var(--accent-blue);
  text-shadow:
    0 0 8px rgba(11, 117, 209, 0.8),
    0 0 18px rgba(11, 117, 209, 0.6);
}

/* Menu desktop */

.tg-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.tg-nav a {
  position: relative;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

/* Soulignement animé bleu */
.tg-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-blue);
  box-shadow: 0 0 12px rgba(11, 117, 209, 0.9);
  transition: width 0.2s ease;
}

.tg-nav a:hover {
  color: var(--accent-blue);
}

.tg-nav a:hover::after {
  width: 100%;
}

/* Lien du menu pour la page active */
.tg-nav a.active {
  color: var(--accent-blue);
}

.tg-nav a.active::after {
  width: 100%;
}

/* Bouton hamburger (caché sur grand écran) */

.tg-nav-toggle {
  display: none;
  padding: 0.35rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.5rem;
  cursor: pointer;
  outline: none;
}

.tg-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-color);
  margin: 4px 0;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 768px) {
  .tg-header-inner {
    padding-inline: 1rem;
  }

  /* Afficher le hamburger */
  .tg-nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* Cacher le menu horizontal au départ */
  .tg-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(5, 6, 8, 0.98);
    border-bottom: 1px solid var(--accent-blue-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out;
  }

  .tg-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.75rem;
  }

  .tg-nav a {
    font-size: 0.95rem;
  }

  /* Quand le menu est ouvert */
  .tg-nav.is-open {
    max-height: 260px; /* assez pour 4 items */
  }
}






/* Footer Styling (UNCHANGED) */
    .tg-footer {
      background: linear-gradient(to top, rgba(5, 6, 8, 0.98), rgba(5, 6, 8, 0.92));
      border-top: 1px solid var(--accent-blue-soft);
    }
    .tg-footer-inner {
      max-width: 1200px; margin: 0 auto; padding: 0.9rem 1.25rem;
      display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    }
    .tg-footer-left { display: flex; align-items: center; }
    .tg-footer-logo { height: 50px; width: auto; object-fit: contain; filter: drop-shadow(0 0 14px rgba(11, 117, 209, 0.8)); }
    .tg-footer-center { text-align: center; flex: 1; }
    .tg-footer-center p { font-size: 0.85rem; color: var(--text-muted); }
    .tg-footer-right { display: flex; align-items: center; gap: 0.75rem; }
    .tg-social-link {
      display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
      border-radius: 999px; background: rgba(11, 117, 209, 0.1); border: 1px solid rgba(11, 117, 209, 0.35);
      transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    }
    .tg-social-link img { width: 50px; height: auto; object-fit: contain; }
    .tg-social-link:hover { background: var(--accent-blue); box-shadow: 0 0 16px rgba(11, 117, 209, 0.9); transform: translateY(-1px) scale(1.05); }
    @media (max-width: 700px) {
      .tg-footer-inner { flex-direction: column; text-align: center; }
      .tg-footer-right { justify-content: center; }
    }

/* ---------- SECTION VIDÉOS AVEC VIDÉO DE FOND ---------- */

main {
  flex: 1;
  width: 100%;
  display: block; /* Changed from flex to block for better scrolling */
  position: relative;
}

/* Conteneur plein écran entre header et footer */
.video-hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Vidéo en arrière-plan */
.video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.4); /* assombrit pour mieux voir le texte */
}

/* Légère couche sombre par-dessus la vidéo (optionnel) */
.video-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
  z-index: -1;
}

/* Contenu centré */
.video-hero-content {
  position: relative;
  text-align: center;
  padding: 2rem;
}

/* Texte principal "en développement" */
.coming-soon-text {
  font-family: "Bangers", system-ui, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(11, 117, 209, 0.9),
    0 0 20px rgba(11, 117, 209, 0.7);
  animation: pulseText 3s ease-in-out infinite;
}

/* Sous-texte "Arrive bientôt" */
.coming-soon-sub {
  margin-top: 0.75rem;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: pulseText 3s ease-in-out infinite;
  animation-delay: 0.4s;
}

/* Animation de fade in / out + petit zoom */
@keyframes pulseText {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.02);
  }
}

/* Petit ajustement sur mobile */
@media (max-width: 768px) {
  .video-hero-content {
    padding: 1.5rem;
  }
}


/* Container centered like the header */
.video-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

/* Page Title Styling */
.video-header {
  margin-bottom: 3rem;
  text-align: center;
}

.video-header h1 {
  font-family: "Bangers", system-ui, sans-serif;
  font-size: 3rem;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 0 0 15px var(--accent-blue-soft);
  margin-bottom: 0.5rem;
}

.video-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Grid Layout */
.video-grid {
  display: grid;
  /* Creates a responsive grid: columns are at least 320px wide */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Card Styling */
.video-card {
  background-color: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect: Lift card and glow blue */
.video-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-blue);
  box-shadow: 0 10px 30px -10px rgba(11, 117, 209, 0.3);
}

/* Video Wrapper */
.video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9; /* Keeps the 16:9 Youtube shape */
  background: #000;
  position: relative;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text Content inside Card */
.video-content {
  padding: 1.5rem;
}

.video-content h3 {
  font-family: "system-ui", sans-serif; /* Cleaner font for reading titles */
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.video-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Responsive tweak for mobile */
@media (max-width: 600px) {
  .video-header h1 {
    font-size: 2.2rem;
  }
  .video-grid {
    grid-template-columns: 1fr; /* Stack videos on small phones */
  }
}

    /* ---------- SECTIONS GÉNÉRIQUES ---------- */

.tg-section {
  padding: 3rem 1.25rem;
}

.tg-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- HERO TÉLÉCHARGEMENTS ---------- */

/* ---------- HERO TÉLÉCHARGEMENTS ---------- */

.tg-downloads-hero {
  /* 1. The gradient creates a dark filter so text remains readable.
     2. The url() loads your image.
     IMPORTANT: Ensure the path '../images/' is correct relative to your CSS file.
  */
  background: 
    linear-gradient(to bottom, rgba(5, 6, 8, 0.85), rgba(5, 6, 8, 0.60)),
    url('../images/back1.png');

  /* Ensures the image covers the whole area and stays centered */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  
  border-bottom: 1px solid var(--accent-blue-soft);
  
  /* Optional: Add a slight parallax effect for a "gaming" feel */
  background-attachment: fixed; 
}

.downloads-title {
  font-family: "Bangers", system-ui, sans-serif;
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--accent-blue);
  text-shadow:
    0 0 10px rgba(11, 117, 209, 0.9),
    0 0 25px rgba(11, 117, 209, 0.5);
}

.downloads-intro {
  max-width: 720px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.downloads-intro .highlight {
  color: var(--accent-blue);
  font-weight: 600;
}