/* ─── Book Detail Page ─────────────────────────────────────── */

/* Header */
.book-header {
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.book-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.book-header__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.book-header__nav {
  display: flex;
  gap: 2rem;
}

.book-header__nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  color: var(--fg-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.book-header__nav a:hover {
  color: var(--fg);
}

/* Breadcrumb */
.breadcrumb {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
}

.breadcrumb__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.breadcrumb__inner a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb__inner a:hover {
  color: var(--fg);
}

.breadcrumb__sep {
  color: var(--border);
}

.breadcrumb__current {
  color: var(--fg);
  font-weight: 500;
}

/* Hero */
.book-hero {
  padding: 4rem 2rem;
  background: linear-gradient(to bottom, var(--bg-warm), var(--bg));
}

.book-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.book-hero__cover {
  position: relative;
}

.book-hero__cover img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.08);
}

.book-hero__meta {
  padding-top: 0.5rem;
}

.book-hero__category {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.book-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.book-hero__author {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--fg-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.book-hero__price {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 2rem;
}

.book-hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* CTAs */
.book-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  color: var(--fg-light);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 3px;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}

.book-cta-primary:hover {
  background: var(--warm-brown);
  transform: translateY(-1px);
}

.book-cta-primary--sm {
  padding: 0.65rem 1.5rem;
  font-size: 0.85rem;
}

.book-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--fg-muted);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 0.9rem 1.5rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}

.book-cta-secondary:hover {
  border-color: var(--accent);
  color: var(--fg);
}

.book-cta-secondary--sm {
  padding: 0.65rem 1.2rem;
  font-size: 0.85rem;
}

/* Sections */
.book-section {
  padding: 4rem 2rem;
}

.book-section--alt {
  background: var(--bg-warm);
}

.book-section__inner {
  max-width: 800px;
  margin: 0 auto;
}

.book-section__label {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

/* Description */
.book-description {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--fg);
  font-style: italic;
}

/* Sommaire */
.book-sommaire {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.book-sommaire__item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.book-sommaire__item:last-child {
  border-bottom: none;
}

.book-sommaire__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.book-sommaire__text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg-muted);
}

/* Avis */
.book-avis {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.book-avis__item {
  padding: 1.5rem;
  background: var(--bg);
  border-radius: 4px;
  border: 1px solid var(--border);
}

.book-avis__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.book-avis__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
}

.book-avis__stars {
  display: flex;
  gap: 0.15rem;
}

.star {
  font-size: 0.9rem;
  color: var(--border);
}

.star--filled {
  color: var(--accent);
}

.book-avis__text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg-muted);
}

/* Sticky Bar */
.book-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 99;
  display: none;
}

@media (max-width: 768px) {
  .book-sticky-bar {
    display: block;
  }
  .book-section:last-of-type {
    padding-bottom: 7rem;
  }
}

.book-sticky-bar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.book-sticky-bar__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.book-sticky-bar__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  color: rgba(250, 248, 245, 0.7);
}

.book-sticky-bar__price {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg-light);
}

.book-sticky-bar__ctas {
  display: flex;
  gap: 0.75rem;
}

.book-sticky-bar .book-cta-primary {
  background: var(--accent);
  color: var(--fg);
}

.book-sticky-bar .book-cta-primary:hover {
  background: var(--accent-dark);
}

.book-sticky-bar .book-cta-secondary {
  border-color: rgba(255,255,255,0.2);
  color: rgba(250, 248, 245, 0.7);
}

.book-sticky-bar .book-cta-secondary:hover {
  border-color: var(--accent);
  color: var(--fg-light);
}

/* Related Books */
.related-books {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.related-book-card {
  text-decoration: none;
  display: block;
  transition: transform 0.2s;
}

.related-book-card:hover {
  transform: translateY(-3px);
}

.related-book-card__cover {
  margin-bottom: 1rem;
}

.related-book-card__cover img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.related-book-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.related-book-card__author {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-style: italic;
  margin-bottom: 0.35rem;
}

.related-book-card__price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
}

/* Footer */
.footer {
  background: var(--charcoal);
  padding: 2.5rem 2rem;
  margin-top: 0;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fg-light);
  display: block;
}

.footer__tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  color: rgba(250, 248, 245, 0.4);
  display: block;
  margin-top: 0.15rem;
}

.footer-nav {
  display: flex;
  gap: 2rem;
}

.footer-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  color: rgba(250, 248, 245, 0.5);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--fg-light);
}

/* Responsive */
@media (max-width: 900px) {
  .book-hero__inner {
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
  }

  .book-hero__title {
    font-size: 2rem;
  }

  .related-books {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .book-hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .book-hero__cover {
    max-width: 200px;
    margin: 0 auto;
  }

  .book-hero__title {
    font-size: 1.75rem;
    text-align: center;
  }

  .book-hero__author,
  .book-hero__price {
    text-align: center;
  }

  .book-hero__ctas {
    justify-content: center;
  }

  .related-books {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }
}