/* ── Variables ───────────────────────────────────────── */
:root {
  --ink:      #1a1410;
  --paper:    #f5f0e8;
  --paper-dark: #ede8dc;
  --paper-md: #ede8dc;
  --paper-dk: #e0d8c8;
  --accent:   #8b3a1a;
  --accent2:  #c4622d;
  --muted:    #7a7060;
  --rule:     #c8bfaa;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── Body ────────────────────────────────────────────── */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px;
  line-height: 1.85;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* ── Page layout (essais & fiche) ────────────────────── */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 40px 120px;
}

.rule {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 32px 0;
}

strong { font-weight: 600; }
em { font-style: italic; }

/* ── Header (essais & fiche) ─────────────────────────── */
.header {
  margin-bottom: 72px;
  opacity: 0;
  animation: fadeUp 1.2s ease forwards 0.2s;
}

/* ── h1 ──────────────────────────────────────────────── */
h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 .grand { color: var(--accent); font-style: italic; }

/* ── Signature ───────────────────────────────────────── */
.signature {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.1s;
}

.signature-name {
  font-size: 2rem;
  font-weight: 300;
  font-style: italic;
  color: var(--accent);
}

.signature-date {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-align: right;
  line-height: 1.8;
}

/* ── Essais ──────────────────────────────────────────── */
.epigraph {
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  letter-spacing: 0.03em;
  margin-bottom: 48px;
  padding-left: 24px;
  border-left: 2px solid var(--rule);
  line-height: 1.8;
}

.subtitle {
  font-size: 13px;
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 20px;
}

.essai {
  opacity: 0;
  animation: fadeUp 1.2s ease forwards 0.7s;
}

.essai p {
  margin-bottom: 1.6em;
  text-align: justify;
  hyphens: auto;
}

.essai .drop-cap::first-letter {
  font-size: 4.4em;
  float: left;
  line-height: 0.75;
  margin-right: 10px;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 600;
}

.essai h2 {
  font-size: 0.9rem;
  font-family: 'DM Mono', monospace;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 56px 0 22px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}

blockquote {
  margin: 40px 0;
  padding: 28px 36px;
  background: var(--paper-dark);
  border-left: 3px solid var(--accent);
  font-size: 1.22em;
  font-style: italic;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.65;
}

blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.68em;
  font-family: 'DM Mono', monospace;
  font-style: normal;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ── Fiche de lecture ────────────────────────────────── */
.label {
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.book-ref {
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
  margin-top: 12px;
}

.book-pages {
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.corps {
  opacity: 0;
  animation: fadeUp 1.2s ease forwards 0.7s;
}

.corps p {
  margin-bottom: 1.4em;
  text-align: justify;
  hyphens: auto;
}

.corps .drop-cap::first-letter {
  font-size: 4.2em;
  float: left;
  line-height: 0.75;
  margin-right: 10px;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 600;
}

.corps h2 {
  font-size: 0.85rem;
  font-family: 'DM Mono', monospace;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 52px 0 18px;
  padding-top: 44px;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 24px 0 8px;
  font-style: normal;
}

h4 {
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  margin: 18px 0 6px;
}

.encart {
  margin: 28px 0;
  padding: 22px 28px;
  background: var(--paper-dark);
  border-left: 3px solid var(--accent);
  font-style: italic;
  font-size: 1.05em;
  line-height: 1.7;
}

/* ── Index : Hero ────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 clamp(24px, 6vw, 80px);
  position: relative;
  font-size: 18px;
  line-height: 1.8;
}

.hero::before {
  content: '';
  position: absolute;
  left: clamp(24px, 6vw, 80px);
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--rule) 20%, var(--rule) 80%, transparent);
  opacity: 0.6;
}

/* ── Index : Nav ─────────────────────────────────────── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 0 36px 40px;
  opacity: 0;
  animation: fadeDown 0.8s ease forwards 0.1s;
}

.nav-logo {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent); }

/* ── Index : Hero content ────────────────────────────── */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 0 40px;
  max-width: 820px;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.3s;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.45s;
}

.hero-title em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  color: var(--muted);
  font-style: italic;
  margin-top: 24px;
  max-width: 480px;
  line-height: 1.65;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.6s;
}

.hero-location {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--rule);
  margin-top: 40px;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.75s;
}

.hero-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 36px 0 36px 40px;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.9s;
}

.scroll-hint {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--rule);
  animation: lineGrow 1.5s ease infinite alternate;
}

/* ── Index : Écrits ──────────────────────────────────── */
.ecrits {
  padding: clamp(60px, 10vw, 120px) clamp(24px, 6vw, 80px);
  padding-left: calc(clamp(24px, 6vw, 80px) + 40px);
}

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 56px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
  max-width: 200px;
}

/* ── Index : Cards ───────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2px;
}

.card {
  background: var(--paper-md);
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  opacity: 0;
  transform: translateY(30px);
  transition: background 0.4s ease, opacity 0.7s ease, transform 0.7s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.card:hover { background: var(--paper-dk); }
.card:hover::before { transform: scaleX(1); }
.card.visible { opacity: 1; transform: translateY(0); }
.card:nth-child(2) { transition-delay: 0.1s; }
.card:nth-child(3) { transition-delay: 0.2s; }
.card:nth-child(4) { transition-delay: 0.3s; }

.card-num {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0.7;
}

.card-type {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.card-title em { font-style: italic; color: var(--accent); }

.card-author {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 20px;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
  font-style: italic;
}

.card-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap 0.3s;
}

.card:hover .card-cta { gap: 18px; }

.card-arrow {
  width: 24px;
  height: 1px;
  background: var(--accent);
  position: relative;
  transition: width 0.3s;
}

.card:hover .card-arrow { width: 36px; }

.card-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 6px; height: 6px;
  border-right: 1px solid var(--accent);
  border-top: 1px solid var(--accent);
  transform: rotate(45deg);
}

.card-bg-num {
  position: absolute;
  bottom: -20px;
  right: 20px;
  font-size: 9rem;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.03;
  line-height: 1;
  pointer-events: none;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  transition: opacity 0.4s, transform 0.4s;
}

.card:hover .card-bg-num { opacity: 0.055; transform: translateY(-8px); }

/* ── Index : À propos ────────────────────────────────── */
.about {
  padding: clamp(60px, 10vw, 100px) clamp(24px, 6vw, 80px);
  padding-left: calc(clamp(24px, 6vw, 80px) + 40px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  border-top: 1px solid var(--rule);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about.visible { opacity: 1; transform: translateY(0); }

.about-text h2 {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--ink);
  font-style: italic;
  line-height: 1.85;
  margin-bottom: 16px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-quote {
  border-left: 2px solid var(--accent);
  padding-left: 28px;
}

.about-quote blockquote {
  font-size: 1.3rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 16px;
  margin: 0 0 16px;
  padding: 0;
  background: none;
  border: none;
}

.about-quote cite {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--muted);
  font-style: normal;
}

/* ── Index : Footer ──────────────────────────────────── */
footer {
  padding: 40px clamp(24px, 6vw, 80px);
  padding-left: calc(clamp(24px, 6vw, 80px) + 40px);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-sig {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.footer-info {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-align: right;
  line-height: 2;
}

/* ── Animations ──────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes lineGrow {
  from { width: 40px; opacity: 0.4; }
  to   { width: 70px; opacity: 1; }
}

/* ── Print ───────────────────────────────────────────── */
@media print {
  body::before { display: none; }
  .header, .essai, .corps, .signature { opacity: 1; animation: none; }
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .hero::before { display: none; }
  nav { padding-left: 0; flex-direction: column; gap: 16px; align-items: flex-start; }
  .hero-content { padding-left: 0; }
  .hero-footer { padding-left: 0; }
  .ecrits { padding-left: clamp(24px, 6vw, 80px); }
  .about { grid-template-columns: 1fr; gap: 40px; padding-left: clamp(24px, 6vw, 80px); }
  footer { padding-left: clamp(24px, 6vw, 80px); }
  .nav-links { gap: 20px; }
}

@media (max-width: 600px) {
  .page { padding: 48px 24px 80px; }
  blockquote { padding: 20px 22px; }
  .encart { padding: 16px 20px; }
}
