/* ============================================================
   AktibCode — feuille de style
   Direction : magazine éditorial, encre & papier, accent vermillon
   ============================================================ */

:root {
  --paper: #f3efe3;
  --paper-2: #eae4d4;
  --paper-3: #e0d9c6;
  --ink: #17150f;
  --ink-soft: #2a271f;
  --muted: #6c6557;
  --line: rgba(23, 21, 15, 0.18);
  --line-strong: rgba(23, 21, 15, 0.55);
  --accent: #c53a12;
  --accent-soft: #f7d9cf;
  --green: #1f6b54;
  --violet: #6a4bff;
  --blue: #2c5fd6;
  --mustard: #a97600;
  --on-accent: #fff8ef;
  --panel: #17150f;
  --panel-ink: #f3efe3;
  --panel-muted: #d6d0c0;
  --panel-line: rgba(243, 239, 227, 0.18);
  --shadow: 8px 8px 0 var(--ink);
  --header-h: 76px;
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --font-display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  --paper: #12110d;
  --paper-2: #1b1914;
  --paper-3: #26231b;
  --ink: #f3efe3;
  --ink-soft: #e8e2d2;
  --muted: #a49d8b;
  --line: rgba(243, 239, 227, 0.16);
  --line-strong: rgba(243, 239, 227, 0.5);
  --accent: #ff6a3d;
  --accent-soft: #3a1c12;
  --green: #6fbfa2;
  --violet: #a795ff;
  --blue: #8da9ff;
  --mustard: #d9a63a;
  --on-accent: #17150f;
  --panel: #1c1a14;
  --panel-ink: #f3efe3;
  --panel-muted: #cfc8b7;
  --panel-line: rgba(243, 239, 227, 0.16);
  --shadow: 8px 8px 0 rgba(243, 239, 227, 0.18);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px + env(safe-area-inset-top));
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
  overflow-x: clip;
}
html[data-theme="dark"] { color-scheme: dark; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

html[data-theme="dark"] body::after { opacity: 0.06; mix-blend-mode: screen; }

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 750;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10000;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  width: min(
    100% - (var(--gutter) * 2) - env(safe-area-inset-left) - env(safe-area-inset-right),
    var(--container)
  );
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 73, 29, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(197, 58, 18, 0); }
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s;
}

.btn svg { width: 15px; height: 15px; flex: none; transition: transform 0.25s var(--ease); }
.btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 3px;
  transition: transform 0.35s var(--ease), background 0.25s;
}

.logo-mark svg { width: 22px; height: 22px; }
.logo:hover .logo-mark { transform: rotate(-8deg); background: var(--accent); }

.logo-word {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}
.logo-word em { font-style: normal; color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  position: relative;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.theme-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.3s var(--ease), background 0.2s;
}
.theme-toggle:hover { border-color: var(--ink); transform: rotate(15deg); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  place-items: center;
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), top 0.25s;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.mobile-menu {
  position: fixed;
  inset: calc(var(--header-h) + env(safe-area-inset-top)) 0 auto 0;
  z-index: 99;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 18px max(var(--gutter), env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  max-height: calc(100vh - var(--header-h) - env(safe-area-inset-top));
  max-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top));
  overflow-y: auto;
  overscroll-behavior: contain;
  display: none;
}
.mobile-menu.is-open { display: block; animation: menuIn 0.3s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }
.mobile-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.mobile-menu a span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); }

/* ---------- Héros ---------- */

.hero {
  position: relative;
  padding: clamp(50px, 7vw, 94px) 0 0;
  border-bottom: 1px solid var(--line);
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 33.33%, 25% 100%;
  opacity: 0.32;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: end;
  padding-bottom: clamp(46px, 6vw, 72px);
}

.hero-copy { padding-bottom: 8px; }
.hero .eyebrow { margin-bottom: clamp(22px, 3vw, 34px); }

.hero h1 {
  font-size: clamp(3.5rem, 7.6vw, 7.1rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  margin-bottom: 28px;
}

.hero h1 .line { display: block; }
.hero h1 .line:nth-child(2) { padding-left: 0.06em; }

.highlight {
  position: relative;
  display: inline-block;
  color: var(--ink);
  font-style: italic;
  font-weight: 700;
  padding-inline: 0.06em;
}
.highlight::before {
  content: "";
  position: absolute;
  left: -0.03em;
  right: -0.05em;
  bottom: 0.06em;
  height: 0.33em;
  background: var(--accent);
  z-index: -1;
  transform: skewX(-8deg) rotate(-1.4deg);
}

.hero-lede {
  max-width: 47ch;
  font-size: clamp(1.03rem, 1.35vw, 1.16rem);
  line-height: 1.65;
  color: var(--muted);
}

.hero-lede strong { color: var(--ink); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.hero-stats {
  display: flex;
  gap: clamp(22px, 3.5vw, 42px);
  margin: 38px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
}
.hero-stats span {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Carte à la une du héros */
.hero-feature {
  position: relative;
  display: block;
  text-decoration: none;
  padding: 12px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.hero-feature:hover { transform: translate(-4px, -4px) rotate(-0.4deg); box-shadow: 12px 12px 0 var(--accent); }

.hero-feature-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--paper-2);
}
.hero-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.hero-feature:hover img { transform: scale(1.035); }

.hero-feature-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 8px 6px;
}
.hero-feature-body h2 {
  font-size: clamp(1.35rem, 2vw, 1.72rem);
  line-height: 1.03;
  max-width: 22ch;
}
.hero-feature .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-feature-arrow {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.hero-feature:hover .hero-feature-arrow { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.hero-feature-arrow svg { width: 16px; height: 16px; }

.sticker {
  position: absolute;
  top: -30px;
  right: -26px;
  z-index: 2;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: center;
  transform: rotate(9deg);
  box-shadow: 4px 4px 0 var(--ink);
}
.sticker span { display: block; font-size: 1rem; line-height: 1; margin-bottom: 3px; }

/* ---------- Bandeau défilant ---------- */

.ticker {
  position: relative;
  background: var(--panel);
  color: var(--panel-ink);
  overflow: hidden;
  border-block: 1px solid var(--panel);
  transform: rotate(-0.55deg) scale(1.02);
  margin: 8px 0 -2px;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-group {
  display: flex;
  align-items: center;
  flex: none;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-item::after {
  content: "✳";
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0;
}

@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding: clamp(58px, 8vw, 104px) 0; }
.section--tight { padding-top: clamp(44px, 6vw, 72px); }
.section--border { border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(30px, 4vw, 50px);
}

.section-head h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  letter-spacing: -0.045em;
}
.section-head h2 em { font-style: italic; font-weight: 600; color: var(--accent); }

.section-head .head-note {
  max-width: 34ch;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-label::before { content: ""; width: 26px; height: 2px; background: var(--accent); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  padding-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}
.link-arrow svg { width: 13px; height: 13px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* ---------- Cartes article ---------- */

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.6vw, 34px);
}

.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.article-card:hover {
  transform: translate(-4px, -4px);
  border-color: var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
}
html[data-theme="dark"] .article-card:hover { box-shadow: 7px 7px 0 var(--accent); }

.card-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.article-card:hover .card-media img { transform: scale(1.04); }

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 20px 18px;
}

.card-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.card-cat::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cat, var(--accent));
}

.card-title {
  font-size: clamp(1.22rem, 1.7vw, 1.48rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  text-wrap: balance;
}
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }

.card-dek {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-foot .read { display: inline-flex; align-items: center; gap: 6px; }

.article-card--wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
}
.article-card--wide .card-media { aspect-ratio: auto; height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
.article-card--wide .card-body { padding: 28px; }
.article-card--wide .card-title { font-size: clamp(1.6rem, 2.5vw, 2.15rem); }
.article-card--wide .card-dek { -webkit-line-clamp: 4; font-size: 0.94rem; }

/* ---------- Catégories ---------- */

.cat-list {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cat-link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 178px;
  padding: 22px 18px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  overflow: hidden;
  transition: background 0.3s var(--ease), color 0.3s;
}
.cat-link:first-child { border-left: 1px solid var(--line); }
.cat-link::after {
  content: "↗";
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  opacity: 0.4;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.cat-link:hover { background: var(--panel); color: var(--panel-ink); }
.cat-link:hover::after { transform: translate(3px, -3px); opacity: 1; color: var(--accent); }
.cat-link .cat-index {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.cat-link:hover .cat-index { color: var(--panel-muted); }
.cat-link h3 {
  font-size: 1.32rem;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-top: 34px;
}
.cat-link .cat-count {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.cat-link:hover .cat-count { color: var(--panel-muted); }
.cat-link .cat-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--cat, var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.cat-link:hover .cat-bar { transform: scaleX(1); }

.cat-link--all { display: none; background: var(--paper-2); }
.cat-link--all .cat-index { color: var(--accent); font-size: 1rem; }
.cat-link--all:hover { background: var(--accent); }
.cat-link--all:hover .cat-index { color: var(--on-accent); }

@media (max-width: 1080px) {
  .cat-link--all { display: flex; }
}

/* ---------- Manifeste ---------- */

.band {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  color: var(--panel-ink);
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(232, 73, 29, 0.24), transparent 45%), radial-gradient(circle at 85% 80%, rgba(31, 107, 84, 0.22), transparent 40%);
  pointer-events: none;
}

.band-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: end;
  padding: clamp(64px, 9vw, 118px) 0;
}

.band .section-label { color: var(--panel-muted); }
.band .section-label::before { background: var(--accent); }

.band h2 {
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.band h2 em { font-style: italic; font-weight: 600; color: var(--accent); }

.band-copy p {
  color: var(--panel-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 26px;
}
.band-copy .btn { border-color: var(--panel-ink); color: var(--panel-ink); }
.band-copy .btn:hover { background: var(--panel-ink); color: var(--panel); }

.band-stamp {
  position: absolute;
  top: 40px;
  right: var(--gutter);
  width: 120px;
  height: 120px;
  opacity: 0.9;
  animation: spin 26s linear infinite;
  pointer-events: none;
}
.band-stamp text {
  font-family: var(--font-mono);
  font-size: 8.4px;
  letter-spacing: 0.22em;
  fill: var(--accent);
  text-transform: uppercase;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Aperçu lexique ---------- */

.lex-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

.lex-preview-intro h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  margin: 6px 0 20px;
}
.lex-preview-intro p { color: var(--muted); max-width: 36ch; margin-bottom: 26px; }

.lex-mini { border-top: 1px solid var(--line-strong); }
.lex-mini a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding 0.25s var(--ease), color 0.25s;
}
.lex-mini a:hover { padding-left: 10px; color: var(--accent); }
.lex-mini .lex-term { display: block; font-family: var(--font-display); font-size: 1.28rem; font-weight: 700; letter-spacing: -0.02em; }
.lex-mini .lex-def {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}
.lex-mini .lex-tag { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); flex: none; }

/* ---------- Pied de page ---------- */

.site-footer {
  background: var(--panel);
  color: var(--panel-ink);
  padding: clamp(54px, 7vw, 86px) 0 calc(26px + env(safe-area-inset-bottom));
  position: relative;
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.55fr));
  gap: clamp(30px, 5vw, 70px);
  padding-bottom: 46px;
  border-bottom: 1px solid var(--panel-line);
}

.footer-brand .logo-word { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.footer-brand .logo-word em { color: var(--accent); }
.footer-brand p {
  max-width: 38ch;
  margin-top: 16px;
  color: var(--panel-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}
.footer-brand .footer-mail {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent);
  text-underline-offset: 4px;
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--panel-muted);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--panel-ink);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--panel-muted);
}
.footer-bottom .footer-badge { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .footer-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.footer-giant {
  font-family: var(--font-display);
  font-size: clamp(3rem, 15.5vw, 15rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 239, 227, 0.22);
  margin: 32px 0 8px;
  user-select: none;
  white-space: nowrap;
}
.footer-giant em { font-style: normal; -webkit-text-stroke-color: var(--accent); }

/* ---------- Pages intérieures ---------- */

.page-head {
  padding: clamp(48px, 7vw, 86px) 0 clamp(34px, 4.5vw, 56px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-head::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 300px;
  height: 300px;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}

.page-head h1 {
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin: 16px 0 22px;
  max-width: 16ch;
}
.page-head h1 em { font-style: italic; font-weight: 600; color: var(--accent); }
.page-head .lede {
  max-width: 56ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.65;
}

/* Barre de filtres */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: calc(var(--header-h) + env(safe-area-inset-top));
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px);
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; }

.filter-chip {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-chip:hover { border-color: var(--ink); }
.filter-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 250px;
}
.search-box svg {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  color: var(--muted);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}
.search-box input::placeholder { color: var(--muted); }
.search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0 4px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
}
.empty-state strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin-bottom: 6px; }

/* ---------- Article ---------- */

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  height: 3px;
  width: 0%;
  background: var(--accent);
  transition: width 0.1s linear;
}

.article-head { padding: clamp(34px, 5vw, 58px) 0 clamp(26px, 4vw, 40px); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span.sep { opacity: 0.5; }

.article-title {
  font-size: clamp(2.5rem, 5.7vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  max-width: 17ch;
  margin: 12px 0 24px;
}

.article-dek {
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-meta .author { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.article-meta .author-badge {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.6rem;
  letter-spacing: 0;
}

.article-cover {
  margin: 0 0 clamp(38px, 5vw, 62px);
  border: 1px solid var(--ink);
  background: var(--paper-2);
}
.article-cover img { width: 100%; height: auto; }
.article-cover figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 164px;
  gap: clamp(28px, 3.6vw, 52px);
  align-items: start;
  padding-bottom: clamp(50px, 7vw, 90px);
}
.article-layout > * { min-width: 0; }

.article-aside { position: sticky; top: calc(var(--header-h) + 28px); }
.article-aside .aside-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a {
  display: flex;
  gap: 10px;
  padding: 8px 0 8px 2px;
  font-size: 0.82rem;
  line-height: 1.4;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s, padding 0.2s;
}
.toc a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--accent);
  padding-top: 3px;
}
.toc a:hover, .toc a.is-active { color: var(--ink); }
.toc a.is-active { font-weight: 600; }

.aside-share {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.article-rail { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 28px; }
.rail-block { border-top: 1px solid var(--line); padding-top: 12px; }
.rail-block p { margin: 0 0 10px; font-size: 0.8rem; line-height: 1.5; color: var(--muted); }
.rail-fact {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.rail-fact strong { font-weight: 500; color: var(--ink); text-align: right; }
.rail-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.rail-link:hover { color: var(--ink); border-color: var(--ink); }
.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.icon-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.icon-btn svg { width: 15px; height: 15px; }

.prose { max-width: 68ch; }
.prose > p {
  font-size: 1.075rem;
  line-height: 1.78;
  margin: 0 0 1.45em;
  color: var(--ink-soft);
}
.prose > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 4.1rem;
  font-weight: 800;
  line-height: 0.78;
  padding: 0.08em 0.12em 0 0;
  color: var(--accent);
}
.prose h2 {
  position: relative;
  counter-increment: section;
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin: 2.3em 0 0.7em;
  padding-top: 0.5em;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 30px);
}
.prose h2::before {
  content: "0" counter(section);
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.prose { counter-reset: section; }

.prose a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.prose a:hover { color: var(--accent); }

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

.prose ul {
  list-style: none;
  margin: 0 0 1.8em;
  padding: 0;
  display: grid;
  gap: 10px;
}
.prose ul li {
  position: relative;
  padding-left: 24px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
}

.prose blockquote {
  position: relative;
  margin: 2em 0;
  padding: 1.4em 0 1.4em 1.6em;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 550;
  font-style: italic;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.prose blockquote::before {
  content: "“";
  position: absolute;
  left: 0.55em;
  top: -0.15em;
  font-size: 3em;
  color: var(--accent);
  opacity: 0.22;
  font-style: normal;
  line-height: 1;
}

.prose .note {
  margin: 2em 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: var(--paper-2);
}
.prose .note .note-title {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.prose .note p { font-size: 0.95rem; line-height: 1.6; color: var(--ink); }

.prose pre {
  margin: 0 0 1.8em;
  padding: 18px 20px;
  max-width: 100%;
  overflow-x: auto;
  background: var(--panel);
  color: var(--panel-ink);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  tab-size: 2;
}
.prose pre .code-lang {
  display: block;
  margin-bottom: 10px;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff8a63;
}

.takeaways {
  margin: 2.6em 0 0;
  padding: 26px 28px;
  background: var(--accent);
  color: var(--on-accent);
}
.takeaways h2 {
  counter-increment: none;
  border: 0;
  padding: 0;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.takeaways h2::before { display: none; }
.takeaways ol {
  list-style: none;
  counter-reset: take;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.takeaways li {
  counter-increment: take;
  position: relative;
  padding-left: 34px;
  font-size: 0.98rem;
  line-height: 1.5;
}
.takeaways li::before {
  content: "0" counter(take);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  opacity: 0.8;
}

.article-sources {
  margin: 2.6em 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.article-sources h2 {
  counter-increment: none;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.article-sources h2::before { display: none; }
.article-sources > p { margin-bottom: 14px; color: var(--muted); font-size: 0.9rem; }
.article-sources ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.article-sources li { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
.article-sources a { color: var(--ink); text-decoration-thickness: 1px; }
.article-sources a:hover { color: var(--accent); }

.article-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 2.4em;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.article-foot .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.related {
  padding: clamp(48px, 7vw, 84px) 0;
  border-top: 1px solid var(--line);
}

.related-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.related-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.article-nav a {
  padding: 26px 24px;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.article-nav a:last-child { border-left: 1px solid var(--line); text-align: right; }
.article-nav a:hover { background: var(--ink); color: var(--paper); }
.article-nav .nav-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}
.article-nav .nav-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }

/* ---------- Lexique ---------- */

.lex-page { padding-bottom: clamp(60px, 8vw, 100px); }
.lex-toolbar { padding: 24px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.lex-groups { margin-top: 26px; }
.lex-group { border-top: 1px solid var(--line-strong); }
.lex-letter {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding: 10px 0;
}
.lex-entry {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr) auto;
  gap: clamp(18px, 4vw, 60px);
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 30px);
}
.lex-entry .lex-term { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
.lex-entry p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.6; }
.lex-entry .lex-cat { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.lex-entry .lex-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.lex-entry .lex-link:hover { text-decoration: underline; }
.lex-entry:target { background: var(--accent-soft); }
.lex-empty { padding: 50px 0; color: var(--muted); }

/* ---------- À propos ---------- */

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(30px, 6vw, 80px);
  padding: clamp(46px, 6vw, 72px) 0;
  align-items: end;
  border-bottom: 1px solid var(--line);
}
.about-intro h1 { font-size: clamp(2.7rem, 6vw, 5rem); line-height: 0.96; letter-spacing: -0.05em; }
.about-intro h1 em { font-style: italic; font-weight: 600; color: var(--accent); }
.about-intro .about-lede { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.about-intro .about-lede p + p { margin-top: 1em; }

.about-founder {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
  padding: clamp(46px, 6vw, 76px) 0;
  border-bottom: 1px solid var(--line);
}
.founder-photo { margin: 0; position: relative; max-width: 400px; }
.founder-frame { position: relative; }
.founder-frame::after {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1px solid var(--accent);
  z-index: 0;
  pointer-events: none;
}
.founder-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  filter: saturate(0.92) contrast(1.02);
}
.founder-photo figcaption {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.founder-copy h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 14px 0 22px;
  max-width: 18ch;
}
.founder-copy h2 em { font-style: italic; font-weight: 600; color: var(--accent); }
.founder-copy p { color: var(--muted); font-size: 1rem; line-height: 1.7; max-width: 56ch; }
.founder-copy p + p { margin-top: 1em; }
.founder-sign {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.founder-name { font-weight: 600; letter-spacing: -0.01em; }
.founder-role {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
}
.value {
  padding: 30px 26px 34px;
  border-right: 1px solid var(--line);
}
.value:last-child { border-right: 0; }
.value .value-num { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--accent); }
.value h3 { font-size: 1.5rem; margin: 26px 0 12px; letter-spacing: -0.03em; }
.value p { color: var(--muted); font-size: 0.92rem; line-height: 1.65; }

.about-formats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.format-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 24px 26px 24px 0;
  border-bottom: 1px solid var(--line);
}
.format-row:nth-child(odd) { padding-right: 40px; border-right: 1px solid var(--line); }
.format-row:nth-child(even) { padding-left: 40px; }
.format-row .format-icon { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--accent); }
.format-row .format-icon svg { width: 16px; height: 16px; }
.format-row h3 { font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.format-row p { color: var(--muted); font-size: 0.88rem; line-height: 1.55; }

.contact-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(34px, 5vw, 52px);
  background: var(--accent);
  color: var(--on-accent);
}
.contact-band h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); max-width: 16ch; }
.contact-band .btn { border-color: var(--on-accent); color: var(--on-accent); flex: none; }
.contact-band .btn:hover { background: var(--on-accent); color: var(--accent); }

/* ---------- 404 ---------- */

.notfound {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 20px;
}
.notfound .code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 15rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}
.notfound h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 20px 0 12px; }
.notfound p { color: var(--muted); margin-bottom: 26px; }

/* ---------- Animations d’apparition ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 500;
  transform: translate(-50%, 20px);
  padding: 11px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .article-layout { grid-template-columns: 230px minmax(0, 1fr); }
  .article-rail { display: none; }
}

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); gap: 36px; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-card--wide { grid-column: span 2; }
  .cat-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.6fr) minmax(0, 0.6fr); }
}

@media (max-width: 880px) {
  .site-nav { display: none; }
  .nav-toggle { display: grid; }
  .header-actions .btn--header { display: none; }
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-feature { margin-top: 6px; box-shadow: 6px 6px 0 var(--ink); }
  .hero-feature:hover { transform: none; box-shadow: 6px 6px 0 var(--ink); }
  .hero h1 { font-size: clamp(3.4rem, 12vw, 5.6rem); }
  .band-inner { grid-template-columns: 1fr; align-items: start; }
  .band-stamp { top: auto; bottom: 30px; }
  .lex-preview { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; order: -1; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .toc { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .aside-share { display: none; }
  .about-intro { grid-template-columns: 1fr; }
  .about-founder { grid-template-columns: 1fr; gap: 40px; }
  .founder-photo { max-width: 300px; }
  .founder-copy h2 { max-width: 22ch; }
  .values-grid { grid-template-columns: 1fr; }
  .value { border-right: 0; border-bottom: 1px solid var(--line); }
  .value:last-child { border-bottom: 0; }
  .about-formats { grid-template-columns: 1fr; }
  .format-row:nth-child(odd) { border-right: 0; padding-right: 0; }
  .format-row:nth-child(even) { padding-left: 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 16px; }
  .section-head .head-note { max-width: 48ch; }
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .lex-entry { grid-template-columns: 1fr auto; gap: 8px 20px; }
  .lex-entry p { grid-column: 1 / -1; }
  .lex-entry .lex-cat { grid-column: 2; grid-row: 1; }
}

@media (max-width: 620px) {
  :root { --header-h: 66px; }
  .logo-word { font-size: 1.16rem; }
  .logo-mark { width: 30px; height: 30px; }
  .hero { padding-top: 38px; }
  .hero .eyebrow { font-size: 0.62rem; letter-spacing: 0.08em; }
  .hero h1 { font-size: clamp(2.7rem, 13.2vw, 4.2rem); }
  .hero-lede { font-size: 0.98rem; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .hero-stats strong { font-size: 1.4rem; }
  .sticker { width: 78px; height: 78px; font-size: 0.52rem; top: -18px; right: -8px; }
  .sticker span { font-size: 0.82rem; }
  .hero-feature { padding: 8px; }
  .hero-feature-body { padding: 14px 4px 4px; }
  .hero-feature-arrow { width: 34px; height: 34px; }
  .article-grid { grid-template-columns: 1fr; gap: 20px; }
  .article-card--wide { grid-column: auto; grid-template-columns: 1fr; }
  .article-card--wide .card-media { aspect-ratio: 3 / 2; border-right: 0; border-bottom: 1px solid var(--line); }
  .article-card--wide .card-body { padding: 20px; }
  .cat-list { grid-template-columns: 1fr 1fr; }
  .cat-link { min-height: 148px; }
  .cat-link:nth-child(odd) { border-left: 1px solid var(--line); }
  .cat-link:nth-child(even) { border-right: 1px solid var(--line); }
  .cat-link:nth-child(3) { border-right: 1px solid var(--line); }
  .cat-link h3 { font-size: 1.12rem; margin-top: 24px; }
  .band-stamp { display: none; }
  .section { padding: 48px 0; }
  .toolbar { position: static; flex-direction: column; align-items: stretch; gap: 12px; }
  .filters { gap: 6px; }
  .filter-chip { padding: 7px 11px; font-size: 0.6rem; }
  .search-box { min-width: 0; }
  .page-head h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .article-title { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .article-cover figcaption { flex-direction: column; gap: 4px; }
  .article-layout { gap: 28px; }
  .toc { grid-template-columns: 1fr; }
  .article-meta { gap: 10px 16px; font-size: 0.62rem; }
  .prose > p:first-of-type::first-letter { font-size: 3.3rem; }
  .takeaways { padding: 22px 20px; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav a:last-child { border-left: 0; border-top: 1px solid var(--line); text-align: left; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .lex-entry { grid-template-columns: 1fr; }
  .lex-entry .lex-cat { display: none; }
  .contact-band { padding: 28px 22px; }
}

@media (pointer: coarse) {
  .theme-toggle,
  .nav-toggle,
  .icon-btn { width: 44px; height: 44px; }
  .logo { min-height: 44px; }
  .site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .filter-chip { min-height: 44px; padding: 10px 16px; }
  .search-box input {
    min-height: 48px;
    padding: 12px 16px 12px 40px;
    font-size: 1rem;
    letter-spacing: 0.01em;
  }
  .search-box svg { left: 14px; width: 17px; height: 17px; }
  .toc a { min-height: 44px; align-items: center; }
  .breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
  .link-arrow { min-height: 44px; align-items: center; padding-bottom: 0; }
  .btn { min-height: 46px; }
  .footer-col ul { gap: 0; }
  .footer-col a { display: flex; align-items: center; min-height: 44px; }
  .footer-mail { display: inline-flex; align-items: center; min-height: 44px; }
  button,
  .btn,
  .filter-chip,
  .theme-toggle,
  .nav-toggle { touch-action: manipulation; }
}

@media (hover: none) {
  .logo:hover .logo-mark,
  .theme-toggle:hover,
  .article-card:hover,
  .hero-feature:hover { transform: none; }
  .link-arrow:hover svg { transform: none; }
  .filter-chip:hover { border-color: var(--line); }
  .footer-col a:hover { color: var(--panel-ink); }
  .article-nav a:hover { background: transparent; color: inherit; }
  .article-card:active,
  .cat-link:active,
  .btn:active,
  .filter-chip:active,
  .mobile-menu a:active { opacity: 0.72; }
}

@media (max-width: 880px) and (max-height: 420px) {
  .mobile-menu { padding-top: 10px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .mobile-menu a { padding: 9px 0; font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
