@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 500 600; font-display: swap; src: url(../fonts/CormorantGaramond-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 500; font-display: swap; src: url(../fonts/CormorantGaramond-500-italic.woff2) format("woff2"); }
@font-face { font-family: "Source Serif"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/SourceSerif4-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/SourceSerif4-400-italic.woff2) format("woff2"); }

:root {
  --paper: #f5efe4;
  --paper-2: #ece3d3;
  --card: #fbf8f2;
  --ink: #2a221d;
  --ink-soft: #5f544b;
  --rule: #d6c9b3;
  --accent: #7b2430;
  --accent-ink: #fbf8f2;
  --gold: #a67c3d;
  --night: #1f1a17;
  --night-ink: #efe6d6;
  --display: "Cormorant", "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --text: "Source Serif", Georgia, "Times New Roman", serif;
  --wrap: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b1714;
    --paper-2: #231e1a;
    --card: #26201c;
    --ink: #ece3d4;
    --ink-soft: #b3a796;
    --rule: #3d342d;
    --accent: #d1858d;
    --accent-ink: #1b1714;
    --gold: #c9a066;
    --night: #120f0d;
    --night-ink: #e6dccb;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { font: 600 1.5rem/1 var(--display); text-decoration: none; letter-spacing: .01em; }
nav { display: flex; gap: 24px; }
nav a { text-decoration: none; font-size: .95rem; color: var(--ink-soft); }
nav a:hover { color: var(--accent); }
@media (max-width: 520px) { nav { gap: 14px; } nav a { font-size: .875rem; } .brand { font-size: 1.25rem; } }

/* Boutons */
.btn {
  display: inline-block; padding: 12px 22px;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--accent); border-radius: 2px;
  text-decoration: none; font-size: .95rem; letter-spacing: .02em;
  transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Accueil */
.hero { padding: 72px 0 64px; }
.hero-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--gold); margin: 0 0 16px; }
h1 { font: 500 clamp(2.6rem, 6vw, 4.6rem)/1.02 var(--display); margin: 0 0 24px; letter-spacing: -.01em; }
h1 em { color: var(--accent); }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-book { margin: 0; justify-self: center; max-width: 320px; }
.hero-book img { box-shadow: 0 1px 2px rgba(0,0,0,.15), 0 24px 48px -16px rgba(40,20,10,.45); transform: rotate(1.5deg); transition: transform .4s; }
.hero-book a:hover img { transform: rotate(0); }
.hero-book figcaption { margin-top: 20px; font-style: italic; color: var(--ink-soft); font-size: .95rem; text-align: center; }
.badge { display: inline-block; font-style: normal; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-right: 6px; }
@media (max-width: 820px) {
  .hero { padding: 40px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-book { max-width: 220px; }
}

/* Démarche */
.pillars { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.pillars-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.pillar { padding: 36px 28px; }
.pillar + .pillar { border-left: 1px solid var(--rule); }
.pillar .num { font: italic 500 1.1rem/1 var(--display); color: var(--gold); }
.pillar h2 { font: 600 1.6rem/1.2 var(--display); margin: 6px 0 8px; }
.pillar p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 720px) {
  .pillars-inner { grid-template-columns: 1fr; }
  .pillar { padding: 24px 0; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--rule); }
}

/* Livres */
.books-section { padding: 88px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 28px; }
.section-title { font: 500 clamp(2.2rem, 4vw, 3rem)/1.1 var(--display); margin: 0; }
.section-note { margin: 0; max-width: 30em; color: var(--ink-soft); font-size: .95rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters button {
  font: inherit; font-size: .88rem; cursor: pointer;
  padding: 7px 14px; border-radius: 999px;
  background: transparent; color: var(--ink-soft);
  border: 1px solid var(--rule);
}
.filters button:hover { border-color: var(--ink-soft); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 48px 32px; }
.book { display: flex; flex-direction: column; }
.book[hidden] { display: none; }
.cover { aspect-ratio: 464 / 600; margin-bottom: 18px; display: flex; align-items: end; }
.cover img { width: 100%; height: 100%; object-fit: contain; object-position: bottom left; filter: drop-shadow(0 10px 14px rgba(40,20,10,.22)); }
.cover-blank {
  width: 100%; height: 100%; padding: 22px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--night); color: var(--night-ink);
  border: 1px solid var(--gold); outline: 1px solid var(--gold); outline-offset: -8px;
  box-shadow: 0 10px 20px -8px rgba(40,20,10,.35);
}
.cb-author { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); }
.cb-title { font: 500 1.6rem/1.15 var(--display); }
.meta { margin: 0 0 4px; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.book h3 { font: 600 1.45rem/1.15 var(--display); margin: 0 0 4px; }
.sub { margin: 0 0 8px; font-style: italic; color: var(--ink-soft); font-size: .92rem; line-height: 1.45; }
.desc { margin: 0 0 14px; font-size: .93rem; line-height: 1.55; }
.buy { margin-top: auto; font-size: .9rem; color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; align-self: flex-start; }
.buy:hover { border-bottom-color: currentColor; }
.buy.muted { color: var(--ink-soft); font-style: italic; }
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; gap: 36px; }
  .book { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: start; }
  .book[hidden] { display: none; }
  .cover { margin: 0; }
  .book h3 { font-size: 1.3rem; }
}

/* Auteur */
.author { background: var(--night); color: var(--night-ink); padding: 88px 0; }
.author .section-title { color: var(--night-ink); margin-bottom: 24px; }
.author-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.author-text p { max-width: 36em; }
.quote { margin: 0; padding-left: 28px; border-left: 2px solid var(--gold); }
.quote p { font: italic 500 1.65rem/1.35 var(--display); margin: 0 0 16px; }
.quote cite { font-style: normal; font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); }
@media (max-width: 820px) { .author-inner { grid-template-columns: 1fr; gap: 40px; } .quote p { font-size: 1.4rem; } }

/* Contact */
.contact { padding: 88px 0; text-align: center; }
.contact-inner p { color: var(--ink-soft); max-width: 32em; margin: 16px auto 28px; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--rule); padding: 32px 0; font-size: .9rem; color: var(--ink-soft); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-inner span { color: var(--gold); white-space: nowrap; }
.small { font-size: .8rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
