/* Projet 17, chantier 6 (le flux tire) : ce qui n'existe que dans ce chantier. Charge apres styles/jeu.css,
   que ce fichier ne modifie pas. Les couleurs viennent des variables de la marque. */

/* Le Gemba : la photo de l'arret (ou son cadre tant qu'elle n'est pas prete), le carnet de la boucle, les releves faits. */
.photo-arret, .photo-cas, .photo-lancement { width: 100%; max-width: 836px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--rayon); display: block; margin: 0 0 14px; }
.photo-lancement { max-width: 520px; }
.photo-absente { display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; background: var(--fond-profond);
  border: 2px dashed var(--filet); color: var(--encre-douce); font-weight: 600; }
.carnet-boucle { background: var(--feuille); border: 1px solid var(--filet); border-left: 5px solid var(--signal); border-radius: var(--rayon); padding: 12px 18px; margin: 18px 0; }
.carnet-boucle ul { margin: 6px 0 0; padding-left: 20px; }
.journal { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.pas-journal { background: var(--feuille); border: 1px solid var(--filet); border-left: 5px solid var(--filet); border-radius: var(--rayon-piece); padding: 10px 14px; }
.pas-journal.juste { border-left-color: var(--signal); }
.pas-journal.faux { border-left-color: var(--or); }
.pas-journal p { margin: 4px 0; }
.bloc-bilan { background: var(--feuille); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 14px 18px; margin: 18px 0; }

/* Le reglage du nombre de cartes : deux gros boutons et le nombre au milieu. */
.reglage-cartes { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 16px 0; flex-wrap: wrap; }
.gros-bouton { min-width: 120px; min-height: 56px; font-size: 18px; }
.nombre-cartes { min-width: 140px; text-align: center; font-family: var(--instrument); font-size: 28px; font-weight: 700; color: var(--encre); }

/* La reunion : cases a cocher et retours. */
.cases { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.cases li { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 12px; background: var(--feuille); border: 1px solid var(--filet); border-radius: var(--rayon-piece); }
.cases input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--signal); }
.cases input:disabled + label { color: var(--encre-douce); }
.cases input:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.retours { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.retours li { padding: 10px 14px; border-radius: var(--rayon-piece); background: var(--feuille); border-left: 5px solid var(--filet); }
.retours li.juste { border-left-color: var(--signal); }
.retours li.faux { border-left-color: var(--or); }
.retours li.non-choisi { color: var(--encre-douce); }
.reunion-boucle .carte-imprevu + .carte-imprevu { margin-top: 18px; }

/* Le tableau de lancement : la boite de collecte, les quatre cases dans l'ordre d'arrivee. */
.boite-collecte, .tableau-lancement { margin: 14px 0; }
.boite-collecte .cartes { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.carte-kanban { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border-radius: var(--rayon-piece);
  border: 2px solid var(--or); background: #FFF6E2; color: var(--encre); font: inherit; font-size: 16px; line-height: 1.25; text-align: center; cursor: grab; }
.carte-kanban:hover { box-shadow: 0 0 0 2px var(--filet); }
.carte-kanban.choisie { border-color: var(--signal); background: #E6EDF8; box-shadow: 0 0 0 2px var(--signal); }
.carte-kanban:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.cases-lancement { list-style: none; padding: 0; margin: 8px 0; display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 8px; }
.case-lancement { display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: space-between; padding: 8px 6px; min-height: 110px;
  border: 2px solid var(--filet); border-radius: var(--rayon-piece); background: #FFFFFF; }
.case-lancement.posee { border-color: var(--encre-douce); background: #FFF6E2; }
.case-lancement p { margin: 0; }
.carte-posee { font-weight: 600; text-align: center; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.case-lancement .poser { font-size: 15px; padding: 8px 10px; min-height: 44px; }
.sans-carte { font-style: italic; color: var(--encre-douce); }
.lecteur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 720px) {
  .cases-lancement { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
}

.tableau .indicateurs, .miroir .indicateurs { margin-bottom: 22px; }
.registre { background: var(--feuille); border: 1px solid var(--filet); border-radius: var(--rayon-piece); padding: 10px 14px; }
tr.maintenant th, tr.maintenant td { font-weight: 600; }
@media (prefers-reduced-motion: no-preference) { .carte-kanban, .poser { transition: border-color 0.15s, box-shadow 0.15s; } }
