/* Version imprimée (décision 0119, J41 PR B). Chargée avec media="print" : rien ne change à l'écran.
   Papier clair dans tous les cas, sans navigation ni commandes ; le contenu prend toute la largeur. */
@page { margin: 14mm 12mm; }

:root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
  --fond: #fff; --panneau: #f4f2ec; --carte: #fff; --texte: #111; --discret: #4b5363;
  --ligne: #cfc8b8; --encre: #111; --encre-texte: #fff; --or: #7a5718; --or-vif: #8a6420;
  --doux: #f4f2ec; --alerte: #9f1239; --point: transparent; color-scheme: light;
}
html, body { background: #fff !important; color: var(--texte); }
body { font-size: 10.5pt; line-height: 1.45; }
* { box-shadow: none !important; text-shadow: none !important; animation: none !important; transition: none !important; }

/* Ce qui sert à naviguer ou à régler ne s'imprime pas. */
.evitement, .vues-site, .entete-outils, .onglets-section, .reglages-filiations, .barre-onglets, .voile-feuille, .feuille,
.partage, .bouton-imprimer, .bouton-theme, .choix-langue, .recherche, .fil, .fiche-actions, .niveaux,
.dyn-pilote, .dyn-onglets, .gen-barre, .gen-commandes, .gen-panneau, .gen-compte, .barre-filtres, .tiroir,
.page-an .sauts, .page-an .barre-an, .page-an .regions,
.bandeau-maquette, [data-pas-imprimer], noscript { display: none !important; }

.entete { border: 0; border-bottom: 1px solid var(--ligne); padding: 0 0 4mm; margin-bottom: 4mm; background: none; }
.marque small { display: block !important; }
main, .cadre-gouttiere { margin: 0 !important; padding: 0 !important; }

a { color: inherit; text-decoration: none; }
h1, h2, h3 { break-after: avoid; page-break-after: avoid; }
p, li { orphans: 3; widows: 3; }
img, svg, figure, table, .encadre-debat, .encadre-anteriorite, .partie-auto, .dyn-carte, .gen-toile { break-inside: avoid; page-break-inside: avoid; }
/* Défilement et hauteurs fixes de l'écran : sur papier tout doit être visible. */
.frise-defile, .dyn-frise, .dyn-contenu, .dyn-panneau, .dyn-carte, .explorateur, .gen-scene, .gen-toile { overflow: visible !important; max-height: none !important; contain: none !important; }

/* Fiche : texte en pleine largeur, les sources à la suite. */
.fiche-colonnes { display: block !important; }
.fiche .resume { font-size: 10.5pt; }
.sources { font-size: 9pt; }
details.original > summary { list-style: none; font-weight: 700; }

/* Dynastie : la frise et la carte l'une sous l'autre, le panneau déplié. */
.dyn-bas { display: block !important; }
.dyn-bas > * + * { margin-top: 4mm; }
.dyn-frise svg { width: 100% !important; height: auto !important; }

/* Parenté : l'arbre tient dans la page, la liste des personnes suit. */
.gen-scene { display: block !important; border: 1px solid var(--ligne); }
.gen-dessin { height: 150mm !important; min-height: 0 !important; cursor: auto; }
.gen-fiche .gen-dessin { height: 110mm !important; }

.pied-impression { display: block !important; margin-top: 6mm; padding-top: 2mm; border-top: 1px solid var(--ligne);
  font-size: 8pt; color: var(--discret); overflow-wrap: anywhere; }
