/* ==========================================================
   PACK LIVRES RELIÉS — section landing, FAQ, pages annexes
   Chargé APRÈS style.min.css. Utilise les variables :root
   déjà définies par style.css (--walnut, --accent, etc.).
   ========================================================== */

.pack-livres {
  background: linear-gradient(180deg, #ffffff 0%, var(--beige-warm, #f5efe6) 100%);
  padding: 80px 20px;
  border-top: 1px solid rgba(59, 35, 20, 0.08);
}

.pack-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* ---------- Colonne visuels ---------- */

.pack-visuals {
  min-width: 0;
}

.pack-hero-media {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(59, 35, 20, 0.22);
  background: var(--walnut, #3b2314);
  aspect-ratio: 4 / 3;
}

.pack-hero-media img,
.pack-hero-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* La vidéo est masquée tant que JS ne l'a pas activée : évite
   d'imposer 2,7 Mo aux utilisateurs qui ne verront jamais la section. */
.pack-hero-media video {
  display: none;
}

.pack-hero-media.is-video-ready img {
  display: none;
}

.pack-hero-media.is-video-ready video {
  display: block;
}

.pack-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.pack-thumbs button {
  display: block;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: 4px;
  overflow: hidden;
  line-height: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 14px rgba(59, 35, 20, 0.16);
}

.pack-thumbs button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(59, 35, 20, 0.28);
}

.pack-thumbs button:focus-visible {
  outline: 3px solid var(--accent, #c9a84c);
  outline-offset: 2px;
}

.pack-thumbs img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
}

/* Pastille « agrandir » sur le visuel principal */

.pack-hero-media {
  cursor: zoom-in;
}

.pack-zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  background: rgba(20, 12, 6, 0.72);
  color: #f0d9b5;
  font-family: Montserrat, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.6px;
  border-radius: 40px;
  pointer-events: none;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}

.pack-hero-media:hover .pack-zoom-hint {
  background: rgba(20, 12, 6, 0.9);
}

/* ---------- Visionneuse plein écran ---------- */

.plb {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  flex-direction: column;
  background: rgba(14, 9, 4, 0.96);
}

.plb.is-open {
  display: flex;
}

.plb-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 56px 14px 8px;
  -webkit-overflow-scrolling: touch;
}

.plb-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 3px;
  cursor: zoom-in;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* Zoom : l'image dépasse le cadre, le défilement natif fait le déplacement.
   Sur mobile, le pincer-pour-zoomer du navigateur reste disponible en plus. */
.plb-stage.is-zoomed {
  align-items: flex-start;
  justify-content: flex-start;
}

.plb-stage.is-zoomed img {
  max-width: none;
  max-height: none;
  width: 190%;
  cursor: zoom-out;
}

.plb-close,
.plb-nav {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #f5efe6;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease;
}

.plb-close:hover,
.plb-nav:hover {
  background: rgba(255, 255, 255, 0.26);
}

.plb-close:focus-visible,
.plb-nav:focus-visible {
  outline: 3px solid var(--accent, #c9a84c);
  outline-offset: 2px;
}

.plb-close {
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  line-height: 1;
}

.plb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  font-size: 1.6rem;
}

.plb-prev { left: 14px; }
.plb-next { right: 14px; }

.plb-caption {
  flex: none;
  padding: 10px 16px 6px;
  text-align: center;
  font-family: Lora, Georgia, serif;
  font-size: 0.9rem;
  color: #e6dcc9;
}

.plb-counter {
  flex: none;
  padding: 0 16px 10px;
  text-align: center;
  font-family: Montserrat, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: #b39b6e;
}

.plb-strip {
  flex: none;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 14px 20px;
}

.plb-strip button {
  padding: 0;
  border: 2px solid transparent;
  background: none;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  line-height: 0;
  opacity: 0.5;
  transition: opacity 0.18s ease, border-color 0.18s ease;
}

.plb-strip button:hover { opacity: 0.85; }

.plb-strip button[aria-current="true"] {
  opacity: 1;
  border-color: var(--accent, #c9a84c);
}

.plb-strip button:focus-visible {
  outline: 2px solid var(--accent, #c9a84c);
  outline-offset: 2px;
}

.plb-strip img {
  display: block;
  width: 62px;
  height: 46px;
  object-fit: cover;
}

@media (max-width: 620px) {
  .plb-nav {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
  }

  .plb-prev { left: 6px; }
  .plb-next { right: 6px; }

  .plb-stage { padding: 52px 6px 6px; }
  .plb-strip img { width: 48px; height: 36px; }
  .plb-caption { font-size: 0.82rem; }
}

/* La page ne défile plus derrière la visionneuse ouverte */
body.plb-lock {
  overflow: hidden;
}

/* ---------- Colonne contenu ---------- */

.pack-content {
  min-width: 0;
}

.pack-eyebrow {
  font-family: Montserrat, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-dark, #a6872e);
  margin-bottom: 14px;
}

.pack-livres h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  color: var(--walnut, #3b2314);
  margin: 0 0 18px;
}

.pack-pitch {
  font-family: Lora, Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  margin: 0 0 24px;
}

.pack-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.pack-features li {
  font-family: Lora, Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.6;
  padding: 9px 0 9px 30px;
  position: relative;
  border-bottom: 1px solid rgba(59, 35, 20, 0.07);
}

.pack-features li::before {
  content: '\25C6';
  position: absolute;
  left: 4px;
  top: 9px;
  color: var(--accent, #c9a84c);
  font-size: 0.75rem;
}

.pack-features li strong {
  color: var(--walnut, #3b2314);
}

/* ---------- Prix et CTA ---------- */

.pack-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.pack-price-amount {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--walnut, #3b2314);
  line-height: 1;
}

.pack-price-note {
  font-family: Montserrat, sans-serif;
  font-size: 0.82rem;
  color: var(--accent-dark, #a6872e);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pack-cta {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 20px;
  padding: 17px 32px;
  background: var(--walnut, #3b2314);
  color: #f0d9b5;
  font-family: Montserrat, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pack-cta:hover {
  background: #291709;
  color: #f0d9b5;
  transform: translateY(-2px);
}

.pack-cta:focus-visible {
  outline: 3px solid var(--accent, #c9a84c);
  outline-offset: 3px;
}

.pack-cta-reassure {
  margin-top: 12px;
  text-align: center;
  font-family: Montserrat, sans-serif;
  font-size: 0.76rem;
  color: #6b6b6b;
  letter-spacing: 0.4px;
}

.pack-honesty {
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(201, 168, 76, 0.1);
  border-left: 3px solid var(--accent, #c9a84c);
  font-family: Lora, Georgia, serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4a3b28;
  border-radius: 3px;
}

.pack-service {
  margin-top: 16px;
  font-family: Montserrat, sans-serif;
  font-size: 0.8rem;
  color: #6b6b6b;
  line-height: 1.7;
}

.pack-service a {
  color: var(--accent-dark, #a6872e);
  text-decoration: none;
}

.pack-service a:hover {
  text-decoration: underline;
}

/* ---------- FAQ du pack ---------- */

.pack-faq {
  max-width: 820px;
  margin: 64px auto 0;
}

.pack-faq h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--walnut, #3b2314);
  text-align: center;
  margin: 0 0 28px;
}

.pack-faq details {
  border-bottom: 1px solid rgba(59, 35, 20, 0.12);
  background: transparent;
}

.pack-faq summary {
  font-family: Montserrat, sans-serif;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--walnut, #3b2314);
  padding: 18px 34px 18px 2px;
  cursor: pointer;
  position: relative;
  list-style: none;
}

.pack-faq summary::-webkit-details-marker {
  display: none;
}

.pack-faq summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 15px;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent, #c9a84c);
}

.pack-faq details[open] summary::after {
  content: '\2212';
}

.pack-faq summary:focus-visible {
  outline: 2px solid var(--accent, #c9a84c);
  outline-offset: 2px;
}

.pack-faq .pack-faq-answer {
  padding: 0 34px 20px 2px;
  font-family: Lora, Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #3f3f3f;
}

.pack-faq .pack-faq-answer p {
  margin: 0 0 12px;
}

.pack-faq .pack-faq-answer p:last-child {
  margin-bottom: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .pack-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pack-livres {
    padding: 56px 18px;
  }

  .pack-thumbs img {
    height: 84px;
  }
}

@media (max-width: 420px) {
  .pack-price-amount {
    font-size: 2.1rem;
  }

  .pack-thumbs {
    gap: 8px;
  }

  .pack-thumbs img {
    height: 68px;
  }
}

/* Respecte le réglage système : pas d'animation vidéo imposée */
@media (prefers-reduced-motion: reduce) {
  .pack-hero-media.is-video-ready img {
    display: block;
  }

  .pack-hero-media.is-video-ready video {
    display: none;
  }

  .pack-cta {
    transition: none;
  }

  .pack-cta:hover {
    transform: none;
  }
}

/* ==========================================================
   PAGES ANNEXES — cgv.html, commande-confirmee.html
   ========================================================== */

.pack-page {
  max-width: 780px;
  margin: 110px auto 70px;
  padding: 0 20px;
  font-family: Lora, Georgia, serif;
  color: #2a2a2a;
  line-height: 1.75;
}

.pack-page h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.1rem;
  color: var(--walnut, #3b2314);
  margin: 0 0 0.3em;
}

.pack-page .pack-page-sub {
  font-family: Montserrat, sans-serif;
  color: var(--accent-dark, #a6872e);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2.4em;
}

.pack-page h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  color: var(--walnut, #3b2314);
  margin: 2em 0 0.6em;
}

.pack-page ul {
  padding-left: 22px;
}

.pack-page li {
  margin-bottom: 8px;
}

.pack-page a {
  color: var(--accent-dark, #a6872e);
}

.pack-confirm {
  text-align: center;
}

.pack-confirm-mark {
  font-size: 3.2rem;
  line-height: 1;
  margin-bottom: 18px;
  color: var(--walnut, #3b2314);
}

.pack-confirm-box {
  margin: 32px auto 0;
  padding: 24px 26px;
  background: var(--beige-warm, #f5efe6);
  border-radius: 5px;
  text-align: left;
  font-size: 0.95rem;
}

.pack-confirm-box h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.pack-confirm .pack-cta {
  display: inline-block;
  width: auto;
  padding: 14px 30px;
}
