/* Mise en situation « claire » (26 nov. 2026) : style pastel retenu, diaporama, bouton « Afficher l'Output ». Voir lesson-brick.js. */
.lc-root { width: 100%; }
.lc { box-sizing: border-box; width: 100%; padding: 16px; border-radius: 22px; background: linear-gradient(160deg, #e8fff1 0%, #e6f1ff 100%); box-shadow: 0 8px 0 #cfe6dc; color: #20324a; }
.lc svg { display: block; width: 100%; height: 100%; }
.lc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.lc-head h3 { margin: 0; color: #20324a; font-size: 19px; line-height: 1.2; }
.lc-count { padding: 3px 10px; border-radius: 999px; background: #4f8ef7; color: #fff; font-size: 13px; font-weight: 900; }
.lc-script { padding: 10px 12px; border-radius: 16px; background: #fff; box-shadow: 0 4px 0 rgba(40, 70, 120, .12); }
.lc-file { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; color: #20324a; font-size: 14px; }
.lc-file svg { width: 18px; height: 18px; fill: #4f8ef7; } .lc-file .fold { fill: #fff; }
.lc-file em { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: #e6eefb; color: #44608a; font-size: 12px; font-style: normal; font-weight: 800; }
.lc-code { margin: 0; padding: 8px 10px; border-radius: 12px; background: #f3f7ff; color: #1f3a66; font: 600 14px/1.6 ui-monospace, "Cascadia Code", Consolas, monospace; text-align: left; white-space: pre-wrap; word-break: break-word; }
.lc-code span { display: inline-block; box-sizing: border-box; width: 100%; padding: 0 6px; border-radius: 6px; }
.lc-code .is-active { background: #dbe8ff; }
.lc-sides { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.lc-side { display: grid; justify-items: center; gap: 2px; padding: 12px 8px 10px; border-radius: 16px; background: #fff; box-shadow: 0 4px 0 rgba(40, 70, 120, .12); text-align: center; transition: transform .2s, opacity .2s; }
.lc-side.is-quiet { opacity: .6; }
.lc-side.is-on { transform: translateY(-3px); }
.lc-icon { width: 38px; height: 38px; fill: #4f8ef7; } .lc-side.is-server .lc-icon { fill: #f7a531; } .lc-icon .dot, .lc-icon .screen { fill: #fff; }
.lc-side strong { color: #20324a; font-size: 15px; line-height: 1.2; }
.lc-side small { color: #6a7f99; font-size: 12px; font-weight: 800; }
.lc-out { margin: 6px 0 0; padding: 4px 10px; border-radius: 10px; background: #f1f6ff; color: #6a7f99; font: 700 13px/1.4 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.lc-out.is-hidden { color: transparent; background: repeating-linear-gradient(135deg, #eef3fb 0 8px, #e3ebf8 8px 16px); user-select: none; }
.lc-side.is-on .lc-out { background: #fff3c9; color: #5a4200; animation: lcPop .3s cubic-bezier(.2, 1.4, .4, 1); }
.lc-show { display: block; width: 100%; min-height: 48px; margin-top: 12px; border: 0; border-radius: 14px; background: #4f8ef7; box-shadow: 0 4px 0 #2f66c4; color: #fff; cursor: pointer; font: inherit; font-size: 16px; font-weight: 900; transition: transform .12s, box-shadow .12s; }
.lc-show:hover { transform: translateY(2px); box-shadow: 0 2px 0 #2f66c4; }
.lc-show:active { transform: translateY(4px); box-shadow: none; }
.lc-caption { box-sizing: border-box; min-height: 48px; margin: 12px 0 0; padding: 10px 14px; border-radius: 14px; background: #fff; color: #20324a; font-size: 16px; font-weight: 700; line-height: 1.4; animation: lcIn .25s ease-out; }
.lc-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 12px; }
.lc-arrow { display: grid; place-items: center; width: 46px; height: 46px; padding: 11px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 4px 0 #cddcf0; color: #2f66c4; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.lc-arrow.is-prev svg { transform: scaleX(-1); }
.lc-arrow:hover { transform: translateY(2px); box-shadow: 0 2px 0 #cddcf0; }
.lc-arrow:disabled { box-shadow: none; opacity: .35; cursor: default; transform: none; }
.lc-dots { display: flex; gap: 8px; }
.lc-dots i { width: 10px; height: 10px; border-radius: 50%; background: #c4d5ee; transition: width .2s, background .2s; }
.lc-dots i.is-on { width: 26px; border-radius: 999px; background: #4f8ef7; }
@keyframes lcPop { from { opacity: 0; transform: scale(.7); } }
@keyframes lcIn { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 640px) {
  .lc { padding: 12px; border-radius: 18px; }
  .lc-sides { gap: 8px; }
  .lc-sides.is-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lc-side { padding: 10px 4px 8px; }
  .lc-icon { width: 30px; height: 30px; }
  .lc-side strong { font-size: 14px; }
  .lc-out { padding: 3px 6px; font-size: 12px; }
  .lc-head h3 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .lc * { animation: none !important; transition: none !important; } }

/* La barre de brique peut se mettre en colonne à droite (option side: "right"). */
.brick-bar.is-column { left: auto; right: 12px; top: 50%; bottom: auto; transform: translateY(-50%); flex-direction: column; align-items: stretch; width: 150px; max-width: 150px; }
.brick-bar.is-column strong { margin: 0 0 4px; text-align: center; } .brick-bar.is-column button { text-align: left; }
