/* Book Readers — thème noir, or et blanc.
   Bandeaux noirs (titre, livre à la une, pied de page), zone blanche pour le catalogue, accents or. */
:root {
  --black: #0b0b0c;
  --black-2: #151517;
  --white: #ffffff;
  --ivory: #f4efe4;
  --gold: #c9a96a;
  --gold-soft: #e6d3a6;
  --gold-deep: #8f6f2a;   /* or foncé, lisible sur fond blanc */
  --text: #141416;
  --text-soft: #5f5a50;
  --line-light: rgba(20, 20, 22, .14);
  --line-dark: rgba(244, 239, 228, .16);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.wrap { max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }
a { color: inherit; }
::selection { background: var(--gold); color: var(--black); }

/* Bandeaux noirs pleine largeur (titre, à la une, pied de page) */
.masthead, .featured, footer {
  background: var(--black);
  color: var(--ivory);
  box-shadow: 0 0 0 100vmax var(--black);
  clip-path: inset(0 -100vmax);
}

/* Titre du site */
.masthead {
  padding-block: clamp(56px, 9vw, 120px) clamp(44px, 6vw, 80px);
  text-align: center;
  background:
    radial-gradient(760px 320px at 50% 0, rgba(201, 169, 106, .2), transparent 72%),
    var(--black);
}
.eyebrow { font-size: 11px; letter-spacing: .36em; text-transform: uppercase; color: var(--gold); margin: 0 0 24px; font-weight: 600; }
.brand { font-family: var(--serif); font-weight: 500; font-size: clamp(54px, 11vw, 132px); line-height: .92; letter-spacing: -0.015em; margin: 0; color: var(--white); }
.brand em { font-style: italic; font-weight: 500; color: var(--gold); }
.tag { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2.4vw, 24px); color: rgba(244, 239, 228, .68); margin: 26px auto 0; max-width: 34em; }
.rule { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 36px; }
.rule::before, .rule::after { content: ""; width: 84px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.rule::after { transform: scaleX(-1); }
.rule i { width: 8px; height: 8px; border: 1px solid var(--gold); background: var(--gold); transform: rotate(45deg); }

/* À la une (noir) */
.featured {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line-dark);
}
.featured[hidden] { display: none; }
.featured .cover-link { justify-self: center; width: 100%; }
.f-label { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 16px; }
.f-title { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -0.01em; margin: 0 0 12px; color: var(--white); text-wrap: balance; }
.f-by { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold-soft); margin: 0 0 22px; }
.f-blurb { font-size: 17px; line-height: 1.7; color: rgba(244, 239, 228, .8); max-width: 40em; margin: 0 0 32px; }
.cta-solid {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--gold); color: var(--black); text-decoration: none;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700;
  padding: 17px 28px; border: 1px solid var(--gold);
  transition: background .25s, color .25s, gap .25s;
}
.cta-solid:hover { background: transparent; color: var(--gold); gap: 18px; }

/* Recherche et genres (blanc) */
.toolbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 2px solid var(--gold);
  border-bottom: 1px solid var(--line-light);
}
.toolbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 36px; padding-block: 16px; }
.search { flex: 1 1 260px; min-width: 0; font: inherit; font-size: 15px; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--line-light); border-radius: 0; padding: 9px 2px; transition: border-color .25s; }
.search::placeholder { color: var(--text-soft); }
.search:focus { outline: none; border-color: var(--gold-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.chip { font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-soft); background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 0; cursor: pointer; transition: color .2s, border-color .2s; }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { color: var(--black); border-bottom-color: var(--gold); }
.chip:focus-visible, .cta-solid:focus-visible, .cta-line:focus-visible, .cover-link:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; }

/* Catalogue (blanc) */
.count { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--text-soft); margin: 48px 0 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 72px clamp(24px, 3.4vw, 48px); padding-bottom: 48px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.cover-link { display: block; text-decoration: none; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.cover-link:hover { transform: translateY(-8px); }
.cover {
  display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 2px 4px 4px 2px;
  box-shadow: 0 24px 34px -20px rgba(11, 11, 12, .55), 0 2px 6px rgba(11, 11, 12, .18);
  transition: box-shadow .45s;
}
.cover-link:hover .cover { box-shadow: 0 38px 48px -22px rgba(11, 11, 12, .6), 0 0 0 1px var(--gold); }
.featured .cover { box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(201, 169, 106, .5); }

.meta { padding-top: 22px; min-width: 0; }
.genre { display: block; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-bottom: 10px; }
.meta h3 { font-family: var(--serif); font-weight: 600; font-size: 25px; line-height: 1.08; margin: 0 0 6px; color: var(--black); text-wrap: balance; }
.by { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--text-soft); margin: 0 0 14px; }
.blurb { font-size: 13.5px; line-height: 1.65; color: rgba(20, 20, 22, .74); margin: 0; }

.card .spacer { flex: 1; }
.cta-line {
  margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-decoration: none; padding: 14px 16px;
  border: 1px solid var(--black); background: var(--black); color: var(--ivory);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700;
  transition: background .25s, color .25s, border-color .25s;
}
.cta-line span:last-child { color: var(--gold); transition: transform .3s, color .25s; }
.cta-line:hover { background: var(--white); color: var(--black); border-color: var(--gold); }
.cta-line:hover span:last-child { transform: translateX(6px); color: var(--gold-deep); }

.empty { text-align: center; font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--text-soft); padding: 80px 0; }
.empty[hidden] { display: none; }

/* Pied de page (noir) */
footer { margin-top: 56px; padding-block: 48px 56px; text-align: center; color: rgba(244, 239, 228, .6); font-size: 12px; letter-spacing: .04em; border-top: 2px solid var(--gold); }
footer b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--gold); letter-spacing: 0; margin-bottom: 8px; }

@media (max-width: 760px) {
  .featured { grid-template-columns: 1fr; text-align: center; }
  .featured .cover-link { max-width: 240px; }
  .f-blurb { margin-inline: auto; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 18px; }
  .meta h3 { font-size: 20px; }
  .by { font-size: 15px; }
  .blurb { display: none; }
  .cta-line { padding: 12px; letter-spacing: .14em; }
  .chips { gap: 2px 18px; }
  .toolbar .wrap { gap: 6px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .cover-link:hover { transform: none; }
}