/* Citron Vert : direction éditoriale, papier chaud + encre verte profonde, accent citron.
   Fraunces (titres, caractère) / Inter (texte, lisibilité). */
:root {
  --paper: #FAF8F1;
  --ink: #16210F;
  --ink-soft: #4B5543;
  --rule: #DCD9C9;
  --lime: #A3E635;
  --lime-deep: #3F6212;
  --forest: #14532D;
  --measure: 68ch;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10150D;
    --ink: #ECEFE4;
    --ink-soft: #A7B09C;
    --rule: #2A3324;
    --lime-deep: #BEF264;
    --forest: #A3E635;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
::selection { background: var(--lime); color: #16210F; }

/* ── En-tête ── */
.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 1100px; margin: 0 auto; padding: 1.4rem 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; font: 800 1.35rem/1 var(--serif); text-decoration: none; letter-spacing: -.01em; }
.dot { width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--lime); box-shadow: inset 0 0 0 3px #14532D; }
.masthead nav { display: flex; gap: 1.4rem; font-size: .9rem; font-weight: 600; }
.masthead nav a { text-decoration: none; color: var(--ink-soft); }
.masthead nav a:hover, .masthead nav a:focus-visible { color: var(--ink); }

main { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Accueil ── */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--rule); }
.kicker { margin: 0 0 1rem; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--lime-deep); }
.hero h1 { margin: 0; max-width: 14ch; font: 800 clamp(2.6rem, 7vw, 5.4rem)/1 var(--serif); letter-spacing: -.03em; }
.hero h1 em { font-style: italic; font-weight: 600; background: linear-gradient(transparent 62%, var(--lime) 62%, var(--lime) 88%, transparent 88%); color: inherit; }
@media (prefers-color-scheme: dark) { .hero h1 em { background: none; color: var(--lime); } }
.lede { max-width: 46ch; margin: 1.5rem 0 0; font-size: 1.15rem; color: var(--ink-soft); }

.list { display: grid; grid-template-columns: minmax(0, 1fr); padding: 2.5rem 0 4rem; }
.list article { padding: 2rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 860px) {
  .list { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 2.5rem; }
  .list article { grid-column: span 12; }
  .list .lead { grid-column: 1 / span 8; }
  .list .item { grid-column: span 6; }
}
.list h2 { margin: .4rem 0 .8rem; font: 800 clamp(1.6rem, 3.2vw, 2.4rem)/1.12 var(--serif); letter-spacing: -.02em; }
.list .lead h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.list h2 a { text-decoration: none; background: linear-gradient(var(--lime), var(--lime)) 0 100% / 0 .18em no-repeat; transition: background-size .35s cubic-bezier(.16, 1, .3, 1); }
.list h2 a:hover, .list h2 a:focus-visible { background-size: 100% .18em; }
.meta { margin: 0; font-size: .82rem; color: var(--ink-soft); letter-spacing: .02em; }
.meta a { text-decoration: none; font-weight: 600; }
.dek { margin: 0; max-width: 60ch; color: var(--ink-soft); }
.more { display: inline-block; margin-top: 1.1rem; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--forest); }
.more span { display: inline-block; transition: transform .25s ease; }
.more:hover span, .more:focus-visible span { transform: translateX(4px); }

/* ── Article ── */
.post { padding: clamp(2.5rem, 6vw, 4.5rem) 0 4rem; }
.post-head { margin-bottom: 2.75rem; }
.post-head h1 { max-width: 20ch; margin: 1rem 0 1.25rem; font: 800 clamp(2.1rem, 5.2vw, 3.7rem)/1.06 var(--serif); letter-spacing: -.025em; }
.post-head .dek { font-size: 1.15rem; max-width: 52ch; }
.prose { max-width: var(--measure); }
.prose > p:first-child::first-letter {
  float: left; margin: .32rem .55rem 0 0;
  font: 800 4.1rem/.8 var(--serif); color: var(--forest);
}
.prose h2 { margin: 2.8rem 0 .9rem; font: 800 1.65rem/1.2 var(--serif); letter-spacing: -.015em; }
.prose h2::before { content: ''; display: block; width: 2.5rem; height: .3rem; margin-bottom: .9rem; background: var(--lime); border-radius: 2px; }
.prose p, .prose li { margin: 0 0 1.15rem; }
.prose a { color: var(--forest); text-decoration-thickness: .08em; text-underline-offset: .18em; }
.prose blockquote { margin: 1.8rem 0; padding: .2rem 0 .2rem 1.3rem; border-left: .3rem solid var(--lime); font: 600 1.25rem/1.45 var(--serif); }
.prose strong { font-weight: 600; }
.prose > p:last-child { margin-top: 2.2rem; padding: 1.3rem 1.4rem; border: 1px solid var(--rule); border-radius: .6rem; font-weight: 600; }

/* ── Pied ── */
.foot { max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem 3rem; border-top: 1px solid var(--rule); font-size: .85rem; color: var(--ink-soft); }

a:focus-visible { outline: 2px solid var(--lime-deep); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
