/* ==========================================================================
   Page "Nos Livres" (/livres-recettes) — catalogue des 10 ebooks Chef Khalid.
   Chargé uniquement sur cette page, en complément de landing.css (variables
   --t99-*, .t99-btn, .t99-hero, .t99-container déjà définis là-bas).
   ========================================================================== */

/* Diaporama du hero : 10 photos réalistes sans texte (voir hero-slides/).
   landing.css ne prévoit que 9 délais nth-child (accueil = 9 slides) ; on
   recalcule ici 10 délais régulièrement espacés sur le même cycle de 36s,
   avec une spécificité plus forte (.t99-hero-slideshow-10) pour surclasser
   proprement les règles de landing.css sans les modifier. */
.t99-hero-slideshow-10 .t99-hero-slide:nth-child(1)  { animation-delay: 0s; }
.t99-hero-slideshow-10 .t99-hero-slide:nth-child(2)  { animation-delay: -3.6s; }
.t99-hero-slideshow-10 .t99-hero-slide:nth-child(3)  { animation-delay: -7.2s; }
.t99-hero-slideshow-10 .t99-hero-slide:nth-child(4)  { animation-delay: -10.8s; }
.t99-hero-slideshow-10 .t99-hero-slide:nth-child(5)  { animation-delay: -14.4s; }
.t99-hero-slideshow-10 .t99-hero-slide:nth-child(6)  { animation-delay: -18s; }
.t99-hero-slideshow-10 .t99-hero-slide:nth-child(7)  { animation-delay: -21.6s; }
.t99-hero-slideshow-10 .t99-hero-slide:nth-child(8)  { animation-delay: -25.2s; }
.t99-hero-slideshow-10 .t99-hero-slide:nth-child(9)  { animation-delay: -28.8s; }
.t99-hero-slideshow-10 .t99-hero-slide:nth-child(10) { animation-delay: -32.4s; }

.t99-books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

.t99-book-card {
  display: flex;
  flex-direction: column;
  background: var(--t99-white);
  border: 1px solid var(--t99-line);
  border-radius: var(--t99-radius-m);
  overflow: hidden;
  transition: transform 0.35s var(--t99-ease), box-shadow 0.35s var(--t99-ease), border-color 0.35s var(--t99-ease);
}
.t99-book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--t99-shadow-m);
  border-color: transparent;
}

.t99-book-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--t99-bg-alt);
}
.t99-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.t99-book-cat {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: rgba(20, 16, 11, 0.72);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.t99-book-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.2rem 1.3rem 1.4rem;
}
.t99-book-title {
  font-family: var(--t99-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  color: var(--t99-ink);
}
.t99-book-subtitle {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--t99-accent-dark);
  line-height: 1.4;
  margin-bottom: 0.55rem;
}
.t99-book-description {
  font-size: 0.85rem;
  color: var(--t99-muted);
  line-height: 1.6;
  margin-bottom: 1.1rem;
  flex: 1;
}
.t99-book-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.t99-book-price {
  font-family: var(--t99-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--t99-accent-dark);
  white-space: nowrap;
}
.t99-book-cta {
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  white-space: nowrap;
}
.t99-book-cta-disabled {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.1rem;
  font-size: 0.8rem;
  border-radius: 999px;
  background: var(--t99-bg-alt);
  color: var(--t99-muted);
  border: 2px solid var(--t99-line);
  white-space: nowrap;
  cursor: default;
}

@media (max-width: 780px) {
  .t99-books-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .t99-book-title { font-size: 0.95rem; }
}
@media (max-width: 480px) {
  .t99-books-grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
}
