/* Claude Froidmont · feuille de style
   Palette : page blanche, encre, rouge Deville (repris des couvertures) */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --tint: #f4f2ef;
  --ink: #17161a;
  --ink-2: #3b3936;
  --muted: #6d6863;
  --rule: #e3dfd9;
  --red: #c8191f;
  --red-dark: #a51217;
  --serif: "EB Garamond", "Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --gut: clamp(16px, 4vw, 40px);
  --max: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--red) 55%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
cite { font-style: italic; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

/* ---- en-tête ---- */
.site-head {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
  gap: 12px 32px; padding-block: 28px 22px; border-bottom: 1px solid var(--rule);
}
.brand {
  font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: .06em;
  font-variant: small-caps; text-decoration: none; color: var(--ink);
}
.brand:hover { color: var(--ink); }
.site-head nav, .site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.site-head nav a, .site-foot nav a {
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .04em;
  text-decoration: none; color: var(--ink-2); padding-block: 4px; border-bottom: 1px solid transparent;
}
.site-head nav a:hover { color: var(--red); }
.site-head nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }

/* ---- typographie commune ---- */
h1, h2, h3 { font-weight: 500; line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(38px, 5.2vw, 64px); letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 3vw, 36px); }
h3 { font-size: 23px; }
p { margin: 0; }
.eyebrow {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red);
}
.eyebrow a { text-decoration: none; }
.lead { font-size: 1.2em; line-height: 1.5; color: var(--ink); }
.subtitle { font-style: italic; font-size: 24px; color: var(--ink-2); line-height: 1.3; }
.intro { font-size: 22px; color: var(--ink-2); max-width: 38em; }
.small { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.more {
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .02em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.more::after { content: " →"; color: var(--red); }
.more:hover { color: var(--red); }

.block { padding-block: clamp(56px, 8vw, 96px) 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }

/* ---- accueil ---- */
.hero { padding-block: clamp(56px, 9vw, 112px) 0; display: grid; gap: 22px; }
.hero h1 { max-width: 14em; font-size: clamp(40px, 6vw, 76px); font-style: italic; font-weight: 400; }
.hero-text { max-width: 34em; font-size: 21px; color: var(--ink-2); }

/* étagère : les couvertures posées sur une même ligne */
.shelf {
  --h: 280px;
  position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr));
  column-gap: clamp(16px, 3vw, 40px); row-gap: 40px;
}
.shelf::before {
  content: ""; position: absolute; left: 0; right: 0; top: var(--h); height: 1px; background: var(--ink);
}
.book { display: grid; grid-template-rows: var(--h) auto auto; gap: 6px; text-decoration: none; color: var(--ink); }
.book-cover { display: flex; align-items: flex-end; justify-content: center; margin-bottom: 14px; }
.book-cover .cover { max-height: 100%; width: auto; max-width: 100%; transition: transform .35s ease; transform-origin: bottom center; }
.book:hover .cover { transform: translateY(-6px); }
.book-title { font-size: 20px; line-height: 1.2; font-weight: 500; }
.book:hover .book-title { color: var(--red); }
.book-meta { font-family: var(--sans); font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.shelf-small { --h: 190px; }
.shelf-small .book-title { font-size: 18px; }
.cover { box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 10px 24px -12px rgba(23,22,26,.45); outline: 1px solid rgba(0,0,0,.06); }

.band { background: var(--tint); margin-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.band .block { padding-top: clamp(48px, 7vw, 80px); }
.band h2 { margin-bottom: 36px; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.quote { margin: 0; display: grid; gap: 18px; align-content: start; border-top: 1px solid var(--ink); padding-top: 22px; }
.quote blockquote { margin: 0; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.3; font-style: italic; }
.quote blockquote::before { content: "«\00a0"; color: var(--red); font-style: normal; }
.quote blockquote::after { content: "\00a0»"; color: var(--red); font-style: normal; }
.quote figcaption { font-family: var(--sans); font-size: 13px; }
.who { font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.where { color: var(--muted); }
.where::before { content: "· "; }

.author { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 56px; }
.author-text { display: grid; gap: 16px; max-width: 36em; color: var(--ink-2); }
.author-text .lead { color: var(--ink); }

.media { padding-bottom: clamp(56px, 8vw, 96px); }
.media-list {
  list-style: none; margin: 0; padding: 28px 0 0; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 6px 0; font-size: clamp(22px, 2.3vw, 28px); line-height: 1.4;
}
.media-list li:not(:last-child)::after { content: "·"; color: var(--red); margin-inline: .5em; }

/* ---- pages intérieures ---- */
.page-head { padding-block: clamp(48px, 7vw, 88px) 40px; display: grid; gap: 18px; }

.biblio { list-style: none; margin: 0; padding: 0 0 clamp(56px, 8vw, 96px); display: grid; }
.biblio li { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 40px; padding-block: 40px; border-top: 1px solid var(--rule); align-items: start; }
.biblio-cover .cover { width: 100%; height: auto; }
.biblio-body { display: grid; gap: 12px; max-width: 36em; }
.biblio-body h2 a { text-decoration: none; }
.biblio-body > p:not(.eyebrow):not(.subtitle) { color: var(--ink-2); }

.book-page {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px);
  padding-block: clamp(48px, 7vw, 88px) 0; align-items: start;
}
.book-aside { position: sticky; top: 32px; display: flex; justify-content: center; }
.cover-lg { width: 100%; max-width: 440px; height: auto; }
.book-main { display: grid; gap: 18px; }
.book-main h1 { font-size: clamp(38px, 4.6vw, 58px); }
.resume { display: grid; gap: 16px; margin-top: 18px; max-width: 34em; color: var(--ink-2); }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; padding-top: 24px; border-top: 1px solid var(--rule); }
.buy-label { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-right: 8px; flex-basis: 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: .01em;
  padding: 13px 22px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  text-decoration: none; cursor: pointer; border-radius: 0; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }

.book-press { padding-block: clamp(56px, 8vw, 96px) 0; }
.others { padding-bottom: clamp(56px, 8vw, 96px); }
.others h2 { margin-bottom: 32px; }

/* presse */
.press-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 3.5vw, 48px); }
.press-all { columns: 2; column-gap: 56px; display: block; padding-bottom: clamp(56px, 8vw, 96px); }
.press-all .press-card { break-inside: avoid; margin-bottom: 44px; }
.press-card { display: grid; gap: 12px; align-content: start; border-top: 1px solid var(--ink); padding-top: 18px; }
.press-card[hidden] { display: none; }
.press-card h3 { font-size: 24px; }
.press-book { font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: var(--red); text-decoration: none; letter-spacing: .02em; }
.press-book:hover { text-decoration: underline; }
.press-text { display: grid; gap: 12px; font-size: 18.5px; line-height: 1.55; color: var(--ink-2); }
.press-sig { font-style: italic; color: var(--muted); font-size: 17px; }
.press-sig::before { content: "— "; }
.press-link { font-family: var(--sans); font-size: 14px; font-weight: 500; text-decoration: none; }
.press-link::after { content: " →"; color: var(--red); }
.book-press .press-card .press-text { display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; }

.letter {
  margin: 0 0 56px; padding: clamp(28px, 5vw, 56px); background: var(--tint);
  display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 20px clamp(28px, 5vw, 56px); align-items: start;
}
.letter-photo { width: 100%; height: auto; box-shadow: 0 10px 24px -14px rgba(23,22,26,.5); }
.letter-body { display: grid; gap: 20px; }
@media (max-width: 720px) {
  .letter { grid-template-columns: minmax(0, 1fr); }
  .letter-photo { max-width: 180px; }
}
.letter-text { display: grid; gap: 14px; font-size: clamp(20px, 2vw, 23px); line-height: 1.55; max-width: 40em; font-style: italic; }
.letter-text p:last-child { font-style: normal; font-family: var(--sans); font-size: 13px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip {
  font-family: var(--sans); font-size: 13.5px; font-weight: 500; padding: 8px 14px; cursor: pointer;
  background: transparent; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 999px;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px clamp(32px, 6vw, 88px); padding-bottom: clamp(56px, 8vw, 96px); align-items: start; }
.contact .page-head .intro { font-size: 20px; }
.form { display: grid; gap: 8px; padding-top: clamp(48px, 7vw, 88px); }
.form label { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .04em; margin-top: 14px; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 19px; color: var(--ink); background: var(--paper);
  border: 0; border-bottom: 1px solid var(--ink-2); padding: 8px 0; border-radius: 0; width: 100%;
}
.form textarea { border: 1px solid var(--rule); padding: 12px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); }
.form .btn { margin-top: 24px; justify-self: start; }
.form-note { font-family: var(--sans); font-size: 13.5px; color: var(--red); }
.hp { position: absolute; left: -9999px; }
.thanks { padding-bottom: 160px; }

/* pied de page */
.site-foot { border-top: 1px solid var(--rule); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 32px; padding-block: 40px; }
.foot-inner .brand { font-size: 22px; }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); --h: 240px; }
  .shelf::before { display: none; }
  .book-cover { border-bottom: 1px solid var(--ink); padding-bottom: 0; }
  .quotes, .press-grid { grid-template-columns: minmax(0, 1fr); }
  .author { grid-template-columns: minmax(0, 1fr); }
  .press-all { columns: 1; }
}
@media (max-width: 720px) {
  body { font-size: 19px; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); --h: 210px; }
  .shelf-small { --h: 170px; }
  .book-page, .contact { grid-template-columns: minmax(0, 1fr); }
  .book-aside { position: static; }
  .cover-lg { max-width: 300px; }
  .biblio li { grid-template-columns: 100px minmax(0, 1fr); gap: 20px; }
  .site-head nav, .site-foot nav { gap: 4px 20px; }
  .form { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.hero-text { display: grid; gap: 10px; }
.sign { font-style: italic; color: var(--muted); }
.sign::before { content: "— "; }
.press-grid.n1 { grid-template-columns: minmax(0, 40em); }
.press-grid.n1 .press-text, .press-grid.n2 .press-text { -webkit-line-clamp: 14; }
.press-grid.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); } .press-grid.n2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.quote-portrait {
  width: 104px; height: 104px; border-radius: 50%; object-fit: cover;
  outline: 1px solid rgba(0,0,0,.06);
}

.logo-wall {
  list-style: none; margin: 0; padding: 36px 0 0; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: center; justify-items: center;
  gap: 40px clamp(16px, 3vw, 40px);
}
.logo-wall img { display: block; height: auto; max-width: 100%; }
@media (max-width: 720px) {
  .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .logo-wall img { transform: scale(.85); }
}
@media (min-width: 721px) and (max-width: 1100px) { .logo-wall { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* À voir, à écouter */
.avs { margin: 0 0 64px; display: grid; gap: 20px; }
.avs-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.avs-list li {
  display: grid; grid-template-columns: 96px minmax(0, 1.3fr) minmax(0, 1fr) 200px; align-items: center;
  gap: 8px 24px; padding-block: 16px; border-bottom: 1px solid var(--rule);
}
.avs-title { font-size: 21px; line-height: 1.25; }
.avs-book { font-style: italic; color: var(--muted); font-size: 18px; }
.press-kind {
  justify-self: start; font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red); border: 1px solid currentColor; padding: 3px 8px; border-radius: 999px;
}
.btn-sm { padding: 9px 16px; font-size: 14px; white-space: nowrap; }
@media (max-width: 720px) {
  .avs-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .avs-list .press-kind { grid-column: 1 / -1; }
  .avs-book { grid-column: 1; }
  .avs-list .btn-sm { grid-column: 2; grid-row: 2 / span 2; }
}
.avs-list .btn-sm { justify-self: end; }

.press-audio { width: 100%; max-width: 420px; height: 40px; }
.avs-note { justify-self: end; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.avs-list li.avs-audio .press-audio { grid-column: 2 / -1; max-width: none; }
@media (max-width: 720px) {
  .avs-list li.avs-audio .avs-note { display: none; }
  .avs-list li.avs-audio .press-audio { grid-column: 1 / -1; }
}
.avs-note { display: none; }

/* livre à paraître */
.book-cover { position: relative; }
.soon {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: var(--red); color: #fff; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.shelf-small .soon { font-size: 10px; padding: 3px 8px; }
.release { font-size: 21px; font-style: italic; color: var(--ink); }

/* étagère : toutes les couvertures à la même hauteur.
   La hauteur --ch est la plus petite de --h et de « largeur de colonne / 0,71 »
   (0,71 = proportion de la couverture la plus large), pour que la plus large
   tienne dans sa colonne. 100cqi = largeur de l'étagère. */
.shelf-wrap { container-type: inline-size; }
.shelf {
  --cols: var(--n, 5);
  --gap: clamp(16px, 3vw, 40px);
  --ch: min(var(--h), calc((100cqi - (var(--cols) - 1) * var(--gap)) / var(--cols) * 1.4));
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gap);
}
.shelf::before { top: var(--ch); }  /* les couvertures sont posées sur la ligne */
.book { grid-template-rows: calc(var(--ch) + 14px) auto auto; }
.book-cover .cover { height: var(--ch); width: auto; max-height: none; max-width: none; }
.soon { top: auto; bottom: 10px; }
@media (max-width: 960px) { .shelf { --cols: 3; } }
@media (max-width: 720px) { .shelf { --cols: 2; } }

/* accueil : accroche courte, livres remontés */
.hero { padding-block: clamp(40px, 6vw, 80px) 0; gap: 16px; }
.hero h1 { max-width: none; font-size: clamp(34px, 4.6vw, 58px); }
.hero + .block { padding-top: clamp(40px, 6vw, 72px); }
/* mot de l'auteur, sous « Ils ont aimé » */
.word { display: grid; gap: 12px; color: var(--ink-2); font-size: 19px; }
.word > * { max-width: 36em; }
.word-title { font-style: italic; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.25; color: var(--ink); }
.band + .word { padding-top: clamp(48px, 7vw, 80px); }

/* signature manuscrite */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.sig { height: 40px; width: auto; flex: none; color: var(--ink); }
.site-foot .sig { height: 32px; }
.brand:hover .sig { color: var(--red); }
.sign-svg { margin-top: 8px; }
.sig-lg { height: 72px; width: auto; color: var(--ink); }
@media (max-width: 720px) { .sig { height: 32px; } }
.site-head, .foot-inner { align-items: center; }
