/* Pages de contenu statiques (tools/construire-pages.mjs) : complète css/style.css. Aucun style en ligne (CSP). */
.page-contenu .contenu.page { padding-bottom: 2rem; }
.page article h1 { margin-top: .25rem; }
.page article h2 { margin-top: 1.75rem; }
.page article p, .page article li { line-height: 1.6; }
.page article ul { padding-left: 1.25rem; }

.ariane ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin: 0 0 .5rem;
  padding: 0;
  font-size: .92rem;
  color: var(--ink-muted);
}
.ariane li + li::before { content: "›"; margin-right: .25rem; }

.page-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: .75rem auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
}

.page-questions { margin-top: 1.5rem; }
.page-question {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
}
.page-choix { list-style: upper-alpha; padding-left: 1.75rem; }
.page-question details { margin-top: .5rem; }
.page-question summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.page-appel { margin: 2rem 0 1rem; }
.page-brouillon { margin-top: .5rem; }
.page-corrige { margin-top: 2rem; }
.page-corrige-liste { list-style: none; padding-left: 0; }
.page-corrige-item { margin: 0 0 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.page-corrige-item p { margin: .25rem 0; }

/* Impression (QCM imprimable) : A4, sans en-tête ni bouton ; questions sur deux colonnes avec des schémas réduits ;
   réponses repliées masquées ; corrigé complet (explications et sources) à partir d'une nouvelle page. Objectif : 10 pages au plus. */
@page { size: A4; margin: 12mm 12mm 14mm; }
@media print {
  .entete, .page-appel, .ariane, .mention-accueil .liens-textes, .page-brouillon { display: none; }
  html, body { background: #fff; color: #000; }
  body { font-size: 9.5pt; }
  .contenu.page { max-width: none; padding: 0; margin: 0; }
  .page article p, .page article li { line-height: 1.3; margin: .2em 0; }
  .page article h1 { font-size: 15pt; margin: 0 0 .3em; }
  .page article h2 { font-size: 11.5pt; margin: .8em 0 .3em; }
  .page-question details { display: none; }
  .questions-grille { columns: 2; column-gap: 6mm; }
  .page-examen-fixe .page-question {
    break-inside: avoid;
    margin: 0 0 2.5mm;
    padding: 1.5mm 2.5mm;
    border: .5pt solid #000;
    border-radius: 0;
    background: #fff;
  }
  .page-examen-fixe .question-enonce { font-size: 9.5pt; margin: 0 0 .5mm; }
  .page-examen-fixe .page-choix { margin: .5mm 0; padding-left: 5mm; }
  .page-examen-fixe .page-image { max-width: 38mm; max-height: 24mm; margin: .8mm 0; border: .5pt solid #888; }
  .page-examen-fixe .page-choix li { font-size: 9pt; line-height: 1.25; margin: 0; }
  .page-corrige { break-before: page; margin-top: 0; }
  .page-corrige-liste { columns: 2; column-gap: 6mm; font-size: 7.5pt; }
  .page-corrige-item { break-inside: avoid; margin: 0 0 1.5mm; padding-bottom: 1mm; border-bottom: .5pt solid #999; }
  .page-corrige-item p, .page-corrige-item .explication-source { margin: .2mm 0; line-height: 1.25; font-size: 7.5pt; color: #000; }
  a { color: #000; text-decoration: none; }
}

/* Pages statiques (contenu, 404) : pas de barre d'onglets en bas. */
body.page-contenu { padding-bottom: var(--space-8); }
.page-404-carte { margin-top: var(--space-4); }
.page-404-carte h1 { font-size: 34px; line-height: 38px; letter-spacing: -0.02em; }
.page-404-carte .bouton { margin-top: var(--space-2); }
.page article h1 { font-size: 30px; line-height: 34px; letter-spacing: -0.02em; }
.page-question .question-enonce { font-size: 17px; line-height: 24px; }
.page-question { box-shadow: var(--shadow-card); border-color: var(--line); border-radius: var(--radius-lg); }
@media print {
  .page-question { box-shadow: none; }
  body.page-contenu { padding-bottom: 0; }
}
