/* ============================================================
   Questions au fil et points d'étape (core/types/questions.js, brief
   docs/briefs/MOTEUR-questions-au-fil.md, lot 2) — 08/10/2026.
   Ne prend que les variables de base.css : thème clair et sombre, accent de
   l'entreprise (--ardoise, remplacé par l'encre sous une charte rouge ou verte,
   classes posées par entreprise.js). Le vert plein ne dit que « juste » :
   aucun aplat sur un choix ; choix pris = bordure à l'encre ; ✓ vert et ✗ rouge
   en TEXTE ; bonne réponse (enseignant) = trait vert pointillé.
   ============================================================ */

/* Le panneau d'une question au fil : une troisième colonne de la page, collée sous le bandeau quand on
   fait défiler. Le travail se pousse à gauche, il n'est jamais caché. */
.ent-shell.ent-avec-panneau{ grid-template-columns:230px minmax(0,1fr) 380px }
.ent-shell.ent-menu-replie.ent-avec-panneau{ grid-template-columns:56px minmax(0,1fr) 380px }
.qf-ancre{ align-self:start; position:sticky; top:8px; margin-left:16px; max-height:calc(100vh - 16px); overflow:auto }
.qf-ancre:empty{ display:none }
.qf-panneau{
  background:var(--panneau); color:var(--encre); border:1px solid var(--filet); border-left:4px solid var(--terre);
  border-radius:var(--r); padding:14px 16px; box-shadow:0 4px 14px rgba(20,16,8,.14);
}
.qf-titre{ font-size:1.05rem; margin:0 0 2px }
.qf-titre > span{ color:var(--terre); font-weight:700; margin-right:4px }
.qf-role{ margin:0 0 10px }
@media (max-width:900px){
  .ent-shell.ent-avec-panneau, .ent-shell.ent-menu-replie.ent-avec-panneau{ grid-template-columns:56px minmax(0,1fr) }
  .ent-shell.ent-avec-panneau:not(.ent-menu-replie){ grid-template-columns:minmax(0,1fr) }
  .qf-ancre{ position:fixed; left:0; right:0; bottom:0; top:auto; margin:0; max-height:55vh; z-index:45 }
}

/* Le bandeau du haut : ce que l'élève peut faire pendant la question, ou le point d'étape qui l'attend. */
.qf-bandeau:empty{ display:none }
.qf-bandeau .avis{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; border-left-color:var(--terre); margin:8px 0 0 }

/* Une question. */
.qf-q{ padding:10px 0; border-top:1px solid var(--filet) }
.qf-q:first-of-type{ border-top:0 }
.qf-num{ font-size:.8rem; color:var(--encre-douce); margin:0 0 2px; text-transform:uppercase; letter-spacing:.04em }
.qf-enonce{ font-weight:600; margin:0 0 8px }
.qf-reflexion{ margin:-4px 0 8px }
.qf-choix{ display:flex; flex-direction:column; gap:6px }
.qf-c{
  text-align:left; font:inherit; font-size:.95rem; color:var(--encre); background:var(--panneau);
  border:2px solid var(--filet); border-radius:var(--r); padding:7px 10px; cursor:pointer;
}
.qf-c:hover:not(:disabled){ border-color:var(--ardoise) }
.qf-c:disabled{ cursor:default; opacity:1 }
.qf-c.qf-pris{ border-color:var(--encre); font-weight:700 }
.qf-c.qf-bonne{ border-style:dashed; border-color:var(--vert) }
.qf-bonne-mot{ color:var(--vert); font-size:.8rem; font-weight:600; margin-left:6px }
.qf-libre{ width:100%; font:inherit }
.qf-rep{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; margin-top:10px }
.qf-verdict{ font-weight:700; margin:10px 0 2px }
.qf-ok{ color:var(--vert) }
.qf-ko{ color:var(--rouge) }
.qf-retour{ margin:8px 0 0 }
.qf-sortie{ margin:8px 0 0 }
.qf-reprendre{ margin-top:12px }

/* L'écran du point d'étape. */
.qf-situation{ margin:0 0 6px }
.qf-continuer{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; margin-top:14px; padding-top:12px; border-top:1px solid var(--filet) }

/* Un geste fermé par un point d'étape (le bouton « Répondre » d'un mail). */
.qf-ferme{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin-top:14px }

/* Le travail gelé pendant une question au fil : il reste lisible, il ne répond plus. */
.ent-main.qf-gele [data-qf-gel]{ cursor:not-allowed }

/* Les réponses de la classe (Conduite de séance, lot 4) : un nombre en tête de chaque choix, sans barre ni couleur
   (pas de classement, pas de vert « juste » : la bonne réponse est dite en texte). */
.reponses-seance > summary{ font-weight:600; cursor:pointer; margin:8px 0 }
.reponses-choix, .reponses-libres{ margin:4px 0 0; padding-left:0; list-style:none; display:flex; flex-direction:column; gap:4px }
.reponses-choix li{ display:flex; gap:10px; align-items:baseline }
.reponses-n{ min-width:2.2em; text-align:right; font-weight:700; font-variant-numeric:tabular-nums }
.reponses-libres li{ border-left:3px solid var(--filet); padding:2px 0 2px 10px }

/* ============================================================
   L'écran « Avant de commencer » (brief MOTEUR-avant-de-commencer, 10/10/2026).
   À gauche les documents en onglets, à droite UNE question à la fois, pastille par question.
   Tient sans défiler à 1366 × 768 : la feuille de gauche défile dans son cadre, jamais la page.
   Choix pris = bordure à l'encre ; ✓ = texte ; aucun aplat sur un choix ni sur une pastille.
   ============================================================ */
.qo-cols{ display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:16px; align-items:start }
.qo-docs, .qo-bloc{ padding:12px 14px }
.qo-docs{ display:flex; flex-direction:column; max-height:calc(100vh - 240px); min-height:300px }
.qo-onglets{ display:flex; flex-wrap:wrap; gap:4px; margin:0 0 8px; border-bottom:1px solid var(--filet); flex:none }
.qo-onglet{ font:inherit; font-size:.9rem; background:none; border:0; border-bottom:3px solid transparent; padding:6px 10px; cursor:pointer; color:var(--encre) }
.qo-onglet[aria-selected="true"]{ border-bottom-color:var(--encre); font-weight:700 }
.qo-feuille{ overflow:auto; min-height:0 }
.qo-visuel{ display:flex; flex-wrap:wrap; gap:10px }
.qo-titre-doc{ flex:1 0 100%; font-size:1rem; margin:0 }
.qo-fig{ margin:0; flex:1 1 220px; min-width:0 }
.qo-fig img{ display:block; max-width:100%; max-height:190px; width:auto; height:auto; margin:0 auto; border-radius:var(--r) }
.qo-fig-large{ flex:1 0 100% }
.qo-fig-large img{ max-height:none; width:100% }
.qo-fig figcaption{ font-size:.85rem; margin-top:4px }
.qo-pastilles{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0 0 8px; padding-bottom:8px; border-bottom:1px solid var(--filet) }
.qo-pastilles .note{ margin-left:6px }
.qo-pas{ width:30px; height:30px; border-radius:50%; border:2px solid var(--filet); background:var(--panneau); font:inherit; font-weight:700; cursor:pointer; color:var(--encre) }
.qo-pas.qo-cur{ border-color:var(--encre) }
.qo-pas.qo-faite{ color:var(--vert) }
.qo-bloc .qf-q{ border-top:0; padding-top:0 }
.qo-aide{ margin:0 0 8px; font-size:.92rem }
.qo-aide summary{ cursor:pointer; color:var(--encre-douce) }
.qo-aide p{ margin:4px 0 0 }
.qo-nav{ display:flex; justify-content:space-between; align-items:center; gap:8px; margin-top:10px; padding-top:10px; border-top:1px solid var(--filet) }
/* La calculette flottante (ouverture.calculette) occupe le coin bas droit : les boutons de navigation lui laissent la place. */
.qo-nav.qo-calc{ padding-right:64px }
@media (max-width:860px){
  .qo-cols{ grid-template-columns:minmax(0,1fr) }
  .qo-docs{ max-height:none }
}
