/* Grammaire de la page publique Avest (vap-chartes, /support) : bandeau nuit, fond blanc, filets,
   numéros fins en marge, un seul bouton plein. Deux tailles hors titres : 16 px et 14 px. */
:root { --corps: 16px; --aide: 14px; --largeur: 560px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--texte); font: var(--corps)/1.6 var(--police-texte); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 2px; }
strong { color: var(--titre); font-weight: 600; }

.tete { background: var(--surface); color: var(--texte); padding: 20px 20px 36px; }
.tete > * { max-width: var(--largeur); margin-left: auto; margin-right: auto; }
.tete .logo { display: block; width: 100%; height: 22px; object-fit: contain; object-position: left center; margin-bottom: 36px; }
.surtitre { font: 600 12px/1.3 var(--police-texte); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.tete h1 { font: 800 30px/1.12 var(--police-titres); letter-spacing: -.01em; color: var(--titre); margin-top: 0; margin-bottom: 12px; }
.tete p { margin-top: 0; margin-bottom: 0; color: var(--texte-secondaire); }
.tete .bonjour { color: var(--titre); font-weight: 600; margin-bottom: 6px; }

main { max-width: var(--largeur); margin: 0 auto; padding: 0 20px 24px; }
section { padding: 28px 0; border-top: 1px solid var(--filet); }
main > section:first-child { border-top: 0; }
.etape { display: grid; grid-template-columns: 40px 1fr; column-gap: 8px; }
.num { font: 200 30px/1 var(--police-titres); color: var(--accent); }
h2 { font: 800 20px/1.4 var(--police-titres); color: var(--titre); margin: -2px 0 14px; }

.auteur { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; }
.auteur img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.auteur p { margin: 0; }
.nom-auteur { font-weight: 600; color: var(--titre); }
.signature { font-size: var(--aide); color: var(--texte-secondaire); }
.intro { margin-top: 16px; }
.intro p { margin: 0 0 12px; }
.intro p:last-child { margin-bottom: 0; }
.choix { margin-top: 18px; gap: 14px; }

.conseils { list-style: none; margin: 0; padding: 0; }
.conseils li { padding: 12px 0; border-top: 1px solid var(--filet); }
.conseils li:first-child { border-top: 0; padding-top: 0; }
.conseils strong { display: block; margin-bottom: 2px; }

.encart { margin: 0; padding: 18px; border-radius: 8px; background: var(--surface-3); }
.encart strong { display: block; margin-bottom: 4px; }

.bouton { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 14px 18px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: 600 var(--corps)/1.3 var(--police-texte); text-align: center; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: filter .15s, transform .1s; }
.bouton:active { transform: scale(.98); }
.bouton.second { background: transparent; color: var(--titre); border: 1px solid var(--titre); }
.bouton[disabled] { opacity: .6; }
.boutons { display: grid; gap: 10px; margin-top: 18px; }
.appel { padding: 18px; border-radius: 8px; border: 1px solid var(--filet); margin-top: 6px; }
.appel p { margin: 0 0 4px; }
.discret { color: var(--texte-secondaire); font-size: var(--aide); line-height: 1.55; margin: 10px 0 0; }
.note-ok { color: var(--succes); font-weight: 600; margin: 12px 0 0; }

footer { max-width: var(--largeur); margin: 0 auto; padding: 20px 20px 36px; border-top: 1px solid var(--filet); color: var(--texte-secondaire); font-size: var(--aide); }

.champ input { display: block; width: 100%; margin-top: 4px; padding: 14px; font: 400 var(--corps) var(--police-texte); color: var(--texte); border: 1px solid var(--filet); border-radius: 8px; background: var(--surface-2); }
.champ input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.charge { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; }
.charge img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }

/* La synthèse */
.theme { padding: 16px 0; border-top: 1px solid var(--filet); }
.theme:first-of-type { border-top: 0; padding-top: 0; }
.theme h3 { font: 800 17px/1.35 var(--police-titres); color: var(--titre); margin: 0 0 10px; }
.ligne { height: 10px; border-radius: 5px; margin: 8px 0; background: linear-gradient(90deg, var(--surface-3) 0%, var(--filet) 50%, var(--surface-3) 100%); background-size: 200% 100%; animation: lueur 1.8s ease-in-out infinite; }
@keyframes lueur { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .ligne { animation: none; } }
.statut { display: inline-flex; align-items: center; gap: 8px; font-size: var(--aide); color: var(--texte-secondaire); }
.statut::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--alerte); }

/* Le test */
.ecran { min-height: 100svh; display: flex; flex-direction: column; }
.test { flex: 1; display: flex; flex-direction: column; max-width: var(--largeur); width: 100%; margin: 0 auto; padding: 16px 20px 24px; }
.progression { display: flex; align-items: center; gap: 12px; color: var(--texte-secondaire); font-size: var(--aide); font-variant-numeric: tabular-nums; }
.jauge { flex: 1; height: 4px; border-radius: 2px; background: var(--filet); overflow: hidden; }
.barre { width: 0; height: 100%; background: var(--accent); transition: width .25s ease; }
.pile { flex: 1; display: flex; align-items: center; padding: 20px 0; touch-action: pan-y; }
.carte { width: 100%; padding: 28px 22px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--filet); box-shadow: 0 1px 0 var(--filet); user-select: none; -webkit-user-select: none; transition: transform .25s ease, opacity .25s ease; will-change: transform; }
.carte .il { font: 600 12px/1.3 var(--police-texte); letter-spacing: .14em; text-transform: uppercase; color: var(--texte-secondaire); margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.carte .question { font: 800 21px/1.35 var(--police-titres); color: var(--titre); margin: 0; }
.ia { display: inline-flex; align-items: center; gap: 4px; color: var(--connect-texte); letter-spacing: .08em; }
.ia svg { width: 14px; height: 14px; }
.carte.sort-oui { transform: translateX(120%) rotate(8deg); opacity: 0; }
.carte.sort-non { transform: translateX(-120%) rotate(-8deg); opacity: 0; }
.carte.entre { transform: translateY(12px); transition: none; }
.reponses { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reponses .bouton { min-height: 60px; font-size: 17px; }
.reponses .non { background: transparent; color: var(--titre); border: 1px solid var(--titre); }
.astuce { text-align: center; color: var(--texte-secondaire); font-size: var(--aide); margin: 12px 0 0; }

.score { display: flex; align-items: baseline; gap: 6px; font-family: var(--police-titres); color: var(--titre); margin: 4px 0 6px; }
.score b { font-weight: 800; font-size: 64px; line-height: 1; }
.score span { font-weight: 200; font-size: 30px; }
.manques { list-style: none; margin: 0; padding: 0; }
.manques li { padding: 14px 0; border-top: 1px solid var(--filet); }
.manques li:first-child { border-top: 0; padding-top: 0; }
.manques .q { color: var(--texte-secondaire); font-size: var(--aide); margin: 0 0 4px; }
.manques .r { margin: 0; }

/* Le guide en checklist, sur toute la largeur (Louis, 29/10) */
.titre-etape { font-size: 22px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 3px solid var(--accent); }
section:has(> .titre-etape) { border-top: 0; padding-top: 36px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 12px 0 12px 34px; border-top: 1px solid var(--filet); }
.checklist li:first-child { border-top: 0; padding-top: 2px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 14px; width: 18px; height: 18px; border: 1.5px solid var(--accent); border-radius: 4px; }
.checklist li:first-child::before { top: 4px; }
.checklist strong { display: block; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checklist li { cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.checklist li::after { content: ""; position: absolute; left: 6px; top: 16px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; transition: opacity .15s; }
.checklist li:first-child::after { top: 6px; }
.checklist li.fait::before { background: var(--accent); }
.checklist li.fait::after { opacity: 1; }
.checklist li.fait, .checklist li.fait strong { color: var(--texte-secondaire); text-decoration: line-through; text-decoration-color: var(--texte-secondaire); }
.checklist li:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
