:root {
  --fond: #faf8f4;
  --surface: #ffffff;
  --texte: #1f2421;
  --discret: #5b635e;
  --bordure: #d9ddd6;
  --accent: #2f6b4f;
  --accent-texte: #ffffff;
  --erreur: #a3261b;
  --rayon: 10px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #161a18;
    --surface: #1f2421;
    --texte: #eceee9;
    --discret: #a7aea9;
    --bordure: #39403b;
    --accent: #7cc4a0;
    --accent-texte: #102018;
    --erreur: #ff8a7a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 1.0625rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.page { max-width: 42rem; margin: 0 auto; padding: 2rem 1rem 4rem; }

.marque { margin: 0; color: var(--accent); font-weight: 600; letter-spacing: .02em; }
h1 { margin: .25rem 0 .75rem; font-size: 1.75rem; line-height: 1.2; }
h2 { font-size: 1.35rem; margin: 0 0 .5rem; }
.discret { color: var(--discret); font-size: .95rem; }

.progression { height: 6px; background: var(--bordure); border-radius: 3px; margin: 1.5rem 0 .5rem; overflow: hidden; }
#barre { height: 100%; width: 0; background: var(--accent); transition: width .2s; }

.bloc { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 1.25rem; }
.question { margin: 0 0 1.25rem; border: 0; padding: 0; }
.question:last-child { margin-bottom: 0; }
.question > label, .question > legend { display: block; font-weight: 600; margin-bottom: .35rem; padding: 0; }
.aide { display: block; color: var(--discret); font-size: .9rem; margin: -.15rem 0 .4rem; }
.obligatoire { color: var(--erreur); }

input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--fond);
  border: 1px solid var(--bordure);
  border-radius: 8px;
  padding: .6rem .7rem;
}
textarea { min-height: 6.5rem; resize: vertical; }
input:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.option { display: flex; gap: .5rem; align-items: center; padding: .25rem 0; font-weight: 400; }
.option input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }

.navigation { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }
button {
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 8px;
  padding: .7rem 1.2rem;
  background: var(--accent);
  color: var(--accent-texte);
  cursor: pointer;
}
button.secondaire { background: transparent; color: var(--texte); border: 1px solid var(--bordure); }
button[disabled] { opacity: .6; cursor: wait; }
#suivant, #envoyer { margin-left: auto; }

.erreur { color: var(--erreur); min-height: 1.5em; margin: .75rem 0 0; }
.piege { position: absolute; left: -9999px; }
#final { margin-top: 1rem; }
#merci { margin-top: 2rem; }

a { color: var(--accent); }
.texte h2 { margin-top: 2rem; }
.texte li { margin-bottom: .35rem; }
