*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papier); color: var(--encre);
  font-family: var(--font-texte); font-size: 16px; line-height: 1.5;
}

/* En-tête : marque à gauche, rubrique à droite, filet orange pleine largeur */
.entete { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px var(--marge-page) 10px; flex-wrap: wrap; }
.marque { margin: 0; font-family: var(--font-titre); font-size: 20px; font-weight: 700; }
.rubrique { margin: 0; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.filet { border: 0; height: var(--filet); margin: 0; }
.filet--orange { background: var(--orange); }

.page { max-width: 720px; margin: 0 auto; padding: 40px 24px 56px; }
.pied { max-width: 720px; margin: 0 auto; padding: 0 24px 40px; font-size: 13px; text-align: center; }

/* Titres : Playfair en capitales, centrés */
h1, h2 { font-family: var(--font-titre); font-weight: 400; text-transform: uppercase; text-align: center; line-height: 1.3; margin: 0 0 12px; }
h1 { font-size: clamp(28px, 6vw, 40px); }
h2 { font-size: clamp(22px, 4.5vw, 30px); }
.sous-titre { text-align: center; font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 24px; }
.chapeau { text-align: center; font-weight: 700; font-size: 18px; margin: 0 0 24px; }
.texte { margin: 0 0 16px; }

/* Boutons : framboise, texte blanc gras et grand (≥ 17 px) pour rester au-dessus du seuil de contraste */
.bouton {
  display: inline-block; cursor: pointer; border: 0; border-radius: var(--arrondi-carte);
  background: var(--framboise); color: var(--papier); font: 700 18px/1.2 var(--font-texte);
  padding: 16px 28px; text-transform: uppercase; letter-spacing: .04em;
}
.bouton:hover { filter: brightness(.92); }
.bouton[disabled] { background: var(--gris); color: var(--encre); cursor: not-allowed; }
.bouton--lien { background: none; color: var(--encre); text-decoration: underline; padding: 8px; text-transform: none; font-size: 16px; font-weight: 400; letter-spacing: 0; }
.centre { text-align: center; }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }

/* Progression */
.progression { margin: 0 0 28px; }
.progression__texte { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 8px; }
.progression__barre { height: 8px; background: #ececec; border-radius: 4px; overflow: hidden; }
.progression__rempli { height: 100%; background: var(--turquoise); transition: width .25s ease; }

/* Question et options */
.question { font-family: var(--font-titre); font-size: clamp(22px, 4.5vw, 28px); line-height: 1.35; margin: 0 0 8px; border: 0; padding: 0; }
.aide { margin: 0 0 20px; font-size: 14px; }
.options { list-style: none; margin: 20px 0 28px; padding: 0; display: grid; gap: var(--espace-tuile); }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.option label {
  display: flex; gap: 14px; align-items: flex-start; padding: var(--espace-carte) 18px;
  border: var(--filet) solid #e3e3e3; border-radius: var(--arrondi-carte); background: var(--papier);
}
.option label::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border: 2px solid var(--encre); background: var(--papier);
  border-radius: 50%;
}
.option--multiple label::before { border-radius: 4px; }
.option input:checked + label { border-color: var(--turquoise); background: #f1fafc; }
.option input:checked + label::before { background: var(--turquoise); border-color: var(--turquoise); box-shadow: inset 0 0 0 4px var(--papier); }
.option input:focus-visible + label { outline: 3px solid var(--encre); outline-offset: 2px; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Résultat */
.carte { border-radius: var(--arrondi-carte); padding: 24px; margin: 0 0 28px; text-align: center; }
.carte--orange { background: var(--orange); color: var(--encre); }
.carte--turquoise { background: var(--turquoise); color: var(--papier); }
.carte--framboise { background: var(--framboise); color: var(--papier); }
.carte--gris { background: var(--gris); color: var(--encre); }
.carte h2 { margin-bottom: 8px; font-weight: 700; font-size: clamp(20px, 4vw, 26px); }
.carte .score { font-family: var(--font-titre); font-size: 48px; font-weight: 700; margin: 0; line-height: 1.1; }
.carte .detail { margin: 4px 0 0; font-weight: 700; font-size: 18px; }
.etapes { list-style: none; counter-reset: etape; padding: 0; margin: 0 0 32px; display: grid; gap: var(--espace-tuile); }
.etapes li { counter-increment: etape; display: flex; gap: 14px; align-items: center; }
.situations { margin: 0 0 32px; padding-left: 22px; display: grid; gap: 8px; }
.situations li::marker { color: var(--framboise); }
.etapes li::before {
  content: counter(etape); flex: none; width: 44px; height: 44px; border-radius: var(--arrondi-carte);
  background: var(--turquoise); color: var(--papier); font: 700 22px/44px var(--font-texte); text-align: center;
}

/* Formulaire plan d'action */
.cadre { border: var(--filet) solid var(--orange); border-radius: var(--arrondi-carte); padding: 24px; }
.champ { margin: 0 0 16px; }
.champ label { display: block; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--framboise); margin-bottom: 6px; }
.champ input[type="text"], .champ input[type="email"] {
  width: 100%; font: 16px var(--font-texte); padding: 12px 14px; border: 2px solid var(--encre); border-radius: var(--arrondi-carte); color: var(--encre);
}
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; margin: 0 0 20px; }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.erreur { color: var(--encre); background: #fdecec; border: 2px solid var(--framboise); border-radius: var(--arrondi-carte); padding: 12px 14px; margin: 0 0 16px; font-weight: 700; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.liste-tests { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: var(--espace-tuile); }
.liste-tests a { display: block; padding: var(--espace-carte) 18px; border: var(--filet) solid var(--turquoise); border-radius: var(--arrondi-carte); color: var(--encre); text-decoration: none; font-weight: 700; }
.liste-tests a:hover { background: #f1fafc; }

@media print {
  .bouton, .nav, .cadre { display: none; }
  .carte { border: 2px solid var(--encre); background: none !important; color: var(--encre) !important; }
}
