/* ==========================================================================
   Yves Balet – feuille de style
   ========================================================================== */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f1e8;
  --paper-deep: #ede5d7;
  --ink: #1d1b18;
  --ink-soft: #4a453d;
  --muted: #7a7266;
  --line: rgba(29, 27, 24, .14);

  --night: #14171c;
  --night-soft: #1d2128;
  --on-night: #efe9de;
  --on-night-muted: #a39d92;
  --line-night: rgba(239, 233, 222, .16);

  --accent: #a3382a;
  --accent-light: #e0806a;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(5rem, 11vw, 9.5rem);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-book: 0 1px 2px rgba(0,0,0,.12), 0 12px 24px -8px rgba(29,27,24,.35), 0 30px 60px -20px rgba(29,27,24,.35);
}

/* Base ------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, .35vw + 1rem, 1.1875rem);
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: .875rem;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Typographie ------------------------------------------------------------ */

.eyebrow {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 0 0 1.25rem;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}

.section-title {
  margin: 0 0 1.5rem;
  font-weight: 400;
  font-size: clamp(2.4rem, 4.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.section-head { max-width: 46rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section-intro { margin: 0; color: var(--ink-soft); font-size: 1.15em; }

.prose p { margin: 0 0 1.1em; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }
.prose .lead {
  font-size: 1.3em;
  line-height: 1.5;
  color: var(--ink);
}
.prose a { text-decoration-color: var(--accent); text-underline-offset: .2em; }

.meta {
  margin: -.5rem 0 2rem;
  font-family: var(--sans);
  font-size: .875rem;
  color: var(--muted);
}

/* Boutons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--accent); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-light { background: var(--on-night); color: var(--night); }
.btn-light:hover { background: #fff; }
.btn-ghost-light { border-color: var(--line-night); color: var(--on-night); }
.btn-ghost-light:hover { border-color: var(--on-night); }

/* En-tête ---------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--on-night);
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(246, 241, 232, .88);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  position: relative;
  z-index: 2;
  font-size: 1.5rem;
  letter-spacing: -.01em;
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  gap: clamp(1.25rem, 2.4vw, 2.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  position: relative;
  padding: .5rem 0;
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
  opacity: .8;
  transition: opacity .3s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .2rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.site-nav a:hover,
.site-nav a[aria-current="true"] { opacity: 1; }
.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: .75rem;
  padding: .5rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.menu-toggle-icon { display: grid; gap: 6px; width: 22px; }
.menu-toggle-icon span {
  height: 1.5px;
  background: currentColor;
  transition: transform .4s var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; position: relative; z-index: 2; }

  .site-nav {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    padding: var(--header-h) var(--gutter) 3rem;
    background: var(--night);
    color: var(--on-night);
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s var(--ease), visibility 0s .45s;
  }
  .site-nav ul { flex-direction: column; gap: .25rem; }
  .site-nav li {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
  }
  .site-nav a {
    display: inline-block;
    font-family: var(--serif);
    font-size: clamp(2rem, 9vw, 2.75rem);
    font-weight: 400;
    letter-spacing: -.01em;
    opacity: 1;
  }
  .site-nav a::after { bottom: .5rem; }

  .menu-open .site-nav { opacity: 1; visibility: visible; transition-delay: 0s; }
  .menu-open .site-nav li { opacity: 1; transform: none; }
  .menu-open .site-nav li:nth-child(2) { transition-delay: .05s; }
  .menu-open .site-nav li:nth-child(3) { transition-delay: .1s; }
  .menu-open .site-nav li:nth-child(4) { transition-delay: .15s; }
  .menu-open .site-nav li:nth-child(5) { transition-delay: .2s; }
  .menu-open .site-nav li:nth-child(6) { transition-delay: .25s; }
  .menu-open .site-header { color: var(--on-night); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu-open { overflow: hidden; }
}

/* Accueil ---------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 3rem) 0 6rem;
  background:
    radial-gradient(ellipse 70% 60% at 85% 40%, rgba(163, 56, 42, .16), transparent 70%),
    var(--night);
  color: var(--on-night);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.hero .eyebrow { color: var(--accent-light); }

.hero-title {
  margin: 0 0 1.75rem;
  font-weight: 300;
  font-size: clamp(3.75rem, 10.5vw, 9rem);
  line-height: .92;
  letter-spacing: -.035em;
}
.hero-title em {
  display: block;
  font-style: italic;
  padding-left: .5em;
}

.hero-lead {
  max-width: 30rem;
  margin: 0 0 2.5rem;
  font-size: 1.25em;
  line-height: 1.5;
  color: var(--on-night-muted);
  text-wrap: pretty;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Éventail de couvertures, comme une main de cartes : chaque couverture recouvre
   celle de gauche et toutes pivotent autour d'un point commun sous le paquet. */
.hero-books {
  position: relative;
  justify-self: center;
  width: min(100%, 28rem);
  aspect-ratio: 1 / 1;
}
.hero-book {
  position: absolute;
  top: 8%;
  left: 8%;
  width: 54%;
  height: auto;
  border-radius: 2px 4px 4px 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,.3), -10px 24px 50px -16px rgba(0,0,0,.8);
  transform-origin: 30% 130%;
  transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg));
}
.hero-book-1 { --r: -14deg; filter: brightness(.72); }
.hero-book-2 { --x: 24%; --r: -3deg; filter: brightness(.86); }
.hero-book-3 { --x: 48%; --r: 8deg; }

/* Le paquet arrive empilé, puis la carte qui va le plus loin glisse la première. */
.js .hero-books {
  opacity: 0;
  animation: rise 1s var(--ease) .25s forwards;
}
.js .hero-book-2,
.js .hero-book-3 {
  animation: deal 1.3s cubic-bezier(.5, 0, .2, 1) backwards;
}
.js .hero-book-3 { animation-delay: 1s; }
.js .hero-book-2 { animation-delay: 1.35s; }
@keyframes deal {
  from { transform: translate(0, 0) rotate(-14deg); }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  width: 1px;
  height: 3.5rem;
  background: var(--line-night);
  overflow: hidden;
}
.scroll-hint span {
  position: absolute;
  inset: 0;
  background: var(--on-night);
  animation: scroll-line 2.4s var(--ease) infinite;
}

@keyframes scroll-line {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

.js .hero-anim {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 1.1s var(--ease) var(--d, 0s) forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .hero { min-height: auto; padding-bottom: 5rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-books { order: -1; width: min(72%, 17rem); }
  .hero-title em { padding-left: 0; display: inline; }
  .scroll-hint { display: none; }
}

/* Sections --------------------------------------------------------------- */

.section { padding-block: var(--section-y); }

/* Dernier roman */
.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.featured-media {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.featured-media img {
  width: 100%;
  border-radius: 3px;
  box-shadow: var(--shadow-book);
}
.featured-body .prose { margin-bottom: 2.5rem; color: var(--ink-soft); }

.buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.buy-label {
  margin-right: .5rem;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 860px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-media { position: static; max-width: 26rem; }
}

/* Livres */
.books { background: var(--paper-deep); }

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.book-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.book-cover {
  position: relative;
  display: block;
  aspect-ratio: 325 / 475;
  margin-bottom: 1.25rem;
  border-radius: 2px 4px 4px 2px;
  overflow: hidden;
  box-shadow: var(--shadow-book);
  transform-origin: left center;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Pli de la reliure */
.book-cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 7%;
  background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(255,255,255,.12) 45%, transparent);
}
.book-card:hover .book-cover,
.book-card:focus-visible .book-cover {
  transform: translateY(-8px) perspective(900px) rotateY(-8deg);
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 18px 24px 40px -12px rgba(29,27,24,.45), 0 40px 70px -24px rgba(29,27,24,.4);
}

.badge {
  display: inline-block;
  margin-left: .4rem;
  padding: .2rem .55rem;
  vertical-align: .05em;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.book-year {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--accent);
}
.book-title {
  margin: .2rem 0 .3rem;
  font-size: 1.3rem;
  line-height: 1.2;
  text-wrap: balance;
}
.book-publisher {
  font-family: var(--sans);
  font-size: .8125rem;
  color: var(--muted);
}

@media (max-width: 520px) {
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1rem; }
  .book-title { font-size: 1.1rem; }
  .book-publisher { font-size: .75rem; }
}

/* L'auteur */
.author-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.author-media {
  position: relative;
  padding-bottom: 18%;
}
.author-media figure { overflow: hidden; border-radius: 3px; }
.author-media img { width: 100%; height: 100%; object-fit: cover; }

.author-portrait {
  width: 88%;
  aspect-ratio: 4 / 3;
  box-shadow: 0 30px 60px -30px rgba(29,27,24,.5);
}
.author-portrait img { object-position: 60% 30%; }

.author-small {
  position: absolute;
  border: 6px solid var(--paper);
  box-shadow: 0 20px 40px -20px rgba(29,27,24,.5);
}
.author-portrait { margin-top: 9%; }
.author-small-1 { right: 0; bottom: 0; width: 32%; aspect-ratio: 3 / 4; }
.author-media .author-small-2 { right: 2%; top: 0; width: 24%; aspect-ratio: 1; border-radius: 50%; }
.author-small-2 img { object-position: 50% 30%; }

.author-body .prose { color: var(--ink-soft); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.facts dt {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -.02em;
}
.facts dd {
  margin: .5rem 0 0;
  font-family: var(--sans);
  font-size: .8125rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .author-grid { grid-template-columns: 1fr; }
}

/* Presse */
.press { padding-top: 0; }
.press > .container { padding-top: var(--section-y); border-top: 1px solid var(--line); }

.press-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0 0 clamp(3.5rem, 7vw, 5rem);
  padding: 0;
  list-style: none;
}
@media (max-width: 860px) { .press-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .press-grid { grid-template-columns: 1fr; } }

.press-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}
.press-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: 1.1rem;
  overflow: hidden;
  border-radius: 3px;
  background: var(--paper-deep);
}
.press-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(.4) sepia(.15);
  transition: transform .8s var(--ease), filter .6s var(--ease);
}
.press-card:hover .press-thumb img,
.press-card:focus-visible .press-thumb img { transform: scale(1.05); filter: none; }

.press-source { font-size: 1.25rem; line-height: 1.25; }
.press-date { margin-top: .2rem; color: var(--ink-soft); }
.press-type {
  margin-top: .75rem;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

.radio-title {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.radio-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.radio-list a {
  display: grid;
  grid-template-columns: auto 1fr 1.4fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem .25rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color .3s var(--ease), padding .4s var(--ease);
}
.radio-list a:hover { background: var(--paper-deep); padding-inline: 1rem; }
.radio-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color .3s, border-color .3s;
}
.radio-icon::before {
  content: "";
  margin-left: 3px;
  border-left: 9px solid currentColor;
  border-block: 6px solid transparent;
}
.radio-list a:hover .radio-icon { background: var(--accent); border-color: var(--accent); color: #fff; }
.radio-station { font-size: 1.2rem; }
.radio-book { font-style: italic; color: var(--ink-soft); }
.radio-date { font-family: var(--sans); font-size: .8125rem; color: var(--muted); }

@media (max-width: 640px) {
  .radio-list a { grid-template-columns: auto 1fr; gap: .25rem 1rem; }
  .radio-icon { grid-row: span 3; }
}

/* Témoignages */
.quotes {
  background: var(--night);
  color: var(--on-night);
}
.quotes .eyebrow { color: var(--accent-light); }

.quote-grid {
  columns: 3 18rem;
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
}
.quote {
  break-inside: avoid;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  padding: 2rem 2rem 1.75rem 3.75rem;
  border: 1px solid var(--line-night);
  border-radius: 4px;
  background: var(--night-soft);
}
.quote blockquote p {
  margin: 0;
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.5;
  text-wrap: pretty;
}
/* Guillemet suspendu dans la marge, aligné sur la première ligne */
.quote blockquote { position: relative; }
.quote blockquote::before {
  content: "«";
  position: absolute;
  top: -.08em;
  left: -1.05em;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent-light);
}
.quote figcaption {
  margin-top: 1.25rem;
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--on-night-muted);
}

.quote-dots { display: none; }

/* Mobile : carrousel natif, on glisse au doigt et la carte suivante dépasse */
@media (max-width: 640px) {
  .quote-grid {
    display: flex;
    gap: 1rem;
    columns: auto;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .quote-grid::-webkit-scrollbar { display: none; }
  .quote {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 0 86%;
    margin: 0;
    padding-left: 3.25rem;
    scroll-snap-align: start;
  }
  /* Les cartes hors écran ne croisent jamais l'observateur vertical */
  .js .quote[data-reveal] { opacity: 1; transform: none; }

  .quote-dots {
    display: flex;
    justify-content: center;
    gap: .25rem;
    margin-top: 1.5rem;
  }
  .quote-dots button {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .quote-dots button::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--line-night);
    transition: width .4s var(--ease), background-color .4s var(--ease);
  }
  .quote-dots button[aria-current="true"]::before {
    width: 20px;
    background: var(--accent-light);
  }
}

/* Contact */
.contact { background: var(--paper-deep); text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact .eyebrow::after {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}
.contact-email { margin: 0 0 2.5rem; }
.contact-email a {
  font-size: clamp(1.5rem, 4.5vw, 2.75rem);
  font-style: italic;
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat;
  transition: background-size .6s var(--ease);
}
.contact-email a:hover { background-size: 100% 1px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.copy-status {
  min-height: 1.5em;
  margin: 1rem 0 0;
  font-family: var(--sans);
  font-size: .875rem;
  color: var(--accent);
}

/* Pied de page */
.site-footer {
  padding-block: 2rem;
  background: var(--night);
  color: var(--on-night-muted);
  font-family: var(--sans);
  font-size: .8125rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; }
.footer-inner p { margin: 0; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--on-night); }

/* Fenêtres modales ------------------------------------------------------- */

.modal {
  max-width: min(60rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translateY(20px) scale(.98);
  transition: opacity .35s var(--ease), transform .45s var(--ease), overlay .45s allow-discrete, display .45s allow-discrete;
}
.modal[open] { opacity: 1; transform: none; }
@starting-style {
  .modal[open] { opacity: 0; transform: translateY(20px) scale(.98); }
}
.modal::backdrop {
  background: rgba(20, 23, 28, 0);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition: background-color .35s, backdrop-filter .35s, overlay .45s allow-discrete, display .45s allow-discrete;
}
.modal[open]::backdrop {
  background: rgba(20, 23, 28, .7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
@starting-style {
  .modal[open]::backdrop { background: rgba(20, 23, 28, 0); backdrop-filter: blur(0); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  transition: transform .4s var(--ease), background-color .3s;
}
.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.modal-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.modal-close:hover { transform: rotate(90deg); background: var(--paper-deep); }

.modal-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(1.5rem, 4vw, 3rem);
}
.book-modal { overflow: hidden; }
.book-modal-cover img {
  width: 100%;
  border-radius: 2px 4px 4px 2px;
  box-shadow: var(--shadow-book);
}
.book-modal-meta {
  margin: 0 0 .5rem;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.book-modal-title {
  margin: 0 0 1.5rem;
  padding-right: 3rem;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -.015em;
}
.book-modal-content { color: var(--ink-soft); font-size: 1rem; }
.book-modal-content .book-hook {
  font-size: 1.2em;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}
.book-modal-content .listen {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  font-family: var(--sans);
  font-size: .875rem;
}
.book-modal-content .listen li + li { margin-top: .5rem; }
.book-modal-content .listen a { text-decoration-color: var(--accent); text-underline-offset: .2em; }
.book-modal-content .listen span { color: var(--muted); margin-left: .35rem; }
.book-modal-content .links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }

@media (max-width: 640px) {
  .modal { max-width: 100vw; max-height: 92dvh; margin: auto 0 0; width: 100%; border-radius: 12px 12px 0 0; }
  .modal-inner { grid-template-columns: 1fr; max-height: 92dvh; }
  .book-modal-cover { max-width: 9rem; }
}

.lightbox {
  background: var(--night);
  color: var(--on-night);
}
.lightbox .modal-close { background: var(--night-soft); border-color: var(--line-night); }
.lightbox figure { padding: 1rem; }
.lightbox img { max-height: calc(100dvh - 7rem); width: auto; margin-inline: auto; }
.lightbox figcaption {
  padding-top: .9rem;
  font-family: var(--sans);
  font-size: .8125rem;
  text-align: center;
  color: var(--on-night-muted);
}

/* Apparition au défilement ---------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal], .js .hero-anim { opacity: 1; transform: none; }
}
