/* Mur de livres flous qui glissent doucement en fond de la page d'accueil. */

.landing { position: relative; }
.landing .site-header, .landing main, .landing .site-footer { position: relative; z-index: 1; }
.landing .site-header { background: transparent !important; border-bottom: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.landing .site-footer { border-top-color: transparent; background: transparent; }
.landing main { flex: 1; display: flex; align-items: center; justify-content: center; }
.landing .hero { padding: 40px 0 60px; }
.landing .hero .lead { color: rgba(255, 255, 255, 0.82); }

.books {
  position: fixed;
  inset: -6vh -6vw;            /* déborde un peu pour que le flou ne laisse pas de bord net */
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--gap);
  opacity: 0.38;
  --gap: 1.6vw;
  --w: calc((100vw - 9 * var(--gap)) / 10);   /* environ 10 livres par ligne */
}
/* Voile : plus sombre au centre pour que le texte reste bien lisible. */
.books::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 50% 50%, rgba(14, 11, 24, 0.85), rgba(14, 11, 24, 0.35) 70%, rgba(14, 11, 24, 0.55)),
    linear-gradient(180deg, transparent 80%, rgba(14, 11, 24, 0.7));
}

.book-row {
  display: flex;
  gap: var(--gap);
  width: max-content;
  filter: blur(12px);
  will-change: transform;
  animation: drift var(--dur, 140s) linear infinite;
}
.book-row.rev { animation-direction: reverse; }

.book {
  position: relative;
  flex-shrink: 0;
  width: var(--w);
  aspect-ratio: 2 / 3;
  border-radius: 3px 6px 6px 3px;
  background: var(--c);
  box-shadow: inset 4px 0 0 rgba(0, 0, 0, 0.25), inset -1px 0 0 rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
/* Faux titre et faux bandeau : de simples formes, illisibles une fois floutées. */
.book::before {
  content: "";
  position: absolute;
  left: 16%; right: 16%; top: var(--t, 18%);
  height: 14%;
  border-radius: 2px;
  background: var(--a, rgba(255, 255, 255, 0.8));
}
.book::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: var(--b, 12%);
  height: var(--h, 22%);
  background: var(--d, rgba(0, 0, 0, 0.25));
}

@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 760px) {
  .books { --gap: 3vw; --w: calc((100vw - 4 * var(--gap)) / 5); opacity: 0.32; }
  .book-row { filter: blur(9px); }
}
@media (prefers-reduced-motion: reduce) {
  .book-row { animation: none; }
}
