:root {
  --vert: #0f3d2e;
  --vert-clair: #1c5a45;
  --or: #b8923a;
  --creme: #f7f3ea;
  --carte: #ffffff;
  --texte: #1d2a25;
  --discret: #5d6b65;
  --bord: #ddd6c6;
  --erreur: #a12a2a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--texte);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main { max-width: 720px; margin: 0 auto; padding: 0 16px 24px; }

.hero {
  margin: 0 -16px 20px;
  padding: 36px 20px 30px;
  background: var(--vert);
  color: #fff;
  text-align: center;
  border-bottom: 4px solid var(--or);
}
/* Le titre tient toujours sur une ligne : sa taille suit la largeur de l'écran. */
.hero h1 { margin: 18px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(.9rem, 5.4vw, 2rem); line-height: 1.2; text-transform: uppercase; white-space: nowrap; }
.surtitre { margin: 0; color: #e3c987; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.site { margin-top: 12px; text-align: center; text-transform: none; }
.site a { color: inherit; text-decoration: none; }
.carte .site { color: var(--or); font-weight: 600; }
.presentation { text-align: center; border: 2px solid var(--or); background: #fffdf7; }
.presentation p { margin-bottom: 0; }
.accroche { margin: 0; font-size: 1.15rem; font-style: italic; }
.sous-titre { margin: 8px 0 0; color: #cfe0d8; font-size: .95rem; }

.carte {
  margin: 0 0 18px;
  padding: 20px;
  background: var(--carte);
  border: 1px solid var(--bord);
  border-radius: 12px;
}
.carte h2 { margin: 18px 0 10px; color: var(--vert); font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; line-height: 1.3; }
.carte > h2:first-child { margin-top: 0; }
.carte ul { padding-left: 20px; }
.carte li { margin-bottom: 6px; }

.lots { list-style: none; padding: 0 !important; }
.lots li { display: flex; gap: 12px; padding: 10px 12px; margin-bottom: 8px; background: var(--creme); border-left: 4px solid var(--or); border-radius: 6px; }
.lots b { flex: 0 0 4.5em; color: var(--vert); }

.note { color: var(--discret); font-size: .9rem; }
.fin { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--bord); text-align: center; font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; font-style: italic; color: var(--vert); text-wrap: balance; }

fieldset { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
fieldset:last-of-type { margin-bottom: 8px; }
legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.num { color: var(--or); font-weight: 700; }

.choix {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--bord);
  border-radius: 8px;
  cursor: pointer;
}
.choix:has(input:checked) { border-color: var(--vert); background: #eef5f1; }
.choix input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--vert); }

.champ { display: block; margin-bottom: 14px; font-weight: 600; }
.champ input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  font: inherit;
  font-weight: 400;
  color: inherit;
  background: #fff;
  border: 1px solid #b9b2a2;
  border-radius: 8px;
}
.champ input:focus, .choix input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }

.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

button {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 15px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--vert);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
button:hover { background: var(--vert-clair); }

.erreurs { margin: 0 0 18px; padding: 14px 16px; color: var(--erreur); background: #fbeeee; border: 1px solid #e5b9b9; border-radius: 12px; }
.erreurs ul { margin: 6px 0 0; padding-left: 20px; }

.message { text-align: center; padding: 36px 20px; }

.texte p, .texte li { font-size: .97rem; }
mark { background: #ffe08a; padding: 0 3px; }

a { color: var(--vert-clair); }
footer { padding: 8px 16px 32px; text-align: center; font-size: .88rem; }
