/* Page produit ebook — comparaison, sommaire, CTA */

.ebook-compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
}

.ebook-compare {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.ebook-compare th,
.ebook-compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  font-size: 0.95rem;
}

.ebook-compare thead th {
  background: rgba(34, 197, 94, 0.12);
  font-weight: 700;
  text-align: center;
}

.ebook-compare tbody th {
  color: var(--muted);
  font-weight: 650;
  width: 38%;
}

.ebook-compare td {
  text-align: center;
  color: var(--text);
}

.ebook-compare .is-yes {
  color: var(--accent);
  font-weight: 800;
}

.ebook-compare .is-no {
  color: var(--muted-2);
}

.ebook-compare tr:last-child th,
.ebook-compare tr:last-child td {
  border-bottom: none;
}

.ebook-toc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ebook-toc li {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.ebook-toc strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.ebook-toc span {
  color: var(--muted);
  font-size: 0.92rem;
}

.ebook-cta-final {
  text-align: center;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.12), transparent);
}

.ebook-cta-final h2 {
  margin: 0 0 8px;
}

.ebook-cta-final p {
  margin: 0 0 18px;
  color: var(--muted);
}

.ebook-pay-hint {
  margin-top: 10px;
  text-align: center;
  color: var(--muted-2);
  font-size: 0.88rem;
}

@media (max-width: 720px) {
  .ebook-toc {
    grid-template-columns: 1fr;
  }
}
