* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #f3ece6;
  font-family: 'Work Sans', sans-serif;
  color: #2d1b4d;
  min-height: 100vh;
}

::selection { background: #7d3fae; color: #f3ece6; }

.title-font { font-family: 'Playfair Display', serif; }
.accent-font { font-family: 'Cormorant Garamond', serif; font-style: italic; }

input, select, button { font-family: 'Work Sans', sans-serif; }

a { color: inherit; }

/* HEADER */
header.site-header {
  background: #2d1b4d;
  color: #f3ece6;
}
header.site-header .inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 48px 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.brand-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand-title {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 40px;
  letter-spacing: 0.2px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.brand-title .subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  color: #e0b968;
}
.brand-tagline {
  margin: 8px 0 0;
  font-size: 15.5px;
  color: #cabfae;
  max-width: 560px;
  line-height: 1.5;
}
.series-count {
  font-size: 13px;
  color: #e0b968;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.breadcrumb {
  color: #e0b968;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb:hover { text-decoration: underline; }

/* SEARCH */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f3ece6;
  border-radius: 999px;
  padding: 6px 8px 6px 20px;
  max-width: 640px;
  box-shadow: inset 0 0 0 1px rgba(224, 185, 104, 0.35);
}
.search-bar .icon { font-size: 16px; color: #7a6b57; }
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: #2d1b4d;
  padding: 10px 0;
}
.search-bar button {
  border: none;
  background: #7d3fae;
  color: #f3ece6;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
}

/* FILTERS */
.filters-bar {
  background: #ece0ea;
  border-bottom: 1px solid #e0d0e6;
}
.filters-bar .inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.chip-group { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn {
  border: 1.5px solid #d9c5dd;
  background: #f3ece6;
  color: #2d1b4d;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
}
.chip-btn:hover { filter: brightness(0.95); }
.chip-btn.active { background: #2d1b4d; color: #f3ece6; border-color: #2d1b4d; }
.filter-divider { width: 1px; height: 22px; background: #c7b0cf; }
.filter-field { display: flex; align-items: center; gap: 10px; }
.filter-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: #5c5044;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.filter-field select {
  border: 1.5px solid #d9c5dd;
  background: #f3ece6;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 14px;
  color: #2d1b4d;
  max-width: 190px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.reset-filters {
  margin-left: auto;
  border: none;
  background: none;
  color: #7d3fae;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* MAIN CONTENT */
main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 48px 80px;
}
.section-title-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
}
.section-title-row.spread { justify-content: space-between; }
.section-title-row h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
}
.section-meta { font-size: 13px; color: #8a7c6d; }

.scroll-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.scroll-row > a { flex: 0 0 260px; }
.scroll-row::-webkit-scrollbar { height: 8px; }
.scroll-row::-webkit-scrollbar-thumb { background: #d9c5dd; border-radius: 8px; }

.see-more-link {
  display: inline-block;
  margin-top: 14px;
  color: #7d3fae;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: underline;
}

.spine {
  border-radius: 3px;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.18);
}
.spine .cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spine::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.5) 0 2px, rgba(255,255,255,0) 2px 4px, rgba(0,0,0,0.15) 4px 6px);
}
.spine .initial {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}

.card {
  background: #faf5fa;
  border-radius: 14px;
  border: 1px solid #e0d0e6;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px -12px rgba(60,30,20,0.28); }

.update-card {
  width: 100%;
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 6px 16px -10px rgba(60,30,20,0.22);
}
.update-card .top { display: flex; gap: 12px; align-items: flex-start; }
.update-card .spine { width: 46px; height: 66px; }
.update-card .spine .initial { font-size: 18px; }
.update-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #e0b968;
  background: #2d1b4d;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  margin-bottom: 6px;
}
.update-card .tome-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
}
.update-card .series-title {
  font-size: 11px;
  color: #8a7c6d;
  margin-top: 2px;
}
.status-line {
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}
.update-card .status-line { margin-top: auto; }

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 22px;
}
.series-card {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 10px -8px rgba(60,30,20,0.18);
  text-decoration: none;
}
.series-card .top { display: flex; gap: 14px; align-items: flex-start; }
.series-card .spine { width: 52px; height: 76px; }
.series-card .spine .initial { font-size: 20px; }
.status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
}
.series-card .titleVO {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.28;
  margin-top: 8px;
}
.series-card .titleFR {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  color: #7d3fae;
  margin-top: 3px;
}
.series-card .meta {
  border-top: 1px solid #e0d0e6;
  padding-top: 12px;
  font-size: 13px;
  color: #5c5044;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.series-card .meta .label { color: #8a7c6d; }

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: #8a7c6d;
  font-size: 15px;
  background: #faf5fa;
  border-radius: 14px;
  border: 1px dashed #d9c5dd;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}
.nav-btn {
  border: 1.5px solid #7d3fae;
  color: #7d3fae;
  background: none;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.nav-btn:hover:not(:disabled) { background: #7d3fae; color: #f3ece6; }
.nav-btn:disabled { opacity: 0.4; cursor: default; }
.page-display { font-size: 13.5px; color: #5c5044; padding: 0 8px; }

footer.site-footer {
  background: #2d1b4d;
  color: #a99a86;
  padding: 28px 48px;
  text-align: center;
  font-size: 12.5px;
}

/* FICHE LIVRE */
.book-hero {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.book-hero .spine {
  width: 150px;
  height: 220px;
  border-radius: 5px;
  box-shadow: 0 14px 30px -10px rgba(60,30,20,0.4);
}
.book-hero .spine::before { top: 20px; height: 9px; }
.book-hero .spine .initial {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  padding: 24px;
  line-height: 1.15;
}
.book-info { flex: 1; min-width: 320px; display: flex; flex-direction: column; gap: 16px; }
.book-titles .titleVO {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 38px;
  line-height: 1.15;
}
.book-titles .titleFR {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  color: #7d3fae;
  margin-top: 6px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 6px;
  padding: 20px;
  background: #faf5fa;
  border: 1px solid #e0d0e6;
  border-radius: 14px;
}
.info-grid .label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8a7c6d;
}
.info-grid .value { font-size: 15px; margin-top: 4px; }
.note-box {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  background: #f3e6c9;
  border-radius: 12px;
  border: 1px solid #e2c893;
}
.note-box p { font-size: 13.5px; color: #5c4a20; line-height: 1.5; }

.tomes-section { margin-top: 52px; }
.tomes-section h2, .similar-section h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin: 0 0 18px;
}
.tomes-section h2 { font-size: 24px; }
.tomes-wrap {
  background: #faf5fa;
  border: 1px solid #e0d0e6;
  border-radius: 14px;
  overflow: hidden;
}
table.tomes-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tomes-table thead tr { background: #2d1b4d; color: #e0b968; text-align: left; }
table.tomes-table th {
  padding: 13px 18px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
table.tomes-table td { padding: 14px 18px; }
table.tomes-table tr.tome-row { border-top: 1px solid #e0d0e6; }
table.tomes-table tr.tome-row:hover { background: #f5ead2; }
.tome-num { font-weight: 700; color: #5c5044; }
.tome-titleVO { font-family: 'Playfair Display', serif; font-weight: 600; }
.tome-titleFR { font-family: 'Cormorant Garamond', serif; font-style: italic; color: #7d3fae; }
.tome-date { color: #5c5044; }

.similar-section { margin-top: 52px; }
.similar-section h2 { font-size: 22px; }
.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.similar-card {
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: 0 4px 10px -8px rgba(60,30,20,0.16);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.similar-card:hover { transform: translateY(-3px); box-shadow: 0 12px 22px -12px rgba(60,30,20,0.28); }
.similar-card .spine { width: 40px; height: 58px; }
.similar-card .spine .initial { font-size: 16px; }
.similar-card .status-line { font-size: 11px; }
.similar-card .titleVO {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.25;
  margin-top: 4px;
}
