    /* Palette inspirée de ton image */
    :root {
      --bg-color: #050608;
      --bg-elevated: #0b0f16;
      --card-bg: #0e141f; /* Slightly lighter for cards */
      --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%;
    }

    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);
    }

    main {
      flex: 1;
    }

    /* ---------- HEADER & NAV (UNCHANGED) ---------- */

    .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;
    }

    .tg-logo {
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
      text-decoration: none;
    }

    .tg-logo-img {
      width: 40px;
      height: auto;
    }

    .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);
    }

    .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;
    }

    .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%;
    }

    .tg-nav a.active {
      color: var(--accent-blue);
    }

    .tg-nav a.active::after {
      width: 100%;
    }

    .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;
    }

    @media (max-width: 768px) {
      .tg-header-inner { padding-inline: 1rem; }
      .tg-nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; }
      .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; }
      .tg-nav.is-open { max-height: 260px; }
    }

    /* ---------- NEW RESOURCE LAYOUT STYLES ---------- */

    /* ---------- NEW VIDEO BACKGROUND SECTION ---------- */

    .resources-section {
      /* This allows the video to stretch full width */
      position: relative;
      width: 100%;
      overflow: hidden;
      /* Padding to give space top/bottom */
      padding: 4rem 1.25rem;
      border-bottom: 1px solid var(--accent-blue);
      /* The shadow creates the glow effect downwards onto the next section */
      box-shadow: 0 5px 35px rgba(11, 117, 209, 0.8); 
      /* z-index ensures the glow sits ON TOP of section 2 */
      z-index: 10; 
    }

        .resources-section2 {
      /* This allows the video to stretch full width */
      position: relative;
      width: 100%;
      overflow: hidden;
      /* Padding to give space top/bottom */
      padding: 4rem 1.25rem;
    }

    /* 1. The Video */
    .bg-video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover; /* Ensures video covers area without stretching */
      z-index: 0;
    }

    /* 2. The Dark Filter (Overlay) */
    .video-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      /* Adjust opacity (0.85) to make it darker or lighter */
      background: rgba(5, 6, 8, 0.85);
      z-index: 1;
    }

    /* 3. The Content Container (Restores max-width) */
    .resources-inner {
      position: relative;
      z-index: 2; /* Places text above video/overlay */
      max-width: 1200px;
      margin: 0 auto;
    }

    /* Section Header */
    .section-header {
      text-align: center;
      margin-bottom: 3rem;
    }

    .section-header h1 {
      font-family: "Bangers", system-ui, sans-serif;
      font-size: clamp(2rem, 3vw, 3rem);
      color: var(--accent-blue);
      text-shadow: 0 0 15px rgba(11, 117, 209, 0.5);
      letter-spacing: 1px;
      margin-bottom: 0.5rem;
    }

    .section-header p {
      color: var(--text-muted);
      max-width: 600px;
      margin: 0 auto;
    }

    /* Grid Layout */
    .resources-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 2rem;
    }

    /* Card Design */
    .resource-card {
      background: var(--card-bg);
      border: 1px solid var(--accent-blue-soft);
      border-radius: 16px;
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    /* Hover Effect on Card */
    .resource-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(11, 117, 209, 0.2);
      border-color: var(--accent-blue);
    }

    /* Top glowing accent line on card */
    .resource-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 4px;
      background: var(--accent-blue);
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .resource-card:hover::before {
      opacity: 1;
    }

    /* Card Icon Area */
    .card-icon {
      width: 60px;
      height: 60px;
      background: rgba(11, 117, 209, 0.1);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1.25rem;
      color: var(--accent-blue);
    }
    
    .card-icon svg {
      width: 32px;
      height: 32px;
    }

    /* Card Content */
    .card-content {
      flex: 1; /* Pushes button to bottom */
      margin-bottom: 1.5rem;
    }

    .card-category {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--accent-blue);
      font-weight: 700;
      margin-bottom: 0.5rem;
      display: block;
    }

    .card-title {
      font-size: 1.25rem;
      font-weight: 600;
      color: var(--text-color);
      margin-bottom: 0.75rem;
      line-height: 1.3;
    }

    .card-desc {
      font-size: 0.9rem;
      color: var(--text-muted);
      line-height: 1.5;
    }

    /* Buttons */
    .tg-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.75rem 1.5rem;
      border-radius: 999px;
      border: none;
      background: var(--accent-blue);
      color: #fff;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      font-size: 0.9rem;
      text-decoration: none;
      box-shadow: 0 0 18px rgba(11, 117, 209, 0.4);
      transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
      cursor: pointer;
    }

    /* Secondary Button Style (Outline) */
    .tg-btn-outline {
      background: transparent;
      border: 1px solid var(--accent-blue);
      box-shadow: none;
      color: var(--accent-blue);
      width: 100%; /* Full width on card */
    }

    .tg-btn-outline:hover {
      background: rgba(11, 117, 209, 0.1);
      box-shadow: 0 0 15px rgba(11, 117, 209, 0.3);
      transform: translateY(-2px);
      color: #fff; /* Text turns white on hover */
    }
    
    .tg-btn-outline svg {
      margin-right: 8px;
      fill: currentColor;
    }

    /* 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/imageback2.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;
}
