:root {
  --fond: #101810;
  --carte: #1d2a1e;
  --vert: #3fa34d;
  --vert-clair: #7ee787;
  --or: #ffd166;
  --texte: #f4f4f4;
  --gris: #b8c2b8;
}

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

body {
  font-family: Arial, sans-serif;
  background: var(--fond);
  color: var(--texte);
  line-height: 1.6;
}

header {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;

  background:
    linear-gradient(#0008, #000b),
    url("https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=1800&q=80")
    center / cover;
}

header h1 {
  color: var(--or);
  font-size: clamp(2.5rem, 8vw, 5rem);
  text-shadow: 4px 4px #000;
}

header p {
  max-width: 700px;
  margin: 15px auto;
  font-size: 1.2rem;
}

nav {
  position: sticky;
  top: 0;
  z-index: 5;

  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;

  padding: 14px;
  background: #172318;
  border-bottom: 2px solid var(--vert);
}

nav a {
  color: white;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 6px;
}

nav a:hover,
nav a.active {
  background: var(--vert);
}

main {
  width: min(1100px, 92%);
  margin: auto;
}

section {
  padding: 60px 0;
}

h2 {
  color: var(--or);
  font-size: 2.3rem;
  margin-bottom: 12px;
}

h3 {
  color: var(--vert-clair);
  margin-bottom: 8px;
}

p {
  color: var(--gris);
}

.timeline {
  border-left: 3px solid var(--vert);
  padding-left: 28px;
  margin-top: 30px;
}

.evenement {
  position: relative;

  background: var(--carte);
  margin-bottom: 22px;
  padding: 22px;

  border: 1px solid #315535;
  border-radius: 10px;

  transition: 0.3s;
}

.evenement::before {
  content: "";

  position: absolute;
  left: -39px;
  top: 24px;

  width: 16px;
  height: 16px;

  background: var(--vert);
  border: 3px solid var(--fond);
  border-radius: 50%;
}

.evenement:hover {
  transform: translateX(5px);
  border-color: var(--vert);
}

.evenement h3 {
  color: var(--or);
  margin-bottom: 10px;
}

footer {
  text-align: center;
  padding: 30px;
  background: #0b100b;
  color: var(--gris);
}

@media (max-width: 600px) {
  nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  section {
    padding: 40px 0;
  }

  h2 {
    font-size: 2rem;
  }

  .timeline {
    padding-left: 20px;
  }

  .evenement {
    padding: 18px;
  }

  .evenement::before {
    left: -31px;
  }
}
