/* ============================================================
   pierrevannier.com - v4 « Pamphlet »
   Palette colorhunt #fff6de · #8bdfdd · #f48f68 · #ffe394
   DM Sans + piles systeme
   ============================================================ */

:root {
  /* Palette ColorHunt - charbon · anthracite · taupe · beige */
  --paper:      #222831;       /* charbon bleuté (fond) */
  --paper-2:    #2c333d;       /* élévation 1 (panneaux discrets) */
  --paper-3:    #393e46;       /* élévation 2 (gris anthracite) */
  --ink:        #dfd0b8;       /* encre beige clair (lumineux) */
  --ink-soft:   #c8b89c;       /* corps de texte */
  --muted:      #8a8275;       /* asides, marginalia (taupe-gris) */
  --faint:      #5d5a55;       /* très discret */
  --rule:       #393e46;       /* filets gris anthracite */
  --rule-strong:#4d535f;       /* filets sticky/onhover */
  --accent:     #948979;       /* taupe (accent principal chaud) */
  --accent-2:   #b5a892;       /* hover taupe clair */
  --cool:       #dfd0b8;       /* beige clair (accent froid) */
  --cool-2:     #f0e3cd;       /* beige hover */
  --highlight:  #948979;       /* surlignements (= taupe) */

  /* Police unique : DM Sans, puis pile systeme. */
  --font-sans:  'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, Helvetica;

  /* Échelle typographique - 8 paliers en rem
     Base 1rem = 18px (21 px sur mobile via override).
     Les labels et meta uppercase utilisent --fs-2xs avec letter-spacing
     pour conserver le grain d'une ancienne mono, sans police dédiée. */
  --fs-2xs:  0.72rem;
  --fs-xs:   0.85rem;
  --fs-sm:   0.95rem;
  --fs-md:   1.2rem;
  --fs-lg:   1.4rem;
  --fs-xl:   2rem;
  --fs-2xl:  3rem;
  --fs-3xl:  3.85rem;

  --measure:   38rem;
  --gutter:    1.6rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--paper); }
::-moz-selection { background: var(--accent); color: var(--paper); }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 120ms ease, text-decoration-color 120ms ease, background 120ms ease;
}
a:hover {
  color: var(--accent-2);
  text-decoration-color: var(--cool);
}

/* Fleuron - barreau bichromique taupe/beige */
hr {
  border: 0;
  width: 96px;
  height: 7px;
  margin: 3.5rem auto;
  border-radius: 99px;
  background: linear-gradient(to right,
    var(--accent) 0%, var(--accent) 50%,
    var(--cool) 50%, var(--cool) 100%);
}

/* ============================================================
   PICTOS - SVG inline, couleur via currentColor
   ============================================================ */

.ic {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.16em;
  color: var(--accent);
  margin-right: 0.5rem;
  flex-shrink: 0;
}
.ic-cool { color: var(--cool); }
.ic-warm { color: var(--highlight); }

/* Pastels harmoniques pour les pictos de section */
.ic-rose      { color: #d4a8b3; }
.ic-blue      { color: #a3b5c4; }
.ic-peach     { color: #e6b9a3; }
.ic-sage      { color: #a8c3a3; }
.ic-lavender  { color: #b8a5c4; }

/* ============================================================
   CHIPS - pastilles colorées pour les kicker/kind
   ============================================================ */

.chip {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.36em 0.95em 0.32em;
  border-radius: 99px;
  white-space: nowrap;
  line-height: 1.2;
  vertical-align: 0.1em;
}
.chip-corail        { background: rgba(230,185,163,0.18); color: #f0c9ad; border: 1px solid rgba(230,185,163,0.55); }
.chip-corail-soft   { background: rgba(230,185,163,0.10); color: #e6b9a3; border: 1px solid rgba(230,185,163,0.40); }
.chip-turquoise     { background: rgba(163,181,196,0.18); color: #b9cbd9; border: 1px solid rgba(163,181,196,0.55); }
.chip-turquoise-soft{ background: rgba(163,181,196,0.10); color: #a3b5c4; border: 1px solid rgba(163,181,196,0.40); }
.chip-jaune         { background: rgba(223,208,184,0.18); color: var(--cool-2); border: 1px solid rgba(223,208,184,0.55); }
.chip-jaune-soft    { background: rgba(184,165,196,0.10); color: #b8a5c4; border: 1px solid rgba(184,165,196,0.40); }
.chip-violet        { background: rgba(184,165,196,0.18); color: #cdb6dd; border: 1px solid rgba(184,165,196,0.55); }

.chip-rose          { background: rgba(212,168,179,0.18); color: #e2bcc4; border: 1px solid rgba(212,168,179,0.55); }
.chip-blue          { background: rgba(163,181,196,0.18); color: #b9cbd9; border: 1px solid rgba(163,181,196,0.55); }
.chip-peach         { background: rgba(230,185,163,0.18); color: #f0c9ad; border: 1px solid rgba(230,185,163,0.55); }
.chip-sage          { background: rgba(168,195,163,0.18); color: #bcd3b7; border: 1px solid rgba(168,195,163,0.55); }
.chip-lavender      { background: rgba(184,165,196,0.18); color: #cdb6dd; border: 1px solid rgba(184,165,196,0.55); }

/* ============================================================
   HIGHLIGHT - surlignage des phrases-clé
   ============================================================ */

.hl {
  color: #f0c9ad;
  font-weight: 600;
  background: none;
  padding-bottom: 0;
}

/* ============================================================
   PULL-QUOTE - citations extraites des écrits
   ============================================================ */

.pull-quote {
  position: relative;
  margin: 3.5rem 0;
  padding: 1.75rem 1.9rem 1.4rem;
  background: rgba(212,168,179,0.05);
  border-left: 3px solid #d4a8b3;
  border-top: 1px solid rgba(212,168,179,0.18);
  border-right: 1px solid rgba(212,168,179,0.12);
  border-bottom: 1px solid rgba(212,168,179,0.12);
  border-radius: 0 8px 8px 0;
}
.pull-quote::before {
  content: "“";
  position: absolute;
  top: -0.4rem;
  left: 1rem;
  font-family: var(--font-sans);
  font-size: 4rem;
  line-height: 1;
  color: #d4a8b3;
  opacity: 0.4;
  pointer-events: none;
}
.pull-quote q {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--fs-lg);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--cool-2);
  margin: 0;
  quotes: none;
}
.pull-quote q::before,
.pull-quote q::after { content: ""; }
.pull-quote .src {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.pull-quote .src a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: rgba(223,208,184,0.3);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.pull-quote .src a:hover {
  color: var(--cool-2);
  text-decoration-color: var(--cool-2);
}
.pull-quote.tone-blue     { background: rgba(163,181,196,0.05); border-left-color: #a3b5c4; border-top-color: rgba(163,181,196,0.18); border-right-color: rgba(163,181,196,0.12); border-bottom-color: rgba(163,181,196,0.12); }
.pull-quote.tone-blue::before     { color: #a3b5c4; }
.pull-quote.tone-peach    { background: rgba(230,185,163,0.05); border-left-color: #e6b9a3; border-top-color: rgba(230,185,163,0.18); border-right-color: rgba(230,185,163,0.12); border-bottom-color: rgba(230,185,163,0.12); }
.pull-quote.tone-peach::before    { color: #e6b9a3; }
.pull-quote.tone-sage     { background: rgba(168,195,163,0.05); border-left-color: #a8c3a3; border-top-color: rgba(168,195,163,0.18); border-right-color: rgba(168,195,163,0.12); border-bottom-color: rgba(168,195,163,0.12); }
.pull-quote.tone-sage::before     { color: #a8c3a3; }
.pull-quote.tone-lavender { background: rgba(184,165,196,0.05); border-left-color: #b8a5c4; border-top-color: rgba(184,165,196,0.18); border-right-color: rgba(184,165,196,0.12); border-bottom-color: rgba(184,165,196,0.12); }
.pull-quote.tone-lavender::before { color: #b8a5c4; }

@media (max-width: 720px) {
  .pull-quote { padding: 1.4rem 1.4rem 1.1rem; margin: 2.5rem 0; }
  .pull-quote q { font-size: var(--fs-md); }
  .pull-quote::before { font-size: 3rem; top: -0.2rem; left: 0.7rem; }
}

/* ============================================================
   LIENS - turquoise pour externes, corail pour internes
   ============================================================ */

.tract a[href^="http"]:not([href*="pierrevannier"]) {
  text-decoration-color: var(--cool);
  text-decoration-thickness: 2px;
}
.tract a[href^="http"]:not([href*="pierrevannier"]):hover {
  color: var(--cool-2);
  text-decoration-color: var(--cool-2);
}
.tract a[href^="mailto"], .tract a[href^="tel"] {
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

/* ============================================================
   SOMMAIRE - menu sticky
   ============================================================ */

.sommaire {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.95rem 1.6rem;
  background: rgba(34, 40, 49, 0.88);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.sommaire .who {
  color: var(--ink);
  text-decoration: none;
  border: 0;
  margin-right: auto;
  letter-spacing: 0.16em;
  font-weight: 600;
}
.sommaire .who:hover { color: var(--accent); }
.sommaire .anchors {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}
.sommaire .anchors a {
  color: var(--muted);
  text-decoration: none;
  border: 0;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}
.sommaire .anchors a:hover { color: var(--ink); }
.sommaire .anchors a.on {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.sommaire .lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-left: 0.6rem;
  padding: 0.35em 0.7em;
  border: 1px solid var(--rule-strong);
  border-radius: 99px;
  background: rgba(230,185,163,0.06);
  color: var(--ink-soft);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}
.sommaire .lang-toggle:hover {
  color: var(--cool-2);
  border-color: rgba(230,185,163,0.55);
  background: rgba(230,185,163,0.14);
}
.sommaire .lang-toggle .current {
  color: var(--cool-2);
  font-weight: 700;
}
.sommaire .lang-toggle .sep {
  color: var(--faint);
}
.sommaire .burger {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: var(--fs-lg);
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.6rem;
  font-family: inherit;
}

h2[id], h1[id] { scroll-margin-top: 4.8rem; }

/* ============================================================
   ENVELOPPE
   ============================================================ */

.tract {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4rem var(--gutter) 6rem;
}

/* ============================================================
   EN-TÊTE
   ============================================================ */

.head {
  margin: 2rem 0 3rem;
}

.head .kicker {
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.head .kicker span.dot { color: var(--accent); }
.head .kicker.kicker-with-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.head .kicker .top-action {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.36rem 0.76rem;
  border: 1px solid rgba(223,208,184,0.50);
  border-radius: 6px;
  background: rgba(223,208,184,0.10);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.head .kicker .top-action:hover {
  border-color: rgba(223,208,184,0.78);
  background: rgba(223,208,184,0.18);
  color: var(--cool-2);
}

.head h1 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-style: normal;
  font-size: var(--fs-3xl);
  line-height: 1.04;
  letter-spacing: 0;
  margin: 0 0 1rem;
  color: var(--ink);
}
.head h1 em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent-2);
}

.head .deck {
  font-family: var(--font-sans);
  font-size: var(--fs-lg);
  line-height: 1.45;
  color: var(--ink-soft);
  font-style: normal;
  font-weight: 400;
  margin: 0;
  max-width: 32em;
}

/* ============================================================
   CORPS
   ============================================================ */

.tract p {
  margin: 0 0 1.25em;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.tract p.lede {
  font-size: var(--fs-lg);
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 1.8em;
  font-weight: 400;
}

.tract p.first::first-letter {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  font-size: 4.6em;
  line-height: 0.8;
  float: left;
  margin: 0.04em 0.12em 0 -0.04em;
  color: var(--accent);
}

.tract h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-style: normal;
  font-size: var(--fs-xl);
  letter-spacing: 0;
  color: var(--ink);
  margin: 3.5rem 0 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  line-height: 1.15;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.tract h2 .num {
  font-family: var(--font-sans);
  font-size: 0.42em;
  font-style: normal;
  font-weight: 700;
  color: var(--paper);
  background: var(--accent);
  padding: 0.45em 0.75em;
  border-radius: 6px;
  letter-spacing: 0.14em;
  line-height: 1;
  flex-shrink: 0;
  align-self: center;
  margin: 0;
}
.tract h2:nth-of-type(odd) .num { background: var(--accent); color: var(--paper); }
.tract h2:nth-of-type(even) .num { background: var(--ink); color: var(--paper); }
.tract h2 .ic {
  width: 1em;
  height: 1em;
  margin: 0;
  vertical-align: 0;
  flex-shrink: 0;
  align-self: center;
}
.tract h2 .label {
  align-self: center;
}

.tract h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-lg);
  color: var(--ink);
  margin: 2.2rem 0 0.6rem;
  letter-spacing: 0;
}

.tract h3.subhead {
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cool);
  margin: 2.8rem 0 1.1rem;
  padding-top: 0.6rem;
}
.tract h3.subhead .hl {
  color: var(--ink);
  background: none;
  font-weight: 700;
}

.tract strong { color: var(--ink); font-weight: 600; }
.tract em { font-style: italic; }

.tract mark, .tract .hl {
  color: #f0c9ad;
  font-weight: 600;
  background: none;
  padding: 0;
  border-radius: 0;
}

.tract blockquote {
  margin: 2.4em 0;
  padding: 1em 1.2em 1em 1.6rem;
  border-left: 4px solid var(--accent);
  background: var(--paper-2);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--ink);
  font-size: var(--fs-md);
  font-weight: 400;
}
.tract blockquote p:last-child { margin-bottom: 0; }
.tract blockquote cite {
  display: block;
  margin-top: 0.6em;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: var(--fs-2xs);
  color: var(--muted);
  letter-spacing: 0.14em;
  font-weight: 500;
  text-transform: uppercase;
}
.tract blockquote cite::before { content: "- "; }

.tract small,
.tract .aside {
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================================
   LISTES
   ============================================================ */

.tract ul, .tract ol {
  padding-left: 1.2rem;
  margin: 1em 0 1.6em;
}
.tract li { margin: 0.3em 0; }
.tract ul { list-style: none; padding-left: 0; }
.tract ul > li {
  position: relative;
  padding-left: 1.4rem;
}
.tract ul > li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.9em;
  top: 0.2em;
  font-weight: 500;
}

/* Liste d'écrits / talks / podcasts dans le flux */
.tract ul.flow {
  margin: 1.4em 0 2.2em;
  border-top: 1px solid var(--rule);
}
.tract ul.flow > li {
  display: grid;
  grid-template-columns: 10.5em 1fr;
  gap: 1.4rem;
  padding: 0.9em 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.tract ul.flow > li::before { content: none; }
.tract ul.flow .when {
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 0.2em;
  font-variant-numeric: tabular-nums;
}
.tract ul.flow .what {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  color: var(--ink);
  font-style: normal;
  line-height: 1.4;
  font-weight: 500;
}
.tract ul.flow .what em {
  font-style: normal;
  font-weight: 700;
}
.tract ul.flow .what a {
  font-style: normal;
  color: var(--ink);
  text-decoration-color: var(--rule);
}
.tract ul.flow .what a:hover {
  text-decoration-color: var(--accent);
  color: var(--accent-2);
}
.tract ul.flow .lang {
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--faint);
  vertical-align: 0.15em;
  margin-left: 0.3em;
}

.tract a.more {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.tract a.more:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* ============================================================
   POSTSCRIPTUM
   ============================================================ */

.postscript {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--muted);
}
.postscript p { margin: 0 0 1em; }
.postscript .label {
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.postscript .signoff {
  text-align: right;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 2rem;
}

/* ============================================================
   ARTICLE
   ============================================================ */

.crumb {
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2rem 0 1rem;
}
.crumb a {
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
}
.crumb a:hover { color: var(--accent); border-color: var(--accent); }

.article-head {
  margin: 0 0 2.5rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--rule);
}
.article-head .when {
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.article-head h1 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-style: normal;
  font-size: var(--fs-2xl);
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0;
}
.article-head h1 em { font-style: normal; color: var(--accent); }

.article-body { color: var(--ink-soft); }
.article-body p { margin: 0 0 1.25em; }
.article-body p.first::first-letter {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 500;
  font-size: 4.2em;
  line-height: 0.82;
  float: left;
  margin: 0.04em 0.1em 0 -0.04em;
  color: var(--accent);
}
.article-body h2,
.article-body h3 {
  font-family: var(--font-sans);
  color: var(--ink);
  margin: 2.4em 0 0.6em;
  letter-spacing: 0;
}
.article-body h2 {
  font-weight: 600;
  font-style: normal;
  font-size: var(--fs-xl);
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}
.article-body h3 { font-weight: 600; font-size: var(--fs-lg); }
.article-body blockquote {
  margin: 2.4em 0;
  padding: 1em 1.2em 1em 1.6rem;
  border-left: 4px solid var(--accent);
  background: var(--paper-2);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--ink);
}
.article-body ul, .article-body ol { padding-left: 1.2rem; }
.article-body li { margin: 0.4em 0; }
.article-body img { max-width: 100%; height: auto; margin: 1.6em 0; }
.article-body figure { margin: 1.6em 0; }
.article-body figcaption {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-top: 0.4em;
  font-style: italic;
}

.article-foot {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.article-foot p { margin: 0 0 0.8em; }

/* Progress bar - corail */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  width: 0%;
  z-index: 9999;
  transition: width 80ms linear;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 740px) {
  :root {
    --gutter: 1.2rem;
    --fs-2xl: 2.35rem;
    --fs-3xl: 2.9rem;
  }
  html, body { font-size: 19px; }
  .head .deck { font-size: var(--fs-md); }
  .head .kicker .top-action { white-space: normal; }
  .tract p.lede { font-size: var(--fs-md); }
  .tract h2 { font-size: var(--fs-lg); }
  .tract ul.flow > li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
  .tract ul.flow .when {
    padding-top: 0;
  }

  .sommaire { padding: 0.8rem 1.2rem; }
  .sommaire .burger { display: inline-block; }
  .sommaire .anchors {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    background: rgba(34, 40, 49, 0.98);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
    max-height: 0;
    overflow: hidden;
    transition: max-height 240ms ease;
  }
  .sommaire.is-open .anchors { max-height: 60vh; }
  .sommaire .anchors a {
    display: block;
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid var(--rule);
  }
  .sommaire .anchors a.on { color: var(--accent); border-bottom-color: var(--rule); }
}

/* ============================================================
   Bibliothèque - rayons et fiches livres
   ============================================================ */

.library-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.4rem 0 2.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule);
}

.library-filters a {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  border: 1px solid currentColor;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.library-filters a:hover { opacity: 0.75; transform: translateY(-1px); }

.shelf-meta {
  margin: 0 0 1.6rem;
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cool);
}

.tract ul.shelf {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  display: block;
  border-top: 1px solid var(--rule);
}

.tract ul.shelf > li.book {
  padding: 0.85rem 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22ch);
  align-items: baseline;
  gap: 0.2rem 2.2rem;
}

.tract ul.shelf > li.book::before { content: none; }

.tract .shelf .book h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-style: normal;
  font-size: var(--fs-md);
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
  hyphens: auto;
  overflow-wrap: anywhere;
}

.shelf .book .author {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cool);
  margin: 0;
  text-align: right;
  white-space: normal;
  line-height: 1.55;
  hyphens: none;
  overflow-wrap: anywhere;
}

.shelf .book .author a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) {
  .tract ul.shelf > li.book {
    grid-template-columns: 1fr;
    gap: 0.25rem 0;
  }
  .shelf .book .author { text-align: left; white-space: normal; }
}

.tract ul.episodes {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.tract ul.episodes > li.episode {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  position: static;
}
.tract ul.episodes > li.episode::before { content: none; }
.tract ul.episodes > li.episode > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24ch);
  align-items: baseline;
  gap: 0.2rem 2.2rem;
  padding: 0.95rem 0;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}
.tract ul.episodes > li.episode > a:hover {
  background: rgba(223,208,184,0.04);
}
.tract ul.episodes > li.episode > a:hover h3 {
  text-decoration: underline;
  text-decoration-color: var(--cool);
  text-underline-offset: 3px;
}
.tract ul.episodes > li.episode h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-style: normal;
  font-size: var(--fs-md);
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.tract ul.episodes > li.episode .meta {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cool);
  margin: 0;
  text-align: right;
  white-space: normal;
  line-height: 1.55;
}
@media (max-width: 720px) {
  .tract ul.episodes > li.episode > a {
    grid-template-columns: 1fr;
    gap: 0.25rem 0;
  }
  .tract ul.episodes > li.episode .meta { text-align: left; }
}

.tract ul.press-list {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.tract ul.press-list > li.press-item {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  position: static;
}
.tract ul.press-list > li.press-item::before { content: none; }
.tract ul.press-list > li.press-item > a {
  display: block;
  padding: 1.1rem 0;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}
.tract ul.press-list > li.press-item > a:hover {
  background: rgba(223,208,184,0.04);
}
.tract ul.press-list > li.press-item > a:hover h3 {
  text-decoration: underline;
  text-decoration-color: var(--cool);
  text-underline-offset: 3px;
}
.tract ul.press-list > li.press-item h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-style: normal;
  font-size: var(--fs-md);
  line-height: 1.3;
  margin: 0 0 0.4rem;
  color: var(--ink);
}
.tract ul.press-list .excerpt {
  margin: 0 0 0.55rem;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  font-style: italic;
  line-height: 1.5;
  max-width: 38rem;
}
.tract ul.press-list .meta {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cool);
  margin: 0;
}

@media print {
  html, body { background: #fff; color: #111; }
  a { color: #111; text-decoration-color: #888; }
  .sommaire, #progress { display: none; }
}
