:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #24302b;
  background: #f4f0e6;
}

* { box-sizing: border-box; }

body { margin: 0; }

main {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1; }
h2 { margin-bottom: .25rem; font-size: 1.8rem; }

.surtitre {
  margin-bottom: .4rem;
  color: #a44728;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.introduction { max-width: 62ch; font-size: 1.1rem; }

.choix {
  display: grid;
  gap: .4rem;
  margin: 2rem 0;
}

label { font-weight: 700; }

select {
  width: 100%;
  padding: .75rem;
  border: 1px solid #a9b0aa;
  border-radius: .5rem;
  background: white;
  font: inherit;
}

#rendu {
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid #d4ccbb;
  border-radius: 1rem;
  background: #fffdf7;
  box-shadow: 0 .75rem 2rem rgb(61 50 31 / 8%);
}

.entete-carte {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.statut {
  flex: none;
  padding: .45rem .7rem;
  border-radius: 999px;
  background: #f0d8a8;
  font-size: .85rem;
}

.echelle {
  display: flex;
  flex-direction: column-reverse;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.etape {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: .15rem .75rem;
  align-items: center;
  padding: 1rem;
  border-left: .35rem solid #4f765f;
  border-radius: .35rem;
  background: #edf3eb;
}

.numero {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: white;
  background: #365943;
  font-weight: 800;
}

.titre-etape { font-weight: 700; }
.identifiant { color: #607068; font-size: .78rem; }
.erreur { margin: 0; color: #9b2f25; font-weight: 700; }

@media (max-width: 520px) {
  main { padding-top: 1.5rem; }
  .entete-carte { display: block; }
  .statut { display: inline-block; }
}
