/* Ajustements propres au chapitre Python ; le lecteur commun reste inchangé. */
.dictionaries-deck .dict-slide-title {
  margin: 0 0 1.2rem;
  font-size: clamp(1.9rem, 4.3vw, 3.35rem);
  line-height: 1.12;
}

.dictionaries-deck pre.python::before { content: "PYTHON"; }
.dictionaries-deck .dict-prerequisites { margin-top: 1.5rem; }
.dictionaries-deck .dict-cover-actions { margin-top: 2rem; }
.dictionaries-deck .dict-cover-actions .button { color: #07131f; }
.dictionaries-deck .dict-cover-actions .secondary { color: var(--ink); }
.dictionaries-deck li + li { margin-top: .65rem; }

.dict-table-scroll {
  overflow-x: auto;
  margin: .8rem 0 1.1rem;
  border-radius: .8rem;
}
.dict-table-scroll:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.dictionaries-deck .dict-table-scroll table { display: table; min-width: 32rem; margin: 0; white-space: normal; }
.dict-answer { color: var(--muted); }
.dict-references { display: grid; gap: .55rem; }

@media (max-width: 620px) {
  .dictionaries-deck .dict-slide-title { font-size: clamp(1.8rem, 8vw, 2.65rem); }
  .dictionaries-deck .db-deck-header { flex-wrap: wrap; }
  .dictionaries-deck .db-deck-actions { flex-direction: row; flex-wrap: wrap; }
  .dictionaries-deck .db-deck-identity strong { max-width: none; white-space: normal; }
  .dictionaries-deck .dict-table-scroll th,
  .dictionaries-deck .dict-table-scroll td { min-width: 0; }
}

@media print {
  .dictionaries-deck .db-slide { min-height: 0; padding: 1rem 0; }
  .dictionaries-deck .dict-cover-actions { display: none; }
  .dictionaries-deck h1,
  .dictionaries-deck h2,
  .dictionaries-deck h3,
  .dictionaries-deck code,
  .dictionaries-deck pre::before,
  .dictionaries-deck .dict-answer,
  .dictionaries-deck .db-slide-kicker,
  .dictionaries-deck a { color: #111827; }
  .dictionaries-deck .dict-table-scroll { overflow: visible; }
  .dictionaries-deck .dict-table-scroll table { min-width: 0; }
  .dictionaries-deck pre { white-space: pre-wrap; overflow-wrap: anywhere; }
}
