/* Images de blocs Scratch (automatismes, quiz, jeux) — /styles/scratch-svg.css */
.auto-scratch { line-height: 1.4; }
.auto-scratch-zone { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: center; margin-top: 8px; }
.auto-scratch-svg, .auto-figure, .scratch-svg, .scratch-figure { max-width: 100%; height: auto; }

/* Page d'aperçu (test uniquement) */
.apercu { font-family: system-ui, Arial, sans-serif; background: #f4f6fb; margin: 0; padding: 16px; }
.apercu-carte { background: #fff; border: 1px solid #dde2ee; border-radius: 8px; padding: 12px; margin: 0 0 14px; }
.apercu-meta { font-size: .8rem; color: #6b7590; margin: 0 0 6px; }
.apercu-rep { margin: 8px 0 0; font-weight: bold; color: #2e8b3a; }

/* Module programmation intégré dans une page (exercices) */
.prog-iframe { display: block; width: 100%; min-width: 280px; height: 560px; border: 1px solid #dde2ee; border-radius: 8px; margin: 10px 0; background: #f4f6fb; }
.ex-enonce:has(.prog-iframe) { flex: 1 1 100%; min-width: 0; }   /* l'énoncé prend toute la largeur de la carte */
.prog-eval-hint { font-size: .9rem; color: #6b7590; margin: 4px 0 0; }




/* Page Exercices : zone pleine largeur du module programmation (sous l'énoncé) */
.ex-prog-zone { width: 100%; margin: 6px 0 10px; }
.ex-prog-zone .prog-iframe { width: 100%; margin: 0; }

/* Page Exercices : programme corrigé (image) en tête de la correction */
.ex-prog-solution { margin: 6px 0 10px; }
.ex-prog-solution img { max-width: 100%; height: auto; background: #fff; border: 1px solid #dde2ee; border-radius: 6px; }
.ex-prog-solution-titre { font-weight: bold; margin-bottom: 4px; }
