/* ============================================================
   PAGES DE VENTE : LIVRE
   ============================================================ */

.page-livre {
  background: #0a0a0a;
  overflow-x: hidden;
}

/* ── Header livre ── */

.site-header--livre {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 28px 40px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, padding 0.3s ease;
}

.site-header--livre.site-header--scrolled {
  padding: 18px 40px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-header__back {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: #fff;
  transition: opacity 0.3s;
}

.site-header__back:hover {
  opacity: 0.6;
}

/* ============================================================
   HERO LIVRE : version par défaut (bas gauche, comme l'accueil)
   ============================================================ */

.livre-hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.livre-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.livre-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.92) 0%,
    rgba(10, 10, 10, 0.3) 50%,
    rgba(10, 10, 10, 0.1) 100%
  );
  z-index: 1;
}

.livre-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 48px 80px;
  max-width: 700px;
}

.livre-hero__title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}

.livre-hero__accroche {
  margin-top: 20px;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-style: italic;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.livre-hero__scroll {
  position: absolute;
  bottom: 32px;
  right: 48px;
  font-size: 1.4rem;
  color: rgba(255,255,255,0.2);
  z-index: 2;
}

/* ============================================================
   COUVERTURE FLOTTANTE
   ============================================================ */

.livre-cover {
  padding: 100px 40px;
  display: flex;
  justify-content: center;
}

.livre-cover__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* Largeur EXPLICITE : avec un seul max-width, le bloc prenait la largeur de
   l'image et l'image (width: 100%) celle du bloc. Tant que l'image n'était pas
   chargée, tout valait 0 px, et une image paresseuse de 0 px ne se charge
   jamais : la page montrait le prix sans la couverture. */
.livre-cover__image {
  width: 300px;
  max-width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.livre-cover__image:hover {
  transform: scale(1.03) rotate(-1deg);
}

.livre-cover__image img {
  width: 100%;
  display: block;
}

.livre-cover__details {
  text-align: center;
}

.livre-cover__prix {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
}

.livre-cover__buy {
  display: inline-block;
  margin-top: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c41e2a;
  border-bottom: 1px solid rgba(196, 30, 42, 0.4);
  padding-bottom: 3px;
  transition: border-color 0.3s;
}

.livre-cover__buy:hover {
  border-color: #c41e2a;
}

/* ============================================================
   SYNOPSIS
   ============================================================ */

.livre-synopsis {
  padding: 120px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.livre-synopsis__inner {
  max-width: 620px;
  margin: 0 auto;
}

.livre-synopsis h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c41e2a;
  margin-bottom: 32px;
}

.livre-synopsis p {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.85;
  color: rgba(255,255,255,0.7);
}

.livre-synopsis p + p {
  margin-top: 24px;
}

/* ============================================================
   EXTRAIT
   ============================================================ */

.livre-extrait {
  padding: 100px 40px;
  background: #111;
}

.livre-extrait blockquote {
  max-width: 700px;
  margin: 0 auto;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  border-left: 2px solid #c41e2a;
  padding-left: 32px;
}

/* ============================================================
   AMBIANCE : image plein écran avec texte
   ============================================================ */

.livre-ambiance {
  position: relative;
  height: 70vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.livre-ambiance img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.livre-ambiance__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
}

.livre-ambiance__text {
  position: relative;
  z-index: 2;
  max-width: 600px;
  text-align: center;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-style: italic;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  padding: 0 24px;
}

/* ============================================================
   DÉTAILS
   ============================================================ */

.livre-details {
  padding: 100px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.livre-details__inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

/* Sans avis, « Détails » est seul : il prend toute la ligne, à la largeur
   du synopsis, au lieu de rester dans la moitié gauche. */
.livre-details__col:only-child {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.livre-details h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c41e2a;
  margin-bottom: 24px;
}

.livre-details ul {
  list-style: none;
}

.livre-details li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

.livre-details li strong {
  display: inline-block;
  width: 80px;
  color: #fff;
  font-weight: 600;
}

.livre-details__avis {
  margin-bottom: 28px;
}

.livre-details__avis blockquote {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
  font-style: italic;
}

.livre-details__avis cite {
  display: block;
  margin-top: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-style: normal;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   CTA FINAL
   ============================================================ */

.livre-cta {
  padding: 120px 40px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.livre-cta h2 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.02em;
}

.livre-cta__actions {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.livre-cta__btn {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: #c41e2a;
  padding: 18px 48px;
  transition: background 0.3s, box-shadow 0.3s;
}

.livre-cta__btn:hover {
  background: #e02030;
  box-shadow: 0 4px 30px rgba(196, 30, 42, 0.35);
}

.livre-cta__link {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.3s;
}

.livre-cta__link:hover {
  color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Tablette ── */
@media (max-width: 1024px) {
  .livre-hero__content {
    padding: 0 40px 70px;
  }

  .livre-details__inner {
    gap: 48px;
  }

  .livre-extrait blockquote {
    padding-left: 24px;
  }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .site-header--livre {
    padding: 20px 24px;
  }

  .livre-hero {
    height: 100svh;
  }

  .livre-hero__content {
    padding: 0 24px 6svh;
  }

  .livre-hero__title {
    font-size: clamp(2rem, 8.5vw, 2.8rem);
    line-height: 1.12;
  }

  .livre-hero__accroche {
    margin-top: 12px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.55);
  }

  .livre-cover { padding: 60px 24px; }
  .livre-cover__image { max-width: 220px; }

  .livre-synopsis { padding: 80px 24px; }
  .livre-extrait { padding: 60px 24px; }

  .livre-ambiance { height: 50vh; }

  .livre-details { padding: 60px 24px; }
  .livre-details__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .livre-cta { padding: 80px 24px; }
  .livre-hero__scroll { display: none; }
}

/* ── Petit mobile ── */
@media (max-width: 480px) {
  .site-header--livre {
    padding: 16px 20px;
  }

  .livre-hero__content {
    padding: 0 20px 5svh;
  }

  .livre-hero__title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .livre-hero__accroche {
    margin-top: 10px;
    font-size: 0.88rem;
  }

  .livre-cover { padding: 48px 20px; }
  .livre-cover__image { max-width: 180px; }

  .livre-synopsis { padding: 60px 20px; }

  .livre-extrait { padding: 48px 20px; }
  .livre-extrait blockquote {
    padding-left: 16px;
  }

  .livre-ambiance { height: 40vh; }

  .livre-details { padding: 48px 20px; }

  .livre-cta { padding: 60px 20px; }
  .livre-cta__btn {
    padding: 16px 36px;
    font-size: 0.8rem;
  }
}

/* ── Écrans courts (ex: iPhone SE, paysage) ── */
@media (max-width: 768px) and (max-height: 600px) {
  .livre-hero__content {
    padding-bottom: 3svh;
  }

  .livre-hero__title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .livre-hero__accroche {
    margin-top: 8px;
    font-size: 0.85rem;
  }
}
