:root {
  --livres-bg: #faf8f5;
  --livres-ink: #1a1a1a;
  --livres-muted: #5c5c5c;
  --livres-accent: #c41e1e;
  --livres-accent-hover: #a01818;
  --livres-card: #fff;
  --livres-border: rgba(0, 0, 0, 0.08);
  --livres-teal: #007889;
}

body.livres-page {
  font-family: "Manrope", "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--livres-bg);
  color: var(--livres-ink);
}

.livres-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 0 3.5rem;
  background: linear-gradient(135deg, #1a1512 0%, #2d2620 45%, #1f3d3d 100%);
  color: #fff;
}

.livres-hero__inner {
  max-width: 720px;
}

.livres-hero__title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.livres-hero__subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 36rem;
  margin: 0;
}

.livres-section {
  padding: 3.5rem 0;
}

.livres-section__head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.livres-section__head h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.livres-section__head p {
  color: var(--livres-muted);
  margin: 0;
  font-size: 1rem;
}

.livres-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .livres-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .livres-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.livres-card {
  background: var(--livres-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--livres-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.livres-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.livres-card__cover {
  aspect-ratio: 3 / 4;
  background: #e8e4df;
  overflow: hidden;
}

.livres-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.livres-card__body {
  padding: 1.35rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.livres-card__title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0 0 0.25rem;
}

.livres-card__subtitle {
  font-size: 0.85rem;
  color: var(--livres-teal);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.livres-card__desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--livres-muted);
  flex: 1;
  margin-bottom: 1.25rem;
}

.livres-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.livres-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.livres-btn--primary {
  background: var(--livres-accent);
  color: #fff;
}

.livres-btn--primary:hover {
  background: var(--livres-accent-hover);
  color: #fff;
}

.livres-btn--outline {
  background: transparent;
  color: var(--livres-ink);
  border: 2px solid var(--livres-border);
}

.livres-btn--outline:hover {
  border-color: var(--livres-ink);
  color: var(--livres-ink);
}

.livres-author {
  background: #fff;
  border-top: 1px solid var(--livres-border);
  padding: 4rem 0;
}

.livres-author__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 992px) {
  .livres-author__grid {
    grid-template-columns: minmax(0, 340px) 1fr;
    gap: 3.5rem;
    align-items: center;
  }
}

.livres-author__photo {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.livres-author__photo img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.livres-author__label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--livres-accent);
  margin-bottom: 0.5rem;
}

.livres-author__name {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.85rem;
  margin: 0 0 0.25rem;
}

.livres-author__role {
  color: var(--livres-muted);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.livres-author__bio {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--livres-muted);
  margin-bottom: 1.75rem;
}

.livres-author__sub {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.livres-author__approach {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--livres-muted);
  margin-bottom: 1.25rem;
}

.livres-author__quote {
  margin: 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--livres-teal);
  background: var(--livres-bg);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--livres-ink);
  border-radius: 0 12px 12px 0;
}

.livres-author__section-heading {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin: 0;
  color: var(--livres-ink);
}

.livres-author--multi .livres-author__grid--repeat:not(:first-of-type) {
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--livres-border);
}

.livres-author-inline--stack {
  align-items: flex-start;
}

.livres-order {
  padding: 3.5rem 0 4.5rem;
  background: linear-gradient(180deg, #f0ebe4 0%, var(--livres-bg) 100%);
}

.livres-order__box {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem 1.75rem;
  border-radius: 20px;
  border: 1px solid var(--livres-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

@media (min-width: 576px) {
  .livres-order__box {
    padding: 2.5rem 2.25rem;
  }
}

.livres-order__box h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.livres-order__intro {
  text-align: center;
  color: var(--livres-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.livres-form__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--livres-ink);
}

.livres-form__input,
.livres-form__select,
.livres-form__textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--livres-border);
  border-radius: 10px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  background: #fafafa;
}

.livres-form__textarea {
  min-height: 120px;
  resize: vertical;
}

.livres-form__input:focus,
.livres-form__select:focus,
.livres-form__textarea:focus {
  outline: none;
  border-color: var(--livres-teal);
  box-shadow: 0 0 0 3px rgba(0, 120, 137, 0.15);
}

.livres-form__submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  background: var(--livres-accent);
  color: #fff;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.livres-form__submit:hover {
  filter: brightness(1.05);
}

.livres-flash {
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.livres-flash--ok {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.livres-footer-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--livres-muted);
  margin-top: 1rem;
}

.navbar-livres .nav-link.livres-active {
  color: var(--livres-accent) !important;
  font-weight: 800;
}

/* Catalogue : cartes e-commerce */
.livres-card__cover-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.livres-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--livres-accent);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.livres-card__cover {
  position: relative;
}

.livres-card__price-tag {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--livres-ink);
  margin-bottom: 0.35rem;
}

.livres-card__title-link {
  color: inherit;
  text-decoration: none;
}

.livres-card__title-link:hover {
  color: var(--livres-accent);
}

.livres-flash--err {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Page fiche produit */
.livres-page--product .livres-product-wrap {
  background: var(--livres-bg);
  min-height: 100vh;
}

.livres-breadcrumb {
  font-size: 0.88rem;
  color: var(--livres-muted);
}

.livres-breadcrumb a {
  color: var(--livres-teal);
  text-decoration: none;
  font-weight: 600;
}

.livres-breadcrumb a:hover {
  text-decoration: underline;
}

.livres-breadcrumb__sep {
  margin: 0 0.35rem;
  opacity: 0.45;
}

.livres-breadcrumb__current {
  color: var(--livres-muted);
}

.livres-product-cover {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  background: #e8e4df;
}

.livres-product-cover img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.livres-product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--livres-accent);
  color: #fff;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
}

.livres-product-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.livres-product-subtitle {
  color: var(--livres-teal);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.livres-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  font-size: 0.85rem;
  color: var(--livres-muted);
  margin-bottom: 1.25rem;
}

.livres-product-stock--ok {
  color: #166534;
  font-weight: 700;
}

.livres-product-stock--no {
  color: #b91c1c;
  font-weight: 700;
}

.livres-product-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--livres-muted);
  margin-bottom: 1.5rem;
}

.livres-product-buybox {
  background: #fff;
  border: 1px solid var(--livres-border);
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}

.livres-product-price-row {
  margin-bottom: 1rem;
}

.livres-product-price {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 2rem;
  display: block;
  line-height: 1;
}

.livres-product-tax-note {
  font-size: 0.75rem;
  color: var(--livres-muted);
}

.livres-product-buy-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.livres-btn--lg {
  padding: 0.7rem 1.25rem;
  font-size: 0.95rem;
  justify-content: center;
}

.livres-sticky-card {
  position: sticky;
  top: 6rem;
}

.livres-prose__h {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.livres-prose__body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--livres-muted);
}

.livres-prose__body--preline {
  white-space: pre-line;
}

.livres-author-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.livres-author-inline img {
  object-fit: cover;
}

.livres-prose__note {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--livres-ink);
  font-style: italic;
  border-left: 3px solid var(--livres-teal);
  padding-left: 1rem;
}

.livres-order__box--sidebar {
  max-width: none;
  margin: 0;
  text-align: left;
}

.livres-order__box--sidebar h2 {
  text-align: left;
}

.livres-related-mini__link {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--livres-border);
}

.livres-related-mini__link:hover {
  color: var(--livres-accent);
}

.livres-related-mini__link img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}

.livres-comments--book .livres-comments__title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.livres-comments__count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--livres-muted);
  background: rgba(0, 0, 0, 0.05);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.livres-comments__form {
  background: #fff;
  border: 1px solid var(--livres-border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

.livres-comments__item {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--livres-border);
}

.livres-comments__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ddd, #bbb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.livres-comments__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.livres-comments__head time {
  font-size: 0.75rem;
  color: var(--livres-muted);
}

.livres-comments__text {
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.livres-catalog-meta {
  font-size: 0.9rem;
  color: var(--livres-muted);
  margin: 0.75rem 0 1rem;
}

.livres-catalog-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: stretch;
  max-width: 32rem;
  margin: 0 auto;
}

.livres-catalog-search input[type="search"] {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--livres-border);
  border-radius: 0;
  font-size: 0.95rem;
}

.livres-catalog-search__btn {
  padding: 0.55rem 1.1rem;
  background: var(--livres-teal);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.livres-catalog-search__btn:hover {
  filter: brightness(1.05);
}

.livres-catalog-empty {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.livres-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--livres-border);
}

.livres-page-link {
  color: var(--livres-teal);
  font-weight: 600;
  text-decoration: none;
}

.livres-page-link:hover {
  text-decoration: underline;
}

.livres-page-link--disabled {
  color: var(--livres-muted);
  pointer-events: none;
  opacity: 0.5;
}

.livres-page-info {
  font-size: 0.95rem;
  color: var(--livres-muted);
}

.btn-danger {
  background-color: #3d2a5c;
  border-color: #3d2a5c;
}
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
  background-color: #322348;
  border-color: #322348;
}
