/* L'Encre du Temps — feuille de style commune
   Reprend fidèlement l'identité de la page d'accueil de juin 2026. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #faf5ef;
  --ink: #1a1512;
  --ink-mid: #645850;
  --ink-light: #6e635c;
  --rule: #c9c2b6;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

html { -webkit-text-size-adjust: 100%; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
}
body { min-height: 100vh; }

a { color: inherit; }
:focus-visible { outline: 1px solid var(--ink-mid); outline-offset: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--bg); padding: 8px 14px; font-size: 15px;
}
.skip:focus { left: 12px; top: 12px; z-index: 10; }

.page {
  max-width: 1024px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page > main, .page > .closing { flex: 0 0 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- MASTHEAD ---------- */
.masthead {
  text-align: center;
  padding: clamp(36px, 6vw, 64px) 24px clamp(20px, 3vw, 32px);
}
.masthead .title {
  font-size: clamp(26px, 4.2vw, 42px);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
}
.masthead .sub {
  margin-top: 12px;
  font-size: clamp(11px, 1.3vw, 15px);
  font-weight: 500;
  letter-spacing: 0.38em;
  color: var(--ink);
}

/* ---------- NAVIGATION ---------- */
.nav { margin-top: clamp(18px, 2.6vw, 26px); }
.nav ul {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 4px 0;
}
.nav li + li::before {
  content: "·";
  color: var(--rule);
  margin: 0 clamp(10px, 1.6vw, 16px);
}
.nav a {
  font-size: clamp(10px, 1.1vw, 11.5px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--rule); }

/* ---------- HERO ---------- */
.hero-image {
  display: block;
  width: 100%;
  height: auto;
  /* La montagne se dissout dans le fond ivoire, sans arête */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 12%, #000 72%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 12%, #000 72%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 70%, transparent 100%);
  mask-composite: intersect;
}

/* ---------- CONTENU D'ACCUEIL ---------- */
.content {
  padding: clamp(28px, 5vw, 56px) clamp(24px, 7vw, 75px) 0;
  max-width: 540px;
}
.heading {
  font-size: clamp(24px, 3.2vw, 33px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-mid);
  max-width: 440px;
}
.rule {
  width: 56px; height: 1px;
  background: var(--rule);
  margin: clamp(20px, 3vw, 32px) 0 clamp(20px, 3vw, 28px);
}
.body-text p {
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 420px;
  margin-bottom: 18px;
}
.note {
  font-style: italic;
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--ink-light);
  max-width: 420px;
  margin-bottom: clamp(24px, 3vw, 32px);
}
.cta {
  display: inline-block;
  border: 1px solid var(--rule);
  padding: 13px 26px;
  font-size: clamp(10px, 1.1vw, 11.5px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
a.cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
span.cta { cursor: default; }

/* ---------- SECTION DES CAHIERS (accueil) ---------- */
.cahiers-teaser {
  margin: clamp(72px, 10vw, 120px) clamp(24px, 7vw, 75px) 0 auto;
  padding: 0 0 0 clamp(0px, 3vw, 32px);
  max-width: 460px;
  border-left: 1px solid transparent;
}
.eyebrow {
  font-size: clamp(10px, 1.1vw, 11.5px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 14px;
}
.cahiers-teaser h2 {
  font-size: clamp(22px, 2.7vw, 28px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-mid);
}
.cahiers-teaser .subtitle {
  margin-top: 8px;
  font-style: italic;
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--ink-light);
}
.cahiers-teaser .rule { margin: clamp(18px, 2.5vw, 24px) 0; }
.cahiers-teaser p.text {
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.55;
  max-width: 420px;
  margin-bottom: clamp(20px, 2.6vw, 26px);
}
.quiet-link {
  font-size: clamp(10px, 1.1vw, 11.5px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
  transition: border-color .3s;
}
.quiet-link:hover { border-bottom-color: var(--ink); }
.quiet-link .arrow { display: inline-block; margin-left: 8px; transition: transform .3s; }
.quiet-link:hover .arrow { transform: translateX(3px); }

/* ---------- CLÔTURE & PIED ---------- */
.closing {
  text-align: center;
  margin: clamp(88px, 12vw, 140px) auto 0;
  max-width: 540px;
  padding: 0 24px;
}
.closing .line { font-size: clamp(19px, 2.4vw, 27px); color: var(--ink-mid); line-height: 1.5; }
.closing .rule { margin: clamp(18px, 2.5vw, 26px) auto; }
.closing .italic { font-style: italic; font-size: clamp(14px, 1.6vw, 17px); color: var(--ink-light); }

.footer {
  text-align: center;
  margin-top: auto;
  padding: clamp(110px, 16vw, 180px) 24px clamp(24px, 4vw, 40px);
  font-size: clamp(10px, 1.1vw, 11.5px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer .sep { margin: 0 14px; color: var(--rule); }
.footer a { color: var(--ink); text-decoration: none; letter-spacing: 0.02em; text-transform: none; }
.footer a.feed { letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-light); }

/* ---------- PAGE DES CAHIERS ---------- */
.library-intro {
  padding: clamp(36px, 6vw, 72px) clamp(24px, 7vw, 75px) 0;
  max-width: 720px;
}
.library-intro h1 {
  text-wrap: balance;
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink-mid);
}
.library-intro .subtitle {
  margin-top: 10px;
  font-style: italic;
  font-size: clamp(16px, 1.9vw, 20px);
  color: var(--ink-light);
}
.library-intro p.text {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
  max-width: 500px;
}

.library {
  padding: clamp(40px, 6vw, 72px) clamp(24px, 7vw, 75px) 0;
  max-width: 760px;
}
.library h2.list-title {
  font-size: clamp(10px, 1.1vw, 11.5px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.entries { list-style: none; }
.entry {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  gap: 6px 28px;
  padding: clamp(22px, 3vw, 30px) 0;
  border-bottom: 1px solid var(--rule);
}
.entry .meta {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-light);
  line-height: 1.5;
  padding-top: 6px;
}
.entry .meta .cat { display: block; font-style: italic; letter-spacing: 0.02em; }
.entry h3 {
  font-size: clamp(20px, 2.4vw, 25px);
  font-weight: 500;
  line-height: 1.3;
}
.entry h3 a { text-decoration: none; }
.entry h3 a:hover { color: var(--ink-mid); }
.entry .summary {
  margin-top: 8px;
  font-size: clamp(15px, 1.7vw, 17.5px);
  line-height: 1.55;
  color: var(--ink-mid);
}
.empty {
  padding: clamp(28px, 4vw, 40px) 0;
  font-style: italic;
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--ink-light);
  border-bottom: 1px solid var(--rule);
}

/* Avis de parution */
.notice {
  margin: clamp(70px, 10vw, 120px) clamp(24px, 7vw, 75px) 0;
  max-width: 520px;
}
.notice h2 {
  font-size: clamp(20px, 2.4vw, 25px);
  font-weight: 500;
  color: var(--ink-mid);
}
.notice p {
  margin: 12px 0 22px;
  font-size: clamp(15px, 1.7vw, 17.5px);
  line-height: 1.55;
}
.notice .small {
  margin-top: 16px;
  font-size: 14px;
  font-style: italic;
  color: var(--ink-light);
}

/* ---------- ARTICLE ---------- */
.article {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) 24px 0;
}
.article-head { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.article-head .eyebrow a { text-decoration: none; }
.article-head h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 500;
  line-height: 1.18;
  color: var(--ink);
  text-wrap: balance;
}
.article-head .subtitle {
  margin-top: 14px;
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.4;
  color: var(--ink-mid);
  text-wrap: balance;
}
.article-head .rule { margin: clamp(24px, 3vw, 32px) auto; }
.article-head .byline {
  font-size: clamp(11px, 1.2vw, 12.5px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
  line-height: 1.9;
}

.abstract {
  font-size: clamp(17px, 1.95vw, 20px);
  line-height: 1.6;
  font-style: italic;
  color: var(--ink-mid);
  margin: 0 auto clamp(36px, 5vw, 52px);
  max-width: 34em;
  padding-bottom: clamp(30px, 4vw, 44px);
  border-bottom: 1px solid var(--rule);
}

.prose {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.68;
  font-variant-numeric: oldstyle-nums;
  font-kerning: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
  max-width: 34em;
  margin: 0 auto;
}
.prose p { margin: 0; }
.prose p + p { text-indent: 1.5em; }
.prose h2 {
  font-size: clamp(22px, 2.6vw, 27px);
  font-weight: 500;
  line-height: 1.3;
  margin: 2.2em 0 0.8em;
  text-align: center;
  color: var(--ink);
}
.prose h3 {
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 500;
  font-style: italic;
  margin: 1.8em 0 0.5em;
  color: var(--ink-mid);
}
.prose h2 + p, .prose h3 + p { text-indent: 0; }
.prose blockquote {
  margin: 1.4em 1.5em;
  font-size: 0.92em;
  line-height: 1.6;
  color: var(--ink-mid);
}
.prose blockquote + p, .prose .break + p { text-indent: 0; }
.prose .break { text-align: center; color: var(--rule); margin: 1.6em 0; letter-spacing: 0.6em; }
.prose sup a, a.fnref { text-decoration: none; color: var(--ink-mid); font-size: 0.72em; padding: 0 1px; }
.prose em { font-style: italic; }

.endmatter {
  max-width: 34em;
  margin: clamp(48px, 6vw, 72px) auto 0;
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--rule);
}
.endmatter h2 {
  font-size: clamp(10px, 1.1vw, 11.5px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin: 0 0 16px;
}
.endmatter h2:not(:first-child) { margin-top: 36px; }
.endmatter ol, .endmatter ul {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-mid);
  padding-left: 1.4em;
}
.endmatter ul { list-style: none; padding-left: 0; }
.endmatter ul li { padding-left: 1.6em; text-indent: -1.6em; }
.endmatter li + li { margin-top: 8px; }

.article-foot {
  max-width: 34em;
  margin: clamp(48px, 6vw, 64px) auto 0;
  display: flex; flex-wrap: wrap; gap: 18px 32px;
  justify-content: space-between;
  align-items: baseline;
}
.article-foot .cite {
  font-size: 14px;
  font-style: italic;
  color: var(--ink-light);
  line-height: 1.5;
  flex: 1 1 100%;
}

/* ---------- LA MAISON & L'AUTEUR ---------- */
.house {
  padding: clamp(36px, 6vw, 72px) 24px 0;
  max-width: calc(30em + 48px);
  margin: 0 auto;
  width: 100%;
}
.house h1 {
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink-mid);
  text-wrap: balance;
}
.house .text p {
  font-size: clamp(17px, 1.95vw, 20px);
  line-height: 1.62;
  max-width: 30em;
}
.house .text p + p { margin-top: 1em; }
.house .rule { margin: clamp(40px, 6vw, 64px) auto clamp(22px, 3vw, 30px); }
.house .rule + .first-title { margin-top: 0; }
.house .first-title {
  text-align: center;
  font-style: italic;
  max-width: 30em;
  text-wrap: balance;
  margin-left: auto; margin-right: auto;
  margin-top: clamp(48px, 7vw, 80px);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.55;
  color: var(--ink-mid);
}
.house .first-title em { font-style: normal; color: var(--ink); }

.author {
  margin: clamp(70px, 10vw, 120px) clamp(24px, 7vw, 75px) 0 auto;
  max-width: 460px;
}
.author h2 {
  font-size: clamp(20px, 2.4vw, 25px);
  font-weight: 500;
  color: var(--ink-mid);
  margin-bottom: 14px;
}
.author p:not(.eyebrow) {
  font-size: clamp(15px, 1.7vw, 17.5px);
  line-height: 1.55;
}
.author p:not(.eyebrow) + p { margin-top: 0.8em; }
@media (max-width: 640px) { .author { margin-left: clamp(24px, 7vw, 75px); } }

/* ---------- LIVRES ---------- */
.cover {
  display: block;
  width: 100%;
  height: auto;
  background: #f3ede7;
  box-shadow: 0 1px 2px rgba(26, 21, 18, 0.06), 0 14px 32px -12px rgba(26, 21, 18, 0.22);
}

.catalogue {
  padding: clamp(36px, 6vw, 72px) 24px 0;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}
.catalogue h1 {
  font-size: clamp(10px, 1.1vw, 11.5px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.title-card {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  text-decoration: none;
}
.title-card .author-name, .book-head .author-name {
  font-size: clamp(10px, 1.1vw, 12px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.title-card h2 {
  margin-top: 20px;
  font-size: clamp(23px, 2.8vw, 30px);
  font-weight: 500;
  line-height: 1.2;
}
.title-card .status { margin-top: 18px; font-size: clamp(10px, 1.1vw, 11.5px); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-light); }
.title-card .more { margin-top: 34px; display: inline-block; }
.title-card:hover h2 { color: var(--ink-mid); }

.book {
  padding: clamp(36px, 6vw, 72px) 24px 0;
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
}
.book-head {
  display: grid;
  grid-template-columns: minmax(180px, 300px) 1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}
.book-head h1 {
  margin-top: 24px;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-wrap: balance;
}
.book-head .rule { margin: clamp(22px, 3vw, 30px) 0; }
.book-head blockquote {
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.45;
  color: var(--ink-mid);
  max-width: 22em;
}
.book-head blockquote p + p { margin-top: 0.4em; }
.book-head .status {
  margin-top: clamp(22px, 3vw, 30px);
  font-size: clamp(10px, 1.1vw, 11.5px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.back-cover {
  max-width: 640px;
  margin: clamp(60px, 9vw, 104px) auto 0;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.62;
}
.back-cover .lead { font-weight: 600; margin-bottom: 1em; }
.back-cover p + p { margin-top: 0.9em; }
.back-cover .closing-line {
  margin-top: 1.6em;
  font-weight: 600;
}

.book-details {
  max-width: 640px;
  margin: clamp(56px, 8vw, 88px) auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--rule);
  padding-top: clamp(28px, 4vw, 40px);
}
.book-details h2, .book-author h2 {
  font-size: clamp(10px, 1.1vw, 11.5px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 14px;
}
.book-details dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 16px; line-height: 1.45; }
.book-details dt { color: var(--ink-light); }
.book-details dd { font-variant-numeric: lining-nums; }
.book-details .where p { font-size: 16px; line-height: 1.55; }
.book-details .where p + p { margin-top: 0.6em; }

.book-author {
  max-width: 640px;
  margin: clamp(48px, 7vw, 72px) auto 0;
  border-top: 1px solid var(--rule);
  padding-top: clamp(28px, 4vw, 40px);
}
.book-author p:not(.name) { font-size: clamp(15px, 1.7vw, 17.5px); line-height: 1.55; }
.book-author p + p { margin-top: 0.7em; }
.book-author .name { font-size: clamp(20px, 2.4vw, 24px); color: var(--ink-mid); margin-bottom: 12px; }

.pending { color: var(--ink-light); font-style: italic; }

@media (max-width: 640px) {
  .title-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .title-card .cover { max-width: 240px; }
  .title-card .phrase { margin-left: auto; margin-right: auto; }
  .home-lead { margin-top: 0; }
  .book-head { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .book-head .cover { max-width: 240px; }
  .book-head .rule { margin-left: auto; margin-right: auto; }
  .book-head blockquote { margin: 0 auto; }
  .book-details { grid-template-columns: 1fr; }
}

a.title-card + a.title-card { margin-top: clamp(56px, 8vw, 88px); padding-top: clamp(56px, 8vw, 88px); position: relative; }
a.title-card + a.title-card::before {
  content: ""; position: absolute; top: 0; left: 50%;
  width: 72px; height: 1px; background: var(--rule); opacity: 0.7;
  transform: translateX(-50%);
}
.title-card .phrase {
  margin-top: 14px;
  font-style: italic;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.45;
  color: var(--ink-mid);
  max-width: 22em;
}
.home-lead { position: relative; margin-top: clamp(-80px, -6vw, -20px); }
.back-cover.verse { max-width: 26em; width: fit-content; margin-left: auto; margin-right: auto; }
.back-cover.verse p + p { margin-top: 1em; }
.back-cover:not(.verse) .closing-line + p, .back-cover .closing-line:only-of-type { }

/* Triptyque de la traversée : tirages légendés */
.traversee {
  max-width: 640px;
  margin: clamp(64px, 9vw, 104px) auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
  align-items: start;
}
.tirage {
  background: #fff;
  padding: 7px 7px 0;
  transition: transform .4s ease, box-shadow .4s ease;
  box-shadow: 0 1px 2px rgba(26, 21, 18, 0.06), 0 16px 36px -14px rgba(26, 21, 18, 0.24);
}
.tirage picture { display: block; }
.tirage img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.tirage figcaption {
  height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  text-transform: uppercase;
  color: var(--ink-light);
  font-variant-numeric: oldstyle-nums;
}

@media (max-width: 640px) {
  .traversee { grid-template-columns: 1fr; max-width: 340px; gap: 40px; }
}

/* Accueil : le catalogue en regard du manifeste */
.home-books {
  margin: clamp(72px, 10vw, 112px) clamp(24px, 7vw, 75px) 0 auto;
  max-width: 440px;
}
.home-books .eyebrow { font-weight: 400; margin-bottom: 22px; }
.home-books ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin-bottom: 30px;
}
.home-books li a { display: block; transition: transform .4s ease; }
.home-books li a:hover { transform: translateY(-3px); }
.home-books picture { display: block; }
@media (max-width: 640px) {
  .home-books { margin-left: clamp(24px, 7vw, 75px); max-width: none; }
}

.house .marque {
  display: block;
  width: clamp(110px, 15vw, 150px);
  height: auto;
  margin: clamp(64px, 9vw, 96px) auto clamp(48px, 6.5vw, 68px);
}
.house .marque + .first-title { margin-top: 0; }

.house .first-title {
  font-style: normal;
  font-size: clamp(12.5px, 1.25vw, 14px);
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--ink-light);
  max-width: 44em;
  text-wrap: pretty;
}
.house .first-title em { font-style: italic; color: var(--ink-mid); }
@media (max-width: 719px) {
  .house .first-title { text-wrap: balance; }
}

.house .text p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 7 3 3;
}
@media (max-width: 520px) {
  .house .text p { text-align: left; }
}

/* ---------- CONTACT ---------- */
.contact-intro {
  font-size: clamp(17px, 1.95vw, 20px);
  line-height: 1.62;
  text-align: center;
  text-wrap: balance;
  max-width: calc(clamp(26px, 4.2vw, 42px) * 10.95);
  margin: 0 auto clamp(68px, 9vw, 96px);
}
.letter {
  display: grid; gap: clamp(26px, 3.4vw, 34px);
  /* même largeur que le logotype L’ENCRE DU TEMPS */
  max-width: calc(clamp(26px, 4.2vw, 42px) * 10.95);
  margin: 0 auto;
  width: 100%;
}
.field label {
  display: block;
  font-size: clamp(10px, 1.1vw, 11.5px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: clamp(15px, 1.55vw, 16.5px);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 6px 0 8px;
  outline: none;
  transition: border-color .3s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-light) 50%), linear-gradient(135deg, var(--ink-light) 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field textarea { resize: vertical; line-height: 1.55; min-height: 9em; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.field.invalid input, .field.invalid textarea { border-bottom-color: #9a3515; }
.field.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy {
  font-size: 13.5px;
  font-style: italic;
  color: var(--ink-light);
  text-align: center;
  margin-top: 4px;
}
.send {
  justify-self: center;
  font-family: inherit;
  font-size: clamp(11px, 1.15vw, 12px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink-mid);
  padding: 15px 34px 14px;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.send:hover, .send:focus-visible { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.native-hidden { position: absolute !important; opacity: 0; pointer-events: none; width: 1px !important; height: 1px; }
.dd { position: relative; }
.dd-btn {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  font: inherit;
  font-size: clamp(15px, 1.55vw, 16.5px);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 6px 0 8px;
  text-align: left;
  cursor: pointer;
  transition: border-color .3s;
}
.dd-btn::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1px solid var(--ink-light);
  border-bottom: 1px solid var(--ink-light);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .3s;
  margin-right: 4px;
}
.dd.open .dd-btn::after { transform: translateY(2px) rotate(-135deg); }
.dd-btn:hover, .dd.open .dd-btn, .dd-btn:focus-visible { border-bottom-color: var(--ink); outline: none; }
.dd-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  z-index: 5;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--rule);
  box-shadow: 0 18px 40px -18px rgba(26, 21, 18, 0.28);
  padding: 8px 0;
  outline: none;
}
.dd-list li {
  font-size: clamp(14.5px, 1.5vw, 16px);
  color: var(--ink-mid);
  padding: 8px 18px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.dd-list li.active { background: rgba(26, 21, 18, 0.045); color: var(--ink); }
.dd-list li[aria-selected="true"] { color: var(--ink); font-style: italic; }
.form-status {
  text-align: center;
  font-style: italic;
  font-size: clamp(15px, 1.7vw, 17px);
  color: var(--ink-mid);
  margin: 0 auto clamp(28px, 4vw, 40px);
  max-width: 30em;
}
.form-status.err { color: #9a3515; }
.contact-alt {
  margin-top: clamp(64px, 9vw, 96px);
  text-align: center;
  font-size: clamp(13.5px, 1.35vw, 15px);
  color: var(--ink-light);
  line-height: 1.8;
}
.contact-alt a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }

/* En-tête de livre : un seul axe, centré, à la largeur du texte */
.book-head {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  gap: clamp(30px, 4vw, 44px);
}
.book-head .cover { width: clamp(190px, 24vw, 250px); }
.book-head picture { display: block; }
.book-head .rule { margin-left: auto; margin-right: auto; }
.book-head blockquote { margin: 0 auto; max-width: none; line-height: 1.5; }

.tirage:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(26,21,18,.06), 0 22px 40px -14px rgba(26,21,18,.3); }
.tirage figcaption { height: 38px; font-size: 10px; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoom:focus-visible { outline: 1px solid var(--ink-mid); outline-offset: 3px; }

/* Visionneuse */
.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  overflow: hidden;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: lb-in .35s ease; }
.lightbox::backdrop { background: rgba(250, 245, 239, 0.985); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-tirage {
  background: #fff;
  padding: 12px 12px 0;
  box-shadow: 0 2px 4px rgba(26,21,18,.06), 0 30px 60px -20px rgba(26,21,18,.35);
}
.lb-tirage img { display: block; max-height: calc(100vh - 150px); max-width: calc(100vw - 140px); width: auto; height: auto; }
.lb-tirage figcaption {
  height: 52px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; letter-spacing: 0.32em; padding-left: 0.32em; text-transform: uppercase;
  color: var(--ink-light); font-variant-numeric: oldstyle-nums;
}
.lb-btn {
  position: fixed; background: none; border: 0; cursor: pointer;
  font-family: var(--serif); font-weight: 300; color: var(--ink-light);
  font-size: 44px; line-height: 1; padding: 12px 16px;
  transition: color .25s;
}
.lb-btn:hover, .lb-btn:focus-visible { color: var(--ink); outline: none; }
.lb-prev { left: max(12px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(12px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
.lb-close { top: 14px; right: max(14px, env(safe-area-inset-right, 0px)); font-size: 36px; }
@media (max-width: 640px) {
  .lb-tirage img { max-width: calc(100vw - 40px); max-height: calc(100vh - 170px); }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .lightbox[open] { animation: none; } .tirage:hover { transform: none; } }

.book-author h2 { margin-bottom: clamp(20px, 2.6vw, 28px); }

/* Accueil : manifeste et catalogue ramenés vers l’axe */
@media (min-width: 900px) {
  .home-lead { padding-left: clamp(75px, 13vw, 170px); max-width: calc(465px + clamp(75px, 13vw, 170px)); }
  .home-books { margin-right: clamp(75px, 13vw, 170px); }
  .hero-image { transform: translateX(-6.5%); }
}

/* Pages de livres : quatrième et notice justifiées, comme la maison */
.back-cover:not(.verse) p,
.book-author p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 7 3 3;
}
@media (max-width: 520px) {
  .back-cover:not(.verse) p, .book-author p { text-align: left; }
}

/* ---------- PETITS ÉCRANS ---------- */
@media (max-width: 640px) {
  .cahiers-teaser { margin-left: clamp(24px, 7vw, 75px); padding-left: 0; }
  .entry { grid-template-columns: 1fr; gap: 4px; }
  .entry .meta { padding-top: 0; }
  .entry .meta .cat { display: inline; }
  .entry .meta .cat::before { content: " · "; font-style: normal; }
  .prose p + p { text-indent: 1.2em; }
  .footer .sep { margin: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media print {
  .nav, .notice, .skip, .article-foot .quiet-link, .footer .feed { display: none; }
  html, body { background: #fff; }
  .prose { font-size: 11.5pt; }
}

/* Pied de page : lien vers la politique de confidentialité */
.footer a.legal { letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-light); }
.footer a.legal:hover { color: var(--ink); }
.privacy a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.book-details .where a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }

/* Page de confidentialité */
.legal-page h1 { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.legal-page h2 {
  font-size: clamp(10px, 1.1vw, 11.5px); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-light); margin: clamp(36px, 5vw, 48px) 0 14px;
}
.legal-page p, .legal-page li { font-size: clamp(16px, 1.75vw, 18px); line-height: 1.62; }
.legal-page p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.legal-page p + p { margin-top: 0.8em; }
.legal-page ul { list-style: none; margin-top: 0.6em; }
.legal-page li { padding-left: 1.1em; position: relative; }
.legal-page li::before { content: "–"; position: absolute; left: 0; color: var(--ink-light); }
.legal-page a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.legal-page .maj { margin-top: clamp(48px, 6vw, 64px); text-align: center; font-style: italic; font-size: 14px; color: var(--ink-light); }
@media (max-width: 520px) { .legal-page p { text-align: left; } }
.legal-page ul + p { margin-top: 0.8em; }
