/* Corrections maintenables ; thème sombre et doré conservé. */
:root { --text-dim: #afb3bc; }
html { scroll-padding-top: 24px; }
body { font-size: 1rem; }
p, .sub, .feedback-text { line-height: 1.65; }
.sub { font-size: .9375rem; }
button, input, select, summary, [role="button"] { font: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, [role="button"]:focus-visible {
  outline: 3px solid #f0d488; outline-offset: 4px;
}
button.choice { display: block; width: 100%; text-align: left; color: inherit; }
.model-note { border: 1px solid #655437; border-radius: 12px; padding: 12px 16px; margin: 14px 0; }
.model-note summary, .lexique summary { cursor: pointer; }
.model-note p { margin: 8px 0 0; font-size: .875rem; }
.learning-example { padding: 16px; margin: 16px 0; background: #181b20; border-radius: 12px; }
.learning-cards { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.learning-card { display: inline-block; padding: 10px 13px; background: #f0efdf; border-radius: 6px; color: #16191d; font-weight: 700; }
.learning-card.red { color: #a02135; }
.learning-table { width: 100%; border-collapse: collapse; }
.learning-table th, .learning-table td { text-align: left; padding: 10px; border-bottom: 1px solid #3b3e45; }
.learning-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 14px; }
.learning-error { color: #ffb5b5; margin: 10px 0; }
.glossary-list dt { font-weight: 700; margin-top: 16px; color: #f0d488; }
.glossary-list dd { margin: 4px 0 0; line-height: 1.65; }
.model-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.model-actions .btn { width: auto; }
#boot-error { padding: 24px; }
.tab { font-size: .875rem; }
@media (max-width: 600px) {
  .model-note { padding: 12px; }
  .feedback-text, .sub { font-size: .9375rem; }
  .tab { font-size: .75rem; min-width: 0; }
  .learning-table { font-size: .875rem; }
  .btn { min-height: 44px; }
}
.learning-grid button.choice { margin: 0; height: 100%; background: #181b20; border: 1px solid #62666e; border-radius: 12px; padding: 16px; }
.learning-grid button.choice.selected { border-color: #f0d488; background: #30291d; }
.learning-grid button.choice strong, .learning-grid button.choice small { display: block; }
.learning-grid button.choice small { margin-top: 8px; line-height: 1.5; color: #c5c8ce; }
.feedback-panel.assisted { border-color: #8597b1; background: #18212d; }
.learning-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
#main .learning-cards .card { flex-shrink: 0; }
