/* ===========================================================
   Laurence Burger — design system
   Palette noir polar + accent rouge + or Monaco. Thème sombre
   assumé (choix éditorial, pas un défaut clair/sombre adaptatif).
   =========================================================== */

:root {
  --ink: #0a0b0e;
  --ink-raised: #14161b;
  --ink-card: #1b1e25;
  --paper: #f3efe6;
  --paper-dim: #c9c3b4;
  --line: rgba(243, 239, 230, 0.14);
  --line-strong: rgba(243, 239, 230, 0.28);
  --accent: #c81e3a;
  --accent-soft: #c81e3a33;
  --accent-hover: #e4243f;
  --gold: #cfa15e;
  --sans: "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --display: "Helvetica Neue Condensed Bold", "Arial Narrow", var(--sans);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  background: linear-gradient(to bottom, rgba(10, 11, 14, 0.96), rgba(10, 11, 14, 0.7) 80%, transparent);
  backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.topbar .brand { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 0.06em; text-decoration: none; }
.topbar nav.main-nav { display: flex; gap: 22px; align-items: center; }
.topbar nav.main-nav a { text-decoration: none; color: var(--paper-dim); }
.topbar nav.main-nav a:hover { color: var(--gold); }
.topbar nav.main-nav a.cta { color: var(--accent); }
.topbar nav.main-nav a[aria-current="page"] { color: var(--paper); border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--line-strong);
    color: var(--paper);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 2px;
    cursor: pointer;
  }
  .topbar nav.main-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 28px;
    gap: 24px;
    font-size: 15px;
    display: none;
  }
  .topbar nav.main-nav.open { display: flex; }
}

/* ---------- generic hero (sub-pages) ---------- */
.page-hero {
  position: relative;
  padding: 150px 28px 70px;
  background: var(--ink);
  overflow: hidden;
}
.page-hero-inner { position: relative; max-width: 1120px; margin: 0 auto; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); display: inline-block; }
.eyebrow.back a { color: var(--gold); text-decoration: none; }
.eyebrow.back a:hover { text-decoration: underline; }

h1.title, h1.page-title {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  text-wrap: balance;
}
h1.title { font-size: clamp(52px, 11vw, 128px); }
h1.page-title { font-size: clamp(38px, 7vw, 78px); }
h1.title em, h1.page-title em { font-style: normal; color: var(--accent); }

.hero-sub, .page-sub {
  font-family: var(--serif);
  color: var(--paper-dim);
  max-width: 50ch;
  margin: 0 0 30px;
}
.hero-sub { font-size: clamp(17px, 2.2vw, 22px); }
.page-sub { font-size: clamp(16px, 1.8vw, 19px); }

.hero-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  border: none;
  cursor: pointer;
}
.btn.primary { background: var(--accent); color: var(--paper); }
.btn.primary:hover { transform: translateY(-2px); background: var(--accent-hover); }
.btn.ghost { border: 1px solid var(--line-strong); color: var(--paper); background: transparent; }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn.small { padding: 11px 18px; font-size: 10.5px; }

.route { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 8px 0; font-family: var(--mono); font-size: 12px; color: var(--paper-dim); }
.route span { display: flex; align-items: center; }
.route b { color: var(--gold); font-weight: 400; }
.route .sep { margin: 0 14px; color: var(--line-strong); }

/* ---------- section shell ---------- */
section { padding: 100px 0; position: relative; }
section.tight { padding: 70px 0; }
.section-head { margin-bottom: 50px; max-width: 62ch; }
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
h2 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(30px, 4.6vw, 48px);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.section-head p { font-size: 16px; color: var(--paper-dim); margin: 0; }

/* ---------- strand groups (book series) ---------- */
.strand { margin-bottom: 80px; }
.strand:last-child { margin-bottom: 0; }
.strand-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.strand-head h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 22px; margin: 0; color: var(--gold); }
.strand-head .count { font-family: var(--mono); font-size: 11px; color: var(--paper-dim); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- book cards (grid) ---------- */
.book-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 30px; }
.book-card {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), border-color 0.35s ease;
  text-decoration: none;
  color: inherit;
}
.book-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.book-cover { position: relative; aspect-ratio: 2/3; overflow: hidden; background: #050506; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.book-card:hover .book-cover img { transform: scale(1.045); }
.book-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.book-meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--paper-dim); display: flex; gap: 10px; flex-wrap: wrap; }
.book-body h4 { font-family: var(--sans); font-weight: 700; font-size: 15.5px; margin: 0; line-height: 1.3; }
.book-hook { font-family: var(--serif); font-style: italic; font-size: 13.5px; color: var(--paper-dim); margin: 0; flex: 1; }
.book-actions { display: flex; gap: 14px; margin-top: 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; }
.book-actions span { color: var(--gold); }
.badge-upcoming {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 4px 9px;
  border-radius: 3px;
}

/* ---------- book detail page ---------- */
.book-detail {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}
.book-detail .cover-frame { position: relative; }
.book-detail .cover-frame img,
.book-detail .cover-frame video { width: 100%; display: block; border-radius: 4px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); background: var(--ink-raised); object-fit: cover; }
.book-detail .cover-frame .frame { position: absolute; inset: -10px; border: 1px solid var(--gold); border-radius: 4px; pointer-events: none; }
.book-detail .cover-frame .sound-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(10, 11, 14, 0.55);
  backdrop-filter: blur(4px);
  color: var(--paper);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.book-detail .cover-frame .sound-toggle:hover { background: rgba(10, 11, 14, 0.8); border-color: var(--gold); }

.book-info .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper-dim);
  margin: 20px 0 30px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.book-info .meta-row span b { display: block; color: var(--gold); font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; font-size: 10px; margin-bottom: 4px; }
.book-info .resume { font-size: 17px; line-height: 1.7; color: var(--paper); max-width: 62ch; margin-bottom: 26px; }
.book-info .resume p { margin: 0 0 18px; }
.book-info .pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--paper-dim);
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin: 0 0 30px;
  max-width: 56ch;
}
.buy-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.related-strip { margin-top: 90px; padding-top: 40px; border-top: 1px solid var(--line); }
.related-strip .section-label { margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; max-width: 640px; }

/* ---------- portrait ---------- */
.portrait { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.portrait-photo { position: relative; }
.portrait-photo img { width: 100%; display: block; border-radius: 4px; filter: grayscale(0.15) contrast(1.05); }
.portrait-photo .frame { position: absolute; inset: -10px; border: 1px solid var(--gold); border-radius: 4px; pointer-events: none; }
.portrait-text .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 27px);
  line-height: 1.4;
  color: var(--paper);
  border-left: 2px solid var(--accent);
  padding-left: 22px;
  margin: 0 0 26px;
}
.portrait-text p.bio { font-size: 16px; color: var(--paper-dim); margin: 0 0 16px; max-width: 62ch; }
.fact-strip { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; }
.fact-strip div span { display: block; color: var(--paper-dim); text-transform: uppercase; letter-spacing: 0.05em; font-size: 10px; margin-bottom: 4px; }
.fact-strip div b { font-weight: 400; color: var(--gold); }

/* ---------- timeline (about page) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.timeline .year { font-family: var(--mono); font-size: 14px; color: var(--gold); }
.timeline .what { font-family: var(--sans); font-size: 15px; }
.timeline .what a { color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.timeline .what a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- actualites ---------- */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.news-card { border: 1px solid var(--line); border-radius: 4px; padding: 26px 26px 24px; background: var(--ink-raised); }
.news-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 9px; border-radius: 2px; display: inline-block; margin-bottom: 14px; }
.news-tag.paru { color: var(--gold); border: 1px solid var(--gold); }
.news-tag.avenir { color: var(--accent); border: 1px solid var(--accent); }
.news-card h4 { font-family: var(--sans); font-size: 17px; margin: 0 0 10px; }
.news-card p { font-size: 14px; color: var(--paper-dim); margin: 0 0 14px; }
.news-card .book-actions { margin: 0; }
.news-more { margin-top: 44px; font-family: var(--mono); font-size: 12px; color: var(--paper-dim); text-align: center; border: 1px dashed var(--line-strong); border-radius: 4px; padding: 24px; }

/* ---------- agenda / events ---------- */
.events-list { display: flex; flex-direction: column; gap: 14px; }
.event-item {
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 22px;
  background: var(--ink-raised);
}
.event-item.is-past { opacity: 0.55; }
.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  flex-shrink: 0;
  font-family: var(--mono);
  text-transform: uppercase;
  color: var(--gold);
  border-right: 1px solid var(--line);
  padding-right: 20px;
}
.event-date .day { font-size: 24px; font-weight: 700; line-height: 1; }
.event-date .month { font-size: 11px; letter-spacing: 0.06em; margin-top: 4px; }
.event-body { flex: 1; min-width: 0; }
.event-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 6px; }
.event-item.is-past .event-tag { color: var(--paper-dim); }
.event-body h4 { font-family: var(--sans); font-size: 16px; margin: 0 0 4px; }
.event-loc { font-family: var(--mono); font-size: 12.5px; color: var(--paper-dim); margin: 0; }
.event-item .btn { flex-shrink: 0; }
@media (max-width: 640px) {
  .event-item { flex-wrap: wrap; }
  .event-date { flex-direction: row; gap: 8px; width: auto; border-right: none; border-bottom: 1px solid var(--line); padding: 0 0 10px; }
  .event-item .btn { width: 100%; text-align: center; }
}

/* ---------- newsletter ---------- */
.newsletter { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 80px 0; }
.newsletter-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.newsletter h2 { margin-bottom: 10px; }
.newsletter p { color: var(--paper-dim); font-size: 15px; max-width: 44ch; margin: 0; }
.signup { display: flex; gap: 0; min-width: 300px; flex: 1; max-width: 460px; }
.signup input { flex: 1; background: transparent; border: 1px solid var(--line-strong); border-right: none; color: var(--paper); font-family: var(--sans); font-size: 14px; padding: 15px 16px; border-radius: 2px 0 0 2px; }
.signup input::placeholder { color: var(--paper-dim); }
.signup button { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--accent); color: var(--paper); border: none; padding: 0 22px; border-radius: 0 2px 2px 0; cursor: pointer; }
.signup button:hover { background: var(--accent-hover); }

/* ---------- contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.field input, .field textarea {
  background: var(--ink-raised);
  border: 1px solid var(--line-strong);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  padding: 13px 15px;
  border-radius: 2px;
  resize: vertical;
}
.field textarea { min-height: 140px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.contact-side { font-family: var(--sans); }
.contact-side .direct { font-size: 17px; margin-bottom: 30px; }
.contact-side .direct a { color: var(--gold); text-decoration: none; }
.contact-side .direct a:hover { text-decoration: underline; }
.contact-side .fact-strip { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 0; }

/* ---------- footer ---------- */
footer.site-footer { padding: 50px 28px 40px; font-family: var(--mono); font-size: 11px; color: var(--paper-dim); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--line); }
footer.site-footer a { color: var(--paper-dim); text-decoration: none; }
footer.site-footer a:hover { color: var(--gold); }

@media (max-width: 760px) {
  .portrait, .book-detail, .contact-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
}
