/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #E10600;
  --red-dark: #B50500;
  --black: #15151E;
  --dark: #1A1A26;
  --card: #1E1E2E;
  --gray: #38383F;
  --light-gray: #888899;
  --white: #FFFFFF;
  --font-title: 'Russo One', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(21, 21, 30, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--red);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: 3px;
}

.nav-logo, .footer-logo {
  display:flex;
  align-items: center;
  justify-content: center;
}

.nav-logo .logo, .footer-logo .logo {
    max-width: 40px;
}

.nav-logo .red { color: var(--red); }

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

.nav-links a {
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  color: var(--light-gray);
}

.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-links a.active { color: var(--red); background: rgba(225, 6, 0, 0.12); }

.nav-live a {
  color: var(--red) !important;
  border: 1px solid rgba(225, 6, 0, 0.5);
}

.nav-live a:hover {
  background: var(--red) !important;
  color: var(--white) !important;
}

/* ===== HERO PRINCIPAL ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 65% 40%, rgba(225, 6, 0, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse at 25% 75%, rgba(225, 6, 0, 0.05) 0%, transparent 45%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 2rem;
  max-width: 950px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--red);
  margin-bottom: 2rem;
  border: 1px solid rgba(225, 6, 0, 0.35);
  padding: 0.4rem 1.25rem;
  border-radius: 2px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}

.hero-title .red { color: var(--red); }

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--light-gray);
  max-width: 580px;
  margin: 0 auto 3rem;
  letter-spacing: 0.2px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--light-gray);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(225,6,0,0.3); }

.btn-outline { background: transparent; color: var(--white); border: 1px solid var(--gray); }
.btn-outline:hover { border-color: var(--white); transform: translateY(-2px); }

/* ===== SECTIONS ===== */
.section { padding: 5rem 2rem; }
.section-dark { background: rgba(0,0,0,0.25); }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header { margin-bottom: 3rem; }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.1;
}

.section-title .red { color: var(--red); }

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--red);
  margin-top: 1rem;
  border-radius: 2px;
}

/* ===== CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--gray);
  border-top: 3px solid var(--red);
  border-radius: 6px;
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(225,6,0,0.2);
}

.card.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.card-icon { font-size: 2rem; line-height: 1; }
.card-title { font-family: var(--font-title); font-size: 1.2rem; }

.card-desc {
  color: var(--light-gray);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
  transition: gap 0.2s;
}

.card:hover .card-link { gap: 0.875rem; }

.card-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--light-gray);
  border: 1px solid var(--gray);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* ===== PAGE HERO (sous-pages) ===== */
.page-hero {
  padding: 9rem 2rem 5rem;
  text-align: center;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(225, 6, 0, 0.12) 0%, transparent 60%);
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.page-hero-content { position: relative; max-width: 800px; margin: 0 auto; }

.page-hero-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--red);
  margin-bottom: 1.25rem;
  border: 1px solid rgba(225, 6, 0, 0.3);
  padding: 0.35rem 1rem;
  border-radius: 2px;
}

.page-hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.page-hero-title .red { color: var(--red); }

.page-hero-desc {
  color: var(--light-gray);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 1.25rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--light-gray);
}

.breadcrumb a { color: var(--light-gray); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: var(--gray); }
.breadcrumb .current { color: var(--white); }

/* ===== COUNTDOWN ===== */
.countdown {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}

.countdown-item {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--gray);
  border-top: 3px solid var(--red);
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
  min-width: 110px;
}

.countdown-number {
  font-family: var(--font-title);
  font-size: 3.5rem;
  color: var(--red);
  line-height: 1;
  display: block;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--light-gray);
  margin-top: 0.6rem;
  display: block;
}

/* ===== SCHEDULE ===== */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.875rem;
}

.schedule-item {
  background: var(--card);
  border: 1px solid var(--gray);
  border-left: 4px solid var(--red);
  border-radius: 4px;
  padding: 1rem 1.25rem;
}

.schedule-gp {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;

  img {
    max-width: 35px;
    margin-right: 10px;
  }
}

.schedule-time {
  font-family: var(--font-title);
  font-size: 1.75rem;
  color: var(--white);
}

/* ===== RULE SECTIONS ===== */
.rule-section {
  background: var(--card);
  border: 1px solid var(--gray);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.rule-section-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.875rem;
  border-bottom: 2px solid var(--red);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rule-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rule-list li {
  color: var(--light-gray);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
  font-size: 0.95rem;
}

.rule-list li::before {
  content: '▸';
  color: var(--red);
  position: absolute;
  left: 0;
  font-size: 0.85rem;
  top: 0.15em;
}

/* ===== TABLES ===== */
.table-wrapper { overflow-x: auto; border-radius: 6px; }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }

th {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.875rem 1.25rem;
  text-align: left;
  white-space: nowrap;
}

td {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--gray);
  color: var(--light-gray);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.025); }

.points-table td:nth-child(1) { font-family: var(--font-title); font-size: 1.05rem; color: var(--white); }
.points-table td:nth-child(2) { font-family: var(--font-title); font-size: 1.3rem; color: var(--red); }
.pos-1 td:nth-child(1) { color: #FFD700; }
.pos-2 td:nth-child(1) { color: #C0C0C0; }
.pos-3 td:nth-child(1) { color: #CD7F32; }

/* ===== BADGES SANCTIONS ===== */
.badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.badge-info    { background: rgba(100,160,255,0.12); color: #64A0FF; border: 1px solid rgba(100,160,255,0.25); }
.badge-warning { background: rgba(255,180,0,0.12);   color: #FFB400; border: 1px solid rgba(255,180,0,0.25); }
.badge-danger  { background: rgba(225,6,0,0.12);     color: #E10600; border: 1px solid rgba(225,6,0,0.25); }
.badge-severe  { background: rgba(200,0,0,0.2);      color: #FF4444; border: 1px solid rgba(255,68,68,0.35); }
.badge-dsq     { background: rgba(150,0,0,0.25);     color: #FF6666; border: 1px solid rgba(255,102,102,0.4); }

/* ===== INFO BOX ===== */
.info-box {
  background: rgba(225, 6, 0, 0.07);
  border: 1px solid rgba(225, 6, 0, 0.2);
  border-left: 4px solid var(--red);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  color: var(--light-gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.info-box strong { color: var(--white); }

.warning-box {
  background: rgba(255, 180, 0, 0.07);
  border: 1px solid rgba(255, 180, 0, 0.2);
  border-left: 4px solid #FFB400;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  color: var(--light-gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.warning-box strong { color: #FFB400; }

/* ===== FOOTER ===== */
.site-footer {
  background: rgba(0,0,0,0.35);
  border-top: 1px solid var(--gray);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--light-gray);
  font-size: 0.85rem;
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
}

.footer-logo .red { color: var(--red); }

.footer-sub {
  color: var(--light-gray);
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--light-gray);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--red); }

.footer-copy { color: #555566; font-size: 0.75rem; }

/* ===== UTILITIES ===== */
.text-red { color: var(--red); }
.text-muted { color: var(--light-gray); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .countdown-number { font-size: 2.25rem; }
  .countdown-item { padding: 1rem 1.25rem; min-width: 80px; }
  .cards-grid { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .schedule-grid { grid-template-columns: 1fr; }
  .hero-title { letter-spacing: -1px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }


.parameter-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 500px) {
  .parameter-list {
    grid-template-columns: 1fr;
  }
}
