:root {
  --bleu: #1d3557; --bleu-clair: #457b9d; --rouge: #c1121f; --vert: #2a9d4b;
  --fond: #f4f5f7; --carte: #ffffff; --texte: #1b1f24; --gris: #5c636d; --bord: #d9dde3;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 18px; line-height: 1.45; }
.ecran { max-width: 560px; margin: 0 auto; padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 12px 0; color: var(--bleu); }
h2 { font-size: 1.1rem; margin: 16px 0 6px; }
p { margin: 8px 0; }
.sous-titre { color: var(--gris); margin-top: -6px; }
.petit { font-size: .9rem; color: var(--gris); }
.req { color: var(--rouge); }
.opt { color: var(--gris); font-weight: normal; font-size: .9rem; }
a { color: var(--bleu-clair); }
.carte { background: var(--carte); border-radius: 14px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(0,0,0,.08); margin: 12px 0; }
.carte ul { margin: 4px 0 0; padding-left: 20px; }
.logos { display: flex; justify-content: space-between; gap: 10px; margin: 8px 0 12px; }
.logos img { width: 31%; height: 64px; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px; }
.btn { display: block; width: 100%; padding: 16px; margin: 14px 0; font-size: 1.15rem; font-weight: 600; border: 2px solid var(--bleu); border-radius: 14px; background: #fff; color: var(--bleu); cursor: pointer; }
.btn-principal { background: var(--bleu); color: #fff; }
.btn:disabled { opacity: .55; cursor: wait; }
label { display: block; margin: 12px 0; font-weight: 600; }
input[type=text], input[type=email], input[type=tel], input[type=number], input:not([type]) { display: block; width: 100%; margin-top: 4px; padding: 14px; font-size: 1.05rem; border: 1px solid var(--bord); border-radius: 10px; background: #fff; font-weight: normal; }
input:focus { outline: 3px solid rgba(69,123,157,.4); border-color: var(--bleu-clair); }
fieldset { border: 1px solid var(--bord); border-radius: 12px; padding: 8px 14px 4px; margin: 14px 0; }
legend { font-weight: 600; padding: 0 6px; }
.case { display: flex; gap: 10px; align-items: flex-start; font-weight: normal; margin: 10px 0; }
.case input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; }
.consentements em { color: var(--gris); font-size: .9rem; }
.erreur { background: #fde8e9; color: var(--rouge); border-radius: 10px; padding: 10px 12px; font-weight: 600; }
.rgpd { font-size: .9rem; color: var(--gris); margin-top: 8px; }
.rgpd summary { cursor: pointer; color: var(--bleu-clair); }
.barre { display: flex; justify-content: space-between; font-weight: 600; color: var(--gris); }
.jauge { height: 8px; background: var(--bord); border-radius: 4px; overflow: hidden; margin: 8px 0 14px; }
#jauge-remplissage { height: 100%; width: 0; background: var(--bleu-clair); transition: width .3s; }
.theme { color: var(--bleu-clair); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 0; }
.question { font-size: 1.35rem; }
.reponses button { display: block; width: 100%; text-align: left; padding: 16px; margin: 10px 0; font-size: 1.05rem; border: 2px solid var(--bord); border-radius: 14px; background: #fff; color: var(--texte); cursor: pointer; }
.reponses button:disabled { cursor: default; }
.reponses button.bonne { border-color: var(--vert); background: #e6f5ea; font-weight: 600; }
.reponses button.mauvaise { border-color: var(--rouge); background: #fde8e9; }
.correction { margin-top: 10px; }
.verdict { font-weight: 700; font-size: 1.15rem; }
.verdict.ok { color: var(--vert); }
.verdict.ko { color: var(--rouge); }
.resultat { text-align: center; }
.score { font-size: 3.2rem; font-weight: 800; color: var(--bleu); margin: 4px 0; line-height: 1; }
.sur { font-size: 1.4rem; color: var(--gris); }
.hors-ligne { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px; background: #ffc107; color: #3b2e00; text-align: center; font-weight: 600; }
