/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --green-deep:  #1a4d2e;
  --green-mid:   #2d6a4f;
  --green-light: #40916c;
  --brown:       #5c4033;
  --brown-light: #8d6048;
  --amber:       #d97706;
  --amber-light: #f59e0b;
  --stone-950:   #0c0a09;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #0c0a09;
}

/* ── Navbar ── */
#navbar {
  background: transparent;
}
#navbar.scrolled {
  background: rgba(12, 10, 9, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-link {
  position: relative;
  transition: color 0.25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f59e0b;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover { color: #f59e0b; }
.nav-link:hover::after { width: 100%; }

.cta-btn {
  background: linear-gradient(135deg, #1a4d2e, #2d6a4f);
  border: 1px solid rgba(64,145,108,0.4);
  box-shadow: 0 4px 20px rgba(26,77,46,0.4);
}
.cta-btn:hover {
  background: linear-gradient(135deg, #2d6a4f, #40916c);
  box-shadow: 0 6px 28px rgba(26,77,46,0.6);
  transform: translateY(-1px);
}

/* ── Hero ── */
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(12,10,9,0.55) 0%,
    rgba(12,10,9,0.35) 40%,
    rgba(12,10,9,0.85) 100%
  );
}

.hero-title {
  font-size: clamp(4rem, 14vw, 10rem);
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 0 4px 40px rgba(0,0,0,0.8);
}

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in  { animation: fadeIn  0.8s ease forwards; }
.animate-slide-up { animation: slideUp 0.8s ease forwards; }
.delay-1 { animation-delay: 0.2s; opacity: 0; }
.delay-2 { animation-delay: 0.4s; opacity: 0; }
.delay-3 { animation-delay: 0.6s; opacity: 0; }

/* ── Countdown ── */
.countdown-bg {
  background: linear-gradient(135deg, #1a4d2e 0%, #0c1f14 100%);
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.countdown-num {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 20px rgba(245,158,11,0.3);
}
.countdown-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b7280;
}
.countdown-sep {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  color: #d97706;
  align-self: flex-start;
  padding-top: 0.25rem;
  line-height: 1;
}

/* ── Histoire ── */
.histoire-quote {
  background: rgba(26,77,46,0.2);
  border-color: #d97706;
}

.badge-circle {
  background: linear-gradient(135deg, #1a4d2e, #0c1f14);
  border: 3px solid #d97706;
}

/* ── Épreuves ── */
.epreuves-overlay {
  background: linear-gradient(to bottom, rgba(12,10,9,0.85), rgba(12,10,9,0.92));
}

.epreuve-card {
  background: rgba(28,25,23,0.85);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  cursor: default;
}

.epreuve-card--elite {
  border-color: rgba(217,119,6,0.3);
  box-shadow: 0 8px 32px rgba(217,119,6,0.15);
}

.icon-bg-green {
  background: rgba(26,77,46,0.35);
  border: 1px solid rgba(64,145,108,0.3);
}
.icon-bg-brown {
  background: rgba(92,64,51,0.35);
  border: 1px solid rgba(141,96,72,0.3);
}
.icon-bg-elite {
  background: rgba(217,119,6,0.2);
  border: 1px solid rgba(245,158,11,0.3);
}

/* ── Infos ── */
.info-card {
  background: rgba(28,25,23,0.7);
  border: 1px solid rgba(255,255,255,0.06);
}

/* ── Sponsors ── */
.sponsors-bg {
  background: linear-gradient(to bottom, #0c0a09, #111009);
}

.sponsor-placeholder {
  background: rgba(28,25,23,0.8);
  border: 1px dashed rgba(255,255,255,0.1);
  transition: border-color 0.3s;
}
.sponsor-placeholder:hover {
  border-color: rgba(217,119,6,0.4);
}

/* ── Burger animation ── */
#burger.open .burger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#burger.open .burger-bar:nth-child(2) {
  opacity: 0;
}
#burger.open .burger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0c0a09; }
::-webkit-scrollbar-thumb { background: #2d6a4f; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #40916c; }
