/* ── MAIN STYLES ── */
    :root {
      --black: #050507;
      --deep: #0a0a0f;
      --carbon: #111118;
      --panel: #16161f;
      --border: #2a2a3a;
      --blue: #0c4f8a;
      --blue-dim: #083868;
      --blue-glow: rgba(12, 79, 138, 0.35);
      --white: #f0f0f5;
      --grey: #8a8aa0;
      --light-grey: #c0c0d0;
    }

    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      background: var(--black);
      color: var(--white);
      font-family: 'Barlow', sans-serif;
      font-weight: 300;
      overflow-x: hidden;
      cursor: none;
    }

    /* ── CUSTOM CURSOR ── */
    #cursor {
      position: fixed; top: 0; left: 0; width: 12px; height: 12px;
      background: var(--blue); border-radius: 50%;
      pointer-events: none; z-index: 9999;
      transform: translate(-50%, -50%);
      transition: transform 0.08s ease, background 0.2s;
      mix-blend-mode: difference;
    }
    #cursor-ring {
      position: fixed; top: 0; left: 0; width: 36px; height: 36px;
      border: 1px solid rgba(12,79,138,0.5); border-radius: 50%;
      pointer-events: none; z-index: 9998;
      transform: translate(-50%, -50%);
      transition: transform 0.18s ease, width 0.2s, height 0.2s, border-color 0.2s;
    }
    a:hover ~ #cursor, button:hover ~ #cursor { transform: translate(-50%,-50%) scale(2.5); }

    /* ── NOISE OVERLAY ── */
    body::before {
      content: '';
      position: fixed; inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
      pointer-events: none; z-index: 0; opacity: 0.4;
    }

    /* ── NAV ── */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 4rem;
      height: 72px;
      border-bottom: 1px solid transparent;
      transition: border-color 0.4s, background 0.4s, backdrop-filter 0.4s;
    }
    nav.scrolled {
      background: rgba(5,5,7,0.85);
      backdrop-filter: blur(20px);
      border-color: var(--border);
    }

    .nav-logo {
      display: flex; align-items: center; gap: 12px;
      text-decoration: none;
    }
    .logo-emblem {
      width: 38px; height: 38px;
      border: 2px solid var(--blue);
      transform: rotate(45deg);
      display: flex; align-items: center; justify-content: center;
      position: relative;
      flex-shrink: 0;
    }
    .logo-emblem::before {
      content: 'X';
      font-family: 'Bebas Neue', sans-serif;
      font-size: 20px;
      color: var(--blue);
      transform: rotate(-45deg);
      display: block;
      line-height: 1;
    }
    .logo-text {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.4rem;
      letter-spacing: 0.12em;
      color: var(--white);
      line-height: 1;
    }
    .logo-text span { color: var(--blue); }

    .nav-links {
      display: flex; align-items: center; gap: 2.5rem;
      list-style: none;
    }
    .nav-links a {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.85rem;
      font-weight: 600;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--grey);
      text-decoration: none;
      transition: color 0.2s;
      position: relative;
    }
    .nav-links a::after {
      content: '';
      position: absolute; bottom: -4px; left: 0; width: 0; height: 1px;
      background: var(--blue);
      transition: width 0.3s;
    }
    .nav-links a:hover { color: var(--white); }
    .nav-links a:hover::after { width: 100%; }

    .nav-cta {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.82rem;
      font-weight: 700;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--white) !important;
      text-decoration: none;
      border: 1px solid var(--blue);
      padding: 8px 20px;
      clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
      background: transparent;
      transition: background 0.25s, color 0.25s !important;
    }
    .nav-cta:hover { background: var(--blue) !important; }
    .nav-cta::after { display: none !important; }

    /* ── HERO ── */
    #hero {
      position: relative;
      height: 100vh; min-height: 700px;
      display: flex; flex-direction: column;
      align-items: flex-start; justify-content: center;
      padding: 0 4rem;
      overflow: hidden;
    }

    .hero-bg {
      position: absolute; inset: 0;
      overflow: hidden;
    }
    .hero-slide {
      position: absolute; inset: 0;
      background-size: cover;
      background-position: center;
      opacity: 0;
      transition: opacity 1.4s ease-in-out;
      will-change: opacity;
    }
    .hero-slide.active { opacity: 1; }
    .hero-bg-overlay {
      position: absolute; inset: 0; z-index: 1;
      background:
        linear-gradient(to right,  rgba(5,5,7,0.92) 0%, rgba(5,5,7,0.65) 55%, rgba(5,5,7,0.3) 100%),
        linear-gradient(to top,    rgba(5,5,7,0.95) 0%, transparent 40%),
        linear-gradient(to bottom, rgba(5,5,7,0.6)  0%, transparent 30%);
    }
    /* Indicateurs slideshow */
    .slide-dots {
      position: absolute;
      bottom: 115px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      align-items: center;
      gap: 10px;
      z-index: 10;
    }    .slide-dot {
      width: 28px; height: 2px;
      background: rgba(255,255,255,0.25);
      cursor: pointer;
      transition: background 0.3s, width 0.3s;
    }
    .slide-dot.active {
      background: var(--blue);
      width: 48px;
    }

    /* Racing lines decoration */
    .hero-lines {
      position: absolute; right: 0; top: 0; bottom: 0; width: 55%;
      overflow: hidden; pointer-events: none;
    }
    .hero-lines::before {
      content: '';
      position: absolute; inset: 0;
      background: repeating-linear-gradient(
        -12deg,
        transparent,
        transparent 38px,
        rgba(12,79,138,0.04) 38px,
        rgba(12,79,138,0.04) 39px
      );
    }

    .hero-car-silhouette {
      position: absolute; right: -2%; bottom: 8%;
      width: 62%; max-width: 900px;
      opacity: 0.12;
      animation: carFloat 6s ease-in-out infinite;
    }
    @keyframes carFloat {
      0%,100% { transform: translateY(0) }
      50% { transform: translateY(-18px) }
    }

    /* Speed lines */
    .speed-lines {
      position: absolute; right: 0; top: 0; bottom: 0; width: 60%;
      pointer-events: none;
    }
    .speed-line {
      position: absolute; right: 0;
      height: 1px;
      background: linear-gradient(to left, transparent, rgba(12,79,138,0.5), transparent);
      animation: speedLine 2.5s linear infinite;
      opacity: 0;
    }
    @keyframes speedLine {
      0% { opacity: 0; width: 0; right: 100%; }
      20% { opacity: 1; }
      80% { opacity: 1; }
      100% { opacity: 0; width: 70%; right: -10%; }
    }

    .hero-eyebrow {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.35em;
      text-transform: uppercase;
      color: rgba(240,240,245,0.75);
      margin-bottom: 1.5rem;
      display: flex; align-items: center; gap: 12px;
      animation: fadeUp 0.8s 0.2s both;
    }
    .hero-eyebrow::before {
      content: '';
      display: block; width: 40px; height: 1px;
      background: rgba(240,240,245,0.5);
    }

    .hero-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(4.5rem, 11vw, 10rem);
      line-height: 0.88;
      letter-spacing: 0.02em;
      color: var(--white);
      position: relative;
      z-index: 1;
      animation: fadeUp 0.8s 0.35s both;
    }
    .hero-title .accent { color: var(--blue); display: block; }
    .hero-title .outline {
      color: rgba(240,240,245,0.15);
    }

    /* ── GLITCH ── */
    .glitch-wrapper {
      position: relative;
      display: inline-block;
    }
    .glitch-main {
      display: inline-block;
      position: relative;
      z-index: 2;
      color: var(--white);
    }
    .glitch-layer {
      position: absolute;
      inset: 0;
      display: inline-block;
      pointer-events: none;
      font-family: inherit;
      font-size: inherit;
      line-height: inherit;
      letter-spacing: inherit;
      opacity: 0;
    }
    .glitch-r { color: var(--blue); z-index: 1; mix-blend-mode: screen; }
    .glitch-g { color: #ffffff;    z-index: 1; mix-blend-mode: overlay; }
    #glitch-scan {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      pointer-events: none;
      z-index: 3;
      opacity: 0.07;
    }

    .hero-subtitle {
      font-family: 'Barlow', sans-serif;
      font-size: clamp(1rem, 1.6vw, 1.2rem);
      font-weight: 300;
      color: var(--grey);
      max-width: 460px;
      line-height: 1.7;
      margin-top: 1.8rem;
      animation: fadeUp 0.8s 0.5s both;
      z-index: 1;
    }

    .hero-actions {
      display: flex; align-items: center; gap: 1.5rem;
      margin-top: 2.8rem;
      animation: fadeUp 0.8s 0.65s both;
      z-index: 1;
    }
    .btn-primary {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.9rem;
      font-weight: 700;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--white);
      background: var(--blue);
      text-decoration: none;
      padding: 14px 32px;
      clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
      position: relative;
      transition: transform 0.2s, box-shadow 0.3s;
      display: inline-block;
    }
    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 40px var(--blue-glow);
    }
    .btn-secondary {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.9rem;
      font-weight: 600;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--light-grey);
      text-decoration: none;
      display: flex; align-items: center; gap: 8px;
      transition: color 0.2s, gap 0.2s;
    }
    .btn-secondary:hover { color: var(--white); gap: 14px; }
    .btn-secondary .arrow {
      width: 24px; height: 1px; background: currentColor;
      position: relative; transition: width 0.2s;
    }
    .btn-secondary .arrow::after {
      content: '';
      position: absolute; right: 0; top: -3px;
      width: 7px; height: 7px;
      border-right: 1px solid currentColor;
      border-top: 1px solid currentColor;
      transform: rotate(45deg);
    }
    .btn-secondary:hover .arrow { width: 36px; }

    /* Stat strip */
    .hero-stats {
      position: absolute; bottom: 0; left: 0; right: 0;
      display: flex;
      border-top: 1px solid var(--border);
      background: rgba(10,10,15,0.6);
      backdrop-filter: blur(10px);
      animation: fadeUp 0.8s 0.8s both;
      z-index: 1;
    }
    .hero-stat {
      flex: 1;
      padding: 1.4rem 4rem;
      border-right: 1px solid var(--border);
      display: flex; flex-direction: column; gap: 4px;
    }
    .hero-stat:last-child { border-right: none; }
    .stat-num {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 2.2rem;
      color: var(--white);
      line-height: 1;
    }
    .stat-num span { color: var(--blue); }
    .stat-label {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.72rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--grey);
    }

    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(30px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* ── SECTIONS ── */
    section {
      position: relative;
      padding: 7rem 4rem;
    }

    .section-label {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.35em;
      text-transform: uppercase;
      color: var(--blue);
      display: flex; align-items: center; gap: 12px;
      margin-bottom: 1rem;
    }
    .section-label::before {
      content: '';
      display: block; width: 30px; height: 1px; background: var(--blue);
    }

    .section-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(2.8rem, 5vw, 4.5rem);
      line-height: 0.92;
      letter-spacing: 0.02em;
      color: var(--white);
      margin-bottom: 1.5rem;
    }
    .section-title .outline {
      color: rgba(240,240,245,0.15);
    }

    /* ── ABOUT ── */
    #about {
      background: var(--deep);
    }
    #about::before {
      content: '';
      position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
      background: linear-gradient(to bottom, transparent, var(--blue), transparent);
    }

    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6rem;
      align-items: center;
      max-width: 1400px;
    }

    .about-text p {
      font-size: 1.05rem;
      line-height: 1.85;
      color: var(--light-grey);
      margin-bottom: 1.4rem;
    }
    .about-text p strong { color: var(--white); font-weight: 500; }

    .about-visual {
      position: relative;
    }
    .about-card {
      background: var(--carbon);
      border: 1px solid var(--border);
      padding: 2.5rem;
      position: relative;
      overflow: hidden;
    }
    .about-card::before {
      content: '';
      position: absolute; top: 0; left: 0; right: 0; height: 3px;
      background: linear-gradient(to right, var(--blue), var(--blue-dim), transparent);
    }
    .about-card-bg {
      position: absolute; bottom: -20px; right: -20px;
      font-family: 'Bebas Neue', sans-serif;
      font-size: 10rem;
      color: rgba(12,79,138,0.02);
      line-height: 1;
      pointer-events: none;
      user-select: none;
    }
    .about-values {
      display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
    }
    .value-item {
      border-left: 2px solid var(--blue);
      padding-left: 1rem;
    }
    .value-title {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 1rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--white);
      margin-bottom: 4px;
    }
    .value-desc {
      font-size: 0.82rem;
      color: var(--grey);
      line-height: 1.5;
    }

    /* ── DRIVERS ── */
    #drivers {
      background: var(--black);
    }

    .drivers-header {
      display: flex; justify-content: space-between; align-items: flex-end;
      margin-bottom: 4rem;
    }

    .drivers-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(140px, 180px));
      gap: 1.5px;
    }

    .driver-card {
      position: relative;
      overflow: hidden;
      aspect-ratio: 2/3;
      background: var(--carbon);
      cursor: none;
      max-width: 180px;
    }
    .driver-photo-placeholder {
      position: absolute; inset: 0;
      background: linear-gradient(160deg, #0d1525 0%, #0a0a15 100%);
      display: flex; align-items: center; justify-content: center;
    }
    .driver-photo-placeholder img {
      width: 100%; height: 100%; object-fit: cover; object-position: top;
      opacity: 0; transition: opacity 0.5s ease;
    }
    .driver-photo-placeholder img.loaded { opacity: 1; }
    .driver-photo-shimmer {
      position: absolute; inset: 0;
      background: linear-gradient(90deg, transparent 0%, rgba(12,79,138,0.08) 50%, transparent 100%);
      background-size: 200% 100%;
      animation: shimmer 1.6s infinite;
    }
    .driver-photo-placeholder img.loaded ~ .driver-photo-shimmer { display: none; }
    @keyframes shimmer {
      0%   { background-position: -200% 0; }
      100% { background-position:  200% 0; }
    }
    .driver-avatar-svg { width: 45%; height: 45%; opacity: 0.12; }
    .driver-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to top, rgba(5,5,8,0.97) 0%, rgba(5,5,8,0.55) 45%, rgba(5,5,8,0.05) 100%);
    }
    .driver-card::before {
      content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
      background: linear-gradient(to right, var(--blue), transparent);
      opacity: 0; transition: opacity 0.3s; z-index: 4;
    }
    .driver-card:hover::before { opacity: 1; }
    .driver-info {
      position: absolute; bottom: 0; left: 0; right: 0;
      padding: 1rem 1rem 1.1rem;
      z-index: 3;
      transform: translateY(3px);
      transition: transform 0.3s;
    }
    .driver-card:hover .driver-info { transform: translateY(0); }
    .driver-flag { font-size: 0.85rem; display: block; margin-bottom: 4px; opacity: 0.8; }
    .driver-firstname {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.78rem; font-weight: 600;
      letter-spacing: 0.18em; text-transform: uppercase;
      color: rgba(240,240,245,0.6); line-height: 1;
    }
    .driver-lastname {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.4rem; letter-spacing: 0.05em;
      color: var(--white); line-height: 1; margin-top: 1px;
    }
    .driver-role {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.6rem; font-weight: 700;
      letter-spacing: 0.2em; text-transform: uppercase;
      color: var(--blue); margin-top: 4px; display: block;
    }
    .driver-mini-stat strong {
      color: var(--white);
      font-weight: 600;
      display: block;
      font-size: 0.9rem;
    }

    /* ── SEASONS ── */
    #seasons {
      background: var(--deep);
    }

    /* ── RESULTS TABS ── */
    .results-tab {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.82rem;
      font-weight: 700;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--grey);
      background: var(--carbon);
      border: 1px solid var(--border);
      padding: 10px 24px;
      cursor: pointer;
      transition: color 0.25s, border-color 0.25s, background 0.25s;
      clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    }
    .results-tab:hover { color: var(--white); border-color: var(--border2); }
    .results-tab.active {
      color: var(--white);
      background: rgba(12,79,138,0.15);
      border-color: var(--blue);
    }
    .results-tab.active span { color: var(--blue); }

    .seasons-grid {
      display: grid;
      grid-template-columns: 360px 1fr;
      gap: 4rem;
    }

    .seasons-list {
      display: flex; flex-direction: column; gap: 2px;
    }
    .season-item {
      padding: 1.4rem 1.5rem;
      background: var(--carbon);
      border: 1px solid transparent;
      border-left: 3px solid transparent;
      cursor: pointer;
      transition: border-color 0.25s, background 0.25s;
      position: relative;
    }
    .season-item.active, .season-item:hover {
      border-color: var(--border);
      border-left-color: var(--blue);
      background: var(--panel);
    }
    .season-year {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.8rem;
      color: var(--white);
      line-height: 1;
    }
    .season-series {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--grey);
      margin-top: 2px;
      padding-right: 3.5rem;
    }
    .season-badge {
      position: absolute; right: 1.2rem; top: 50%;
      transform: translateY(-50%);
      font-family: 'Bebas Neue', sans-serif;
      font-size: 2rem;
      letter-spacing: 0.05em;
      line-height: 1;
    }
    .badge-gold   { color: #ffb400; text-shadow: 0 0 20px rgba(255,180,0,0.4); }
    .badge-silver { color: #b4b4be; text-shadow: 0 0 20px rgba(180,180,190,0.3); }
    .badge-bronze { color: #cd7f32; text-shadow: 0 0 20px rgba(176,108,58,0.35); }
    .badge-red    { color: var(--blue); text-shadow: 0 0 20px rgba(12,79,138,0.4); }

    .season-detail {
      background: var(--carbon);
      border: 1px solid var(--border);
      padding: 2.5rem;
      display: none;
    }
    .season-detail.active { display: block; }

    .season-detail-header {
      display: flex; justify-content: space-between; align-items: flex-start;
      margin-bottom: 2rem;
      padding-bottom: 2rem;
      border-bottom: 1px solid var(--border);
    }
    .season-detail-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 3rem;
      line-height: 1;
      color: var(--white);
    }
    .season-detail-title span { color: var(--blue); }
    .season-position { text-align: right; }
    .position-num {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 5rem;
      line-height: 1;
      color: var(--blue);
      opacity: 0.6;
    }
    .position-num.pos-gold   { color: #ffb400; text-shadow: 0 0 30px rgba(255,180,0,0.3); opacity: 1; }
    .position-num.pos-silver { color: #b4b4be; text-shadow: 0 0 30px rgba(180,180,190,0.25); opacity: 1; }
    .position-num.pos-bronze { color: #cd7f32; text-shadow: 0 0 30px rgba(176,108,58,0.3); opacity: 1; }
    .position-label {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.72rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--grey);
    }

    .season-results-table {
      width: 100%;
      border-collapse: collapse;
    }
    .season-results-table th {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--grey);
      text-align: left;
      padding: 0.6rem 1rem;
      background: var(--panel);
    }
    .season-results-table td {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.9rem;
      font-weight: 400;
      color: var(--light-grey);
      padding: 0.8rem 1rem;
      border-bottom: 1px solid var(--border);
    }
    .season-results-table tr:last-child td { border-bottom: none; }
    .season-results-table td.pos {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.1rem;
      color: var(--white);
    }
    .season-results-table td.pts {
      font-weight: 600;
      color: var(--white);
    }
    td.p1 { color: #ffb400 !important; font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; text-shadow: 0 0 12px rgba(255,180,0,0.4); }
    td.p2 { color: #c0c0cc !important; font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; text-shadow: 0 0 12px rgba(180,180,190,0.3); }
    td.p3 { color: #cd7f32 !important; font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; text-shadow: 0 0 12px rgba(176,108,58,0.35); }

    /* ── SIMULATEURS ── */
    #simulateurs {
      background: var(--black);
    }

    .setup-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5px;
      margin-top: 3rem;
    }
    .setup-card {
      background: var(--carbon);
      padding: 2.5rem 2rem;
      border: 1px solid transparent;
      position: relative;
      overflow: hidden;
      transition: border-color 0.3s;
    }
    .setup-card:hover { border-color: var(--border); }
    .setup-card::before {
      content: '';
      position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
      background: linear-gradient(to right, transparent, var(--blue), transparent);
      transform: scaleX(0);
      transition: transform 0.4s;
    }
    .setup-card:hover::before { transform: scaleX(1); }

    .setup-icon {
      width: 48px; height: 48px;
      margin-bottom: 1.5rem;
      color: var(--blue);
      opacity: 0.8;
    }
    .setup-name {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.5rem;
      letter-spacing: 0.05em;
      color: var(--white);
      margin-bottom: 0.4rem;
    }
    .setup-brand {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--blue);
      margin-bottom: 1rem;
    }
    .setup-desc {
      font-size: 0.88rem;
      line-height: 1.65;
      color: var(--grey);
    }
    .setup-specs {
      margin-top: 1.5rem;
      padding-top: 1.5rem;
      border-top: 1px solid var(--border);
      display: flex; flex-direction: column; gap: 6px;
    }
    .spec-row {
      display: flex; justify-content: space-between;
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.82rem;
    }
    .spec-key {
      color: var(--grey);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-size: 0.72rem;
    }
    .spec-val { color: var(--light-grey); font-weight: 500; }

    /* ── RECRUTEMENT ── */
    #recrutement {
      background: var(--deep);
      overflow: hidden;
    }
    #recrutement::before {
      content: '';
      position: absolute; right: -100px; top: -100px;
      width: 500px; height: 500px;
      background: radial-gradient(circle, rgba(12,79,138,0.06) 0%, transparent 70%);
      pointer-events: none;
    }

    .recruit-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6rem;
      align-items: center;
    }

    .recruit-requirements {
      display: flex; flex-direction: column; gap: 1rem;
      margin-top: 2rem;
    }
    .req-item {
      display: flex; align-items: flex-start; gap: 1rem;
      padding: 1.2rem 1.4rem;
      background: var(--carbon);
      border-left: 2px solid var(--border);
      transition: border-color 0.25s;
    }
    .req-item:hover { border-left-color: var(--blue); }
    .req-icon {
      color: var(--blue);
      font-size: 1.1rem;
      flex-shrink: 0;
      margin-top: 2px;
    }
    .req-text strong {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.9rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--white);
      display: block;
      margin-bottom: 2px;
    }
    .req-text span {
      font-size: 0.85rem;
      color: var(--grey);
      line-height: 1.5;
    }

    .recruit-form {
      background: var(--carbon);
      border: 1px solid var(--border);
      padding: 2.5rem;
      position: relative;
    }
    .recruit-form::before {
      content: '';
      position: absolute; top: 0; left: 0; right: 0; height: 2px;
      background: linear-gradient(to right, var(--blue), transparent);
    }
    .form-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.8rem;
      color: var(--white);
      margin-bottom: 0.4rem;
    }
    .form-subtitle {
      font-size: 0.85rem;
      color: var(--grey);
      margin-bottom: 2rem;
    }
    .form-group {
      margin-bottom: 1.2rem;
    }
    .form-label {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--grey);
      display: block;
      margin-bottom: 6px;
    }
    .form-input, .form-select, .form-textarea {
      width: 100%;
      background: var(--panel);
      border: 1px solid var(--border);
      color: var(--white);
      font-family: 'Barlow', sans-serif;
      font-size: 0.9rem;
      padding: 10px 14px;
      outline: none;
      transition: border-color 0.25s;
      appearance: none;
    }
    .form-input:focus, .form-select:focus, .form-textarea:focus {
      border-color: var(--blue);
    }
    .form-textarea { height: 90px; resize: vertical; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    .btn-submit {
      width: 100%;
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.9rem;
      font-weight: 700;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--white);
      background: var(--blue);
      border: none;
      padding: 14px;
      clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
      cursor: none;
      margin-top: 0.5rem;
      transition: box-shadow 0.3s, transform 0.2s;
    }
    .btn-submit:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 35px var(--blue-glow);
    }
    .form-success {
      display: none;
      text-align: center;
      padding: 2rem;
    }
    .form-success .check { font-size: 2.5rem; margin-bottom: 1rem; }
    .form-success p {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 1rem;
      color: var(--grey);
      letter-spacing: 0.05em;
    }
    .form-success strong { color: var(--white); }

    /* ── SOCIALS / CONTACT ── */
    #contact {
      background: var(--black);
      padding: 5rem 4rem;
    }

    .contact-inner {
      max-width: 1400px;
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      gap: 4rem;
    }
    .contact-tagline {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(2rem, 4vw, 3.5rem);
      line-height: 0.95;
      color: var(--white);
    }
    .contact-tagline span { color: var(--blue); }

    .socials {
      display: flex; gap: 1rem;
    }
    .social-btn {
      width: 50px; height: 50px;
      border: 1px solid var(--border);
      display: flex; align-items: center; justify-content: center;
      color: var(--grey);
      text-decoration: none;
      transition: border-color 0.25s, color 0.25s, background 0.25s;
      font-size: 1.1rem;
    }
    .social-btn:hover {
      border-color: var(--blue);
      color: var(--white);
      background: rgba(12,79,138,0.1);
    }
    .social-btn svg { width: 20px; height: 20px; fill: currentColor; }

    /* ── FOOTER ── */
    footer {
      background: var(--deep);
      border-top: 1px solid var(--border);
    }
    .footer-top {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      gap: 2rem;
      padding: 3rem 4rem;
      border-bottom: 1px solid var(--border);
    }
    .socials {
      display: flex;
      gap: 1rem;
      align-items: center;
    }
    .footer-bottom {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      padding: 1.4rem 4rem;
    }
    .footer-copy {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.78rem;
      letter-spacing: 0.12em;
      color: var(--grey);
    }
    .footer-copy span { color: var(--blue); }
    .footer-links {
      display: flex; gap: 2rem; list-style: none;
      justify-self: center;
    }
    .footer-links a {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.75rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--grey);
      text-decoration: none;
      transition: color 0.2s;
    }
    .footer-links a:hover { color: var(--white); }

    /* ── SCROLL REVEAL ── */
    .reveal {
      opacity: 0;
      transform: translateY(40px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.visible { opacity: 1; transform: translateY(0); }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }

    /* ── PARTNERS ── */
    .partners-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 1px;
      justify-content: center;
    }
    .partner-card {
      width: calc(25% - 1px);
      min-width: 220px;
    }
    .partner-card {
      background: var(--carbon);
      border: 1px solid var(--border);
      padding: 2.2rem 2rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
      text-decoration: none;
      position: relative;
      overflow: hidden;
      transition: border-color 0.3s, background 0.3s;
      cursor: none;
    }
    .partner-card::before {
      content: '';
      position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
      background: linear-gradient(to right, transparent, var(--blue), transparent);
      transform: scaleX(0);
      transition: transform 0.4s;
    }
    .partner-card:hover { border-color: rgba(12,79,138,0.3); background: var(--panel); }
    .partner-card:hover::before { transform: scaleX(1); }
    .partner-logo-wrap {
      width: 120px; height: 56px;
      display: flex; align-items: center; justify-content: center;
      filter: grayscale(1) brightness(0.55);
      transition: filter 0.3s;
    }
    .partner-card:hover .partner-logo-wrap { filter: grayscale(0) brightness(1); }
    .partner-logo-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
    .partner-logo-text {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.6rem;
      letter-spacing: 0.08em;
      color: var(--grey);
      transition: color 0.3s;
      text-align: center;
      line-height: 1;
    }
    .partner-card:hover .partner-logo-text { color: var(--white); }
    .partner-tier {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.64rem;
      font-weight: 700;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      padding: 2px 10px;
    }
    .tier-or     { color: #d4a000; background: rgba(212,160,0,0.1);    border: 1px solid rgba(212,160,0,0.2); }
    .tier-argent { color: var(--lgrey); background: rgba(176,176,204,0.08); border: 1px solid rgba(176,176,204,0.15); }
    .tier-bronze { color: #b07040; background: rgba(176,112,64,0.1);   border: 1px solid rgba(176,112,64,0.2); }
    .tier-media  { color: var(--blue); background: rgba(12,79,138,0.08); border: 1px solid rgba(12,79,138,0.15); }
    .partner-desc {
      font-size: 0.8rem;
      color: var(--grey);
      text-align: center;
      line-height: 1.5;
    }
    .partners-empty {
      grid-column: 1 / -1;
      text-align: center;
      padding: 4rem;
    }
    .partners-empty-icon { font-size: 2.5rem; opacity: 0.25; margin-bottom: 1rem; }
    .partners-empty p {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 1rem;
      letter-spacing: 0.1em;
      color: var(--grey);
    }

    /* ── DATA ERROR STATE ── */
    .data-error-state {
      grid-column: 1 / -1;
      text-align: center;
      padding: 3.5rem 2rem;
      background: var(--carbon);
      border: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1.2rem;
    }
    .data-error-state p {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 1rem;
      letter-spacing: 0.08em;
      color: var(--grey);
      margin: 0;
    }
    .btn-retry {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.8rem;
      font-weight: 700;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--white);
      background: transparent;
      border: 1px solid var(--blue);
      padding: 10px 26px;
      clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
      cursor: pointer;
      transition: background 0.2s, color 0.2s, transform 0.2s;
    }
    .btn-retry:hover {
      background: var(--blue);
      transform: translateY(-2px);
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 1100px) {
      nav { padding: 0 2rem; }
      section { padding: 5rem 2rem; }
      #hero { padding: 0 2rem; }
      .hero-stat { padding: 1.2rem 2rem; }
      .about-grid, .recruit-grid, .seasons-grid { grid-template-columns: 1fr; gap: 3rem; }
      .drivers-grid { grid-template-columns: repeat(2,1fr); }
      .partners-grid { grid-template-columns: repeat(2,1fr); }
      footer { padding: 2rem; flex-direction: column; gap: 1rem; text-align: center; }
      .contact-inner { grid-template-columns: 1fr; }
    }
    @media (max-width: 700px) {
      .footer-bottom {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 0.8rem;
        padding: 1.4rem 1.2rem;
      }
      .footer-copy { order: 2; }
      .footer-links { justify-self: center; order: 1; }
      nav { padding: 0 1.2rem; }
      .nav-links { display: none; }
      section { padding: 4rem 1.2rem; }
      #hero {
        padding: 5rem 1.2rem 0;
        height: auto; min-height: 0;
        flex-direction: column;
        justify-content: flex-start;
      }
      .hero-eyebrow { margin-top: 2rem; }
      .hero-title { font-size: clamp(3.5rem, 16vw, 5rem); }
      .hero-subtitle { font-size: 0.9rem; margin-top: 1rem; }
      .hero-actions { margin-top: 1.5rem; flex-wrap: wrap; }
      .hero-stats {
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 2rem;
        bottom: auto; left: auto; right: auto;
      }
      .hero-stat {
        flex: 1 1 45%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.2rem;
      }
      .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 2.5rem 1.2rem;
      }
      .socials { flex-wrap: wrap; justify-content: center; width: 100%; }
      .about-card-bg { display: none; }
      .drivers-grid { grid-template-columns: repeat(2, 1fr) !important; }
      .partners-grid { grid-template-columns: 1fr; }
      .form-row { grid-template-columns: 1fr; }
      .contact-inner { grid-template-columns: 1fr; }
    }

/* ── MENTIONS LÉGALES ── */
    #mentions-overlay {
      position: fixed; inset: 0;
      background: rgba(5,5,8,0.88);
      backdrop-filter: blur(12px);
      z-index: 2000;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 2rem;
    }
    #mentions-overlay.open { display: flex; animation: fadeIn 0.25s ease; }
    .mentions-box {
      background: var(--carbon);
      border: 1px solid var(--border2);
      width: 100%;
      max-width: 680px;
      max-height: 85vh;
      overflow-y: auto;
      position: relative;
    }
    .mentions-box::before {
      content: '';
      position: absolute; top:0; left:0; right:0; height: 2px;
      background: linear-gradient(to right, var(--blue), var(--blue-dim), transparent);
    }
    .mentions-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 1.5rem 2rem;
      border-bottom: 1px solid var(--border);
      position: sticky; top: 0;
      background: var(--carbon);
      z-index: 1;
    }
    .mentions-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.5rem;
      letter-spacing: 0.06em;
      color: var(--white);
    }
    .mentions-close {
      background: none; border: none; cursor: pointer;
      color: var(--grey); font-size: 1.4rem; line-height: 1;
      transition: color 0.2s; padding: 0;
    }
    .mentions-close:hover { color: var(--white); }
    .mentions-body {
      padding: 2rem;
    }
    .mentions-body h2 {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--blue);
      margin: 1.8rem 0 0.6rem;
      padding-bottom: 0.4rem;
      border-bottom: 1px solid var(--border);
    }
    .mentions-body h2:first-child { margin-top: 0; }
    .mentions-body p {
      font-size: 0.88rem;
      line-height: 1.75;
      color: var(--lgrey);
    }
    .mentions-body p + p { margin-top: 0.6rem; }
    .mentions-body strong { color: var(--white); font-weight: 500; }

/* ── TWITCH LIVE WIDGET ── */
    #twitch-widget {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      z-index: 500;
      display: none;
      flex-direction: column;
      align-items: flex-end;
      gap: 10px;
      animation: twitchIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
    }
    #twitch-widget.visible { display: flex; }

    @keyframes twitchIn {
      from { opacity:0; transform: translateY(20px) scale(0.92); }
      to   { opacity:1; transform: translateY(0)    scale(1); }
    }

    .twitch-badge {
      display: flex;
      align-items: center;
      gap: 10px;
      background: rgba(10,10,18,0.92);
      border: 1px solid rgba(145,70,255,0.4);
      backdrop-filter: blur(16px);
      padding: 10px 16px 10px 12px;
      cursor: pointer;
      transition: border-color 0.25s, box-shadow 0.25s;
      box-shadow: 0 4px 24px rgba(0,0,0,0.5);
      position: relative;
      overflow: hidden;
    }
    .twitch-badge::before {
      content: '';
      position: absolute; top:0; left:0; right:0; height:1px;
      background: linear-gradient(to right, transparent, rgba(145,70,255,0.8), transparent);
    }
    .twitch-badge:hover {
      border-color: rgba(145,70,255,0.8);
      box-shadow: 0 4px 32px rgba(145,70,255,0.25);
    }

    .twitch-dot {
      width: 8px; height: 8px;
      background: #9146ff;
      border-radius: 50%;
      flex-shrink: 0;
      box-shadow: 0 0 8px #9146ff;
      animation: pulseDot 1.5s ease-in-out infinite;
    }
    @keyframes pulseDot {
      0%,100% { opacity:1; transform:scale(1); box-shadow: 0 0 6px #9146ff; }
      50%      { opacity:0.6; transform:scale(1.4); box-shadow: 0 0 14px #9146ff; }
    }

    .twitch-info { line-height: 1.3; }
    .twitch-live-label {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.62rem;
      font-weight: 700;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: #9146ff;
    }
    .twitch-name {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1rem;
      letter-spacing: 0.05em;
      color: #f0f0f5;
    }
    .twitch-viewers {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.72rem;
      color: #7a7a98;
      letter-spacing: 0.05em;
    }

    .twitch-icon {
      width: 22px; height: 22px;
      fill: #9146ff;
      flex-shrink: 0;
    }

    .twitch-close {
      position: absolute;
      top: 6px; right: 8px;
      background: none; border: none;
      color: #444;
      font-size: 0.9rem;
      cursor: pointer;
      line-height: 1;
      transition: color 0.2s;
      padding: 0;
    }
    .twitch-close:hover { color: #f0f0f5; }

    .twitch-preview {
      width: 280px;
      border: 1px solid rgba(145,70,255,0.3);
      background: #000;
      display: none;
      overflow: hidden;
      box-shadow: 0 8px 40px rgba(0,0,0,0.7);
    }
    .twitch-preview.open { display: block; }
    .twitch-preview iframe {
      width: 100%;
      height: 158px;
      display: block;
      border: none;
    }
    .twitch-preview-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 12px;
      background: rgba(10,10,18,0.95);
      border-top: 1px solid rgba(145,70,255,0.2);
    }
    .twitch-preview-footer a {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: #9146ff;
      text-decoration: none;
      transition: color 0.2s;
    }
    .twitch-preview-footer a:hover { color: #fff; }
    .twitch-preview-close {
      background: none; border: none; cursor: pointer;
      color: #555; font-size: 1rem; transition: color 0.2s; padding: 0;
    }
    .twitch-preview-close:hover { color: #f0f0f5; }
