/* ============ HEADER (§19 canonical) ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--surface-primary-background);
  border-bottom: 2px solid var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border: 2px solid var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  color: var(--secondary-color);
  flex-shrink: 0;
}
.logo-text {
  font-family: "Cinzel", serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--background-color);
  line-height: 1.2;
  white-space: nowrap;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.main-nav a {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.7);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  transition: color 0.2s;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  right: 50%;
  height: 1px;
  background: var(--secondary-color);
  transition:
    left 0.2s,
    right 0.2s;
}
.main-nav a:hover {
  color: var(--secondary-color-strong);
}
.main-nav a:hover::after {
  left: 0.7rem;
  right: 0.7rem;
}
.nav-search {
  margin-left: 0.5rem;
  background: none;
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
  padding: 0.3rem 0.9rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--background-color);
  cursor: pointer;
  padding: 0.4rem;
}
.hamburger svg {
  width: 22px;
  height: 22px;
}

/* ============ BREADCRUMB ============ */
.breadcrumb-bar {
  margin-top: var(--header-h);
  background: var(--background-color-muted);
  border-bottom: 1px solid var(--surface-primary-foreground-muted);
  padding: 0.65rem 4rem;
}
.breadcrumb {
  max-width: var(--max-w);
  margin: 0 auto;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  color: var(--text-color-subtle);
  letter-spacing: 0.04em;
}
.breadcrumb a {
  color: var(--surface-primary-background-muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.breadcrumb .sep {
  margin: 0 0.4rem;
  color: var(--surface-primary-foreground-strong);
}

/* ============ BOOK HEADER ============ */
.book-header {
  background: var(--surface-primary-background);
  padding: 3.5rem 4rem 3rem;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--secondary-color);
}
.book-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(201, 150, 12, 0.02) 40px,
    rgba(201, 150, 12, 0.02) 41px
  );
  pointer-events: none;
}
.book-header-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Cover */
.book-cover {
  width: 180px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(201, 150, 12, 0.25);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
}
.book-cover img {
  width: 100%;
  display: block;
  filter: sepia(10%) contrast(1.05);
}
.book-cover-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: linear-gradient(
    145deg,
    var(--surface-primary-background-alt) 0%,
    var(--surface-primary-background) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  gap: 0.75rem;
}
.cover-ph-icon {
  font-size: 2.5rem;
  opacity: 0.3;
}
.cover-ph-title {
  font-family: "Playfair Display", serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(201, 150, 12, 0.4);
  text-align: center;
  line-height: 1.3;
  font-style: italic;
}
.cover-ph-author {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  color: rgba(245, 240, 232, 0.25);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Book info */
.book-info {
  min-width: 0;
}
.book-eyebrow {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.book-eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--secondary-color);
}

.book-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  font-style: italic;
  color: var(--background-color);
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.book-author-line {
  font-family: "EB Garamond", serif;
  font-size: 1.2rem;
  color: rgba(245, 240, 232, 0.75);
  margin-bottom: 0.35rem;
}
.book-author-name {
  font-weight: 500;
  color: var(--background-color);
}
.book-author-name a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 150, 12, 0.3);
}
.book-author-name a:hover {
  border-bottom-color: var(--secondary-color);
}

.book-pub-line {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.82rem;
  color: rgba(245, 240, 232, 0.5);
  margin-bottom: 1.25rem;
}

/* Type + tags row */
.book-meta-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.book-type-badge {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: 2px;
}
.book-type-livre {
  background: rgba(245, 240, 232, 0.12);
  color: var(--background-color);
  border: 1px solid rgba(245, 240, 232, 0.2);
}
.book-type-article {
  background: rgba(214, 48, 32, 0.15);
  color: #f5a8a0;
  border: 1px solid rgba(214, 48, 32, 0.25);
}
.book-type-guide,
.book-type-web {
  background: rgba(201, 150, 12, 0.15);
  color: var(--secondary-color-strong);
  border: 1px solid rgba(201, 150, 12, 0.25);
}
.book-type-revue,
.book-type-encyclopedie {
  background: rgba(107, 58, 16, 0.2);
  color: #d4a060;
  border: 1px solid rgba(107, 58, 16, 0.3);
}
.book-type-pamphlet,
.book-type-archives {
  background: rgba(200, 184, 154, 0.12);
  color: var(--surface-primary-foreground-strong);
  border: 1px solid rgba(200, 184, 154, 0.2);
}
.book-type-catalogue,
.book-type-audiovisuel {
  background: rgba(92, 82, 70, 0.15);
  color: rgba(245, 240, 232, 0.6);
  border: 1px solid rgba(92, 82, 70, 0.25);
}

.book-tag {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(245, 240, 232, 0.55);
  background: rgba(245, 240, 232, 0.07);
  padding: 0.18rem 0.55rem;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.2s;
}
.book-tag:hover {
  background: rgba(201, 150, 12, 0.12);
  color: var(--secondary-color-strong);
}
.book-tag-period {
  border-left: 2px solid rgba(201, 150, 12, 0.4);
}

/* Stats row */
.book-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(201, 150, 12, 0.12);
  margin-bottom: 1.25rem;
}
.book-stat {
  display: flex;
  flex-direction: column;
}
.book-stat-num {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1;
}
.book-stat-label {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.35);
  margin-top: 0.15rem;
}

/* Action buttons */
.book-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.book-action-btn {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.book-action-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn-download {
  background: var(--primary-color);
  color: var(--background-color);
}
.btn-download:hover {
  background: var(--primary-color-hover);
}

.btn-external {
  background: rgba(245, 240, 232, 0.1);
  color: rgba(245, 240, 232, 0.7);
  border: 1px solid rgba(245, 240, 232, 0.2);
}
.btn-external:hover {
  background: rgba(245, 240, 232, 0.15);
  color: var(--background-color);
}

.btn-share {
  background: none;
  color: rgba(245, 240, 232, 0.5);
  border: 1px solid rgba(245, 240, 232, 0.15);
}
.btn-share:hover {
  color: var(--secondary-color-strong);
  border-color: rgba(201, 150, 12, 0.3);
}

/* ============ MAIN CONTENT AREA ============ */
.book-body {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 2.5rem 4rem 4rem;
  align-items: start;
}

/* ---- Main column ---- */
.book-main {
  min-width: 0;
}

/* Editorial note */
.editorial-note {
  background: rgba(201, 150, 12, 0.06);
  border-left: 3px solid var(--secondary-color);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}
.editorial-note-label {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 0.4rem;
}
.editorial-note-text {
  font-family: "EB Garamond", serif;
  font-size: 0.98rem;
  color: var(--text-color-muted);
  line-height: 1.75;
  font-style: italic;
}

/* Citing fiches section */
.citing-section {
  margin-bottom: 2.5rem;
}
.citing-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.25rem;
  border-bottom: 2px solid var(--secondary-color);
}
.citing-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}
.citing-count {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  color: var(--text-color-subtle);
}
.citing-sort {
  margin-left: auto;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  color: var(--text-color-muted);
  border: 1px solid var(--surface-primary-foreground-strong);
  padding: 0.35rem 1.8rem 0.35rem 0.65rem;
  background: var(--background-color);
  border-radius: 2px;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%235C5246' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
}

/* ============ FICHE ROW (from canonical component) ============ */
.fiche-list {
  display: flex;
  flex-direction: column;
}

.fr {
  display: block;
  color: var(--text-color);
  border-bottom: 1px solid var(--surface-primary-foreground-muted);
  transition: background 0.15s;
  position: relative;
  padding: 1.25rem 0 1.1rem;
  text-decoration: none;
}
.fr:first-child {
  border-top: 1px solid var(--surface-primary-foreground-muted);
}
.fr:hover {
  background: var(--background-color-muted);
  margin: 0 -1.25rem;
  padding: 1.25rem 1.25rem 1.1rem;
}

/* Type hover borders */
.fr[data-type="evenement"]:hover {
  border-left: 3px solid var(--primary-color);
}
.fr[data-type="personnage"]:hover {
  border-left: 3px solid var(--secondary-color);
}
.fr[data-type="lieu"]:hover {
  border-left: 3px solid var(--surface-primary-background-muted);
}
.fr[data-type="adresse"]:hover {
  border-left: 3px solid var(--text-color-muted);
}

/* Corner type badge */
.fr-type {
  position: absolute;
  top: 1.25rem;
  right: 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.12rem 0.5rem;
}
.fr:hover .fr-type {
  right: 1.25rem;
}
.fr-type.evenement {
  background: var(--badge-bg-evenement);
  color: var(--badge-text-evenement);
}
.fr-type.personnage {
  background: var(--badge-bg-personnage);
  color: var(--badge-text-personnage);
}
.fr-type.lieu {
  background: var(--badge-bg-lieu);
  color: var(--badge-text-lieu);
}
.fr-type.adresse {
  background: var(--badge-bg-adresse);
  color: var(--badge-text-adresse);
}

/* 3-zone grid */
.fr-grid {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0 1.25rem;
}
.fr-date-col {
  grid-column: 1;
  grid-row: 1;
  padding-top: 0.1rem;
}
.fr-content {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.fr-meta-zone {
  grid-column: 3;
  grid-row: 1;
  text-align: right;
  padding-top: 0.15rem;
  padding-left: 1rem;
  max-width: 200px;
}
.fr[data-type] .fr-meta-zone {
  margin-top: 1.4rem;
}

/* Date */
.fr-date {
  font-family: "Playfair Display", serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary-color);
  display: block;
  text-align: right;
  line-height: 1.25;
}

/* Title */
.fr-title {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--surface-primary-background);
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
.fr:hover .fr-title {
  color: var(--primary-color);
}

/* Subtitle / secondary info */
.fr-subtitle {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  color: var(--text-color-subtle);
  font-style: italic;
  margin-bottom: 0.15rem;
}

/* Address */
.fr-addr {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--primary-color);
  line-height: 1.4;
}
.fr-addr::before {
  content: "📍 ";
  font-style: normal;
}

/* Page reference — the new element for bibliography context */
.fr-pageref {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  color: var(--text-color-muted);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.fr-pageref::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 2h8v12H4z' stroke='%237A7060' stroke-width='1.2'/%3E%3Cpath d='M6 5h4M6 7.5h4M6 10h2' stroke='%237A7060' stroke-width='0.8'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.fr-pageref-num {
  font-weight: 600;
  color: var(--secondary-color);
}

/* Excerpt from citing fiche */
.fr-excerpt {
  font-family: "EB Garamond", serif;
  font-size: 0.92rem;
  color: var(--text-color-muted);
  line-height: 1.6;
  margin-top: 0.45rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fr.expanded .fr-excerpt {
  display: block;
  -webkit-line-clamp: unset;
}
.fr-excerpt mark {
  background: rgba(201, 150, 12, 0.15);
  color: inherit;
  padding: 0.05em 0.1em;
  border-radius: 1px;
}

/* Accordion expand toggle */
.fr-toggle {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--surface-primary-background-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0;
  letter-spacing: 0.04em;
  transition: color 0.15s;
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.fr-toggle:hover {
  color: var(--primary-color);
}
.fr-toggle .arrow {
  font-size: 0.55rem;
  transition: transform 0.2s;
}
.fr.expanded .fr-toggle .arrow {
  transform: rotate(180deg);
}
.fr:not(.expanded) .fr-toggle-collapse {
  display: none;
}
.fr.expanded .fr-toggle-expand {
  display: none;
}
.fr:not(.expanded) .fr-toggle-collapse {
  display: none;
}
.fr.expanded .fr-toggle-collapse {
  display: inline-flex;
}

/* Expanded full text area */
.fr-expanded {
  display: none;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--surface-primary-foreground-muted);
}
.fr.expanded .fr-expanded {
  display: block;
}
.fr-full-text {
  font-family: "EB Garamond", serif;
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.8;
}
.fr-full-text p {
  margin-bottom: 0.85rem;
}
.fr-full-text p:last-child {
  margin-bottom: 0;
}
.fr-viewfiche {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: none;
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--surface-primary-foreground-muted);
}
.fr-viewfiche:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fr-viewfiche::after {
  content: " →";
}

/* ---- Sidebar ---- */
.book-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

/* Sidebar blocks (reuse pattern from fiche templates) */
.sidebar-block {
  background: var(--background-color-muted);
  border-top: 2px solid var(--secondary-color);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.sidebar-block-title {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-color-muted);
  padding-bottom: 0.65rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--surface-primary-foreground-muted);
}

/* Full bibliographic reference */
.bib-full-ref {
  font-family: "EB Garamond", serif;
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.65;
}
.bib-full-ref em {
  font-style: italic;
}

/* Sidebar metadata list */
.sidebar-meta {
  list-style: none;
}
.sidebar-meta li {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  color: var(--text-color-muted);
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(200, 184, 154, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}
.sidebar-meta li:last-child {
  border-bottom: none;
}
.sidebar-meta-label {
  font-weight: 500;
  color: var(--text-color-subtle);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.sidebar-meta-value {
  text-align: right;
  color: var(--text-color);
  font-weight: 400;
}
.sidebar-meta-value a {
  color: var(--surface-primary-background-muted);
  text-decoration: none;
}
.sidebar-meta-value a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Sidebar links */
.sidebar-link-list {
  list-style: none;
}
.sidebar-link-list li {
  padding: 0.4rem 0;
}
.sidebar-link-list a {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  color: var(--surface-primary-background-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}
.sidebar-link-list a:hover {
  color: var(--primary-color);
}
.sidebar-link-list a svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Download block */
.sidebar-download {
  background: var(--surface-primary-background);
  border-top: 2px solid var(--primary-color);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.sidebar-download-title {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.35);
  padding-bottom: 0.65rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(245, 240, 232, 0.08);
}
.download-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  text-decoration: none;
  transition: opacity 0.2s;
}
.download-item:hover {
  opacity: 0.8;
}
.download-icon {
  width: 36px;
  height: 36px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.download-icon-pdf {
  background: rgba(184, 40, 28, 0.2);
}
.download-icon-epub {
  background: rgba(44, 74, 110, 0.2);
}
.download-info {
  min-width: 0;
}
.download-filename {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--background-color);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.download-size {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  color: rgba(245, 240, 232, 0.4);
  display: block;
}

/* À propos section */
.about-section {
  margin-bottom: 2.5rem;
}
.about-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--surface-primary-foreground-strong);
}
.about-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}
.about-body {
  font-family: "EB Garamond", serif;
  font-size: 1.05rem;
  color: var(--text-color);
  line-height: 1.85;
}
.about-body p {
  margin-bottom: 1rem;
}
.about-body p:last-child {
  margin-bottom: 0;
}
.about-toc {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--background-color-muted);
  border-left: 3px solid var(--surface-primary-foreground-strong);
}
.about-toc-label {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-color-muted);
  margin-bottom: 0.65rem;
}
.about-toc ol {
  list-style: none;
  counter-reset: toc-counter;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.8rem;
  color: var(--text-color-muted);
  line-height: 2;
  column-count: 2;
  column-gap: 2rem;
}
.about-toc li {
  counter-increment: toc-counter;
}
.about-toc li::before {
  content: counter(toc-counter, upper-roman) ". ";
  font-family: "Playfair Display", serif;
  font-size: 0.72rem;
  color: var(--secondary-color);
  font-weight: 700;
  margin-right: 0.25rem;
}
.about-source {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  color: var(--text-color-subtle);
  margin-top: 1rem;
  font-style: italic;
}

/* Lazy-load indicator */
.lazy-load-sentinel {
  text-align: center;
  padding: 2rem 0 1rem;
}
.lazy-load-status {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  color: var(--text-color-subtle);
  display: block;
  margin-bottom: 0.5rem;
}
.lazy-load-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid var(--surface-primary-foreground-muted);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.lazy-load-done {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  color: var(--text-color-subtle);
  padding: 1.5rem 0;
  text-align: center;
  border-top: 1px solid var(--surface-primary-foreground-muted);
  margin-top: 1rem;
}

/* Related books */
.related-book {
  display: flex;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(200, 184, 154, 0.25);
  text-decoration: none;
  transition: background 0.15s;
}
.related-book:last-child {
  border-bottom: none;
}
.related-book:hover {
  background: rgba(201, 150, 12, 0.04);
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.related-book-cover {
  width: 40px;
  height: 56px;
  background: var(--surface-primary-background);
  border-radius: 2px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: rgba(201, 150, 12, 0.3);
}
.related-book-info {
  min-width: 0;
}
.related-book-title {
  font-family: "EB Garamond", serif;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-color);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-book-author {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  color: var(--text-color-subtle);
  margin-top: 0.15rem;
}

/* Random fiche */
.random-fiche {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--background-color-muted);
  border: 1px solid var(--surface-primary-foreground-muted);
  padding: 0.85rem 1rem;
  text-decoration: none;
  transition: border-color 0.2s;
  margin-bottom: 1.25rem;
}
.random-fiche:hover {
  border-color: var(--secondary-color);
}
.random-fiche-icon {
  font-size: 1.3rem;
}
.random-fiche-text {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  color: var(--text-color-muted);
}
.random-fiche-text strong {
  display: block;
  color: var(--text-color);
  font-size: 0.75rem;
}

/* ============ PREV/NEXT NAVIGATION ============ */
.fiche-nav {
  background: var(--surface-primary-background);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--secondary-color);
}
.fiche-nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2.5rem;
  text-decoration: none;
  transition: background 0.2s;
}
.fiche-nav-item:hover {
  background: var(--surface-primary-background-alt);
}
.fiche-nav-item + .fiche-nav-item {
  border-left: 1px solid rgba(201, 150, 12, 0.15);
  justify-content: flex-end;
  text-align: right;
}
.fiche-nav-arrow {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--secondary-color);
}
.fiche-nav-dir {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.35);
  display: block;
}
.fiche-nav-title {
  font-family: "EB Garamond", serif;
  font-size: 0.92rem;
  font-style: italic;
  color: rgba(245, 240, 232, 0.7);
  display: block;
  margin-top: 0.15rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .book-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .book-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

@media (max-width: 860px) {
  .site-header {
    padding: 0 1.2rem;
  }
  .main-nav {
    display: none;
  }
  .hamburger {
    display: block;
  }

  .breadcrumb-bar {
    padding: 0.65rem 1.2rem;
  }

  .book-header {
    padding: 2.5rem 1.5rem 2rem;
  }
  .book-header-inner {
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
  }
  .book-cover {
    width: 120px;
  }
  .book-title {
    font-size: 1.6rem;
  }
  .book-author-line {
    font-size: 1.05rem;
  }
  .book-stats {
    gap: 1.25rem;
  }
  .book-stat-num {
    font-size: 1.4rem;
  }

  .book-body {
    padding: 2rem 1.2rem 3rem;
  }
  .book-sidebar {
    grid-template-columns: 1fr;
  }

  .about-toc ol {
    column-count: 1;
  }

  .fr-grid {
    display: flex;
    flex-direction: column;
  }
  .fr-date-col {
    display: none;
  }
  .fr-meta-zone {
    display: none;
  }
  .fr:hover {
    margin: 0 -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .fr:hover .fr-type {
    right: 0.75rem;
  }

  .fiche-nav {
    grid-template-columns: 1fr;
  }
  .fiche-nav-item + .fiche-nav-item {
    border-left: none;
    border-top: 1px solid rgba(201, 150, 12, 0.15);
    justify-content: flex-start;
    text-align: left;
  }
  .fiche-nav-item {
    padding: 1rem 1.5rem;
  }

}

@media (max-width: 540px) {
  .book-header-inner {
    grid-template-columns: 1fr;
  }
  .book-cover {
    width: 140px;
    margin: 0 auto 1rem;
  }
  .book-actions {
    flex-direction: column;
  }
  .book-actions .book-action-btn {
    width: 100%;
    justify-content: center;
  }
}
