/* ============================================================================
   Labo attelage — façon D « Sur le vrai camion » (assets/attelage-vrai.js). Classes .vra-*.
   Dehors, en plein soleil, avec des gants : fond blanc, encre noire, traits épais,
   TRÈS gros texte, cibles de 56 px et plus. Mêmes jetons que l'appli (app.css).
   ========================================================================== */
.vra { display: flex; flex-direction: column; background: #fff; color: var(--encre, #0B1F3A); font-family: var(--f); }
.vra-page { padding: 14px 16px 28px; display: flex; flex-direction: column; gap: 12px; }
.vra-intro { font-weight: 700; color: var(--encre, #0B1F3A); font-size: 1.02rem; }
.vra-h { font-size: 1.1rem; font-weight: 800; margin-top: 4px; }
.vra-h--rouge { color: var(--rouge-fonce, #8E0A13); }
.vra-alerte { background: var(--rouge-pale, #FDE6E8); border: 3px solid var(--rouge, #D4111E); color: var(--rouge-fonce, #8E0A13); border-radius: 12px; padding: 10px 12px; font-weight: 800; }

/* ---- choix : qui tient le téléphone, que fais-tu */
.vra-modes { display: flex; flex-direction: column; gap: 8px; }
.vra-mode { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 12px; text-align: left; border-radius: 14px;
  border: 3px solid var(--trait, #C9D3E1); background: #fff; color: var(--encre, #0B1F3A); }
.vra-mode.is-on { border-color: var(--encre, #0B1F3A); background: var(--jaune, #FFCC00); box-shadow: 0 4px 0 var(--encre, #0B1F3A); }
.vra-mode__ic { font-size: 1.8rem; flex: none; width: 40px; text-align: center; }
.vra-mode__tx { display: flex; flex-direction: column; min-width: 0; }
.vra-mode__t { font-weight: 800; font-size: 1.08rem; line-height: 1.15; }
.vra-mode__s { font-size: .86rem; font-weight: 600; line-height: 1.25; }
.vra-procs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vra-proc { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 96px; padding: 10px 12px;
  border-radius: 16px; border: 3px solid var(--bleu-fonce, #073F94); background: var(--bleu, #0B5ED7); color: #fff; text-align: left;
  box-shadow: 0 5px 0 var(--bleu-fonce, #073F94); margin-bottom: 5px; }
.vra-proc--detelage { background: var(--vert, #00843D); border-color: var(--vert-fonce, #005A29); box-shadow: 0 5px 0 var(--vert-fonce, #005A29); }
.vra-proc:active { transform: translateY(5px); box-shadow: none; }
.vra-proc__v { font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.vra-proc__q { font-size: 1rem; font-weight: 700; line-height: 1.15; }
.vra-proc__n { font-size: .8rem; font-weight: 600; opacity: .95; }
.vra-infos { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 2px solid var(--trait, #C9D3E1); border-radius: 12px; font-size: .9rem; font-weight: 600; }
.vra-retour { margin-top: 4px; }

/* ---- la barre du haut pendant la séance */
.vra-barre { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: var(--encre, #0B1F3A); color: #fff; }
.vra-barre__mil { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; row-gap: 3px; }
.vra-barre__t { font-size: .86rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vra-barre__n { font-size: 1.05rem; font-weight: 800; grid-row: 1; grid-column: 2; }
.vra-prog { grid-column: 1 / 3; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.vra-prog__f { height: 100%; width: 0; background: var(--jaune, #FFCC00); transition: width .25s; }
.vra-bb { width: 52px; height: 52px; flex: none; border-radius: 12px; border: 3px solid #fff; background: transparent; color: #fff; font-size: 1.4rem; font-weight: 800;
  display: grid; place-items: center; padding: 0; line-height: 1; }
.vra-bb--stop { border-color: var(--rouge-trait, #F2A5AB); }
.vra-bb--mic.is-on { background: var(--jaune, #FFCC00); border-color: var(--jaune, #FFCC00); color: var(--encre, #0B1F3A); }
.vra-bb:focus-visible { outline: 3px solid var(--jaune, #FFCC00); outline-offset: 2px; }

/* ---- mode guidé : tout l'écran est le bouton « c'est fait » */
.vra-zone { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 18px 16px 16px; cursor: pointer; background: #fff;
  -webkit-user-select: none; user-select: none; touch-action: manipulation; outline: none; }
.vra-zone:focus-visible { box-shadow: inset 0 0 0 5px var(--jaune, #FFCC00); }
.vra-zone.is-flash .vra-zone__t { animation: vra-arrive .35s ease-out; }
@keyframes vra-arrive { from { transform: translateY(14px); opacity: .2; } to { transform: none; opacity: 1; } }
.vra-zone__n { font-size: 1.15rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.vra-zone__t { font-size: clamp(2rem, 9.5vw, 2.9rem); font-weight: 800; line-height: 1.08; overflow-wrap: anywhere; }
.vra-zone__l { margin: 0; padding-left: 1.2em; font-size: 1.15rem; font-weight: 700; line-height: 1.3; display: flex; flex-direction: column; gap: 4px; }
.vra-zone__s { font-size: 1rem; font-weight: 700; background: var(--jaune-pale, #FFF4C2); border-left: 6px solid var(--jaune, #FFCC00); padding: 8px 10px; border-radius: 6px; }
.vra-zone__bas { margin-top: auto; min-height: 72px; display: grid; place-items: center; text-align: center; border-radius: 16px; background: var(--encre, #0B1F3A); color: #fff;
  font-size: 1.3rem; font-weight: 800; padding: 10px; }
.vra-ecoute { font-size: 1rem; font-weight: 700; padding: 8px 10px; border-radius: 10px; border: 2px dashed var(--bleu, #0B5ED7); color: var(--bleu-fonce, #073F94); overflow-wrap: anywhere; }
.vra-enligne { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 3px solid var(--encre, #0B1F3A); border-radius: 12px; font-weight: 700; }

/* ---- mode « je dis l'étape » */
.vra-q__n { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.vra-q__t { font-size: 1.6rem; font-weight: 800; line-height: 1.15; }
.vra-rep { border-radius: 16px; padding: 12px 14px; border: 4px solid; display: flex; flex-direction: column; gap: 4px; }
.vra-rep.is-ok { background: var(--vert-pale, #E1F5E8); border-color: var(--vert, #00843D); color: var(--vert-fonce, #005A29); }
.vra-rep.is-non { background: var(--rouge-pale, #FDE6E8); border-color: var(--rouge, #D4111E); color: var(--rouge-fonce, #8E0A13); }
.vra-rep.is-aide { background: var(--jaune-pale, #FFF4C2); border-color: var(--encre, #0B1F3A); color: var(--encre, #0B1F3A); }
.vra-rep__t { font-size: 1.6rem; font-weight: 800; }
.vra-rep__e { font-size: 1.35rem; font-weight: 800; line-height: 1.15; }
.vra-rep__s { font-size: .95rem; font-weight: 700; }
.vra-consigne { font-weight: 700; }
.vra-choix { display: flex; flex-direction: column; gap: 8px; }
.vra-c { min-height: 60px; padding: 8px 14px; text-align: left; border-radius: 14px; border: 3px solid var(--encre, #0B1F3A); background: #fff; color: var(--encre, #0B1F3A);
  font-size: 1.08rem; font-weight: 800; line-height: 1.2; box-shadow: 0 4px 0 var(--trait, #C9D3E1); }
.vra-c:active:not(:disabled) { transform: translateY(4px); box-shadow: none; }
.vra-c.is-faite { border-color: var(--vert-trait, #94D3AE); color: var(--vert-fonce, #005A29); background: var(--vert-pale, #E1F5E8); box-shadow: none; opacity: 1; }
.vra-c.is-faite::before { content: '✓ '; }
.vra-c.is-montree { background: var(--jaune, #FFCC00); }
.vra-aide { margin-top: 6px; }

/* ---- mode formateur */
.vra-form__t { font-size: clamp(1.7rem, 8vw, 2.3rem); font-weight: 800; line-height: 1.1; }
.vra-form__lt { font-size: .9rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.vra-form__l { margin: 0; padding-left: 1.2em; font-size: 1.12rem; font-weight: 700; line-height: 1.3; display: flex; flex-direction: column; gap: 4px; }
.vra-form__s { font-size: 1rem; font-weight: 700; background: var(--jaune-pale, #FFF4C2); border-left: 6px solid var(--jaune, #FFCC00); padding: 8px 10px; border-radius: 6px; }
.vra-essais { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--encre, #0B1F3A); color: #fff; }
.vra-essais[hidden] { display: none; }
.vra-essais__t { flex: 1; font-weight: 800; }
.vra-essais__n { font-size: 1.6rem; font-weight: 800; min-width: 1.6em; text-align: center; }
.vra-essais.is-trop { background: var(--rouge, #D4111E); }
.vra-notes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 4px; position: sticky; bottom: 8px; }
.vra-note { min-height: 96px; border-radius: 16px; border: 3px solid var(--encre, #0B1F3A); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 6px 4px; color: #fff; box-shadow: 0 5px 0 var(--encre, #0B1F3A); margin-bottom: 5px; }
.vra-note:active { transform: translateY(5px); box-shadow: none; }
.vra-note__t { font-size: 1.3rem; font-weight: 800; line-height: 1.1; }
.vra-note__s { font-size: .78rem; font-weight: 700; line-height: 1.1; text-align: center; }
.vra-note--ok { background: var(--vert, #00843D); }
.vra-note--oubli { background: var(--orange, #FF8A00); color: var(--encre, #0B1F3A); }
.vra-note--danger { background: var(--rouge, #D4111E); }
.vra-note.is-choisie { outline: 5px solid var(--jaune, #FFCC00); outline-offset: 2px; }

/* ---- fins et bilan */
.vra-fin { align-items: stretch; text-align: center; }
.vra-fin__ic { margin: 10px auto 0; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 3.2rem; font-weight: 800;
  background: var(--vert, #00843D); color: #fff; border: 5px solid var(--vert-fonce, #005A29); }
.vra-fin__ic.is-moyen { background: var(--jaune, #FFCC00); color: var(--encre, #0B1F3A); border-color: var(--encre, #0B1F3A); }
.vra-fin__t, .vra-bilan__t { font-size: 1.8rem; font-weight: 800; line-height: 1.15; }
.vra-bilan__t { font-size: 1.45rem; }
.vra-fin__s { font-size: 1.15rem; font-weight: 800; }
.vra-liste { margin: 0; padding-left: 1.2em; text-align: left; font-weight: 700; display: flex; flex-direction: column; gap: 4px; }
.vra-liste--danger { color: var(--rouge-fonce, #8E0A13); }
.vra-liste--danger span { font-weight: 600; color: var(--encre, #0B1F3A); }
.vra-lignes { display: flex; flex-direction: column; gap: 6px; }
.vra-ligne { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 3px solid var(--encre, #0B1F3A); border-radius: 12px; font-weight: 700; }
.vra-ligne.is-ok { background: var(--vert-pale, #E1F5E8); border-color: var(--vert, #00843D); }
.vra-ligne.is-zero { background: var(--rouge-pale, #FDE6E8); border-color: var(--rouge-trait, #F2A5AB); }
.vra-ligne.is-e { background: var(--rouge-pale, #FDE6E8); border-color: var(--rouge, #D4111E); color: var(--rouge-fonce, #8E0A13); }
.vra-ligne__t { flex: 1; min-width: 0; }
.vra-ligne__n { font-size: 1.25rem; font-weight: 800; white-space: nowrap; }
.vra-bravo { font-size: 1.2rem; font-weight: 800; color: var(--vert-fonce, #005A29); }
.vra-note-bas { font-size: .85rem; font-weight: 600; color: var(--muted, #46566B); }

@media (prefers-reduced-motion: reduce) { .vra-zone.is-flash .vra-zone__t { animation: none; } .vra-prog__f { transition: none; } }
