: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);
}

.etape {
  display: flex;
  gap: 18px;

  background: var(--carte);
  border-left: 5px solid var(--vert);
  padding: 18px;
  margin: 15px 0;
  border-radius: 8px;
}

.numero {
  min-width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  background: var(--vert);
  border-radius: 50%;
  color: white;
  font-weight: bold;
}

.astuce {
  padding: 20px;
  margin-top: 25px;

  background: #273b20;
  border: 1px solid #6b8f3d;
  border-radius: 10px;

  color: #e8f5d0;
}

.astuce p {
  color: #e8f5d0;
}

.progression {
  border-left: 3px solid var(--vert);
  padding-left: 25px;
}

.progression article {
  background: var(--carte);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
}

.progression span {
  color: var(--or);
  font-weight: bold;
}

.bouton {
  display: inline-block;
  margin-top: 20px;
  padding: 13px 22px;

  background: var(--vert);
  color: white;
  text-decoration: none;
  border-radius: 7px;
  font-weight: bold;
}

.bouton:hover {
  background: #64c96d;
}

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

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

  .etape {
    gap: 10px;
  }

  .progression {
    padding-left: 15px;
  }
}
