/* Export « livre du site » — pdf.html */
.site-book-export {
  margin-top: 2.5rem;
  padding: 1.75rem 0 0;
  border: none;
  border-top: 1px solid var(--line-soft);
  border-radius: 0;
  background: transparent;
}

.page-hero .site-book-export {
  margin-top: 2.5rem;
}

.site-book-export__eyebrow {
  margin: 0 0 0.75rem;
}

.site-book-export__title {
  font-family: var(--font-display, "Fraunces", serif);
  font-weight: 300;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.site-book-export__lead {
  max-width: 58ch;
  color: var(--fg-soft);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.site-book-export__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.site-book-export__status {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--fg-muted);
  min-height: 1.4em;
}

.site-book-export__progress {
  display: block;
  width: 100%;
  max-width: 420px;
  margin-top: 0.75rem;
  height: 4px;
  accent-color: var(--accent);
}

.site-book-export__viewer {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
}

.site-book-export__viewer > summary {
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-weight: 500;
  list-style: none;
  background: transparent;
  color: var(--fg);
}

.site-book-export__viewer > summary::-webkit-details-marker {
  display: none;
}

.site-book-export__viewer-inner {
  max-height: min(72vh, 820px);
  overflow: auto;
  padding: 1rem;
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}

.site-book-export__print-host {
  display: none;
}

.site-book-export__pdf-render {
  position: fixed;
  left: -12000px;
  top: 0;
  width: 210mm;
  opacity: 0.01;
  pointer-events: none;
  z-index: -1;
  overflow: visible;
}

/* Livre assemblé */
.site-book {
  --book-fg: #ede8df;
  --book-muted: #a8a4a0;
  --book-accent: #c9a961;
  --book-bg: #050509;
  color: var(--book-fg);
  background: var(--book-bg);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11pt;
  line-height: 1.45;
}

.site-book__cover {
  min-height: 240mm;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2rem;
  page-break-after: always;
  border-bottom: 1px solid rgba(201, 169, 97, 0.25);
}

.site-book__mark {
  font-family: "Fraunces", serif;
  font-size: 2.4rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.site-book__mark .dot {
  color: var(--book-accent);
}

.site-book__subtitle {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--book-muted);
  margin-bottom: 2rem;
}

.site-book__meta {
  font-size: 0.82rem;
  color: var(--book-muted);
  line-height: 1.6;
}

.site-book__toc {
  padding: 2rem 1.75rem;
  page-break-after: always;
}

.site-book__toc h2 {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--book-accent);
}

.site-book__toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.site-book__toc li {
  margin: 0.35rem 0;
  font-size: 0.92rem;
}

.site-book__toc a {
  color: var(--book-fg);
  text-decoration: none;
}

.site-book__chapter {
  padding: 1.75rem 1.5rem 2.5rem;
  page-break-before: always;
  border-top: 1px solid rgba(201, 169, 97, 0.15);
}

.site-book__chapter-head {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(237, 232, 223, 0.1);
}

.site-book__chapter-num {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--book-accent);
}

.site-book__chapter-title {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: 1.45rem;
  margin: 0.25rem 0 0;
}

.site-book__chapter-url {
  font-size: 0.75rem;
  color: var(--book-muted);
  word-break: break-all;
}

.site-book__body .page-hero__crumbs,
.site-book__body .page-hero__back,
.site-book__body .net-art-controls,
.site-book__body .net-art-calabi-params,
.site-book__body .site-book-export,
.site-book__body iframe,
.site-book__body canvas,
.site-book__body video,
.site-book__body .slideshow__controls,
.site-book__body .news-slideshow__controls {
  display: none !important;
}

.site-book__body .reveal {
  opacity: 1 !important;
  transform: none !important;
}

.site-book__body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.site-book__body .ldt-panorama-banner__frame img {
  width: 100%;
}

.site-book__interactive {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px dashed rgba(201, 169, 97, 0.45);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--book-muted);
  background: rgba(201, 169, 97, 0.06);
}

.site-book__interactive strong {
  color: var(--book-accent);
  display: block;
  margin-bottom: 0.35rem;
}

.site-book__interactive a {
  color: var(--book-fg);
  word-break: break-all;
}

.site-book__body .cat-list__group h3,
.site-book__body .eyebrow {
  color: var(--book-accent);
}

.site-book__body .page-hero__title {
  font-family: "Fraunces", serif;
  font-weight: 300;
}

.site-book__footer-note {
  padding: 1.5rem;
  font-size: 0.78rem;
  color: var(--book-muted);
  text-align: center;
  page-break-before: always;
}

@media (max-width: 640px) {
  .site-book-export__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media print {
  .site-book-export__print-host {
    position: static;
    visibility: visible;
    width: auto;
  }
}
