/* ============================================================
   KNIPO — Knowledge Is Power · Design v2 « Éditions »
   Noir chaud · Papier sable · Or · Terracotta
   ============================================================ */

:root {
  --night: #14110b;
  --night-2: #1d1912;
  --night-3: #262017;
  --paper: #f3ecdd;
  --paper-2: #ebe1cc;
  --paper-3: #e2d5ba;
  --gold: #c5963d;
  --gold-light: #e2c178;
  --terra: #b05a2e;
  --ink: #211b12;
  --ink-soft: #57503f;
  --cream: #efe7d4;
  --cream-muted: #b3a98f;
  --line-dark: rgba(239, 231, 212, 0.12);
  --line-light: rgba(33, 27, 18, 0.14);
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --max-w: 76rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--night);
  color: var(--cream);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Bande tissée (motif signature) ---------- */
.weave {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0 28px,
    var(--night) 28px 34px,
    var(--terra) 34px 62px,
    var(--night) 62px 68px,
    var(--paper-3) 68px 82px,
    var(--night) 82px 88px
  );
}

/* ---------- Conteneurs ---------- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5.5rem 0; }
@media (max-width: 720px) { .section { padding: 3.5rem 0; } }

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.kicker::before { content: "✦"; font-size: 0.8rem; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.15; }

.section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--gold-light); }

.section-sub {
  max-width: 38rem;
  color: var(--cream-muted);
  font-size: 1.02rem;
}

/* Bandes claires */
.band-paper { background: var(--paper); color: var(--ink); }
.band-paper .section-sub { color: var(--ink-soft); }
.band-paper .kicker { color: var(--terra); }
.band-paper .section-title em { color: var(--terra); }
.band-deep { background: var(--night-2); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.7rem;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
}
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-dark); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.band-paper .btn-ghost { border-color: var(--line-light); color: var(--ink); }
.band-paper .btn-ghost:hover { border-color: var(--terra); color: var(--terra); }
.btn-night { background: var(--ink); color: var(--paper); }
.btn-night:hover { background: var(--night-3); transform: translateY(-1px); }

.link-arrow {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.link-arrow:hover { border-color: var(--gold); }
.band-paper .link-arrow { color: var(--terra); }
.band-paper .link-arrow:hover { border-color: var(--terra); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 17, 11, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.4rem;
}
.brand { display: flex; align-items: baseline; gap: 0.6rem; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--paper);
}
.brand-name .dot { color: var(--gold); }
.brand-tag {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-muted);
}
@media (max-width: 860px) { .brand-tag { display: none; } }

.nav-links { display: flex; align-items: center; gap: 1.9rem; list-style: none; }
.nav-links a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--cream-muted);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-cta { margin-left: 0.5rem; }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  color: var(--cream);
  border-radius: 3px;
  padding: 0.45rem 0.7rem;
  font-size: 1rem;
  cursor: pointer;
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 4.4rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--night-2);
    border-bottom: 1px solid var(--line-dark);
    padding: 0.5rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.9rem 1.5rem; font-size: 0.95rem; }
  .nav-cta { margin: 0.6rem 1.5rem 0.9rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 6rem;
  background:
    radial-gradient(ellipse 60% 50% at 78% 18%, rgba(197, 150, 61, 0.13), transparent 65%),
    radial-gradient(ellipse 45% 45% at 12% 85%, rgba(176, 90, 46, 0.10), transparent 60%),
    var(--night);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-proverb {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-light);
  font-size: 0.98rem;
  margin-bottom: 1.6rem;
}
.hero-proverb span {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-top: 0.3rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.3rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero-text { color: var(--cream-muted); font-size: 1.08rem; max-width: 33rem; margin-bottom: 2.3rem; }
.hero-text strong { color: var(--cream); font-weight: 600; }
.hero-offer { font-size: 0.95rem; color: var(--cream); margin-bottom: 1.1rem; padding: 0.5rem 0.9rem; border-left: 3px solid var(--gold); background: rgba(197,150,61,0.08); border-radius: 0 6px 6px 0; display: inline-block; }
.hero-offer strong { color: var(--gold-light); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.hero-micro { font-size: 0.76rem; color: var(--cream-muted); letter-spacing: 0.02em; margin-bottom: 2.6rem; }

.hero-stats { display: flex; gap: 2.8rem; flex-wrap: wrap; }
.stat .num {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--paper);
  display: block;
  line-height: 1.2;
}
.stat .lbl { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-muted); }

/* Couverture stylisée du guide dans le hero */
.hero-book {
  justify-self: center;
  width: min(310px, 80%);
  aspect-ratio: 0.72;
  background: linear-gradient(160deg, var(--night-3), var(--night-2));
  border: 1px solid rgba(197, 150, 61, 0.4);
  border-radius: 4px 10px 10px 4px;
  box-shadow: 22px 30px 60px rgba(0,0,0,0.55), inset 4px 0 0 var(--gold);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.2rem 1.8rem;
  position: relative;
  transform: rotate(2.5deg);
}
.hero-book .hb-top { font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.hero-book .hb-title { font-family: var(--font-serif); font-size: 1.75rem; line-height: 1.2; color: var(--paper); }
.hero-book .hb-title em { color: var(--gold-light); font-style: italic; }
.hero-book .hb-sub { font-size: 0.78rem; color: var(--cream-muted); }
.hero-book .hb-mark {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
}
@media (max-width: 920px) { .hero-book { display: none; } }

/* Photo chaleureuse du hero */
.hero-visual { position: relative; justify-self: center; width: min(420px, 92%); }
.hero-visual img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%;
  border-radius: 14px;
  border: 1px solid rgba(197, 150, 61, 0.4);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.hero-visual::after {
  content: ""; position: absolute; inset: 0; border-radius: 14px; pointer-events: none;
  background: linear-gradient(160deg, transparent 55%, rgba(20,17,11,0.35));
}
.hero-badge {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  background: rgba(20,17,11,0.82); backdrop-filter: blur(8px);
  border: 1px solid rgba(197,150,61,0.5); border-radius: 999px;
  padding: 0.5rem 0.95rem; font-size: 0.8rem; font-weight: 700; color: var(--cream);
  display: inline-flex; align-items: center; gap: 0.35rem; transition: background 0.2s;
}
.hero-badge strong { color: var(--gold-light); }
.hero-badge:hover { background: rgba(20,17,11,0.95); }
@media (max-width: 920px) { .hero-visual { margin-top: 1rem; width: min(340px, 80%); } }

/* ---------- Marquee thèmes ---------- */
.marquee {
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
  padding: 0.85rem 0;
  background: var(--night-2);
}
.marquee-track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: scroll 38s linear infinite;
  width: max-content;
}
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee-track span {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-muted);
}
.marquee-track span::after { content: "✦"; color: var(--gold); margin-left: 2.5rem; font-size: 0.7rem; }

/* ---------- Citation manifeste ---------- */
.manifesto { text-align: center; padding: 5rem 1.5rem; }
.manifesto blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-style: italic;
  max-width: 46rem;
  margin: 0 auto 1.2rem;
  line-height: 1.45;
}
.manifesto blockquote em { color: var(--gold-light); }
.manifesto cite {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

/* ---------- Deux voies (piliers) ---------- */
.paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 820px) { .paths-grid { grid-template-columns: 1fr; } }
.path-card {
  border: 1px solid var(--line-light);
  background: var(--paper-2);
  padding: 2.5rem 2.2rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.path-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--terra);
}
.path-card.elevation::before { background: var(--gold); }
.path-card .path-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--terra);
  margin-bottom: 0.9rem;
}
.path-card.elevation .path-label { color: #95701f; }
.path-card h3 { font-size: 1.5rem; margin-bottom: 0.9rem; }
.path-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.4rem; }
.path-card ul { list-style: none; margin-bottom: 1.6rem; }
.path-card li {
  font-size: 0.9rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--line-light);
  color: var(--ink);
}
.path-card li::before { content: "✦ "; color: var(--terra); font-size: 0.7rem; }
.path-card.elevation li::before { color: var(--gold); }

/* ---------- Routine KNIPO (4 piliers) ---------- */
.routine-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
}
@media (max-width: 920px) { .routine-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .routine-grid { grid-template-columns: 1fr; } }
.routine-card {
  border: 1px solid var(--line-dark);
  background: var(--night-3);
  padding: 1.9rem 1.6rem;
  border-radius: 4px;
  transition: border-color 0.25s, transform 0.25s;
}
.routine-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.routine-card .rc-num {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.8rem;
}
.routine-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; color: var(--paper); }
.routine-card p { font-size: 0.87rem; color: var(--cream-muted); }

/* ---------- Cartes articles ---------- */
.cards-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
}
@media (max-width: 920px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .articles-grid { grid-template-columns: 1fr; } }

.article-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-light);
  background: var(--paper);
  border-radius: 4px;
  padding: 1.8rem 1.7rem;
  color: var(--ink);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(33, 27, 18, 0.14); }
.article-card { padding: 0; overflow: hidden; }
.ac-cover { margin: 0 0 1.2rem; }
.ac-cover .cover-svg, .ac-cover .cover-img { display: block; width: 100%; height: 130px; object-fit: cover; }
.article-card > .ac-meta, .article-card > h3, .article-card > p, .article-card > .ac-foot { padding-left: 1.7rem; padding-right: 1.7rem; }
.article-card > .ac-foot { padding-bottom: 1.6rem; }
.ac-meta { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.chip {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--terra);
  border: 1px solid rgba(176, 90, 46, 0.35);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.chip.gold { color: #8d6a1e; border-color: rgba(197, 150, 61, 0.45); }
.ac-time { font-size: 0.72rem; color: var(--ink-soft); }
.article-card h3 { font-size: 1.2rem; margin-bottom: 0.7rem; line-height: 1.3; }
.article-card p { font-size: 0.88rem; color: var(--ink-soft); flex: 1; margin-bottom: 1.2rem; }
.ac-foot { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--ink-soft); }

/* Carte à la une */
.featured-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  border: 1px solid rgba(197, 150, 61, 0.4);
  background: linear-gradient(140deg, var(--night-3), var(--night-2));
  border-radius: 4px;
  padding: 2.6rem;
  margin-top: 3rem;
  align-items: center;
}
@media (max-width: 720px) { .featured-card { grid-template-columns: 1fr; padding: 1.8rem; } }
.featured-num {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  color: var(--gold);
  opacity: 0.55;
  line-height: 1;
}
.featured-card h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0.6rem 0 0.8rem; color: var(--paper); }
.featured-card p { color: var(--cream-muted); max-width: 40rem; margin-bottom: 1.4rem; }

/* ---------- Filtres bibliothèque ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.5rem; }
.filter-btn {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--cream-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold-light); }
.filter-btn.active { background: var(--gold); border-color: var(--gold); color: var(--night); }

/* ---------- Bloc guide / funnel ---------- */
.guide-cta {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 860px) { .guide-cta { grid-template-columns: 1fr; } }
.guide-cover {
  width: min(280px, 90%);
  border-radius: 4px 10px 10px 4px;
  box-shadow: 18px 24px 50px rgba(33, 27, 18, 0.35);
  justify-self: center;
  transform: rotate(-2deg);
}
.guide-points { list-style: none; margin: 1.6rem 0 2rem; }
.guide-points li { padding: 0.5rem 0; font-size: 0.95rem; }
.guide-points li::before { content: "✓"; color: var(--terra); font-weight: 700; margin-right: 0.7rem; }

/* ---------- Newsletter ---------- */
.newsletter {
  text-align: center;
  border: 1px solid rgba(197, 150, 61, 0.35);
  background:
    radial-gradient(ellipse 70% 90% at 50% -20%, rgba(197, 150, 61, 0.12), transparent 70%),
    var(--night-2);
  border-radius: 6px;
  padding: 4rem 2rem;
}
.newsletter h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 0.9rem; }
.newsletter p { color: var(--cream-muted); max-width: 30rem; margin: 0 auto 2rem; }
.newsletter .note { font-size: 0.74rem; margin-top: 1.2rem; color: var(--cream-muted); opacity: 0.8; }

.nl-perks { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; margin: 0 0 1.6rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; color: var(--gold-light); }

/* Barre d'appel collante — Guide gratuit */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.7rem 1.1rem;
  background: rgba(20, 17, 11, 0.97);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -8px 28px rgba(0,0,0,0.4);
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(.2,.8,.4,1);
}
.cta-bar.show { transform: translateY(0); }
.cta-bar-txt { flex: 1; font-size: 0.9rem; color: var(--cream); line-height: 1.35; }
.cta-bar-txt strong { color: var(--gold-light); }
.cta-bar-free { color: var(--gold); font-weight: 700; }
.cta-bar-btn { flex-shrink: 0; padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.cta-bar-x { flex-shrink: 0; background: none; border: none; color: var(--cream-muted); font-size: 1rem; cursor: pointer; padding: 0.3rem 0.4rem; line-height: 1; }
.cta-bar-x:hover { color: var(--cream); }
@media (max-width: 600px) {
  .cta-bar { gap: 0.6rem; padding: 0.6rem 0.7rem; }
  .cta-bar-txt { font-size: 0.78rem; }
  .cta-bar-txt .cta-bar-free { display: none; }
  .cta-bar-btn { padding: 0.55rem 0.9rem; font-size: 0.8rem; }
}

/* Répartition du don (transparence — page Projets) */
.alloc { display: flex; flex-direction: column; gap: 1.1rem; }
.alloc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 0.92rem; font-weight: 700; color: var(--cream); margin-bottom: 0.45rem; }
.alloc-pct { color: var(--gold-light); font-family: var(--font-serif); font-size: 1.05rem; flex-shrink: 0; }
.alloc-bar { height: 9px; background: rgba(255,255,255,0.1); border-radius: 20px; overflow: hidden; }
.alloc-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--terra), var(--gold)); border-radius: 20px; }

/* Paliers de don (médiathèque) */
.donate-tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; max-width: 32rem; margin: 1.8rem auto; }
@media (min-width: 620px) { .donate-tiers { grid-template-columns: repeat(4, 1fr); } }
.donate-tier { border: 1px solid rgba(197, 150, 61, 0.35); border-radius: 10px; padding: 0.9rem 0.6rem; background: rgba(197, 150, 61, 0.06); }
.dt-amt { display: block; font-family: var(--font-serif); font-size: 1.35rem; color: var(--gold-light); line-height: 1; }
.dt-lbl { display: block; font-size: 0.72rem; color: var(--cream-muted); margin-top: 0.4rem; line-height: 1.3; }

/* ---------- Listes numérotées (chapitres, étapes) ---------- */
.num-list { list-style: none; margin-top: 2.5rem; }
.num-list li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1.4rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line-light);
  align-items: baseline;
}
.band-dark .num-list li { border-color: var(--line-dark); }
.num-list .n { font-family: var(--font-serif); font-size: 1.3rem; color: var(--terra); }
.num-list h3 { font-size: 1.12rem; margin-bottom: 0.25rem; }
.num-list p { font-size: 0.89rem; color: var(--ink-soft); }

/* ---------- Page article ---------- */
.article-hero { padding: 5rem 0 3.5rem; }
.article-hero .back { font-size: 0.82rem; color: var(--cream-muted); display: inline-block; margin-bottom: 2rem; }
.article-hero .back:hover { color: var(--gold-light); }
.article-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); max-width: 50rem; margin: 1rem 0 1.2rem; }
.article-hero .excerpt { color: var(--cream-muted); font-size: 1.05rem; max-width: 42rem; margin-bottom: 1.8rem; }
.article-meta { display: flex; gap: 1.4rem; align-items: center; font-size: 0.8rem; color: var(--cream-muted); flex-wrap: wrap; }
.article-meta .sep { color: var(--gold); }

.article-body { max-width: 44rem; margin: 0 auto; padding: 4.5rem 1.5rem; font-size: 1.06rem; }
.article-body p { margin-bottom: 1.5rem; color: var(--ink); }
.article-body .lead { font-size: 1.2rem; font-family: var(--font-serif); line-height: 1.6; }
.article-body .lead::first-letter {
  font-size: 3.4em;
  font-family: var(--font-serif);
  float: left;
  line-height: 0.82;
  margin: 0.06em 0.12em 0 0;
  color: var(--terra);
}
.article-body h2 {
  font-size: 1.55rem;
  margin: 2.8rem 0 1.1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-light);
}
.article-body strong { color: var(--ink); }
/* Encadré de capture email au milieu de l'article */
.inline-cta {
  margin: 2.6rem 0;
  padding: 1.6rem 1.6rem 1.7rem;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--night-2), var(--night-3));
  border: 1px solid rgba(197, 150, 61, 0.4);
  box-shadow: 0 10px 30px rgba(33, 27, 18, 0.18);
  text-align: center;
}
.inline-cta .ic-k { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--gold); margin-bottom: 0.6rem; }
.inline-cta .ic-t { font-size: 1rem; color: var(--cream); line-height: 1.55; margin: 0 auto 1.2rem; max-width: 34rem; }
.inline-cta .ic-t strong { color: var(--gold-light); }
.inline-cta .btn { font-size: 0.9rem; }

.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; }
.article-tags span {
  font-size: 0.72rem;
  color: var(--ink-soft);
  border: 1px solid var(--line-light);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.author-box {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  border: 1px solid var(--line-light);
  border-radius: 4px;
  padding: 1.5rem;
  margin-top: 3rem;
  background: var(--paper-2);
}
.author-box .avatar {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.author-box strong { display: block; font-size: 0.95rem; }
.author-box p { font-size: 0.82rem; color: var(--ink-soft); margin: 0; }

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
@media (max-width: 600px) { .article-nav { grid-template-columns: 1fr; } }
.article-nav a {
  border: 1px solid var(--line-light);
  border-radius: 4px;
  padding: 1.2rem 1.4rem;
  font-size: 0.88rem;
  color: var(--ink);
  transition: border-color 0.2s;
  background: var(--paper);
}
.article-nav a:hover { border-color: var(--terra); }
.article-nav .dir { display: block; font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.4rem; }
.article-nav .next { text-align: right; }

/* ---------- Grilles génériques ---------- */
.tri-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }
@media (max-width: 860px) { .tri-grid { grid-template-columns: 1fr; } }
.info-card {
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 2rem 1.8rem;
  background: var(--night-3);
}
.band-paper .info-card { border-color: var(--line-light); background: var(--paper-2); }
.info-card .ic-icon { font-size: 1.4rem; color: var(--gold); margin-bottom: 1rem; display: block; }
.info-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.info-card p { font-size: 0.88rem; color: var(--cream-muted); }
.band-paper .info-card p { color: var(--ink-soft); }
.info-card .link-arrow { display: inline-block; margin-top: 1rem; }

/* ---------- Timeline (projets / déploiement) ---------- */
.timeline { list-style: none; margin-top: 2.5rem; border-left: 2px solid rgba(197, 150, 61, 0.4); }
.timeline li { padding: 0 0 2rem 1.8rem; position: relative; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}
.timeline .tl-phase { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.timeline h3 { font-size: 1.1rem; margin: 0.2rem 0; }
.timeline p { font-size: 0.88rem; color: var(--cream-muted); }

/* ---------- Page hero générique ---------- */
.page-hero { padding: 6rem 0 4rem; position: relative; overflow: hidden; }
.page-hero::after {
  content: "";
  position: absolute;
  top: -20%; right: -5%;
  width: 32vw; height: 32vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 150, 61, 0.10), transparent 65%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 46rem; margin-bottom: 1.3rem; }
.page-hero h1 em { font-style: italic; color: var(--gold-light); }
.page-hero .lead { color: var(--cream-muted); font-size: 1.08rem; max-width: 40rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night-2); border-top: 1px solid var(--line-dark); padding: 4.5rem 0 2.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-name { font-size: 1.3rem; }
.footer-brand .quote {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--cream-muted);
  font-size: 0.92rem;
  margin: 1rem 0 1.5rem;
  max-width: 16rem;
}
.footer-col h4 {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
  font-family: var(--font-sans);
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { font-size: 0.88rem; color: var(--cream-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--cream-muted);
}
.footer-bottom a { color: var(--cream-muted); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---------- 404 ---------- */
.page-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}
.page-404 .big {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 14vw, 9rem);
  background: linear-gradient(135deg, var(--gold), rgba(197, 150, 61, 0.25));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

/* ---------- Visuels de couverture ---------- */
.article-cover { margin: 0 auto 0; max-width: var(--max-w); border-radius: 4px; overflow: hidden; }
.article-cover .cover-svg, .article-cover .cover-img { display: block; width: 100%; height: clamp(220px, 32vw, 360px); object-fit: cover; }
.cover-img { object-position: center 28%; }

/* Bannière photo en tête de page (médiathèque, projets) */
.page-cover { max-width: var(--max-w); margin: -1rem auto 0; border-radius: 4px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,0.35); }
.page-cover img { display: block; width: 100%; height: clamp(240px, 38vw, 440px); object-fit: cover; }
.founder-photo { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; object-position: center 20%; float: right; margin: 0 0 1rem 1.5rem; border: 3px solid var(--gold); box-shadow: 0 8px 22px rgba(33,27,18,0.2); }
@media (max-width: 520px) { .founder-photo { float: none; display: block; margin: 0 auto 1.5rem; } }

/* ---------- Médiathèque : listes de ressources ---------- */
.count-badge {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid rgba(197, 150, 61, 0.4);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.res-list {
  list-style: none;
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
@media (max-width: 760px) { .res-list { grid-template-columns: 1fr; } }
.res-item {
  border: 1px solid var(--line-light);
  border-radius: 4px;
  padding: 1.5rem 1.6rem;
  background: var(--paper);
  position: relative;
}
.band-deep .res-item { background: var(--night-3); border-color: var(--line-dark); }
.res-item::before { content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 3px; background: var(--terra); border-radius: 4px 0 0 4px; }
.band-deep .res-item::before { background: var(--gold); }
.res-theme { font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--terra); }
.band-deep .res-theme { color: var(--gold-light); }
.res-item h3 { font-size: 1.18rem; margin: 0.5rem 0 0.2rem; }
.band-deep .res-item h3 { color: var(--paper); }
.res-by { font-size: 0.8rem; color: var(--ink-soft); font-style: italic; margin-bottom: 0.7rem; }
.band-deep .res-by { color: var(--cream-muted); }
.res-note { font-size: 0.88rem; color: var(--ink-soft); }
.band-deep .res-note { color: var(--cream-muted); }
.res-link { display: inline-block; margin-top: 0.8rem; font-size: 0.82rem; font-weight: 600; color: var(--terra); }
.band-deep .res-link { color: var(--gold-light); }
.res-link:hover { text-decoration: underline; }

/* ---------- Formulaire email intégré (embed Systeme.io) ---------- */
.embed-form { max-width: 30rem; margin: 0 auto; }
.embed-form input[type="email"], .embed-form input[type="text"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 3px;
  border: 1px solid var(--line-dark);
  background: var(--night-3);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.embed-form button, .embed-form input[type="submit"] {
  width: 100%;
  background: var(--gold);
  color: var(--night);
  border: none;
  border-radius: 3px;
  padding: 0.85rem 1.7rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}
