/*
 * CurioVox 1.7.2 — architecture catalogue, page de marque et finition
 * responsive. Cette couche finale isole les nouveaux composants des anciennes
 * versions afin qu'une mise à jour ne modifie pas les gabarits déjà publiés.
 */

:root { color-scheme: only light; }

html,
body { max-width: 100%; }

.home-v15,
.catalog-page-main,
.seo-landing { background: #fbf9f4; color: #102a3a; }

/* Trois rayons visibles : cinq livres par intention, sans doublons entre eux. */
.home-v15 .home-selection-v17 {
  width: min(calc(100% - 64px), 1480px);
  padding: 96px 0 108px;
}

.home-library-heading {
  max-width: 920px;
  margin-bottom: 48px;
}

.home-library-heading h2 {
  margin: 8px 0 16px;
  font-size: clamp(3rem, 5.2vw, 5.6rem);
  line-height: .94;
  letter-spacing: -.045em;
}

.home-library-heading > div > p:last-child {
  max-width: 760px;
  color: #66747d;
  font-size: 1.08rem;
  line-height: 1.65;
}

.home-library-shelves { display: grid; gap: 74px; }

.home-book-shelf { min-width: 0; }

.home-shelf-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid #d9d2c5;
  padding-bottom: 18px;
}

.home-shelf-heading h3 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3.1rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.025em;
}

.home-shelf-heading p {
  max-width: 650px;
  margin: 0;
  color: #6a7880;
  line-height: 1.5;
}

.home-shelf-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.home-shelf-actions > a {
  min-height: 44px;
  margin-right: 6px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  color: #a9412b;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
}

.home-shelf-actions button {
  width: 44px;
  height: 44px;
  border: 1px solid #cfc7ba;
  background: #fffefb;
  color: #102a3a;
  cursor: pointer;
}

.home-shelf-actions button:disabled { opacity: .35; cursor: default; }
.home-shelf-actions button:not(:disabled):hover { border-color: #a9412b; color: #a9412b; }

.home-shelf-window { min-width: 0; overflow: hidden; }

.home-shelf-track {
  width: 100%;
  padding: 2px 2px 18px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, calc((100% - 96px) / 5));
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.home-shelf-track::-webkit-scrollbar { display: none; }

.home-shelf-card {
  width: auto;
  min-width: 0;
  scroll-snap-align: start;
}

.home-shelf-card .card-cover-link { aspect-ratio: 5 / 7.65; }

.home-shelf-card .catalog-card-body {
  min-height: 172px;
  padding: 17px 0 0;
}

.home-shelf-card h3 {
  margin: 9px 0 4px;
  font-size: clamp(1.2rem, 1.45vw, 1.55rem);
  line-height: 1.08;
}

.home-shelf-card .card-author { margin: 0; }
.home-shelf-card .card-bottom { margin-top: auto; }

.home-catalogue-gateway {
  margin-top: 78px;
  padding: 35px 38px;
  border: 0;
  background: #0d3041;
  color: #fff;
  box-shadow: 0 18px 50px rgba(10, 35, 49, .12);
}

.home-catalogue-gateway-intro small,
.home-catalogue-gateway-intro strong,
.home-catalogue-gateway-copy { color: #fff; }

.home-catalogue-gateway-action {
  min-height: 54px;
  padding: 0 23px;
  background: #fffdf8;
  color: #102a3a;
}

/* Pagination HTML crawlable ; l'amélioration JS conserve le chargement fluide. */
.load-more { text-decoration: none; }

.cvx-pagination,
.navigation.pagination {
  margin: 42px 0 0;
  display: flex;
  justify-content: center;
}

.cvx-pagination .page-numbers,
.navigation.pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cvx-pagination ul.page-numbers { margin: 0; padding: 0; list-style: none; }

.cvx-pagination a.page-numbers,
.cvx-pagination span.page-numbers,
.navigation.pagination a.page-numbers,
.navigation.pagination span.page-numbers {
  min-width: 44px;
  min-height: 44px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6cec1;
  background: #fffefb;
  color: #102a3a;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}

.cvx-pagination .page-numbers.current,
.navigation.pagination .page-numbers.current {
  border-color: #102a3a;
  background: #102a3a;
  color: #fff;
}

/* Pages de marque, genre et auteur : textes uniques et catalogue lisible. */
.seo-landing {
  width: min(calc(100% - 64px), 1480px);
  margin-inline: auto;
  padding: 28px 0 110px;
}

.seo-landing .breadcrumb { margin-bottom: 54px; }

.seo-landing-hero {
  padding: 54px 0 62px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .72fr);
  align-items: end;
  gap: 80px;
  border-bottom: 1px solid #d9d2c5;
}

.seo-landing-hero h1 {
  margin: 9px 0 14px;
  font-family: var(--serif);
  font-size: clamp(4rem, 7.2vw, 7.8rem);
  font-weight: 500;
  line-height: .86;
  letter-spacing: -.055em;
}

.seo-landing-promise {
  max-width: 720px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.35vw, 2.7rem);
  line-height: 1.1;
}

.seo-landing-hero > p {
  margin: 0;
  color: #65757e;
  font-size: 1.08rem;
  line-height: 1.75;
}

.seo-term-links {
  padding: 23px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  border-bottom: 1px solid #d9d2c5;
}

.seo-term-links a {
  min-height: 42px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d6cec1;
  border-radius: 999px;
  background: #fffefb;
  color: #102a3a;
  font-size: .76rem;
  font-weight: 750;
  text-decoration: none;
}

.seo-book-section { padding: 80px 0 0; }

.seo-section-heading {
  margin-bottom: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.seo-section-heading h2 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.7vw, 5rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.04em;
}

.seo-section-heading > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #a9412b;
  font-weight: 800;
  text-decoration: none;
}

.seo-book-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 48px 24px;
}

.seo-catalogue-cta {
  margin-top: 96px;
  padding: 38px 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  background: #0d3041;
  color: #fff;
}

.seo-catalogue-cta h2 {
  margin: 6px 0;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.6vw, 4rem);
  font-weight: 500;
  line-height: 1;
}

.seo-catalogue-cta p { color: rgba(255,255,255,.78); }
.seo-catalogue-cta .button { min-height: 54px; }

/* La maison */
.house-page { --house-line: #d9d2c5; }

.house-page h1,
.house-page h2,
.house-page h3 { text-wrap: balance; overflow-wrap: anywhere; }

.house-hero {
  max-width: 1180px;
  padding: 58px 0 0;
}

.house-hero h1 {
  max-width: 1100px;
  margin: 12px 0 30px;
  font-family: var(--serif);
  font-size: clamp(4rem, 6.6vw, 7rem);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.05em;
}

.house-hero-lead {
  max-width: 930px;
  margin: 0 0 17px;
  color: #102a3a;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
  line-height: 1.24;
}

.house-hero > p:not(.eyebrow):not(.house-hero-lead) {
  max-width: 850px;
  margin: 0;
  color: #66747d;
  font-size: 1.05rem;
  line-height: 1.75;
}

.house-hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 26px;
}

.house-hero-actions .button { min-height: 54px; }

.house-text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #a9412b;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.house-publishing-pillars {
  margin: 68px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  border-block: 1px solid var(--house-line);
}

.house-publishing-pillars li {
  min-height: 78px;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  color: #102a3a;
  font-size: .84rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.house-publishing-pillars li + li { border-left: 1px solid var(--house-line); }

.house-story {
  padding: 96px 0;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  gap: clamp(50px, 8vw, 130px);
  border-bottom: 1px solid var(--house-line);
  scroll-margin-top: 150px;
}

.house-story h2,
.house-section-heading h2,
.house-work-intro h2,
.house-perspectives h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 4.6vw, 5rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.04em;
}

.house-story > div:last-child {
  align-self: end;
  color: #66747d;
  font-size: 1.06rem;
  line-height: 1.75;
}

.house-story > div:last-child p { margin: 0; }
.house-story > div:last-child p + p { margin-top: 20px; color: #102a3a; font-weight: 700; }

.house-paths { padding: 96px 0; }
.house-section-heading { max-width: 980px; }

.house-path-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--house-line);
  border: 1px solid var(--house-line);
}

.house-path-grid article {
  min-height: 390px;
  padding: clamp(28px, 3.2vw, 48px);
  display: flex;
  flex-direction: column;
  background: #fffefb;
}

.house-path-grid article > span {
  color: #b44b33;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .18em;
}

.house-path-grid h3 {
  max-width: 330px;
  margin: auto 0 17px;
  color: #102a3a;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.2vw, 2.45rem);
  font-weight: 500;
  line-height: 1.05;
}

.house-path-grid p,
.house-work-intro > p:last-child,
.house-work-proof p,
.house-perspectives article > p:not(.eyebrow) {
  color: #66747d;
  line-height: 1.7;
}

.house-editorial-work {
  padding: clamp(42px, 6vw, 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .72fr);
  gap: clamp(50px, 8vw, 120px);
  background: #0d3041;
  color: #fff;
}

.house-editorial-work .eyebrow { color: #e4775e; }
.house-work-intro h2 { color: #fff; }
.house-work-intro > p:last-child { max-width: 780px; color: rgba(255,255,255,.75); }

.house-work-proof { border-top: 1px solid rgba(255,255,255,.22); }
.house-work-proof article { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.house-work-proof strong { display: block; font-size: 1.08rem; }
.house-work-proof p { margin: 8px 0 0; color: rgba(255,255,255,.68); }

.house-universes { padding: 104px 0; border-bottom: 1px solid var(--house-line); }

.house-section-heading-split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .6fr);
  align-items: end;
  gap: 70px;
}

.house-section-heading-split > p {
  max-width: 540px;
  margin: 0 0 7px;
  color: #66747d;
  line-height: 1.7;
}

.house-brand-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--house-line);
  border: 1px solid var(--house-line);
}

.house-brand-card {
  min-height: 330px;
  padding: clamp(30px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  border-top: 5px solid var(--house-brand-accent);
  background: #0d3041;
  color: #fff;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}

.house-brand-nefanda { background: #411a27; }

.house-brand-tagline {
  color: var(--house-brand-accent);
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.house-brand-card > strong {
  margin-top: 30px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  font-weight: 500;
  line-height: 1;
}

.house-brand-card p {
  max-width: 660px;
  margin: 18px 0 34px;
  color: rgba(255,255,255,.76);
  line-height: 1.65;
}

.house-brand-cta {
  margin-top: auto;
  color: #fff;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: var(--house-brand-accent);
  text-underline-offset: 7px;
}

.house-perspectives {
  padding: 100px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--house-line);
}

.house-perspectives article {
  padding: clamp(34px, 5vw, 72px);
  background: #fffefb;
}

.house-perspectives h2 { font-size: clamp(2.5rem, 3.8vw, 4.1rem); }
.house-perspectives article > p:not(.eyebrow) { max-width: 650px; }

.house-final-cta {
  padding: clamp(34px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 50px;
  background: #0d3041;
  color: #fff;
}

.house-final-cta h2 {
  max-width: 850px;
  margin: 7px 0 13px;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.7vw, 5rem);
  font-weight: 500;
  line-height: .98;
}

.house-final-cta p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.house-final-actions { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.house-final-actions .button { min-width: 245px; min-height: 55px; justify-content: center; }
.house-final-journal { color: #fff; font-weight: 800; text-align: center; text-underline-offset: 5px; }

@media (hover: hover) {
  .house-brand-card:hover { background: #15475d; transform: translateY(-3px); }
  .house-brand-nefanda:hover { background: #582336; }
}

/* Fiche livre : les liens auteur, marque et genre deviennent de vrais chemins. */
.product-kicker a,
.product-author-name-link {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* Écrans intermédiaires */
@media (max-width: 1250px) {
  .home-shelf-track { grid-auto-columns: minmax(220px, calc((100% - 72px) / 4)); }
  .seo-book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .home-v15 .home-selection-v17,
  .seo-landing { width: min(calc(100% - 48px), 980px); }

  .home-shelf-track { grid-auto-columns: minmax(235px, calc((100% - 40px) / 2.6)); gap: 20px; }
  .home-shelf-card .catalog-card-body { min-height: 165px; }
  .seo-landing-hero { grid-template-columns: 1fr; gap: 28px; }
  .seo-landing-hero h1 { font-size: clamp(4rem, 10vw, 6.3rem); }
  .seo-book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .house-story { gap: 48px; }
  .house-path-grid { grid-template-columns: 1fr; }
  .house-path-grid article { min-height: 0; }
  .house-path-grid h3 { margin-top: 52px; }
  .house-editorial-work { grid-template-columns: 1fr; }
  .house-section-heading-split { grid-template-columns: 1fr; gap: 26px; }
  .house-perspectives { padding-block: 72px; }
  .house-final-cta { grid-template-columns: 1fr; }
  .house-final-actions { align-items: flex-start; }
}

/* Téléphones */
@media (max-width: 767px) {
  .home-v15 .home-selection-v17,
  .seo-landing {
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
  }

  .home-v15 .home-selection-v17 { padding: 58px 0 68px; }

  .home-library-heading { margin-bottom: 36px; }
  .home-library-heading h2 { font-size: clamp(2.3rem, 10.6vw, 3.25rem); line-height: .99; }
  .home-library-heading > div > p:last-child { font-size: .94rem; line-height: 1.55; }
  .home-library-shelves { gap: 56px; }

  .home-shelf-heading { margin-bottom: 18px; align-items: flex-start; }
  .home-shelf-heading h3 { font-size: 2rem; }
  .home-shelf-heading p { max-width: 22rem; font-size: .86rem; }
  .home-shelf-actions button { display: none; }
  .home-shelf-actions > a { min-width: max-content; padding-inline: 7px; }

  .home-shelf-window {
    width: calc(100% + 14px);
    margin-right: -14px;
    overflow: visible;
  }

  .home-shelf-track {
    width: 100%;
    padding-right: 14px;
    grid-auto-columns: min(74vw, 292px);
    gap: 18px;
  }

  .home-shelf-card .catalog-card-body { min-height: 160px; }
  .home-shelf-card h3 { font-size: 1.34rem; }

  .home-catalogue-gateway {
    margin-top: 54px;
    padding: 25px 21px;
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .home-catalogue-gateway-intro strong { font-size: 1.9rem; line-height: 1.04; }
  .home-catalogue-gateway-copy { font-size: .9rem; line-height: 1.55; }
  .home-catalogue-gateway-action { grid-column: 1; grid-row: auto; width: 100%; justify-content: center; }

  .cvx-pagination .page-numbers:not(.prev):not(.next):not(.current) { display: none; }
  .cvx-pagination .page-numbers.current { display: inline-flex; }

  .seo-landing { padding-top: 22px; padding-bottom: 72px; }
  .seo-landing .breadcrumb { margin-bottom: 24px; }
  .seo-landing-hero { padding: 28px 0 38px; grid-template-columns: 1fr; gap: 25px; }
  .seo-landing-hero h1 { font-size: clamp(3.3rem, 17vw, 4.9rem); line-height: .88; }
  .seo-landing-promise { font-size: 1.55rem; }
  .seo-landing-hero > p { font-size: .98rem; line-height: 1.65; }
  .seo-term-links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .seo-term-links::-webkit-scrollbar { display: none; }
  .seo-term-links a { flex: 0 0 auto; }
  .seo-book-section { padding-top: 52px; }
  .seo-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .seo-section-heading h2 { font-size: 2.65rem; }
  .seo-book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 13px; }
  .seo-book-grid .catalog-card h3 { font-size: 1.06rem; }
  .seo-book-grid .catalog-card-body { padding-top: 13px; }
  .seo-book-grid .card-kicker { align-items: flex-start; flex-direction: column; gap: 3px; }
  .seo-book-grid .card-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }

  .seo-catalogue-cta { margin-top: 62px; padding: 27px 21px; grid-template-columns: 1fr; }
  .seo-catalogue-cta h2 { font-size: 2.35rem; }
  .seo-catalogue-cta .button { width: 100%; justify-content: center; }

  .house-hero { padding-top: 25px; }
  .house-hero h1 { margin-bottom: 23px; font-size: clamp(2.75rem, 13vw, 4rem); line-height: .96; }
  .house-hero-lead { font-size: 1.38rem; }
  .house-hero > p:not(.eyebrow):not(.house-hero-lead) { font-size: .96rem; line-height: 1.65; }
  .house-hero-actions { align-items: stretch; flex-direction: column; }
  .house-hero-actions .button { width: 100%; justify-content: center; }
  .house-text-link { justify-content: center; }
  .house-publishing-pillars { margin-top: 46px; display: flex; flex-wrap: wrap; padding: 12px 0; gap: 8px; }
  .house-publishing-pillars li { min-height: 40px; padding: 0 13px; border: 1px solid var(--house-line); border-radius: 999px; font-size: .66rem; }
  .house-publishing-pillars li + li { border-left: 1px solid var(--house-line); }

  .house-story { padding: 60px 0; grid-template-columns: 1fr; gap: 25px; }
  .house-story h2,
  .house-section-heading h2,
  .house-work-intro h2,
  .house-perspectives h2 { font-size: clamp(2.35rem, 10.8vw, 3.15rem); line-height: 1; }
  .house-story > div:last-child { font-size: .98rem; line-height: 1.65; }

  .house-paths { padding: 60px 0; }
  .house-path-grid { margin-top: 28px; grid-template-columns: 1fr; }
  .house-path-grid article { min-height: 0; padding: 27px 22px; }
  .house-path-grid h3 { max-width: none; margin: 40px 0 13px; font-size: 1.85rem; }
  .house-path-grid p { font-size: .94rem; line-height: 1.62; }

  .house-editorial-work { width: calc(100% + 28px); margin-left: -14px; padding: 38px 22px; grid-template-columns: 1fr; gap: 35px; }
  .house-work-intro > p:last-child,
  .house-work-proof p { font-size: .94rem; line-height: 1.62; }

  .house-universes { padding: 64px 0; }
  .house-section-heading-split { grid-template-columns: 1fr; gap: 18px; }
  .house-section-heading-split > p { font-size: .95rem; line-height: 1.62; }
  .house-brand-grid { margin-top: 29px; grid-template-columns: 1fr; }
  .house-brand-card { min-height: 310px; padding: 27px 22px; }
  .house-brand-card > strong { margin-top: 25px; font-size: 2.65rem; }
  .house-brand-card p { font-size: .94rem; line-height: 1.62; }

  .house-perspectives { padding: 58px 0; grid-template-columns: 1fr; }
  .house-perspectives article { padding: 32px 22px; }
  .house-perspectives article > p:not(.eyebrow) { font-size: .94rem; line-height: 1.62; }

  .house-final-cta { width: calc(100% + 28px); margin-left: -14px; padding: 38px 22px; grid-template-columns: 1fr; gap: 27px; }
  .house-final-cta h2 { font-size: 2.55rem; }
  .house-final-actions { align-items: stretch; }
  .house-final-actions .button { min-width: 0; width: 100%; }
}

@media (max-width: 374px) {
  .home-shelf-track { grid-auto-columns: 82vw; }
  .seo-book-grid { grid-template-columns: 1fr; }
  .seo-book-grid .catalog-card h3 { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-shelf-track { scroll-behavior: auto; }
}
