:root {
  --bg: #2c2f33;
  --bg-alt: #24262a;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.65);
  --accent: #32d197;
  --accent-dark: #1ec98b;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 5%;
  background: transparent;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

.navbar.is-scrolled {
  background: rgba(36, 38, 42, 0.92);
  backdrop-filter: blur(6px);
  padding: 12px 5%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.navbar__logo img { height: 70px; display: block; }

.navbar__links {
  display: flex;
  gap: 32px;
  font-weight: 500;
  font-size: 15px;
}

.navbar__links a { opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.navbar__links a:hover,
.navbar__links a.is-active { opacity: 1; color: var(--accent); }

.navbar__socials { display: flex; gap: 16px; }
.navbar__socials img { width: 20px; height: 20px; fill: var(--text); opacity: 0.8; transition: opacity 0.2s, fill 0.2s; }
.navbar__socials a:hover img { opacity: 1; fill: var(--accent); }

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../assets/img/bannière_spawn.png') center/cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44,47,51,0.55) 0%, rgba(44,47,51,0.75) 100%);
}

.hero__content { position: relative; z-index: 1; }

.hero__content h1 {
  font-size: clamp(48px, 9vw, 96px);
  letter-spacing: 1px;
}

.hero__content p {
  margin-top: 12px;
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Stats — couleurs d'accentuation inversées */
.stats {
  background: var(--accent);
  color: var(--bg);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
  padding: 56px 5%;
  text-align: center;
}

.stats__number {
  display: block;
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 700;
}

.stats__label { font-size: 14px; opacity: 0.85; }

/* Sections génériques */
section:not(.hero):not(.stats) { padding: 72px 5%; }

.video-banner { background: var(--bg-alt); text-align: center; }
.video-banner h2 { margin-bottom: 32px; font-size: 24px; }

.video-banner__frame {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
}

.video-banner__frame iframe { width: 100%; height: 100%; border: 0; }

/* Bandeaux CTA */
.cta-banner {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.cta-banner--alt { background: var(--bg); }

.cta-banner h2 { font-size: 28px; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 500;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.btn--accent { background: var(--accent); color: var(--bg); }
.btn--accent:hover { background: var(--accent-dark); transform: translateY(-2px); }

.btn--outline { border: 1.5px solid var(--accent); color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: var(--bg); transform: translateY(-2px); }

/* Historique / carrousel */
.history { background: var(--bg-alt); text-align: center; }
.history h2 { font-size: 28px; margin-bottom: 40px; }

.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
}

.carousel__track {
  position: relative;
  flex: 1;
  list-style: none;
  height: 420px;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  display: none;
  grid-template-columns: 1fr minmax(220px, 340px);
  grid-template-rows: auto auto 1fr;
  column-gap: 32px;
  align-items: center;
  text-align: left;
}

.carousel__slide.is-active { display: grid; }

.carousel__logo {
  grid-column: 1;
  grid-row: 1;
  height: 32px;
  width: 32px;
  object-fit: contain;
}

.carousel__slide h3 {
  grid-column: 1;
  grid-row: 2;
  font-size: 22px;
}

.carousel__slide p {
  grid-column: 1;
  grid-row: 3;
  color: var(--text-muted);
  align-self: start;
}

.carousel__image {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}

.carousel__arrow {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}

.carousel__arrow:hover { border-color: var(--accent); color: var(--accent); }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.carousel__dots button.is-active { background: var(--accent); transform: scale(1.3); }

/* Footer */
.footer {
  background: var(--bg-alt);
  text-align: center;
  padding: 32px 5%;
  color: var(--text-muted);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar__links { display: none; }
  .carousel { flex-direction: column; }
  .carousel__arrow { order: 2; }
  .carousel__slide {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    text-align: center;
    justify-items: center;
  }
  .carousel__logo { grid-column: 1; grid-row: 1; }
  .carousel__slide h3 { grid-column: 1; grid-row: 2; }
  .carousel__slide p { grid-column: 1; grid-row: 3; }
  .carousel__image { grid-column: 1; grid-row: 4; max-width: 100%; }
  .join {
  flex-direction: column;
  text-align: center;
  }
  .join__logo { flex: 0 0 auto; max-width: 160px; }
  .join__actions { justify-content: center; }
}

/* Hero réduit (page Règlement) */
.hero--compact {
  height: 40vh;
  min-height: 260px;
}

/* Page Règlement */
.rules {
  text-align: left;
  max-width: 900px;
  margin: 0;
}

.rules__chapter { margin-bottom: 56px; }

.rules__chapter h2 {
  font-size: 26px;
  margin-bottom: 24px;
}

.rules__section {
  padding-left: 2.5em;
  margin-bottom: 32px;
}

.rules__section h3 {
  font-size: 19px;
  margin-bottom: 14px;
}

.rules__article {
  margin-bottom: 10px;
  color: var(--text-muted);
}

.rules__article strong {
  color: var(--text);
  font-weight: 700;
}

/* Page Nous rejoindre */
.join {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.join__logo {
  flex: 0 0 220px;
}

.join__logo img {
  width: 100%;
  display: block;
}

.join__content { flex: 1; }

.join__content p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.join__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}