/* 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; }
    }

/* ---------- 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/back6.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;
}

.downloads-notes {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.downloads-notes li {
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(11, 117, 209, 0.12);
  border: 1px solid rgba(11, 117, 209, 0.35);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}

/* ---------- SECTIONS TÉLÉCHARGEMENTS ---------- */

.tg-downloads-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.downloads-section-header h2 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.downloads-section-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- GRID & CARTES ---------- */

/* ---------- GRID & CARTES ---------- */

.downloads-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 colonnes fixes sur desktop */
  gap: 1.5rem;
}

/* Responsive : 2 colonnes sur écran moyen, 1 colonne sur mobile */

@media (max-width: 1024px) {
  .downloads-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .downloads-grid {
    grid-template-columns: 1fr;
  }
}


.download-card {
  background: var(--bg-elevated);
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.2rem 1.2rem 1.05rem;
  box-shadow:
    0 18px 35px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(11, 117, 209, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(11, 117, 209, 0.18),
    transparent 55%
  );
  opacity: 0.5;
  pointer-events: none;
}

.download-card > * {
  position: relative;
  z-index: 1;
}

.download-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.download-header h3 {
  font-size: 1.05rem;
}

.download-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.3rem;
}

/* META & TAGS */

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.download-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(11, 117, 209, 0.6);
  background: rgba(11, 117, 209, 0.12);
}

/* BOUTON TÉLÉCHARGER */

.btn-download {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-blue);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  box-shadow:
    0 0 18px rgba(11, 117, 209, 0.9),
    0 0 38px rgba(11, 117, 209, 0.7);
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease;
}

.btn-download:hover {
  background: #0f86f3;
  box-shadow:
    0 0 24px rgba(11, 140, 230, 1),
    0 0 48px rgba(11, 140, 230, 0.9);
  transform: translateY(-1px);
}

.download-extra {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------- RESPONSIVE TÉLÉCHARGEMENTS ---------- */

@media (max-width: 768px) {
  .tg-section {
    padding-inline: 1rem;
  }

  .downloads-title {
    text-align: left;
  }

  .downloads-intro {
    font-size: 0.92rem;
  }

  .downloads-notes {
    flex-direction: column;
    align-items: flex-start;
  }
}
