/* Paie Juste — mode facile : très gros texte, contraste élevé, une action par écran, couleur + forme + icône + voix. */
:root {
  --bleu: #0a3d91; --bleu-f: #062a66; --jaune: #ffd60a; --jaune-f: #8a6d00; --vert: #0b6b2e; --vert-f: #064d20;
  --orange: #9a4300; --orange-f: #6e3000; --rouge: #a50021; --rouge-f: #73001a; --encre: #0d0d0d; --fond: #ffffff; --gris: #4a4a4a;
  --barre: 88px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 600 22px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--encre); background: var(--fond); padding-bottom: calc(var(--barre) + 16px + env(safe-area-inset-bottom)); }
a { color: var(--bleu); text-underline-offset: 4px; }
:focus-visible { outline: 5px solid #000; outline-offset: 4px; box-shadow: 0 0 0 9px #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.haut { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 3px solid #000; background: #fff; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 24px; color: #000; text-decoration: none; min-height: 48px; }
.logo svg { width: 40px; height: 40px; }
.haut .complet { font-size: 18px; min-height: 48px; display: inline-flex; align-items: center; }
main { max-width: 640px; margin: 0 auto; padding: 16px; }
.ecran { display: flex; flex-direction: column; gap: 18px; }
.etape { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 4px solid currentColor; font-size: 20px; }
.etape .forme { flex: 0 0 auto; width: 64px; height: 64px; display: grid; place-items: center; color: #fff; }
.etape .forme svg { width: 40px; height: 40px; }
.etape.bleu { color: var(--bleu); background: #e8f0ff; } .etape.bleu .forme { background: var(--bleu); border-radius: 50%; }
.etape.jaune { color: #000; background: #fff7cc; border-color: #000; } .etape.jaune .forme { background: var(--jaune); color: #000; border-radius: 10px; border: 3px solid #000; }
.etape .txt { color: #000; }
.etape .txt b { display: block; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); }
h1 { font-size: 34px; line-height: 1.2; margin: 6px 0 0; }
h2 { font-size: 26px; margin: 4px 0; }
p { margin: 0; }
.aide { font-weight: 500; color: #222; }
.btn { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 76px; padding: 14px 18px; border-radius: 18px; border: 4px solid #000;
  font-family: inherit; font-weight: 800; font-size: 24px; line-height: 1.2; text-align: center; cursor: pointer; text-decoration: none; touch-action: manipulation; }
.btn svg { width: 40px; height: 40px; flex: 0 0 auto; }
.btn-geant { min-height: 132px; font-size: 28px; flex-direction: column; border-radius: 26px; }
.btn-geant svg { width: 64px; height: 64px; }
.btn-bleu { background: var(--bleu); color: #fff; border-color: var(--bleu-f); border-radius: 999px; }
.btn-bleu.btn-geant { border-radius: 40px; }
.btn-jaune { background: var(--jaune); color: #000; border-radius: 12px; }
.btn-vert { background: var(--vert); color: #fff; border-color: var(--vert-f); border-radius: 999px; }
.btn-rouge { background: #fff; color: var(--rouge); border-color: var(--rouge); border-radius: 8px; border-style: dashed; border-width: 5px; }
.btn-blanc { background: #fff; color: #000; }
.btn:active { transform: scale(.98); }
.ouinon { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ouinon .btn { min-height: 120px; flex-direction: column; font-size: 30px; }
.ouinon .btn svg { width: 54px; height: 54px; }
.choix { display: grid; gap: 14px; }
.langues { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.langues button { min-height: 60px; font-family: inherit; font-weight: 700; font-size: 21px; border: 3px solid #000; border-radius: 12px; background: #fff; color: #000; cursor: pointer; }
.langues button[aria-pressed="true"] { background: #000; color: #fff; outline: 4px solid var(--jaune); }
.bascule { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 14px; border: 3px solid #000; border-radius: 12px; background: #fff; font-family: inherit; font-weight: 700; font-size: 21px; color: #000; cursor: pointer; text-align: start; width: 100%; }
.bascule .case { width: 36px; height: 36px; border: 3px solid #000; border-radius: 6px; flex: 0 0 auto; display: grid; place-items: center; }
.bascule[aria-pressed="true"] .case { background: #000; color: #fff; }
.bascule[aria-pressed="true"] .case::after { content: "✓"; font-size: 26px; }
.prive { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 3px solid #000; border-radius: 14px; background: #f3f3f3; font-weight: 600; font-size: 19px; }
.prive svg { width: 34px; height: 34px; flex: 0 0 auto; }
.valeur { font-size: 46px; font-weight: 900; line-height: 1.1; padding: 18px; border: 4px solid #000; border-radius: 16px; background: #fff7cc; text-align: center; word-break: break-word; }
.valeur small { display: block; font-size: 22px; font-weight: 700; color: #222; margin-top: 6px; }
.doute { display: flex; gap: 10px; align-items: center; padding: 12px; border: 4px dashed var(--orange); border-radius: 12px; color: var(--orange-f); background: #fff3e6; font-size: 20px; }
.doute svg { width: 34px; height: 34px; flex: 0 0 auto; }
.compteur { font-size: 18px; font-weight: 700; color: var(--gris); }
.saisie { width: 100%; font-family: inherit; font-weight: 900; font-size: 44px; text-align: center; padding: 14px; border: 4px solid #000; border-radius: 14px; min-height: 84px; }
.saisie-lab { font-size: 22px; font-weight: 800; }
.stepper { display: grid; grid-template-columns: 96px 1fr 96px; gap: 12px; align-items: center; }
.stepper button { min-height: 96px; font-family: inherit; font-weight: 900; font-size: 48px; border: 4px solid #000; border-radius: 16px; background: #fff; cursor: pointer; color: #000; }
.stepper output { font-size: 52px; font-weight: 900; text-align: center; }
.photo-mini { max-width: 100%; max-height: 260px; object-fit: contain; border: 3px solid #000; border-radius: 12px; align-self: center; }
.attente { display: grid; place-items: center; gap: 16px; padding: 30px 0; text-align: center; }
.roue { width: 96px; height: 96px; border: 12px solid #dfe7f7; border-top-color: var(--bleu); border-radius: 50%; animation: tourne 1.1s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .roue { animation-duration: 4s; } .btn:active { transform: none; } }
/* résultat plein écran */
.resultat { margin: -16px -16px 0; padding: 26px 18px 30px; color: #fff; display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; border-bottom: 6px solid #000; }
.resultat.vert { background: var(--vert); } .resultat.orange { background: var(--orange); } .resultat.rouge { background: var(--rouge); }
.resultat .grand-icone { width: 150px; height: 150px; }
.resultat h1 { font-size: 38px; color: #fff; }
.resultat .somme { font-size: 64px; font-weight: 900; line-height: 1; }
.resultat .sous { font-size: 21px; font-weight: 600; }
.feu { display: flex; gap: 10px; background: #111; padding: 12px; border-radius: 22px; border: 3px solid #fff; }
.feu .lampe { width: 78px; text-align: center; font-size: 15px; font-weight: 800; color: #9a9a9a; }
.feu .lampe i { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 6px; background: #333; color: #777; font-style: normal; font-size: 30px; }
.feu .l-vert i { border-radius: 50%; } .feu .l-orange i { clip-path: polygon(50% 4%, 97% 92%, 3% 92%); } .feu .l-rouge i { clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.feu .on { color: #fff; } .feu .l-vert.on i { background: #19c45a; color: #000; } .feu .l-orange.on i { background: #ff9f1a; color: #000; } .feu .l-rouge.on i { background: #ff3b4e; color: #000; }
.raisons { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.raisons li { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 4px solid #000; border-radius: 14px; background: #fff; font-size: 21px; }
.raisons li svg { width: 40px; height: 40px; flex: 0 0 auto; }
.raisons li.manque { border-color: var(--rouge); border-style: dashed; }
.raisons li.info { border-color: var(--orange); }
.raisons li.ok { border-color: var(--vert); }
.fiche-dessin { border: 4px solid #000; border-radius: 14px; overflow: hidden; }
.fiche-dessin h2 { background: #000; color: #fff; font-size: 20px; padding: 10px 14px; margin: 0; }
.fiche-dessin .l { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border-top: 2px solid #ccc; font-size: 20px; }
.fiche-dessin .l svg { width: 36px; height: 36px; }
.fiche-dessin .l.manque { background: #ffe5e9; color: var(--rouge-f); box-shadow: inset 8px 0 0 var(--rouge); }
.fiche-dessin .l.ok { background: #e6f6ec; color: var(--vert-f); box-shadow: inset 8px 0 0 var(--vert); }
.fiche-dessin .l.info { background: #fff1e0; color: var(--orange-f); box-shadow: inset 8px 0 0 var(--orange); }
.fiche-dessin .l b { white-space: nowrap; }
.lettre { width: 100%; min-height: 360px; font: 500 20px/1.5 Georgia, serif; padding: 14px; border: 3px solid #000; border-radius: 12px; }
.details { font-size: 18px; font-weight: 500; } .details summary { min-height: 52px; font-weight: 800; cursor: pointer; display: flex; align-items: center; }
.details table { width: 100%; border-collapse: collapse; } .details td { padding: 6px; border-bottom: 1px solid #ccc; } .details td:last-child { text-align: end; white-space: nowrap; }
.aidant { padding: 10px 14px; border: 3px solid #000; border-radius: 12px; background: #eef; font-size: 19px; }
/* barre toujours visible */
.barre { position: fixed; inset: auto 0 0 0; display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 4px solid #000; z-index: 10; }
.barre .btn { flex: 1 1 0; min-width: 0; min-height: 64px; font-size: 22px; border-radius: 14px; }
.barre .btn svg { width: 34px; height: 34px; }
.barre .ecouter { background: #000; color: #fff; }
.barre .ecouter[aria-pressed="true"] { background: var(--jaune); color: #000; }
.pied { font-size: 17px; font-weight: 500; color: #222; margin-top: 26px; border-top: 2px solid #000; padding-top: 14px; display: grid; gap: 8px; }
.pied a { display: inline-flex; min-height: 44px; align-items: center; }
html[dir="rtl"] .fiche-dessin .l.manque { box-shadow: inset -8px 0 0 var(--rouge); }
html[dir="rtl"] .fiche-dessin .l.ok { box-shadow: inset -8px 0 0 var(--vert); }
@media (min-width: 700px) { body { font-size: 23px; } }
@media print { .barre, .haut, .pied, .no-print { display: none !important; } .lettre { border: 0; } }
.prive a { display: inline-flex; min-height: 44px; align-items: center; }
h1[tabindex="-1"]:focus { outline: none; box-shadow: none; }
