/* ==========================================================================
   Groëhe Kaci — feuille de style du site
   Direction artistique « La lumière vient des livres » :
   une nuit sobre, les couvertures comme seules sources de couleur, l'or pour guider.
   ========================================================================== */

/* Polices auto-hébergées (licence SIL OFL, voir assets/fonts) ------------- */
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* Jetons ------------------------------------------------------------------ */
:root {
  --noir: #0b0d12;
  --nuit: #111827;
  --graphite: #252a35;
  --blanc: #f2f0ea;
  --or: #c6a66b;
  --or-clair: #d9bf8a;
  --bleu: #5b9dce;

  --bg: var(--noir);
  --bg-2: var(--nuit);
  --surface: #1a2130;
  --line: var(--graphite);
  --line-2: #2f3646;
  --fg: var(--blanc);
  --fg-2: #d9d7d0;
  --fg-3: #b9bdc6;
  --fg-4: #9ea3ad;
  --accent: var(--or);
  --btn-bg: var(--or);
  --btn-bg-hover: var(--or-clair);
  --btn-fg: var(--noir);

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 9vw, 120px);
  --radius: 2px;
}

/* Thème clair : espace jeunesse ------------------------------------------- */
.theme-light main,
.band-light {
  --bg: var(--blanc);
  --bg-2: #e9e6dd;
  --surface: #e4e0d5;
  --line: #d8d3c6;
  --line-2: #cfc9ba;
  --fg: var(--noir);
  --fg-2: #2b2f38;
  --fg-3: #3a3f4a;
  --fg-4: #555b66;
  --accent: #7a5a22;
  --btn-bg: var(--noir);
  --btn-bg-hover: var(--graphite);
  --btn-fg: var(--blanc);
  background: var(--bg);
  color: var(--fg);
}

/* Base -------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--noir);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--or); outline-offset: 4px; border-radius: var(--radius); }
.theme-light main :focus-visible, .band-light :focus-visible { outline-color: var(--noir); }
main:focus { outline: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--or); color: var(--noir); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 20px; background: var(--or); color: var(--noir); font-weight: 600;
}
.skip-link:focus { top: 16px; color: var(--noir); }

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

/* Typographie ------------------------------------------------------------- */
.h-section { font-size: clamp(32px, 3.4vw, 52px); line-height: 1.1; }
.h-sub { font-size: 15px; font-weight: 500; font-family: var(--sans); color: var(--accent); line-height: 1.4; }
.lead { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.7; color: var(--fg-2); }
.muted { color: var(--fg-3); }
.small { font-size: 14px; }

/* Nom de l'auteur avec le tréma d'or */
.wordmark { font-family: var(--serif); font-weight: 500; letter-spacing: .14em; white-space: nowrap; }
.wordmark__e { position: relative; display: inline-block; letter-spacing: 0; margin-right: .14em; line-height: 1; }
.wordmark__e::before {
  content: "";
  position: absolute;
  top: var(--trema-top, -.085em);
  left: 50%;
  width: max(.105em, 3px); height: max(.105em, 3px);
  margin-left: calc(-1 * max(.165em, 4.5px));
  border-radius: 50%;
  background: var(--or);
  box-shadow: max(.225em, 6px) 0 0 var(--or);
}

/* Boutons et liens -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 1px solid transparent; border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.2; text-align: center;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--btn-bg-hover); color: var(--btn-fg); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--fg-4); border-color: color-mix(in srgb, var(--fg) 45%, transparent); font-weight: 500; }
.btn--ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.link {
  font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 1px; text-underline-offset: 7px;
}
.link:hover { color: var(--accent); }
.ext::after { content: " ↗"; font-size: .85em; }

/* En-tête ----------------------------------------------------------------- */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid #1c2230; background: var(--noir); }
.site-header--overlay { position: absolute; inset: 0 0 auto; border-bottom: 0; background: linear-gradient(180deg, rgba(11, 13, 18, .75), rgba(11, 13, 18, 0)); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { font-size: 19px; display: inline-flex; align-items: center; min-height: 44px; }
.site-menu { display: flex; align-items: center; gap: 36px; }
.site-menu__links { display: flex; flex-wrap: wrap; gap: 6px 32px; list-style: none; font-size: 15px; }
.site-menu__links a { display: inline-flex; align-items: center; min-height: 44px; }
.site-menu__links a[aria-current="page"] { color: var(--or); }
.site-menu__social { display: none; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .site-header__inner { min-height: 68px; }
  .brand { font-size: 16px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin-right: -12px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before { display: block; width: 24px; height: 1.5px; background: var(--blanc); transition: transform .25s; }
  .nav-toggle__bars { position: relative; background: transparent; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 24px; height: 1.5px; background: var(--blanc); transition: transform .25s; }
  .nav-toggle__bars::before { top: -4px; }
  .nav-toggle__bars::after { top: 4px; }
  .menu-open .nav-toggle__bars::before { transform: translateY(4px) rotate(45deg); }
  .menu-open .nav-toggle__bars::after { transform: translateY(-4px) rotate(-45deg); }

  .site-menu {
    position: fixed; inset: 68px 0 0; z-index: 30;
    display: none; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 32px;
    padding: 16px var(--gutter) 40px;
    background: var(--noir); overflow-y: auto;
  }
  .menu-open .site-menu { display: flex; }
  .menu-open { overflow: hidden; }
  .menu-open .site-header--overlay { background: var(--noir); }
  .site-menu__links { flex-direction: column; gap: 0; font-family: var(--serif); font-size: 34px; line-height: 1.2; }
  .site-menu__links li { border-bottom: 1px solid #1c2230; }
  .site-menu__links a { min-height: 72px; width: 100%; }
  .site-menu__social { display: flex; gap: 10px; list-style: none; padding-top: 24px; border-top: 1px solid var(--line); }
}

/* Icônes des réseaux ------------------------------------------------------ */
.icon { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; color: var(--or);
}
.icon-btn:hover { border-color: var(--or); }

/* Hero de l'accueil ------------------------------------------------------- */
.hero { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: clamp(660px, 94vh, 880px); }
.hero__media { position: absolute; top: 0; right: 0; width: 64%; height: 100%; overflow: hidden; }
.hero__media img { width: 100%; height: 115%; object-fit: cover; object-position: center 35%; filter: brightness(.6) saturate(.85); will-change: transform; }
.hero__media::before,
.hero__media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__media::before { background: linear-gradient(90deg, var(--noir) 0%, rgba(11, 13, 18, .62) 22%, rgba(11, 13, 18, .08) 100%); }
.hero__media::after { background: linear-gradient(180deg, rgba(11, 13, 18, .55) 0%, rgba(11, 13, 18, 0) 24%, rgba(11, 13, 18, 0) 60%, var(--noir) 100%); }
.hero__content { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 150px; padding-bottom: 56px; }
.hero__title { font-size: clamp(46px, 7.2vw, 104px); line-height: 1.05; }
.hero__tagline { margin-top: 28px; max-width: 640px; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.25; }
.hero__subtitle { margin-top: 20px; max-width: 520px; color: var(--fg-3); font-size: 18px; }
.hero__actions { margin-top: 40px; }

.featured {
  align-self: flex-end; margin-top: 56px;
  display: flex; gap: 18px; align-items: center;
  max-width: 440px; padding: 14px 24px 14px 14px;
  background: rgba(17, 24, 39, .8); border: 1px solid var(--line); border-radius: 3px;
  backdrop-filter: blur(6px);
}
.featured img { width: 58px; height: auto; border-radius: 1px; box-shadow: 0 12px 30px -8px var(--halo); }
.featured__label { font-size: 14px; color: var(--or); }
.featured__title { display: block; font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.featured__meta { font-size: 14px; color: var(--fg-3); }

@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero__media { position: relative; width: 100%; height: 320px; }
  .hero__media::before { background: none; }
  .hero__media::after { background: linear-gradient(180deg, rgba(11, 13, 18, .8) 0%, rgba(11, 13, 18, .15) 30%, rgba(11, 13, 18, .2) 60%, var(--noir) 100%); }
  .hero__content { padding-top: 0; margin-top: -70px; }
  .hero__title { font-size: 56px; letter-spacing: .12em; }
  .hero__title .wordmark { white-space: normal; }
  .hero__title .wordmark__line { display: block; }
  .hero__tagline { font-size: 26px; margin-top: 22px; }
  .hero__subtitle { font-size: 16px; }
  .hero__actions .btn { width: 100%; }
  .featured { align-self: stretch; max-width: none; margin-top: 32px; }
}

/* Sections ---------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section--night { background: var(--bg-2); }
.section--ruled { border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { max-width: 560px; margin-top: 16px; color: var(--fg-3); font-size: 18px; }

/* Présentation de l'auteur sur l'accueil */
.intro { display: flex; flex-wrap: wrap; gap: 64px 96px; }
.intro__text { flex: 3 1 520px; min-width: 0; max-width: 680px; }
.intro__text .prose { margin-top: 32px; }
.intro__aside { flex: 2 1 280px; min-width: 0; padding-top: 12px; }
.readings { list-style: none; margin-top: 20px; font-family: var(--serif); font-size: 27px; line-height: 1.6; }

/* Étagère de livres ------------------------------------------------------- */
.shelf { display: flex; flex-wrap: wrap; gap: 64px 96px; align-items: flex-start; }
.shelf__group { flex: 0 1 auto; min-width: 0; }
.shelf__label { padding-top: 14px; border-top: 1px solid var(--accent); font-size: 14px; color: var(--accent); }
.shelf__books { display: flex; flex-wrap: wrap; gap: 48px 40px; margin-top: 32px; list-style: none; }
.shelf__books > li { width: 260px; max-width: 100%; }

.book { display: flex; flex-direction: column; gap: 22px; }
.book__cover { position: relative; display: block; }
.book__cover img,
.book__placeholder {
  width: 100%; border-radius: var(--radius);
  box-shadow: 0 40px 70px -30px var(--halo, rgba(198, 166, 107, .4));
  animation: halo-in 1.4s ease-out both;
}
.book__placeholder {
  display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 600 / 984;
  padding: 24px 16px; background: var(--surface); border: 1px solid var(--line-2); text-align: center; font-family: var(--serif);
}
.book__meta { display: block; font-size: 14px; color: var(--accent); }
.book__title { display: block; margin-top: 6px; font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.book__genre { display: block; margin-top: 6px; font-size: 14px; color: var(--fg-4); }
a.book:hover .book__title { color: var(--accent); }

@keyframes halo-in {
  from { box-shadow: 0 40px 70px -30px transparent; }
}

/* Bandeau jeunesse de l'accueil ------------------------------------------- */
.youth-band { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 96px; }
.youth-band__text { flex: 1 1 380px; min-width: 0; max-width: 500px; }
.youth-band__text .prose { margin-top: 20px; }
.youth-band__books { flex: 1 1 520px; min-width: 0; display: flex; flex-wrap: wrap; gap: 32px 28px; list-style: none; }
.youth-band__books > li { flex: 1 1 150px; min-width: 0; }
.youth-band .book__title { font-size: 21px; }

/* Genres ------------------------------------------------------------------ */
.genres {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 30px;
  list-style: none; font-family: var(--serif); font-size: clamp(32px, 4.4vw, 64px); line-height: 1.3;
}
.genres a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .18em; text-decoration-thickness: 1px; transition: text-decoration-color .2s; }
.genres a:hover { color: var(--fg); text-decoration-color: var(--accent); }
.genres__sep { display: inline-block; width: 22px; height: 8px; position: relative; }
.genres__sep::before { content: ""; position: absolute; left: 0; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--or); box-shadow: 14px 0 0 var(--or); }

/* Univers Land : bandeau et anneau des districts -------------------------- */
.land-teaser { display: flex; flex-wrap: wrap; align-items: center; gap: 72px; }
.land-teaser__text { flex: 1 1 480px; min-width: 0; }
.land-title { font-size: clamp(76px, 10vw, 150px); line-height: .95; letter-spacing: .06em; }
.land-kicker { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--fg-2); }
.land-quote { margin-top: 36px; max-width: 560px; font-family: var(--serif); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.3; }
.land-teaser .prose { margin-top: 24px; max-width: 540px; }
.land-teaser .actions { margin-top: 40px; }

.ring { position: relative; flex: 0 1 420px; width: 100%; max-width: 420px; aspect-ratio: 1; margin: 0; }
.ring__circle { position: absolute; inset: 9.5%; border: 1px solid var(--line-2); border-radius: 50%; }
.ring__dot {
  position: absolute; left: var(--x); top: var(--y);
  width: 9px; height: 9px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #4a5263;
}
a.ring__dot { width: 20px; height: 20px; background: transparent; }
a.ring__dot::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #4a5263; }
.ring__dot--lit::before, .ring__dot--lit { background: var(--or); }
span.ring__dot--lit { width: 16px; height: 16px; box-shadow: 0 0 24px 4px rgba(198, 166, 107, .45); }
a.ring__dot--lit::before { inset: 2px; box-shadow: 0 0 24px 4px rgba(198, 166, 107, .45); }
.ring__caption { position: absolute; left: 18%; right: 18%; top: 50%; transform: translateY(-50%); text-align: center; }
.ring__caption strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2vw, 25px); line-height: 1.25; }
.ring__caption span { display: block; margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--fg-3); }

/* Liste d'actualités ------------------------------------------------------ */
.news-list { list-style: none; border-top: 1px solid var(--line); }
.news-list > li { border-bottom: 1px solid var(--line); }
.news-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 48px; padding: 32px 0; }
.news-item__date { flex: 0 0 180px; font-size: 15px; color: var(--fg-3); }
.news-item__type { flex: 0 0 140px; font-size: 15px; color: var(--accent); }
.news-item__body { flex: 1 1 380px; min-width: 0; }
.news-item__title { display: block; font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.25; }
.news-item__excerpt { display: block; margin-top: 8px; font-size: 16px; color: var(--fg-3); }
a.news-item:hover .news-item__title { color: var(--accent); }
.badge { display: inline-block; margin-left: 8px; padding: 2px 8px; border: 1px solid var(--accent); border-radius: 20px; font-size: 12px; color: var(--accent); vertical-align: middle; }
.empty { padding: 40px 0; color: var(--fg-3); }

/* Réseaux sociaux --------------------------------------------------------- */
.follow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 48px; }
.follow__text { flex: 1 1 420px; min-width: 0; }
.follow__text p { margin-top: 16px; max-width: 460px; color: var(--fg-3); font-size: 18px; }
.social-list { flex: 1 1 440px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; list-style: none; }
.social-list a { display: flex; align-items: center; gap: 16px; min-height: 48px; }
.social-list .icon { color: var(--or); width: 26px; height: 26px; }
.social-list span span { display: block; font-size: 14px; color: var(--fg-4); }

/* Appel final ------------------------------------------------------------- */
.cta { text-align: center; padding-block: clamp(96px, 12vw, 160px); }
.cta h2 { max-width: 900px; margin-inline: auto; font-size: clamp(38px, 5vw, 72px); line-height: 1.1; }
.cta p { max-width: 540px; margin: 24px auto 0; color: var(--fg-3); font-size: 18px; }
.cta .actions { justify-content: center; margin-top: 44px; }

/* Pied de page ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); background: var(--noir); color: var(--blanc); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; padding-block: 56px 24px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; font-size: 15px; }
.site-footer__nav a { display: inline-flex; min-height: 44px; align-items: center; }
.site-footer__social { display: flex; gap: 8px; list-style: none; }
.site-footer__legal { padding-bottom: 48px; font-size: 14px; color: #8a909b; }

/* En-tête des pages intérieures ------------------------------------------ */
.page-head { padding-block: clamp(40px, 6vw, 72px) clamp(32px, 4vw, 48px); }
.page-head h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.05; }
.page-head .lead { margin-top: 20px; max-width: 720px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; font-size: 14px; color: var(--fg-4); margin-bottom: 28px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line-2); }
.breadcrumbs a { color: var(--fg-3); }
.breadcrumbs a:hover { color: var(--accent); }

/* Texte mis en forme (Markdown de l'administration) ---------------------- */
.prose { color: var(--fg-2); font-size: 18px; line-height: 1.75; max-width: 70ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; font-size: clamp(26px, 2.4vw, 34px); color: var(--fg); }
.prose h3 { margin-top: 1.6em; font-size: 24px; color: var(--fg); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.prose a:hover { color: var(--accent); }
.prose blockquote { margin: 1.6em 0; padding-left: 24px; border-left: 1px solid var(--accent); font-family: var(--serif); font-size: 1.25em; line-height: 1.45; color: var(--fg); }
.prose strong { color: var(--fg); font-weight: 600; }

/* Bibliothèque ------------------------------------------------------------ */
.filters { display: grid; gap: 18px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filters__label { flex: 0 0 90px; font-size: 14px; color: var(--fg-4); }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 40px; font-size: 15px; color: var(--fg-2);
}
.chip:hover { border-color: var(--accent); color: var(--fg); }
.chip[aria-current="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chip--disabled { color: var(--fg-4); border-style: dashed; }
.results-count { margin-top: 24px; font-size: 15px; color: var(--fg-3); }

.library { padding-bottom: var(--section); }
.library-group { padding-block: 56px; }
.library-group + .library-group { border-top: 1px solid var(--line); }
.library-group--light { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.library-group__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 40px; }
.library-group__head h2 { font-size: clamp(30px, 3vw, 44px); }
.lib-list { list-style: none; display: grid; gap: 56px; }
.lib-card { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: 24px clamp(28px, 4vw, 56px); align-items: start; }
.lib-card__cover img, .lib-card__cover .book__placeholder { width: 100%; border-radius: var(--radius); box-shadow: 0 34px 60px -28px var(--halo); }
.lib-card__series { font-size: 14px; color: var(--accent); }
.lib-card h3 { margin-top: 6px; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; }
.lib-card h3 a:hover { color: var(--accent); }
.lib-card__subtitle { margin-top: 6px; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--fg-2); }
.lib-card__genre { margin-top: 10px; font-size: 15px; color: var(--fg-4); }
.lib-card__tagline { margin-top: 18px; max-width: 62ch; font-family: var(--serif); font-size: 21px; line-height: 1.4; }
.lib-card__facts { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 18px; font-size: 14px; color: var(--fg-3); }
.lib-card__facts dt { display: inline; color: var(--fg-4); }
.lib-card__facts dd { display: inline; margin: 0 0 0 6px; }
.lib-card .actions { margin-top: 24px; }
@media (max-width: 640px) {
  .lib-card { grid-template-columns: 120px minmax(0, 1fr); }
  .lib-card__tagline, .lib-card__facts, .lib-card .actions { grid-column: 1 / -1; }
  .lib-card__main { display: contents; }
  .lib-card .actions .btn { flex: 1 1 100%; }
}

/* Fiche livre ------------------------------------------------------------- */
.book-page { display: flex; flex-wrap: wrap; gap: 56px clamp(48px, 7vw, 96px); align-items: flex-start; padding-bottom: var(--section); }
.book-page__cover { flex: 0 1 400px; min-width: 0; position: relative; }
.book-page__cover::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -36px; height: 60px;
  border-radius: 50%; background: var(--halo); filter: blur(30px); z-index: 0;
}
.book-page__cover img, .book-page__cover .book__placeholder {
  position: relative; z-index: 1; width: 100%; border-radius: var(--radius);
  box-shadow: 0 60px 120px -40px var(--halo);
  animation: halo-in 1.6s ease-out both;
}
.book-page__body { flex: 1 1 480px; min-width: 0; max-width: 680px; }
.book-page__series { font-size: 15px; color: var(--accent); }
.book-page h1 { margin-top: 12px; font-size: clamp(42px, 5vw, 68px); line-height: 1.04; }
.book-page__subtitle { margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; color: var(--fg-2); }
.book-page__genre { margin-top: 16px; font-size: 15px; color: var(--fg-4); }
.book-page__byline { margin-top: 14px; font-size: 18px; color: var(--fg-2); }
.book-page__pen { display: block; margin-top: 2px; font-size: 14px; color: var(--fg-4); }
.book-page__pen a { color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.book-page__pen a:hover { color: var(--fg); }
.book-page__tagline { margin-top: 28px; font-family: var(--serif); font-size: clamp(22px, 2vw, 27px); line-height: 1.3; }
.buy-box { margin-top: 32px; padding: 28px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 3px; scroll-margin-top: 24px; }
.buy-box h2 { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--fg-3); }
.buy-box .actions { margin-top: 16px; }
.buy-box__note { margin-top: 16px; font-size: 14px; color: var(--fg-3); }
.edition-note { margin-top: 28px; padding: 18px 22px; border: 1px solid var(--line-2); border-radius: 3px; font-size: 16px; color: var(--fg-2); }
.edition-note p + p { margin-top: .6em; }
.book-page .prose { margin-top: 40px; }
.highlights { margin-top: 40px; }
.highlights ul, .tremas { list-style: none; display: grid; gap: 12px; margin-top: 16px; font-size: 17px; color: var(--fg-2); }
.highlights li, .tremas li { position: relative; padding-left: 30px; }
.highlights li::before, .tremas li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%;
  background: var(--or); box-shadow: 9px 0 0 var(--or);
}
.theme-light .highlights li::before, .theme-light .tremas li::before { background: var(--accent); box-shadow: 9px 0 0 var(--accent); }
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 16px; }
.details dt { font-size: 14px; color: var(--fg-4); }
.details dd { margin: 4px 0 0; }
.related { padding-block: clamp(72px, 8vw, 96px); background: var(--bg-2); }
.related .shelf__books > li { width: 180px; }
.related .book__title { font-size: 22px; }
.buy-box .btn { flex: 1 1 200px; }

@media (max-width: 760px) {
  .book-page { gap: 40px; }
  .book-page__cover { flex: 0 1 auto; width: 62%; max-width: 260px; }
}
@media (max-width: 640px) {
  .shelf__books { gap: 36px 20px; }
  .shelf__books > li, .related .shelf__books > li { width: calc(50% - 10px); }
  .book__title, .related .book__title { font-size: 20px; }
  .book { gap: 16px; }
}

/* Page auteur ------------------------------------------------------------- */
.author { display: flex; flex-wrap: wrap; gap: 56px clamp(48px, 7vw, 96px); align-items: flex-start; padding-bottom: var(--section); }
.author__portrait { flex: 0 1 380px; min-width: 0; }
.author__portrait img { width: 100%; border-radius: var(--radius); }
.author__portrait figcaption { margin-top: 10px; font-size: 13px; color: var(--fg-4); }
.author__body { flex: 1 1 520px; min-width: 0; max-width: 720px; }
.author__section + .author__section { margin-top: 64px; }
.author__section h2 { font-size: clamp(28px, 2.8vw, 40px); margin-bottom: 24px; }

/* Univers Land ------------------------------------------------------------ */
.land-hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 104px); border-bottom: 1px solid var(--line); }
.land-hero > .wrap { position: relative; z-index: 2; }
.land-hero__media { position: absolute; top: 0; right: 0; bottom: 0; z-index: 0; width: 64%; overflow: hidden; }
.land-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; filter: brightness(.55) saturate(.85); }
.land-hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--noir) 0%, rgba(11, 13, 18, .7) 26%, rgba(11, 13, 18, .2) 70%, rgba(11, 13, 18, .1) 100%),
    linear-gradient(180deg, rgba(11, 13, 18, .5) 0%, rgba(11, 13, 18, 0) 28%, rgba(11, 13, 18, 0) 72%, var(--noir) 100%);
}
@media (max-width: 760px) {
  .land-hero__media { width: 100%; }
  .land-hero__media img { filter: brightness(.4) saturate(.85); }
  .land-hero__media::after { background: linear-gradient(180deg, rgba(11, 13, 18, .55) 0%, rgba(11, 13, 18, .35) 40%, var(--noir) 100%); }
}
.land-hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 72px; }
.land-hero__text { flex: 1 1 480px; min-width: 0; }
.land-nav ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding-block: 28px; }
.land-section { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.land-section > .wrap > h2 { font-size: clamp(32px, 3.4vw, 48px); margin-bottom: 40px; }
.entries { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.entry { height: 100%; padding: 28px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 3px; scroll-margin-top: 16px; }
.entry__label { font-size: 14px; color: var(--bleu); }
.entry h3 { margin-top: 6px; font-size: 28px; }
.entry .prose { margin-top: 14px; font-size: 16px; }
.entry:target { border-color: var(--or); }
.timeline { list-style: none; position: relative; max-width: 820px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.timeline li { position: relative; padding: 0 0 40px 48px; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--bleu); }
.timeline__label { font-size: 15px; color: var(--bleu); }
.timeline h3 { margin-top: 4px; font-size: 26px; }
.timeline .prose { margin-top: 10px; font-size: 16px; }

/* Actualités : page de liste et article ---------------------------------- */
.upcoming { margin-bottom: 64px; padding: 32px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 3px; }
.upcoming h2 { font-size: 28px; margin-bottom: 8px; }
.upcoming .news-item { padding: 20px 0; }
.pagination { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; }
.article { max-width: 760px; padding-bottom: var(--section); }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--fg-3); }
.article__meta .news-item__type { flex: none; }
.event-box { display: grid; gap: 6px; margin-top: 32px; padding: 24px 28px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 3px; }
.event-box strong { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.article__image { margin: 40px 0 0; }
.article__image img { width: 100%; height: auto; border-radius: var(--radius); }
.article .prose { margin-top: 40px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 15px; }
.share a { display: inline-flex; align-items: center; min-height: 44px; }
.linked-book { display: flex; gap: 20px; align-items: center; margin-top: 48px; padding: 20px; border: 1px solid var(--line); border-radius: 3px; }
.linked-book img { width: 72px; box-shadow: 0 16px 30px -12px var(--halo); }

/* Contact ----------------------------------------------------------------- */
.contact { display: flex; flex-wrap: wrap; gap: 56px clamp(48px, 7vw, 96px); align-items: flex-start; padding-bottom: var(--section); }
.contact__form { flex: 1 1 520px; min-width: 0; max-width: 680px; }
.contact__aside { flex: 1 1 300px; min-width: 0; display: grid; gap: 40px; }
.aside-box { padding: 28px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 3px; }
.aside-box h2 { font-size: 26px; margin-bottom: 14px; }
.aside-box .prose { font-size: 16px; }
.aside-box .social-list { grid-template-columns: 1fr; gap: 4px; margin-top: 12px; }

.form { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 15px; font-weight: 500; }
.field .hint { font-size: 14px; color: var(--fg-4); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--fg); font-size: 17px;
}
.field textarea { min-height: 200px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-3) 50%), linear-gradient(135deg, var(--fg-3) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--or); outline-offset: 2px; border-color: var(--or); }
.field--error input, .field--error select, .field--error textarea { border-color: #e2806b; }
.field__error { font-size: 15px; color: #f0a593; }
.req { color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 20px 24px; border-radius: 3px; border: 1px solid; }
.alert h2 { font-family: var(--sans); font-size: 17px; font-weight: 600; }
.alert ul { margin-top: 8px; padding-left: 20px; }
.alert a { text-decoration: underline; }
.alert--error { border-color: #e2806b; background: rgba(226, 128, 107, .08); }
.alert--success { border-color: var(--or); background: rgba(198, 166, 107, .08); }
.form-note { font-size: 14px; color: var(--fg-4); }
.form-note a { text-decoration: underline; }

/* Page d'erreur ----------------------------------------------------------- */
.notfound { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; padding-block: var(--section); }
.notfound h1 { font-size: clamp(44px, 6vw, 80px); }
.notfound p { margin-top: 20px; max-width: 560px; color: var(--fg-3); font-size: 18px; }
.notfound .actions { margin-top: 36px; }

/* Images de Land : aperçu, galerie, fiches illustrées, visionneuse ---------- */
.land-teaser__images { flex: 1 1 100%; padding-top: 40px; border-top: 1px solid var(--line); }
.land-teaser__images .h-sub { margin-bottom: 20px; }
.land-strip { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.land-strip__link { display: block; color: inherit; text-decoration: none; }
.land-strip__media { display: block; aspect-ratio: 2 / 1; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; background: var(--bg-2); }
.land-strip__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82); transition: filter .4s ease, transform .8s ease; }
.land-strip__link:hover img, .land-strip__link:focus-visible img { filter: brightness(1); transform: scale(1.02); }
.land-strip__title { display: block; margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.3; color: var(--fg-2); }
.land-strip__link:hover .land-strip__title { color: var(--fg); }

.gallery { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
.gallery__item:first-child { grid-column: 1 / -1; }
.gallery__figure { margin: 0; scroll-margin-top: 24px; }
.gallery__link { display: block; aspect-ratio: 2 / 1; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; background: var(--bg-2); cursor: zoom-in; }
.gallery__link img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.88); transition: filter .4s ease, transform .8s ease; }
.gallery__link:hover img, .gallery__link:focus-visible img { filter: brightness(1); transform: scale(1.015); }
.gallery__caption { margin-top: 14px; }
.gallery__title { display: block; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.3; }
.gallery__item:first-child .gallery__title { font-size: clamp(22px, 2.2vw, 28px); }
.gallery__label { display: block; margin-top: 4px; font-size: 14px; color: var(--bleu); }
.gallery__text { margin-top: 8px; max-width: 62ch; font-size: 16px; color: var(--fg-3); }
.gallery__figure:target .gallery__link { border-color: var(--or); }

.entry--media { padding-top: 0; overflow: hidden; }
.entry__media { display: block; margin: 0 -28px 24px; aspect-ratio: 2 / 1; overflow: hidden; border-bottom: 1px solid var(--line); cursor: zoom-in; }
.entry__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.88); transition: filter .4s ease; }
.entry__media:hover img, .entry__media:focus-visible img { filter: brightness(1); }

html.lightbox-open { overflow: hidden; }
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: clamp(16px, 4vw, 56px); border: 0; background: rgba(11, 13, 18, .97); color: var(--blanc); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(11, 13, 18, .85); }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 100%; margin: 0; }
.lightbox__img { width: auto; height: auto; max-width: min(100%, 1774px); max-height: calc(100vh - 170px); object-fit: contain; border-radius: 2px; }
.lightbox__caption { max-width: 60ch; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.35; text-align: center; }
.lightbox__btn, .lightbox__close {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px;
  border: 1px solid rgba(242, 240, 234, .3); border-radius: 50%; background: rgba(11, 13, 18, .7); color: var(--blanc); cursor: pointer;
}
.lightbox__btn:hover, .lightbox__close:hover { border-color: var(--or); color: var(--or); }
.lightbox__btn[hidden] { display: none; }
.lightbox__btn--prev { left: clamp(8px, 2vw, 32px); top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: clamp(8px, 2vw, 32px); top: 50%; transform: translateY(-50%); }
.lightbox__close { top: clamp(8px, 2vw, 24px); right: clamp(8px, 2vw, 24px); }

@media (max-width: 1100px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .land-strip {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 8px; margin-inline: calc(var(--gutter) * -1); scroll-padding-inline: var(--gutter);
  }
  .land-strip > li { scroll-snap-align: start; }
  .lightbox__btn { top: auto; bottom: 16px; transform: none; }
  .lightbox__img { max-height: calc(100vh - 220px); }
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; gap: 36px; }
}

/* Refus de la mesure d'audience (page Confidentialité) */
.optout { max-width: 720px; margin: 40px 0 var(--section); padding: 24px 28px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg-2); }
.optout__status { margin-bottom: 16px; color: var(--fg-2); }

/* Accessibilité : animations réduites ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero__media img, .land-strip__media img, .gallery__link img { transform: none !important; }
}
