/* Démo : une cellule de notebook Jupyter, toujours claire, comme pendant le projet. */
.nb { max-width: 760px; background: #ffffff; border: 1px solid #6b6560; border-radius: 8px; overflow: hidden; color: #212121;
      box-shadow: 0 10px 34px rgba(0,0,0,.45); }
.nb-cell { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 0 8px; padding: 12px 14px 0; }
.nb-cell + .nb-cell { padding-top: 6px; padding-bottom: 14px; }
.nb-prompt { font: 12.5px/1.6 ui-monospace, "DejaVu Sans Mono", Menlo, monospace; color: #303f9f; text-align: right; padding-top: 5px;
             white-space: nowrap; }
.nb-prompt.out { color: #d84315; }
.nb-input { font: 12.5px/1.6 ui-monospace, "DejaVu Sans Mono", Menlo, monospace; background: #f7f7f7; border: 1px solid #cfcfcf;
            border-radius: 2px; padding: 4px 8px; white-space: pre; overflow-x: auto; color: #212121; }
.nb-output svg { display: block; width: 100%; max-width: 430px; height: auto; }
.nb-output pre { margin: 6px 0 0; min-height: 3.2em; font: 12.5px/1.6 ui-monospace, "DejaVu Sans Mono", Menlo, monospace;
                 color: #212121; white-space: pre-wrap; }
@media (max-width: 560px) {
  .nb-cell { grid-template-columns: 1fr; padding-inline: 10px; }
  .nb-prompt { text-align: left; padding-top: 0; }
}

.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.controls .sep { width: 1px; align-self: stretch; background: var(--line-strong); margin: 0 4px; }
.score { color: var(--body); margin: 14px 0 0; max-width: 70ch; }
.score b { color: var(--solution); font-weight: 600; }
.rp-legend { color: var(--muted); font-size: .88rem; margin: 8px 0 0; max-width: 70ch; }
.rp-legend code { color: var(--text); }
