@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap; src: url(/assets/fonts/dm-sans-latin.woff2) format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/dm-serif-display-latin.woff2) format("woff2"); }

:root {
  --encre: #17263A;
  --encre-doux: #4A5666;
  --papier: #F7F4EE;
  --carte: #FFFFFF;
  --trait: #E3DDD2;
  --accent: #B4532A;
  --accent-fonce: #8F3F1E;
  --faible: #2F6B4F;
  --moderee: #A86B12;
  --forte: #A63D2F;
  --rayon: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--encre); font: 17px/1.6 "DM Sans", system-ui, sans-serif; }
a { color: var(--accent-fonce); }
h1, h2, h3 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.page { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.entete { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.marque { font-family: "DM Serif Display", Georgia, serif; font-size: 1.35rem; color: var(--encre); text-decoration: none; }
.marque span { color: var(--accent); }

/* Accueil */
.accroche { padding: 32px 0 8px; }
.accroche .sur-titre { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--accent-fonce); font-weight: 600; margin-bottom: 12px; }
.accroche p.intro { font-size: 1.15rem; color: var(--encre-doux); max-width: 34em; }
.faits { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 20px 0 28px; color: var(--encre-doux); font-size: .95rem; }
.faits li::before { content: "✓ "; color: var(--faible); font-weight: 700; }

.bouton { display: inline-block; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 600 1.05rem "DM Sans", sans-serif; padding: 15px 28px; cursor: pointer; text-decoration: none; }
.bouton:hover { background: var(--accent-fonce); }
.bouton:focus-visible, .choix:focus-visible, .lien-retour:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; }
.bouton.secondaire { background: transparent; color: var(--encre); border: 1.5px solid var(--encre); }

.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 28px 24px; margin: 24px 0; }

/* Questionnaire */
.progression { height: 6px; background: var(--trait); border-radius: 3px; overflow: hidden; margin-bottom: 20px; }
.progression div { height: 100%; background: var(--accent); width: 0; transition: width .25s; }
.etape-num { font-size: .85rem; color: var(--encre-doux); margin-bottom: 6px; }
.question { font-family: "DM Serif Display", Georgia, serif; font-size: clamp(1.35rem, 4vw, 1.7rem); line-height: 1.25; margin-bottom: 20px; }
.choix { display: block; width: 100%; text-align: left; background: var(--papier); border: 1.5px solid var(--trait); border-radius: 10px; padding: 14px 16px; margin: 0 0 10px; font: 1rem/1.4 "DM Sans", sans-serif; color: var(--encre); cursor: pointer; }
.choix:hover { border-color: var(--accent); }
.choix.choisi { border-color: var(--accent); background: #FBEFE8; }
.lien-retour { background: none; border: 0; color: var(--encre-doux); font: .95rem "DM Sans", sans-serif; cursor: pointer; padding: 8px 0; margin-top: 6px; }

/* Résultat */
.score { display: flex; align-items: baseline; gap: 8px; }
.score b { font-family: "DM Serif Display", Georgia, serif; font-size: 4.5rem; line-height: 1; font-weight: 400; }
.score span { color: var(--encre-doux); }
.jauge { position: relative; height: 10px; border-radius: 5px; margin: 14px 0 6px; background: linear-gradient(90deg, var(--faible) 0 33%, var(--moderee) 33% 66%, var(--forte) 66%); }
.jauge i { position: absolute; top: -5px; width: 4px; height: 20px; background: var(--encre); border-radius: 2px; transform: translateX(-2px); }
.jauge-legende { display: flex; justify-content: space-between; font-size: .8rem; color: var(--encre-doux); margin-bottom: 18px; }
.niveau { font-weight: 700; }
.niveau.faible { color: var(--faible); } .niveau.moderee { color: var(--moderee); } .niveau.forte { color: var(--forte); }
.points { padding-left: 1.2em; margin: 0 0 1em; }
.points li { margin-bottom: 6px; }
.sources { font-size: .85rem; color: var(--encre-doux); padding-left: 1.2em; }
.avertissement { font-size: .85rem; color: var(--encre-doux); border-left: 3px solid var(--trait); padding-left: 12px; }

form.email label { display: block; font-weight: 600; margin-bottom: 6px; }
form.email input[type=email] { width: 100%; font: 1rem "DM Sans", sans-serif; padding: 13px 14px; border: 1.5px solid var(--trait); border-radius: 10px; margin-bottom: 12px; }
form.email .consentement { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--encre-doux); margin-bottom: 14px; }
form.email .consentement input { margin-top: 4px; }

/* Textes légaux */
.texte { padding: 16px 0 40px; }
.texte h2 { font-size: 1.35rem; margin-top: 1.6em; }

.pied { border-top: 1px solid var(--trait); margin-top: 48px; padding: 24px 0 40px; font-size: .85rem; color: var(--encre-doux); }
.pied nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }

[hidden] { display: none !important; }
