@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,500;0,600;0,700;0,800;0,900;1,700&family=JetBrains+Mono:wght@700;800&family=Teko:wght@600;700&display=swap');

:root {
  --bg-primary: #0b1120;
  --bg-secondary: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --border-color: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-red: #ea1d2d;
  --accent-blue: #38bdf8;
  --accent-green: #22c55e;
  --accent-yellow: #facc15;
  --font-main: 'Montserrat', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-num: 'Teko', sans-serif;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* NAVBAR UNIFIÉE */
.navbar {
  background: rgba(11, 17, 32, 0.95);
  border-bottom: 2px solid #1e293b;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}

.logo-badge {
  background: var(--accent-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
  color: #fff;
  background: var(--accent-red);
}

.btn-twitch {
  background: #9146ff !important;
  color: #fff !important;
  font-weight: 800 !important;
}

.btn-twitch:hover {
  background: #a970ff !important;
}

/* CONTAINER GÉNÉRAL */
.main-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 32px 24px;
  flex: 1;
  width: 100%;
}

.page-title-section {
  margin-bottom: 30px;
}

.page-title-section h1 {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.page-title-section p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* CARTES & PANNEAUX */
.card-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

/* BADGES */
.cat-badge {
  font-size: 0.75rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  color: #000;
}
.cat-WRC { background: #ef4444; color: #fff; }
.cat-RALLY2 { background: #38bdf8; }
.cat-RGT { background: #22c55e; }
.cat-HISTORIC { background: #facc15; }

/* BOUTONS */
.btn-action {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-red { background: var(--accent-red); color: white; }
.btn-red:hover { filter: brightness(1.1); }
.btn-blue { background: var(--accent-blue); color: #0b1120; }
.btn-blue:hover { filter: brightness(1.1); }
.btn-green { background: var(--accent-green); color: #0b1120; }

/* FOOTER */
footer {
  background: #070c18;
  border-top: 1px solid #1e293b;
  padding: 24px;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
}
