/* The Cartographer's Folio — map reading room. Vellum cream, sepia ink, copper green, indigo ocean, brass. */
:root {
  --fond: #f5eedd;
  --fond-appui: #fbf6ea;
  --fond-relief: #ece0c6;
  --encre: #3d2f23;
  --encre-douce: #6f5f4c;
  --filet: #c9b78f;
  --accent: #1f2a4a;
  --accent-clair: #31427a;
  --accent-froid: #2e6b5e;
  --sur-accent: #fbf6ea;
  --focus: #2e6b5e;
  --fond-sombre: #1f2a4a;
  --encre-inverse: #f5eedd;
  --fonds-1: #8a6d1f;
  --fonds-2: #2e6b5e;
  --fonds-3: #1f2a4a;
  --fonds-4: #7a3b2e;
  --fonds-teinte: var(--accent);
  --titre-police: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --texte-police: -apple-system, "Segoe UI", Verdana, Geneva, Tahoma, sans-serif;
  --regie-police: "SF Mono", Consolas, "DejaVu Sans Mono", "Courier New", monospace;
  --corps: 1rem;
  --interligne: 1.7;
  --mesure: 38rem;
  --salle: 74rem;
  --gouttiere: clamp(1rem, 4vw, 2.5rem);
  --respiration: clamp(2.5rem, 6vw, 4.5rem);
  --rail: 5.5rem;
  --trait: 1px;
  --arrondi: 3px;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--fond); color: var(--encre); font-family: var(--texte-police); font-size: var(--corps); line-height: var(--interligne); overflow-wrap: break-word; background-image: repeating-linear-gradient(0deg, rgba(61,47,35,.025) 0 1px, transparent 1px 7px); }
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--titre-police); font-weight: 700; line-height: 1.2; margin: 0 0 .6em; letter-spacing: .01em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.4rem, 1.05rem + 1.4vw, 2rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }
p, ul, ol, figure, table, blockquote { margin: 0 0 1.2em; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-clair); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.tcf-passe { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--sur-accent); padding: .6rem 1rem; z-index: 50; }
.tcf-passe:focus { left: 0; }
.tcf-marge { max-width: var(--salle); margin-inline: auto; padding-inline: var(--gouttiere); }
.tcf-couverture { background: var(--fond-sombre); color: var(--encre-inverse); border-bottom: 4px solid var(--fonds-1); }
.tcf-couverture__rang { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; padding-block: 1rem; }
.tcf-couverture__marque { display: flex; flex-direction: column; gap: .1rem; }
.tcf-couverture__nom { font-family: var(--titre-police); font-size: 1.5rem; color: var(--encre-inverse); text-decoration: none; }
.tcf-couverture__mention { font-size: .85rem; color: #cdbf9f; font-style: italic; }
/* Navigation : case à cocher, deux états */
.tcf-rayon__toggle { position: absolute; opacity: 0; pointer-events: none; }
.tcf-rayon__handle { display: none; }
.tcf-rayon ul { list-style: none; margin: 0; padding: 0; }
.tcf-surtitre { font-family: var(--regie-police); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--fonds-teinte); margin: 0 0 .4em; }
.tcf-frontispice { border: var(--trait) solid var(--filet); border-left: 6px solid var(--fonds-1); background: var(--fond-appui); padding: clamp(1.2rem, 3vw, 2.2rem); margin: 1.5rem 0 var(--respiration); }
.tcf-frontispice__amorce { font-size: 1.1rem; max-width: 44rem; }
.tcf-reperes { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 0; font-family: var(--regie-police); font-size: .85rem; color: var(--encre-douce); }
.tcf-bouton { display: inline-block; background: var(--accent); color: var(--sur-accent); padding: .65rem 1.4rem; border-radius: var(--arrondi); text-decoration: none; font-weight: 700; }
.tcf-bouton:hover { background: var(--accent-clair); color: var(--sur-accent); }
.tcf-estampe { margin: 0 0 1.2em; border: var(--trait) solid var(--filet); background: var(--fond-appui); padding: .5rem; }
.tcf-estampe img { width: 100%; }
.tcf-estampe figcaption { font-size: .85rem; color: var(--encre-douce); padding: .4rem .2rem 0; }
.tcf-estampe--16x9 img { aspect-ratio: 16/9; object-fit: cover; width: 100%; height: auto; }
.tcf-table { padding-block: var(--respiration); border-top: 3px double var(--filet); }
.tcf-table--creusee { background: var(--fond-sombre); color: var(--encre-inverse); margin-inline: calc(-1 * var(--gouttiere)); padding-inline: var(--gouttiere); }
.tcf-table--creusee a { color: #e6cf8f; }
.tcf-table--creusee .tcf-surtitre { color: #e6cf8f; }
.tcf-table--creusee .tcf-table__note { color: #cdbf9f; }
.tcf-table__tete { max-width: 46rem; margin-bottom: 1.5rem; }
.tcf-table__note { color: var(--encre-douce); }
.tcf-cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.tcf-carte .tcf-estampe { flex: 0 0 auto; margin: 0 0 .8em; }
.tcf-carte { border: var(--trait) solid var(--filet); background: var(--fond-appui); padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.tcf-carte__titre { font-size: 1.1rem; margin: 0; }
.tcf-carte__legende { font-size: .92rem; color: var(--encre-douce); margin: 0; }
.tcf-carte--numero { position: relative; padding-left: 3.2rem; }
.tcf-carte__indice { position: absolute; left: .6rem; top: .4rem; font-family: var(--titre-police); font-size: 2rem; color: var(--fonds-teinte); }
.tcf-rayon-liste { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; list-style: none; padding: 0; }
.tcf-renvoi { border-top: var(--trait) solid var(--filet); margin-top: 2.5rem; padding-top: 1.5rem; }
.tcf-renvoi__liste { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.tcf-renvoi__liste a { display: block; border: var(--trait) solid var(--filet); background: var(--fond-appui); padding: .9rem 1rem; text-decoration: none; }
.tcf-renvoi__quoi { display: block; font-family: var(--regie-police); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--fonds-teinte); }
.tcf-renvoi__titre { font-family: var(--titre-police); font-weight: 700; color: var(--encre); }
.tcf-table--creusee .tcf-renvoi__liste a { background: transparent; border-color: #4a5878; }
.tcf-table--creusee .tcf-renvoi__titre { color: var(--encre-inverse); }
.tcf-fonds-1 { --fonds-teinte: var(--fonds-1); }
.tcf-fonds-2 { --fonds-teinte: var(--fonds-2); }
.tcf-fonds-3 { --fonds-teinte: var(--fonds-3); }
.tcf-fonds-4 { --fonds-teinte: var(--fonds-4); }
.tcf-fonds-0 { --fonds-teinte: var(--fonds-1); }
.tcf-sommaire ol { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; list-style: none; padding: 0; font-size: .88rem; color: var(--encre-douce); }
.tcf-sommaire li + li::before { content: "›"; margin-right: 1.2rem; color: var(--filet); }
.tcf-corps { max-width: var(--mesure); }
.tcf-corps h2 { margin-top: 2rem; padding-top: .6rem; border-top: var(--trait) solid var(--filet); }
.tcf-mention { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; list-style: none; padding: 0; font-family: var(--regie-police); font-size: .82rem; color: var(--encre-douce); }
.tcf-tableau-defile { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { border: var(--trait) solid var(--filet); padding: .5rem .7rem; text-align: left; }
thead th { background: var(--fond-relief); font-family: var(--regie-police); font-size: .85rem; }
.tcf-exergue { border-left: 4px solid var(--fonds-teinte); background: var(--fond-appui); padding: 1rem 1.2rem; font-style: italic; }
.tcf-consigne { border: var(--trait) solid var(--filet); background: var(--fond-appui); padding: 1rem 1.2rem; }
.tcf-colophon { background: var(--fond-sombre); color: var(--encre-inverse); padding-block: 2.5rem 1.5rem; margin-top: var(--respiration); }
.tcf-colophon a { color: #e6cf8f; }
.tcf-colophon__grille { display: block; }
.tcf-colophon__colonne { margin-bottom: 1.5rem; }
.tcf-colophon__colonne h2 { font-size: 1rem; color: #e6cf8f; }
.tcf-colophon__colonne ul { list-style: none; padding: 0; }
.tcf-colophon__colonne li { margin-bottom: .4rem; }
.tcf-colophon__bas { border-top: 1px solid #4a5878; padding-top: 1rem; font-size: .85rem; color: #cdbf9f; }
/* Menu deux états : seuil 46rem */
@media (min-width: 46rem) {
  .tcf-rayon__handle { display: none; }
  .tcf-rayon ul { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; }
  .tcf-rayon a { color: var(--encre-inverse); text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; }
  .tcf-rayon a:hover { border-bottom-color: #e6cf8f; color: #e6cf8f; }
  .tcf-rayon a[aria-current="page"] { border-bottom-color: #e6cf8f; }
}
@media (max-width: 45.99rem) {
  .tcf-rayon__handle { display: inline-block; background: transparent; border: 1px solid #e6cf8f; color: var(--encre-inverse); padding: .5rem 1rem; cursor: pointer; border-radius: var(--arrondi); }
  .tcf-rayon ul { display: none; flex-direction: column; gap: 0; margin-top: .8rem; border: 1px solid #4a5878; }
  .tcf-rayon__toggle:checked ~ ul { display: grid; }
  .tcf-rayon a { display: block; color: var(--encre-inverse); text-decoration: none; padding: .7rem 1rem; border-top: 1px solid #4a5878; }
  .tcf-rayon a:hover { background: #2a3a5c; }
  .tcf-cartes { grid-template-columns: 1fr; }
  .tcf-rayon-liste { grid-template-columns: 1fr; }
  .tcf-renvoi__liste { grid-template-columns: 1fr; }
  .tcf-colophon__grille { grid-template-columns: 1fr; }
}
@media (min-width: 40rem) and (max-width: 45.99rem) {
  .tcf-cartes { grid-template-columns: repeat(2, 1fr); }
}
/* Reception: compact frontispiece and full-width collection shelves. */
main > .tcf-marge { padding-top: 1.3rem; }
.tcf-page--home .tcf-corps { max-width: none; }
.tcf-ouverture { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 2.5rem; padding: 1rem 0 2rem; }
.tcf-ouverture h1 { font-size: clamp(2rem, 2.5vw, 2.25rem); line-height: 1.12; letter-spacing: -.025em; }
.tcf-ouverture__texte p { font-size: .95rem; line-height: 1.65; margin-bottom: 0; color: var(--encre-douce); }
.tcf-ouverture > .tcf-estampe { margin: 0; transform: rotate(-1deg); box-shadow: 5px 7px 0 var(--fond-relief); }
.tcf-ouverture > .tcf-estampe img { height: 240px; object-fit: cover; }
.tcf-page--home .tcf-table { padding-block: 2rem; }
.tcf-page--home .tcf-table__tete { max-width: 52rem; margin-bottom: 1.3rem; }
.tcf-page--home .tcf-table h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.tcf-page--home .tcf-table__note { margin-bottom: 0; }
.tcf-page--article main > .tcf-marge > .tcf-estampe,
.tcf-page--hub main > .tcf-marge > .tcf-estampe { max-width: 48rem; }
.tcf-carte { min-width: 0; }
.tcf-corps__fin { max-width: var(--mesure); }
.tcf-rayon__toggle:focus-visible + .tcf-rayon__handle { outline: 2px solid #e6cf8f; outline-offset: 4px; }
@media (min-width: 46rem) { .tcf-colophon__grille { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; } }
@media (max-width: 45.99rem) {
  .tcf-ouverture { grid-template-columns: 1fr; gap: 1.4rem; padding-top: .5rem; }
  .tcf-ouverture > .tcf-estampe img { height: auto; }
  .tcf-ouverture > .tcf-estampe { transform: none; }
  .tcf-ouverture h1 { font-size: 2.1rem; }
}

/* Historical scans retain the complete plate, including edges and credits. */
.tcf-estampe--originale img { aspect-ratio: auto; height: auto; object-fit: contain; }
