/* ======================================================
   PSL3D - Le Fil v6  |  main.css
   Direction D v6 design system
   ====================================================== */

:root {
  --ink: #1b1916;
  --ink-2: #3d3b34;
  --muted: #7a786d;
  --paper: #f6f3e8;
  --paper-2: #efecdd;
  --paper-3: #e7e3d0;
  --line: #dcd8c4;
  --accent-base: #0ea866;
  --accent-deep-base: #0b7a4a;
  --accent: var(--accent-base);
  --accent-deep: var(--accent-deep-base);
  --disp: 'Space Grotesk', sans-serif;
  --body: 'Archivo', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}

/* paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: .038;
  mix-blend-mode: multiply;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 44px; }
.mono-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.mono-label.g { color: var(--accent-deep); }

/* ===== HEADER ===== */
body > header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

/* Inner <header> elements in post/page content must never inherit sticky */
main header, article header, .prose header, .entry-content header {
  position: static;
  top: auto;
  z-index: auto;
  background: none;
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand-nav { display: flex; align-items: center; gap: 12px; }
.logo { width: 34px; height: 34px; color: var(--ink); }
.brand-nav b {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .02em;
}
.brand-nav small {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  color: var(--ink-2);
  text-transform: uppercase;
  margin-top: 1px;
}
nav.links { display: flex; gap: 30px; }
nav.links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: .15s;
}
nav.links a:hover { color: var(--ink); }

/* DROPDOWN NAV */
.dropdown-nav {
  position: relative;
}
.dropdown-nav > a {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 10;
}
.dropdown-nav > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.2s;
}
.dropdown-nav:has(> a:hover) > a::after,
.dropdown-nav:has(> ul:hover) > a::after {
  transform: rotate(180deg);
}
/* Zone invisible pour combler le gap */
.dropdown-nav > a::before {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.dropdown-nav > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  list-style: none;
  min-width: 200px;
  padding: 8px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 50;
}
.dropdown-nav:has(> a:hover) > ul,
.dropdown-nav:has(> ul:hover) > ul {
  display: block;
}
.dropdown-nav ul li a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--ink-2);
  transition: 0.15s;
}
.dropdown-nav ul li a:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  transition: .18s;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 900px) { nav.links { display: none; } }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 64px 0 52px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* animated filament */
.hero-filament {
  position: absolute;
  right: -60px;
  top: 30px;
  width: 54%;
  height: 100%;
  pointer-events: none;
  color: var(--accent);
}
.hero-filament svg { width: 100%; height: 100%; }
.fil-head { color: var(--ink); opacity: 0; animation: fade-in .45s ease forwards .2s; }
.fil-body {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-fil 2.4s cubic-bezier(.4, 0, .15, 1) forwards .8s;
}
@keyframes draw-fil { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .fil-body { stroke-dashoffset: 0; animation: none; }
  .fil-head { opacity: 1; animation: none; }
}
@media (max-width: 900px) { .hero-filament { opacity: .2; } }

.hero-inner { position: relative; z-index: 2; }

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 56px;
  animation: hero-rise .7s cubic-bezier(.16, 1, .3, 1) both;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot-accent { color: var(--accent-deep); }
.layer-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--paper-2);
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* brand display */
.hero-brand { animation: hero-rise .95s cubic-bezier(.16, 1, .3, 1) both .1s; }
.brand-display {
  display: block;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(88px, 15.5vw, 196px);
  line-height: .84;
  letter-spacing: -.035em;
}
.bd-psl { color: var(--ink); }
.bd-3d { color: var(--accent-deep); }

.brand-descriptor {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand-descriptor::before {
  content: '';
  flex: none;
  width: 36px;
  height: 1px;
  background: var(--accent-deep);
}

/* hero divider */
.hero-rule {
  height: 1px;
  background: var(--line);
  margin: 40px 0;
  transform-origin: left;
  animation: rule-grow .65s cubic-bezier(.4, 0, .2, 1) both .3s;
}
@keyframes rule-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* hero lower */
.hero-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: end;
  animation: hero-rise .95s cubic-bezier(.16, 1, .3, 1) both .5s;
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-tagline {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(44px, 6.5vw, 78px);
  line-height: .88;
  letter-spacing: -.035em;
  margin-bottom: 22px;
}
.hero-tagline .t-accent { color: var(--accent-deep); }
.hero-lede { font-size: 17px; color: var(--muted); max-width: 46ch; line-height: 1.65; }
.hero-lede strong { color: var(--ink); }

.hero-right { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.hero-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.hero-caption {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  text-transform: uppercase;
  letter-spacing: .08em;
}

@media (max-width: 900px) {
  .hero-lower { grid-template-columns: 1fr; gap: 28px; }
  .hero-right { align-items: flex-start; }
  .hero-cta-btns { justify-content: flex-start; }
  .hero-caption { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-top, .hero-brand, .hero-rule, .hero-lower {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ===== TRUST / LOGOS ===== */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  padding: 32px 0 28px;
}
.trust .inner { display: flex; flex-direction: column; align-items: center; gap: 0; padding-bottom: 24px; }
.trust .lbl { text-align: center; letter-spacing: .18em; }

/* Carousel */
.logos-carousel {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.logos-track {
  display: flex;
  width: max-content;
  animation: trust-marquee 38s linear infinite;
}
.logos-carousel:hover .logos-track { animation-play-state: paused; }
.logos-set {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 0 28px;
}
@keyframes trust-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Logo item + focus */
.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: default;
  flex-shrink: 0;
}
.logo-item img {
  height: 72px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .5;
  transition: filter .3s, opacity .3s, transform .3s;
  display: block;
}
.logo-item:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.08);
}
.logo-name { display: none; }

/* ===== MÉTIER - manifeste ===== */
.metier {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 64px 0;
}
.metier-inner { display: flex; flex-direction: column; gap: 22px; }
.metier-stmt {
  font-family: var(--disp);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.12;
  letter-spacing: -.02em;
  max-width: 24ch;
  color: var(--ink);
}
.metier-stmt .g { color: var(--accent-deep); }
.metier-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.metier-tags span {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  background: var(--paper-2);
}

/* ===== SPINE ===== */
.spine-zone { position: relative; }
.railsec {
  --sec-pt: 96px;
  padding: var(--sec-pt) 44px 96px 100px;
  position: relative;
}
.railsec::before {
  content: "";
  position: absolute;
  left: 43px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--accent), var(--accent-deep));
  opacity: .45;
}
.railsec .node {
  position: absolute;
  left: 35px;
  top: var(--sec-pt);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--accent-deep);
  z-index: 2;
}
.railsec .node::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent-deep);
}
.railsec .secno {
  position: absolute;
  left: 76px;
  top: var(--sec-pt);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-deep);
  letter-spacing: .12em;
}
@media (max-width: 760px) {
  .railsec { padding-left: 60px; }
  .railsec::before { left: 19px; }
  .railsec .node { left: 11px; }
  .railsec .secno { left: 46px; }
}

.eyebrow-2 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 18px;
}
h2 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.03;
  letter-spacing: -.022em;
}
h2 .g { color: var(--accent-deep); }
.lead {
  font-size: clamp(18px, 1.45vw, 22px);
  color: var(--muted);
  max-width: 56ch;
  margin-top: 20px;
  line-height: 1.65;
}
p.body-t { font-size: clamp(17px, 1.35vw, 20px); color: var(--muted); margin-top: 16px; line-height: 1.7; }
p.body-t strong { color: var(--ink); font-weight: 600; }

/* ===== CONSTAT ===== */
.constat {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.constat .visual {
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, var(--paper), var(--paper-2));
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.constat .visual img { width: 78%; height: 78%; object-fit: contain; }
.constat .visual .strates {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(27, 25, 22, .04) 0 2px, transparent 2px 8px);
  pointer-events: none;
  border-radius: 16px;
}
@media (max-width: 900px) { .constat { grid-template-columns: 1fr; gap: 30px; } }

/* ===== STEPS (modèle hybride) ===== */
.steps { display: flex; flex-direction: column; margin-top: 48px; }
.mstep {
  display: grid;
  grid-template-columns: 196px 1fr;
  gap: 36px;
  align-items: start;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.mstep:last-child { border-bottom: 1px solid var(--line); }
.bignum {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(100px, 12vw, 148px);
  line-height: .82;
  letter-spacing: -.04em;
  background: repeating-linear-gradient(0deg, var(--ink) 0 3.5px, transparent 3.5px 7px);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: .3s;
}
.mstep:hover .bignum {
  background: repeating-linear-gradient(0deg, var(--accent-deep) 0 3.5px, transparent 3.5px 7px);
  -webkit-background-clip: text;
  background-clip: text;
}
.mstep .txt { padding-top: 16px; }
.mstep .who {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 10px;
}
.mstep h3 { font-family: var(--disp); font-weight: 600; font-size: 27px; margin-bottom: 10px; }
.mstep p { font-size: 16px; color: var(--muted); max-width: 58ch; }
@media (max-width: 760px) {
  .mstep { grid-template-columns: 1fr; gap: 8px; }
  .bignum { font-size: 88px; }
}

/* ===== MATERIALS ===== */
.mats {
  background: var(--paper-3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mats .inner {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  padding: 30px 44px;
}
.mats .lbl { flex: none; }
.spools { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; }
.spool {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  background: var(--paper);
  transition: .15s;
  cursor: default;
}
.spool:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.mats .more {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: .06em;
  flex: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* ===== MACHINES ===== */
.machines-grid {
  display: grid;
  grid-template-columns: 1fr .92fr;
  gap: 56px;
  align-items: center;
  margin-top: 8px;
}
.machines-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 35%, var(--paper), var(--paper-3));
  aspect-ratio: 5/4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.machines-visual img { width: 84%; height: 84%; object-fit: contain; }
.machines-visual .machine-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  background: linear-gradient(transparent, rgba(20, 18, 14, .55));
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #ece8d6;
}
.machine-specs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.machine-specs .spec {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  background: var(--paper-2);
}
.machines-txt .more {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
@media (max-width: 900px) { .machines-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ===== PILIERS ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}
.pil .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-deep);
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.pil h3 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 24px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
  margin-bottom: 12px;
}
.pil p { font-size: clamp(15.5px, 1.2vw, 18px); color: var(--muted); line-height: 1.7; }
.pil a {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; gap: 28px; } }

/* ===== HISTOIRE ===== */
.histoire {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hgrid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.hgrid .photo {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}
.hgrid .photo img { width: 100%; aspect-ratio: 5/4; object-fit: cover; display: block; }
.hgrid .photo .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(transparent, rgba(20, 18, 14, .75));
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #e8e4d2;
}
.stats { display: flex; gap: 42px; margin-top: 32px; flex-wrap: wrap; }
.stat .v {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 42px;
  line-height: 1;
  color: var(--ink);
}
.stat .v em { font-style: normal; color: var(--accent-deep); }
.stat .k {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 9px;
  max-width: 17ch;
}
@media (max-width: 900px) { .hgrid { grid-template-columns: 1fr; gap: 30px; } }

/* ===== CLOSER ===== */
.closer {
  text-align: center;
  padding: 110px 0 0;
  position: relative;
  overflow: hidden;
}
.closer .mono-label.g { color: var(--accent-deep); }
.closer h2 {
  margin: 20px auto 0;
  max-width: 19ch;
  font-size: clamp(32px, 4.8vw, 60px);
}
.closer p { max-width: 50ch; margin: 22px auto 0; font-size: 18px; color: var(--muted); }
.closer .btn { margin-top: 32px; padding: 15px 32px; font-size: 16px; }
.closer-tagline {
  margin-top: 60px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

/* mountain silhouette */
.mountain { width: 100%; height: 220px; display: block; margin-top: 8px; color: var(--accent-deep); }
.mountain svg { width: 100%; height: 100%; display: block; }
.mtn-fill { fill: var(--paper-3); stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mtn-anim {
  stroke: currentColor;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-mtn 3s cubic-bezier(.4, 0, .2, 1) forwards 1.8s;
}
@keyframes draw-mtn { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .mtn-anim { stroke-dashoffset: 0; animation: none; } }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--line);
  padding: 54px 0 40px;
  background: var(--paper-3);
}
.foot {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 30px;
}
.foot h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.foot a { display: block; font-size: 14.5px; color: var(--muted); margin-bottom: 9px; transition: .15s; }
.foot a:hover { color: var(--ink); }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand b { font-family: var(--disp); font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.foot-brand small {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 1px;
}
.madein { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.madein .chip {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  text-transform: uppercase;
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 42px;
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
@media (max-width: 900px) { .foot { grid-template-columns: 1fr 1fr; } }

/* ======================================================
   TEXTURE SYSTEM (.fx-* classes)
   Applied by JS/tweaks to body or individual sections
   ====================================================== */

.fx-plan {
  background-color: var(--paper);
  background-image:
    linear-gradient(color-mix(in oklch, var(--accent-base), transparent 89%) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklch, var(--accent-base), transparent 89%) 1px, transparent 1px),
    linear-gradient(color-mix(in oklch, var(--accent-base), transparent 78%) 1.5px, transparent 1.5px),
    linear-gradient(90deg, color-mix(in oklch, var(--accent-base), transparent 78%) 1.5px, transparent 1.5px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  background-repeat: round;
}
.fx-pointille {
  background-color: var(--paper);
  background-image: radial-gradient(color-mix(in oklch, var(--ink), transparent 80%) 1.4px, transparent 1.6px);
  background-size: 22px 22px;
}
.fx-hachures {
  background-color: var(--paper);
  background-image: repeating-linear-gradient(45deg,
    color-mix(in oklch, var(--ink), transparent 93%) 0 1px, transparent 1px 11px);
}
.fx-topo {
  background-color: var(--paper);
  background-image:
    repeating-radial-gradient(120% 78% at 84% 6%,
      transparent 0 30px,
      color-mix(in oklch, var(--accent-base), transparent 85%) 30px 31.5px,
      transparent 31.5px 60px),
    repeating-radial-gradient(88% 120% at 14% 102%,
      transparent 0 40px,
      color-mix(in oklch, var(--ink), transparent 91%) 40px 41.5px,
      transparent 41.5px 80px);
}
.fx-cartouche {
  background-color: var(--paper);
  background-image:
    linear-gradient(color-mix(in oklch, var(--accent-base), transparent 91%) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklch, var(--accent-base), transparent 91%) 1px, transparent 1px);
  background-size: 28px 28px;
  background-repeat: round;
}
body.fx-cartouche::after {
  content: "";
  position: fixed;
  inset: 16px;
  z-index: 899;
  pointer-events: none;
  border: 1.5px solid color-mix(in oklch, var(--accent-deep), transparent 50%);
}

/* Banded section treatment */
.fx-band {
  background-color: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.fx-band::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-top: 2px solid color-mix(in oklch, var(--accent-deep), transparent 35%);
  border-left: 2px solid color-mix(in oklch, var(--accent-deep), transparent 35%);
  opacity: .7;
  pointer-events: none;
  z-index: 3;
}
.railsec.fx-band::after { display: none; }

/* ======================================================
   THEME VARIANTS (light palette alternatives)
   ====================================================== */

body.theme-sable {
  --ink: #241f17; --ink-2: #473f30; --muted: #857a63;
  --paper: #f0e7d5; --paper-2: #e8ddc6; --paper-3: #ddd0b4;
  --line: #cdbf9f;
  background-color: var(--paper);
}
body.theme-sable > header { background: rgba(240, 231, 213, .9); }

body.theme-lin {
  --ink: #221f1c; --ink-2: #46423c; --muted: #827d74;
  --paper: #f3f1ea; --paper-2: #eceae1; --paper-3: #e2dfd3;
  --line: #d8d4c8;
  background-color: var(--paper);
}
body.theme-lin > header { background: rgba(243, 241, 234, .9); }

body.theme-brume {
  --ink: #1a1d22; --ink-2: #3a3f47; --muted: #767c86;
  --paper: #eef0f1; --paper-2: #e6e9eb; --paper-3: #dadee1;
  --line: #d0d4d8;
  background-color: var(--paper);
}
body.theme-brume > header { background: rgba(238, 240, 241, .9); }

body.theme-ivoire {
  --ink: #201d18; --ink-2: #454038; --muted: #837e72;
  --paper: #faf8f1; --paper-2: #f3f0e6; --paper-3: #ebe7d9;
  --line: #e2ddcd;
  background-color: var(--paper);
}
body.theme-ivoire > header { background: rgba(250, 248, 241, .9); }

body.no-grain::before { display: none; }
body.no-filament .hero-filament { display: none; }

/* ======================================================
   INNER PAGE STYLES (blog, single, pages)
   ====================================================== */

.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}
.page-header h1 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 72px);
  line-height: .9;
  letter-spacing: -.03em;
  margin-top: 16px;
}
.page-header .eyebrow { margin-bottom: 12px; }

.content-area { padding: 72px 0; }

/* Article grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 48px;
}
@media (max-width: 900px) { .posts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .posts-grid { grid-template-columns: 1fr; } }

.post-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-2);
  transition: box-shadow .2s, transform .2s;
}
.post-card:hover { box-shadow: 0 8px 32px rgba(27, 25, 22, .1); transform: translateY(-2px); }
.post-card-img { aspect-ratio: 16/9; background: var(--paper-3); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 24px; }
.post-card-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 10px;
}
.post-card-title {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.post-card-excerpt { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.post-card-link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* Single post / page content */
.entry-header { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.entry-header h1 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: .94;
  letter-spacing: -.03em;
  margin-top: 16px;
  max-width: 22ch;
}
.entry-meta {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.entry-content {
  max-width: 72ch;
  padding: 52px 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
}
.entry-content h2, .entry-content h3 {
  font-family: var(--disp);
  color: var(--ink);
  margin: 40px 0 16px;
  letter-spacing: -.02em;
}
.entry-content h2 { font-size: clamp(24px, 3vw, 36px); }
.entry-content h3 { font-size: 22px; }
.entry-content p { margin-bottom: 20px; }
.entry-content a { color: var(--accent-deep); border-bottom: 1px solid var(--accent); }
.entry-content ul, .entry-content ol { padding-left: 1.5em; margin-bottom: 20px; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote {
  border-left: 3px solid var(--accent-deep);
  padding: 16px 24px;
  background: var(--paper-2);
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
  font-size: 18px;
  color: var(--ink);
  font-style: italic;
}
.entry-content img { border-radius: 12px; margin: 32px 0; }
.entry-content code {
  font-family: var(--mono);
  font-size: .9em;
  background: var(--paper-3);
  padding: 2px 6px;
  border-radius: 4px;
}
.entry-content pre {
  background: var(--ink);
  color: var(--paper);
  padding: 24px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 28px 0;
}
.entry-content pre code { background: none; padding: 0; color: inherit; }

/* Pagination */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 64px;
  font-family: var(--mono);
  font-size: 13px;
}
.pagination a, .pagination span, .pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: .15s;
}
.pagination button { background: none; cursor: pointer; font-family: var(--mono); font-size: 13px; }
.pagination a:hover, .pagination button:hover, .pagination .current {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* 404 */
.not-found-page { padding: 100px 0; text-align: center; }
.not-found-page .code {
  font-family: var(--disp);
  font-size: clamp(80px, 15vw, 180px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  background: repeating-linear-gradient(0deg, var(--ink) 0 3.5px, transparent 3.5px 7px);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.not-found-page p { font-size: 18px; color: var(--muted); max-width: 42ch; margin: 20px auto 36px; }

/* Page subtitle */
.page-subtitle { font-size: 18px; color: var(--muted); max-width: 60ch; margin-top: 16px; }

/* Page content wrapper */
.page-content-wrap { padding: 56px 0 80px; }

/* Post navigation */
.post-nav { display: flex; justify-content: space-between; gap: 32px; }
.post-nav .nav-previous, .post-nav .nav-next { flex: 1; }
.post-nav .nav-next { text-align: right; }
.post-nav a { color: var(--ink); transition: color .15s; }
.post-nav a:hover { color: var(--accent-deep); }

/* ======================================================
   WP-CONTENT - styles for rendered WordPress / Gutenberg
   content inside .wp-content wrapper
   ====================================================== */

.wp-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
}

/* Reset Tailwind-injected base that may come from page content */
.wp-content *, .wp-content *::before, .wp-content *::after {
  box-sizing: border-box;
}

/* Typography */
.wp-content h1, .wp-content h2, .wp-content h3,
.wp-content h4, .wp-content h5, .wp-content h6 {
  font-family: var(--disp);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 40px 0 16px;
}
.wp-content h1 { font-size: clamp(28px, 3.5vw, 48px); }
.wp-content h2 { font-size: clamp(22px, 2.8vw, 36px); }
.wp-content h3 { font-size: 22px; }
.wp-content h4 { font-size: 18px; }
.wp-content p  { margin-bottom: 20px; max-width: 72ch; }
.wp-content a  { color: var(--accent-deep); border-bottom: 1px solid color-mix(in oklch, var(--accent), transparent 40%); transition: .15s; }
.wp-content a:hover { color: var(--ink); }
.wp-content strong { color: var(--ink); font-weight: 600; }
.wp-content em { font-style: italic; }
.wp-content ul, .wp-content ol { padding-left: 1.6em; margin-bottom: 20px; }
.wp-content li { margin-bottom: 8px; }
.wp-content hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }
.wp-content img { border-radius: 12px; max-width: 100%; height: auto; }
.wp-content figure { margin: 32px 0; }
.wp-content figcaption { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 8px; text-align: center; }

/* Code */
.wp-content code {
  font-family: var(--mono);
  font-size: .875em;
  background: var(--paper-3);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink);
}
.wp-content pre {
  background: var(--ink);
  color: var(--paper);
  padding: 24px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 28px 0;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
}
.wp-content pre code { background: none; padding: 0; color: inherit; font-size: inherit; }

/* Blockquote */
.wp-content blockquote {
  border-left: 3px solid var(--accent-deep);
  padding: 16px 24px;
  background: var(--paper-2);
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
  font-size: 18px;
  color: var(--ink);
  font-style: italic;
}

/* ── Gutenberg core blocks ── */

/* Columns */
.wp-content .wp-block-columns {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin: 32px 0;
}
.wp-content .wp-block-column { flex: 1; min-width: 240px; }

/* Group */
.wp-content .wp-block-group { margin: 32px 0; }
.wp-content .wp-block-group.has-background {
  padding: 32px;
  border-radius: 12px;
}

/* Cover */
.wp-content .wp-block-cover {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 32px 0;
  background: var(--ink);
  color: var(--paper);
}
.wp-content .wp-block-cover__inner-container { position: relative; z-index: 2; max-width: 800px; padding: 32px; }
.wp-content .wp-block-cover p { color: inherit; max-width: none; }

/* Image */
.wp-content .wp-block-image { margin: 32px 0; }
.wp-content .wp-block-image img { border-radius: 12px; }
.wp-content .wp-block-image.aligncenter { text-align: center; }
.wp-content .wp-block-image.alignfull { margin-left: calc(-1 * var(--wrap-pad, 44px)); margin-right: calc(-1 * var(--wrap-pad, 44px)); border-radius: 0; }
.wp-content .wp-block-image.alignfull img { border-radius: 0; }
.wp-content .wp-block-image.alignwide { margin-left: -60px; margin-right: -60px; }

/* Media & Text */
.wp-content .wp-block-media-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 40px 0;
}
.wp-content .wp-block-media-text.has-media-on-the-right { direction: rtl; }
.wp-content .wp-block-media-text.has-media-on-the-right > * { direction: ltr; }
.wp-content .wp-block-media-text__media img { border-radius: 12px; width: 100%; }
@media (max-width: 768px) {
  .wp-content .wp-block-media-text { grid-template-columns: 1fr; }
}

/* Buttons */
.wp-content .wp-block-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.wp-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper) !important;
  border: 1px solid var(--ink);
  transition: .18s;
  text-decoration: none !important;
  border-bottom: none !important;
}
.wp-content .wp-block-button__link:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}
.wp-content .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--ink) !important;
}

/* Table */
.wp-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
}
.wp-content th, .wp-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.wp-content th {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  border-bottom: 2px solid var(--ink);
}
.wp-content tr:hover td { background: var(--paper-2); }

/* Separator */
.wp-content .wp-block-separator {
  border: none;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}
.wp-content .wp-block-separator.is-style-wide { margin-left: -60px; margin-right: -60px; }

/* Lists */
.wp-content .wp-block-list { padding-left: 1.6em; margin-bottom: 20px; }

/* Quote */
.wp-content .wp-block-quote {
  border-left: 3px solid var(--accent-deep);
  padding: 16px 24px;
  background: var(--paper-2);
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
}
.wp-content .wp-block-quote p { font-size: 18px; color: var(--ink); font-style: italic; max-width: none; }
.wp-content .wp-block-quote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Headings block */
.wp-content .wp-block-heading { margin: 40px 0 16px; }

/* Paragraph with background */
.wp-content p.has-background {
  padding: 20px 24px;
  border-radius: 8px;
  max-width: none;
}

/* Kadence blocks - basic reset so they don't break layout */
.wp-content .kb-row-layout-wrap { margin: 0; }
.wp-content .kb-inner-column-inner { padding: 0 !important; }

/* Override embedded Tailwind-influenced styles */
.wp-content .bg-gray-50, .wp-content .bg-white { background: var(--paper-2) !important; }
.wp-content .bg-blue-900 {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border-radius: 12px;
  padding: 32px !important;
}
.wp-content .text-gray-700, .wp-content .text-gray-600 { color: var(--muted) !important; }
.wp-content .text-gray-900, .wp-content .text-white { color: var(--ink) !important; }
.wp-content .bg-gray-100 {
  background: var(--paper-3) !important;
  border-radius: 8px;
  padding: 20px !important;
}
.wp-content .border-gray-200, .wp-content .border-t { border-color: var(--line) !important; }
.wp-content .shadow-md { box-shadow: 0 2px 16px rgba(27,25,22,.08) !important; }
.wp-content .rounded-lg { border-radius: 12px !important; }
.wp-content .external-link {
  color: var(--accent-deep) !important;
  border-bottom: 1px solid var(--accent) !important;
  font-weight: 600;
  text-decoration: none !important;
}
/* Grid helpers from Tailwind that carry over */
.wp-content .grid { display: grid; gap: 24px; }
.wp-content .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.wp-content .md\:grid-cols-2 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .wp-content .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}
.wp-content .space-y-4 > * + * { margin-top: 16px; }
.wp-content .list-disc { list-style: disc; }
.wp-content .list-inside { padding-left: 1.2em; }
.wp-content .font-bold { font-weight: 700; color: var(--ink); }
.wp-content .text-center { text-align: center; }
.wp-content .text-center p { max-width: 68ch; margin-left: auto; margin-right: auto; }
.wp-content .max-w-4xl, .wp-content .max-w-2xl { max-width: 100% !important; }

/* ── Tailwind slate/gray dark-mode neutralisation ── */
/* Pages built with dark Tailwind themes get mapped to our light palette */
.wp-content .bg-slate-900,
.wp-content .bg-slate-950,
.wp-content .bg-gray-900,
.wp-content .bg-zinc-900,
.wp-content .bg-neutral-900 {
  background: var(--paper-2) !important;
  color: var(--ink) !important;
  border-radius: 0 !important;
}
.wp-content .bg-slate-800,
.wp-content .bg-gray-800,
.wp-content .bg-zinc-800 {
  background: var(--paper-3) !important;
  color: var(--ink) !important;
}
.wp-content .bg-slate-700,
.wp-content .bg-gray-700 { background: var(--line) !important; color: var(--ink) !important; }
.wp-content .bg-slate-600,
.wp-content .bg-gray-600 { background: var(--paper-3) !important; }
.wp-content .bg-slate-500 { background: var(--paper-3) !important; }
.wp-content .bg-slate-200,
.wp-content .bg-gray-200 { background: var(--paper-3) !important; }
.wp-content .bg-slate-100,
.wp-content .bg-gray-100,
.wp-content .bg-slate-50,
.wp-content .bg-gray-50 { background: var(--paper) !important; }

/* Text color resets from dark theme */
.wp-content .text-white,
.wp-content .text-slate-50,
.wp-content .text-slate-100,
.wp-content .text-slate-200,
.wp-content .text-slate-300,
.wp-content .text-gray-50,
.wp-content .text-gray-100,
.wp-content .text-gray-200,
.wp-content .text-gray-300 { color: var(--ink) !important; }

.wp-content .text-slate-400,
.wp-content .text-slate-500,
.wp-content .text-gray-400,
.wp-content .text-gray-500 { color: var(--muted) !important; }

.wp-content .text-slate-600,
.wp-content .text-slate-700,
.wp-content .text-slate-800,
.wp-content .text-slate-900,
.wp-content .text-gray-700,
.wp-content .text-gray-800,
.wp-content .text-gray-900 { color: var(--ink-2) !important; }

/* Accent/brand colors from dark theme */
.wp-content .text-blue-400,
.wp-content .text-blue-500,
.wp-content .text-indigo-400,
.wp-content .text-indigo-500 { color: var(--accent-deep) !important; }
.wp-content .bg-blue-600,
.wp-content .bg-blue-500,
.wp-content .bg-indigo-600 {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border-radius: 999px;
  padding: 12px 22px !important;
}
.wp-content .bg-blue-900,
.wp-content .bg-indigo-900 { background: var(--paper-3) !important; color: var(--ink) !important; }

/* Border resets */
.wp-content .border-slate-700,
.wp-content .border-slate-800,
.wp-content .border-gray-700,
.wp-content .border-gray-800 { border-color: var(--line) !important; }
.wp-content .border-slate-200,
.wp-content .border-gray-200,
.wp-content .border-slate-300 { border-color: var(--line) !important; }
.wp-content .divide-slate-700 > * + * { border-top-color: var(--line) !important; }
.wp-content .divide-gray-200 > * + * { border-top-color: var(--line) !important; }

/* Layout utilities */
.wp-content .container,
.wp-content .max-w-7xl,
.wp-content .max-w-6xl,
.wp-content .max-w-5xl,
.wp-content .max-w-4xl,
.wp-content .max-w-3xl { max-width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
.wp-content .mx-auto { margin-left: auto !important; margin-right: auto !important; }
.wp-content .min-h-screen { min-height: 0 !important; }

/* Spacing */
.wp-content .py-20, .wp-content .py-16 { padding-top: 48px !important; padding-bottom: 48px !important; }
.wp-content .py-12 { padding-top: 32px !important; padding-bottom: 32px !important; }
.wp-content .py-8 { padding-top: 24px !important; padding-bottom: 24px !important; }
.wp-content .px-8, .wp-content .px-6 { padding-left: 0 !important; padding-right: 0 !important; }
.wp-content .p-8, .wp-content .p-6 { padding: 24px !important; }
.wp-content .p-4 { padding: 16px !important; }
.wp-content .gap-8 { gap: 32px !important; }
.wp-content .gap-6 { gap: 24px !important; }
.wp-content .gap-4 { gap: 16px !important; }

/* Grid layouts */
.wp-content .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.wp-content .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .wp-content .grid-cols-3,
  .wp-content .grid-cols-4,
  .wp-content .md\:grid-cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wp-content .grid-cols-2,
  .wp-content .grid-cols-3,
  .wp-content .grid-cols-4,
  .wp-content .md\:grid-cols-2,
  .wp-content .md\:grid-cols-3 { grid-template-columns: 1fr; }
}
.wp-content .flex { display: flex; }
.wp-content .flex-wrap { flex-wrap: wrap; }
.wp-content .items-center { align-items: center; }
.wp-content .items-start { align-items: flex-start; }
.wp-content .justify-between { justify-content: space-between; }
.wp-content .justify-center { justify-content: center; }
.wp-content .flex-col { flex-direction: column; }

/* Typography scale */
.wp-content .text-4xl, .wp-content .text-5xl, .wp-content .text-6xl {
  font-family: var(--disp);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
}
.wp-content .text-3xl { font-family: var(--disp); font-weight: 600; font-size: 28px; color: var(--ink); }
.wp-content .text-2xl { font-size: 22px; font-weight: 600; color: var(--ink); }
.wp-content .text-xl  { font-size: 18px; font-weight: 500; }
.wp-content .text-lg  { font-size: 17px; }
.wp-content .text-sm  { font-size: 14px; }
.wp-content .text-xs  { font-size: 12px; font-family: var(--mono); }
.wp-content .font-semibold { font-weight: 600; color: var(--ink); }
.wp-content .font-medium { font-weight: 500; }
.wp-content .tracking-wide { letter-spacing: .06em; }
.wp-content .uppercase { text-transform: uppercase; }

/* Rounding and shadows in our theme */
.wp-content .rounded-xl, .wp-content .rounded-2xl { border-radius: 16px !important; }
.wp-content .rounded-lg { border-radius: 12px !important; }
.wp-content .rounded-md { border-radius: 8px !important; }
.wp-content .rounded-full { border-radius: 999px !important; }
.wp-content .shadow-lg, .wp-content .shadow-xl { box-shadow: 0 4px 24px rgba(27,25,22,.10) !important; }
.wp-content .overflow-hidden { overflow: hidden; }
.wp-content .border { border: 1px solid var(--line) !important; }
.wp-content .border-t { border-top: 1px solid var(--line) !important; }
.wp-content .border-b { border-bottom: 1px solid var(--line) !important; }

/* Chart.js containers - size to fit */
.wp-content canvas { max-width: 100% !important; }

/* ======================================================
   PAGE HERO (page.php)
   ====================================================== */

.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-deep) 0%, transparent 100%);
  opacity: .35;
}
.page-title {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 86px);
  line-height: .9;
  letter-spacing: -.035em;
  margin-top: 18px;
  max-width: 20ch;
}
.page-intro {
  font-size: 18px;
  color: var(--muted);
  max-width: 60ch;
  margin-top: 20px;
  line-height: 1.65;
}
.page-hero-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--accent-deep) 0%, transparent 60%);
  margin-top: 48px;
  opacity: .4;
}
.page-body {
  padding: 64px 0 80px;
}
.page-cta {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding: 64px 0;
}
.page-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.page-cta-text {
  font-size: 20px;
  color: var(--ink);
  font-family: var(--disp);
  font-weight: 600;
  max-width: 48ch;
  margin-top: 6px;
}
.page-cta-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ======================================================
   BLOG / ARCHIVE - liste éditoriale (home.php, archive.php)
   ====================================================== */

.archive-empty {
  color: var(--muted);
  font-size: 18px;
  padding: 48px 0;
}
.blog-count {
  margin-top: 20px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .15em;
}
.blog-body {
  padding: 48px 0 96px;
  background: var(--paper);
}

/* ===== BLOG FILTER BAR ===== */
.blog-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.blog-filter-search-wrap {
  flex: 1;
  min-width: 180px;
  position: relative;
}
.blog-filter-search-wrap::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  pointer-events: none;
}
.blog-filter-search-wrap::after {
  content: '';
  position: absolute;
  left: 22px;
  top: calc(50% + 4px);
  width: 5px;
  height: 1.5px;
  background: var(--muted);
  transform: rotate(45deg);
  transform-origin: left center;
  pointer-events: none;
}
.blog-filter-search {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-family: var(--body);
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
  -webkit-appearance: none;
}
.blog-filter-search::placeholder { color: var(--muted); }
.blog-filter-search:focus { border-color: var(--accent-deep); }
.blog-filter-cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.blog-filter-cat {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  line-height: 1;
}
.blog-filter-cat:hover {
  border-color: var(--ink-2);
  color: var(--ink-2);
}
.blog-filter-cat.active {
  border-color: var(--accent-deep);
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.blog-filter-sort {
  height: 38px;
  min-width: 130px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--ink);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237a786d'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.blog-filter-empty {
  text-align: center;
  padding: 48px 0;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 680px) {
  .blog-filter-bar { gap: 12px; }
  .blog-filter-search-wrap { flex: 1 1 100%; }
  .blog-filter-sort { margin-left: auto; }
}

.blog-list {
  border-top: 1px solid var(--line);
}
.blog-row {
  display: grid;
  grid-template-columns: 44px 1fr 160px;
  gap: 0 32px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: background .15s, padding .15s;
  cursor: default;
}
.blog-row:hover {
  background: var(--paper-2);
  padding-left: 16px;
  padding-right: 16px;
  margin: 0 -16px;
}
.blog-row--lead .blog-row-title a {
  font-size: clamp(20px, 2.4vw, 30px);
}
.blog-row-num {
  font-size: 11px;
  color: var(--accent);
  padding-top: 3px;
  letter-spacing: .1em;
}
.blog-row-cat {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  padding: 2px 7px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.blog-row-title {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 7px;
}
.blog-row-title a { color: var(--ink); transition: color .15s; }
.blog-row-title a:hover { color: var(--accent-deep); }
.blog-row-excerpt {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 64ch;
}
.blog-row-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding-top: 3px;
}
.blog-row-date {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .08em;
}
.blog-row-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--accent-deep);
  transition: color .15s;
  white-space: nowrap;
}
.blog-row-link:hover { color: var(--ink); }

@media (max-width: 768px) {
  .blog-row {
    grid-template-columns: 32px 1fr;
    grid-template-rows: auto auto;
  }
  .blog-row-aside {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 8px;
  }
}

/* ===== BLOG GRID ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.blog-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow .2s, transform .2s;
}
.blog-card:hover {
  box-shadow: 0 8px 32px rgba(27,25,22,.09);
  transform: translateY(-3px);
}
.blog-card--lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  column-gap: 56px;
  row-gap: 0;
  padding: 36px 40px;
}
.blog-card--lead .blog-card-meta { grid-column: 1; }
.blog-card--lead .blog-card-title { grid-column: 1; }
.blog-card--lead .blog-card-excerpt {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 15px;
  line-height: 1.7;
}
.blog-card--lead .blog-card-foot {
  grid-column: 1;
  grid-row: 3;
}
.blog-card-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.blog-card-title {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(17px, 1.6vw, 22px);
  letter-spacing: -.02em;
  line-height: 1.15;
}
.blog-card--lead .blog-card-title {
  font-size: clamp(26px, 3vw, 40px);
}
.blog-card-title a { color: var(--ink); transition: color .15s; }
.blog-card-title a:hover { color: var(--accent-deep); }
.blog-card-excerpt {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}
.blog-card-foot {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.blog-pin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper-3);
  border: 1px solid var(--line);
  padding: 3px 8px 3px 6px;
  border-radius: 4px;
}
.blog-pin::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
}
@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-card--lead {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .blog-card--lead .blog-card-excerpt { grid-column: 1; grid-row: auto; }
  .blog-card--lead .blog-card-foot { grid-column: 1; grid-row: auto; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card--lead { padding: 24px; }
}

/* ======================================================
   ENTRY HERO (single.php)
   ====================================================== */

/* Entry byline (used in single.php hero) */
.entry-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.entry-byline-sep { color: var(--line); }
.entry-byline a { color: var(--accent-deep); }

/* Cover image */
.entry-cover { padding: 40px 0 0; }
.entry-cover-img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  display: block;
}

/* Article body - rail + prose column */
.entry-wrap { padding: 56px 0 96px; background: var(--paper); }
.entry-layout {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0 40px;
}
.entry-rail-side {
  position: relative;
}
.entry-rail-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-deep) 0%, transparent 80%);
  opacity: .25;
}
.entry-main { min-width: 0; }
.entry-content {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
}

/* Neutralise article <header> - posts were built with a styled <header>
   containing a duplicate <h1>. After inline-style stripping, we hide
   the h1 (already shown in the inner-hero) and style the subtitle. */
.entry-content header {
  padding: 0;
  border: none;
  margin-bottom: 8px;
}
.entry-content header h1 { display: none; }
.entry-content header > p {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 32px;
}

/* Section separators inside article body */
.entry-content section {
  margin: 48px 0 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.entry-content section:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

/* Tags */
.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.entry-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  transition: .15s;
}
.entry-tag:hover { border-color: var(--accent-deep); color: var(--accent-deep); }

/* Post navigation */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 40px;
}
.post-nav .nav-next { text-align: right; }
.post-nav-label { display: block; margin-bottom: 8px; }
.post-nav-title {
  display: block;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.3;
  transition: color .15s;
}
.post-nav a:hover .post-nav-title { color: var(--accent-deep); }

@media (max-width: 768px) {
  .entry-layout { grid-template-columns: 1fr; }
  .entry-rail-side { display: none; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .nav-next { text-align: left; }
}

/* ======================================================
   404 PAGE
   ====================================================== */

.not-found-page {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.not-found-page > .wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}
.nf-code {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(100px, 20vw, 220px);
  line-height: 1;
  letter-spacing: -.05em;
  background: repeating-linear-gradient(0deg, var(--ink) 0 3.5px, transparent 3.5px 7px);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
.nf-title {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(24px, 3.5vw, 40px);
  letter-spacing: -.025em;
  margin-top: 12px;
  color: var(--ink);
}
.nf-desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 46ch;
  margin: 18px auto 0;
  line-height: 1.65;
}
.nf-mountain {
  margin-top: auto;
  text-align: center;
}
.nf-mountain .closer-tagline {
  padding: 40px 0 12px;
}

/* ======================================================
   INNER PAGE HERO (page.php generic + custom templates)
   ====================================================== */

.inner-hero {
  padding: 72px 0 0;
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
  position: relative;
  overflow: hidden;
}
.inner-hero-layout {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0 36px;
  align-items: start;
}
.inner-hero-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
  height: 100%;
}
.inner-rail-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-deep);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent-deep), transparent 75%);
}
.inner-rail-line {
  flex: 1;
  width: 2px;
  min-height: 60px;
  background: linear-gradient(180deg, var(--accent-deep) 0%, transparent 100%);
  margin-top: 10px;
  opacity: .3;
}
.inner-hero-content .eyebrow { margin-bottom: 16px; }
.inner-hero-title {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 110px);
  line-height: .88;
  letter-spacing: -.04em;
  max-width: 18ch;
  margin-bottom: 24px;
}
.inner-hero-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.65;
  padding-bottom: 56px;
}
.inner-hero-border {
  height: 1px;
  background: linear-gradient(90deg, var(--accent-deep) 0%, var(--line) 30%, transparent 80%);
  opacity: .65;
}

/* Decorative watermark - large ◆ symbol faintly behind the title */
.inner-hero-wm {
  position: absolute;
  right: 40px;
  top: 10px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(200px, 28vw, 420px);
  line-height: 1;
  letter-spacing: -.05em;
  color: color-mix(in oklch, var(--accent-deep), transparent 91%);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.inner-hero-content { position: relative; z-index: 1; }
@media (max-width: 768px) { .inner-hero-wm { display: none; } }

/* Hero staggered entrance animations */
.ih-rise {
  opacity: 0;
  transform: translateY(18px);
  animation: ih-rise-up .8s cubic-bezier(.16, 1, .3, 1) forwards;
}
.ih-rise-1 { animation-delay: .08s; }
.ih-rise-2 { animation-delay: .24s; }
.ih-rise-3 { animation-delay: .42s; }
@keyframes ih-rise-up { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .ih-rise { animation: none; opacity: 1; transform: none; }
}

/* Featured image - cinematic 21:9 crop between hero and body */
.inner-cover { padding: 40px 0 0; }
.inner-cover-img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  display: block;
}

/* ── Generic page body (page.php with running rail) ── */
.inner-body {
  padding: 56px 0 80px;
  position: relative;
}
.inner-body-layout {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0 36px;
  align-items: stretch; /* rail column stretches to match content height */
}
.inner-body-rail {
  display: flex;
  align-items: center;
  padding-top: 6px;
}
.inner-body-rail-line {
  width: 2px;
  flex: 1;
  min-height: 120px;
  background: linear-gradient(180deg, color-mix(in oklch, var(--accent-deep), transparent 50%) 0%, transparent 100%);
  opacity: .28;
}
.inner-content { /* .wp-content wrapper */ }

/* ── Generic page closer (page.php CTA + mountain) ── */
.inner-closer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding-top: 72px;
  overflow: hidden;
}
.inner-closer-label { margin-bottom: 12px; }
.inner-closer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 64px;
}
.inner-closer-stmt {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--ink);
  max-width: 44ch;
  margin-top: 8px;
  line-height: 1.3;
}
.inner-closer-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.inner-closer-tagline {
  text-align: center;
  padding: 48px 0 12px;
}

@media (max-width: 768px) {
  .inner-hero-layout,
  .inner-body-layout { grid-template-columns: 1fr; }
  .inner-hero-rail,
  .inner-body-rail { display: none; }
  .inner-closer-cta { flex-direction: column; align-items: flex-start; }
}

/* ── Legal page tabs (CGV + Politique de confidentialité) ── */
.legal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}
.legal-tab {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper-2);
}
.legal-tab-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ======================================================
   À PROPOS PAGE COMPONENTS
   ====================================================== */

/* Story section */
.abt-story {
  margin-top: 28px;
}
.abt-story h2 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 52px);
  line-height: 1.0;
  letter-spacing: -.035em;
  margin-bottom: 28px;
  max-width: 20ch;
}
.abt-story-body {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink-2);
}
.abt-story-body p { margin-bottom: 20px; }
.abt-story-body a { color: var(--accent-deep); border-bottom: 1px solid var(--accent); }
.abt-story-body strong { color: var(--ink); font-weight: 600; }

/* Open Science section */
.abt-openscience {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: start;
  margin-top: 28px;
}
.abt-os-quote h2 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 24px;
}
.abt-os-quote p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 18px;
  max-width: 68ch;
}
.abt-os-quote a { color: var(--accent-deep); border-bottom: 1px solid var(--accent); }
.abt-os-tags {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  padding-top: 8px;
}
.abt-os-tags .spool { white-space: nowrap; }

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.team-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  background: var(--paper-2);
  position: relative;
  transition: box-shadow .2s;
}
.team-card:hover { box-shadow: 0 6px 28px rgba(27, 25, 22, .08); }
.team-initial {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--disp);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.team-card h3 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.01em;
  margin-bottom: 4px;
}
.team-role {
  color: var(--accent-deep);
  margin-bottom: 14px;
}
.team-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .abt-openscience { grid-template-columns: 1fr; }
  .abt-os-tags { flex-direction: row; flex-wrap: wrap; }
  .team-grid { grid-template-columns: 1fr; }
}

/* ======================================================
   CONTACT PAGE COMPONENTS
   ====================================================== */

.contact-tips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.contact-tip {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  background: var(--paper-2);
}
.contact-tip-num {
  font-size: 11px;
  margin-bottom: 12px;
}
.contact-tip h3 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -.01em;
  margin-bottom: 12px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
}
.contact-tip p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}
.contact-tip a { color: var(--accent-deep); border-bottom: 1px solid var(--accent); }
.contact-tips-note {
  color: var(--muted);
  font-size: 11.5px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  max-width: 70ch;
}

.contact-form-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
}

/* ─── Contact Form ────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 36px 40px 40px;
}
.contact-form-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 32px;
}
.contact-form-section + .contact-form-section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.contact-form-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.contact-form-label {
  font-family: var(--body);
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1;
}
.contact-form-label em { color: var(--accent-deep); font-style: normal; }
.contact-form-input,
.contact-form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-2);
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.contact-form-input:focus,
.contact-form-textarea:focus {
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.contact-form-input::placeholder,
.contact-form-textarea::placeholder { color: var(--muted); opacity: .7; }
.contact-form-textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.65;
  padding-top: 13px;
  padding-bottom: 13px;
}
.contact-form-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.contact-form-pill { position: relative; }
.contact-form-pill input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.contact-form-pill-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  user-select: none;
}
.contact-form-pill-label:hover { border-color: var(--ink-2); color: var(--ink-2); }
.contact-form-pill input[type="checkbox"]:checked + .contact-form-pill-label {
  border-color: var(--accent-deep);
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.contact-form-file-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.contact-form-file-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-form-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .15s, color .15s;
}
.contact-form-file-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.contact-form-file-name {
  font-family: var(--body);
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-form-hint {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .05em;
  color: var(--muted);
}
.contact-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.contact-form-footer-note {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .06em;
  color: var(--muted);
}
.contact-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 56px 40px;
}
.contact-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent-deep);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.contact-success-title {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0;
}
.contact-success-text {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  max-width: 360px;
  line-height: 1.6;
}
@media (max-width: 640px) {
  .contact-form { padding: 24px 20px 28px; }
  .contact-form-row { grid-template-columns: 1fr; }
  .contact-success { padding: 40px 20px; }
  .contact-form-footer { flex-direction: column; align-items: stretch; }
  .contact-form-footer-note { text-align: center; }
}

.contact-address {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.contact-address-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px;
  background: var(--paper-2);
}
.contact-address-label {
  margin-bottom: 16px;
}
.contact-address-name {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.02em;
  margin-bottom: 8px;
  color: var(--ink);
}
.contact-address-card p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}
.contact-address-phone {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.contact-address-map {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-3);
}

@media (max-width: 768px) {
  .contact-tips { grid-template-columns: 1fr; }
  .contact-address { grid-template-columns: 1fr; }
}

/* ======================================================
   SHARED INNER PAGE HEADING
   ====================================================== */

.railsec-h2 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 52px);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 14px 0 42px;
}

/* ======================================================
   SOUVERAINETÉ PAGE - VS COMPARISON CARDS
   ====================================================== */

.sov-vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}
.sov-card {
  border-radius: 16px;
  padding: 36px;
  border: 1px solid var(--line);
}
.sov-card--dark {
  background: var(--paper-3);
}
.sov-card--accent {
  background: var(--paper-2);
  border-color: color-mix(in oklch, var(--accent-deep), transparent 50%);
}
.sov-card-label {
  margin-bottom: 14px;
}
.sov-card h3 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.02em;
  margin-bottom: 18px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
}
.sov-card p {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}
.sov-card--accent .sov-card h3 { border-top-color: var(--accent-deep); }
@media (max-width: 768px) { .sov-vs { grid-template-columns: 1fr; } }

/* ======================================================
   OPENFLEXURE - PRICING CARDS
   ====================================================== */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.price-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.price-card--featured {
  background: var(--paper);
  border-color: color-mix(in oklch, var(--accent-deep), transparent 40%);
  box-shadow: 0 4px 24px rgba(27, 25, 22, .08);
}
.price-tier {
  margin-bottom: 20px;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.price-val {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--ink);
}
.price-currency {
  font-family: var(--disp);
  font-weight: 500;
  font-size: 18px;
  color: var(--muted);
}
.price-ttc {
  color: var(--muted);
  margin-bottom: 20px;
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.price-features li {
  font-size: 14px;
  color: var(--ink-2);
  padding: 5px 0 5px 18px;
  position: relative;
  line-height: 1.5;
}
.price-features li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-deep);
  font-family: var(--mono);
  font-size: 12px;
}
.price-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}
.price-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }

/* ======================================================
   FAQ LIST
   ====================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.faq-item {
  padding: 28px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  transition: background .15s;
}
.faq-item:last-child { border-bottom: none; }
.faq-item:hover { background: var(--paper-3); }
.faq-item h3 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}
.faq-item h3::before {
  content: "Q";
  position: absolute;
  left: 0;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent-deep);
  top: 3px;
}
.faq-item p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  padding-left: 20px;
}

/* ======================================================
   INLINE STYLE NEUTRALISATION
   Pages with embedded Tailwind have inline style="color:..." etc.
   These rules override them inside .wp-content.
   ====================================================== */

.wp-content [style*="background-color"]:not(img):not(figure) {
  background-color: unset !important;
}
.wp-content [style*="color: #"]:not(a):not(button) {
  color: inherit !important;
}
.wp-content [style*="font-family:"]:not(pre):not(code) {
  font-family: inherit !important;
}

/* ======================================================
   PAGE MATÉRIAUX
   ====================================================== */

/* Hero dotted background variant */
.inner-hero--dots {
  background-image: radial-gradient(color-mix(in oklch, var(--ink), transparent 84%) 1.4px, transparent 1.6px);
  background-size: 22px 22px;
}
.hero-note {
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
}
.hero-note::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent-deep);
  vertical-align: middle;
  margin-right: 10px;
}

/* Tabs bar */
.mat-tabs-bar {
  position: sticky;
  top: 70px;
  z-index: 40;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.mat-tabs-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.mat-tabs-inner::-webkit-scrollbar { display: none; }
.mat-tab {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px 22px;
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.mat-tab:hover { color: var(--ink); }
.mat-tab.on { color: var(--accent-deep); border-color: var(--accent-deep); }

/* Materials zone */
.mat-zone { padding: 72px 0 96px; }
.mat-section { margin-bottom: 72px; }
.mat-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}
.mat-section-head h2 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -.02em;
}
.mat-section-head .mono-label { color: var(--muted); }

/* Grid */
.mat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) { .mat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .mat-grid { grid-template-columns: 1fr; } }

/* Material card */
.mat-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
  transition: border-color .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.mat-card:hover {
  border-color: color-mix(in oklch, var(--ink), transparent 30%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,25,22,.07);
}
.mat-card:hover .mat-name { color: var(--accent-deep); }

/* Heat bar */
.mat-heat {
  height: 5px;
  background: var(--heat-grad);
  flex-shrink: 0;
}

/* Card top */
.mat-top {
  padding: 22px 22px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.mat-name {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--ink);
  transition: color .2s;
}
.mat-full {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: 5px;
}
.mat-temp { text-align: right; flex-shrink: 0; }
.mat-temp .tv {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.mat-temp .tk { color: var(--muted); margin-top: 3px; }

/* Specs */
.mat-specs {
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.spec-row .sk {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec-row .sv {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
  letter-spacing: .04em;
}

/* Stars */
.stars { display: flex; gap: 3px; }
.star {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  flex-shrink: 0;
}
.star.on { background: var(--accent-deep); }

/* Tags */
.mat-tags {
  padding: 14px 22px 20px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.mtag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--paper-2);
}

/* Comparison table */
.mat-comparison {
  margin-top: 72px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
}
.mat-comp-head {
  padding: 24px 28px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.mat-comp-head h2 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.02em;
  margin-top: 8px;
}
.mat-comp-scroll { overflow-x: auto; }
.mat-table { width: 100%; border-collapse: collapse; }
.mat-table th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  white-space: nowrap;
}
.mat-table td {
  font-size: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  white-space: nowrap;
}
.mat-table tr:last-child td { border-bottom: none; }
.mat-table tr:hover td { background: var(--paper-2); }
.td-mat {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.td-cat {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
@media (max-width: 700px) { .mat-comparison { display: none; } }

/* ======================================================
   INNER PAGE REFINEMENTS
   ====================================================== */

/* Hero: faint coordinate grid in lower-right quadrant */
.inner-hero:not(.inner-hero--dots)::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(color-mix(in oklch, var(--ink), transparent 96%) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklch, var(--ink), transparent 96%) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(135deg, transparent 20%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.3) 100%);
  -webkit-mask-image: linear-gradient(135deg, transparent 20%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.3) 100%);
}

/* Rail dot: breathing glow */
@keyframes rail-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent-deep), transparent 76%); }
  55%       { box-shadow: 0 0 0 9px color-mix(in oklch, var(--accent-deep), transparent 90%); }
}
.inner-rail-dot { animation: rail-dot-pulse 3.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .inner-rail-dot { animation: none; } }

/* Hero border: slightly more presence */
.inner-hero-border { height: 2px; opacity: .72; }

/* Buttons: lift + accent shadow on hover */
.btn { transition: background .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s; }
.btn:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px color-mix(in oklch, var(--accent-deep), transparent 62%);
}
.btn.ghost:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 25, 22, .16);
}

/* Balanced line breaks on headings */
h2, h3, .inner-hero-title, .railsec-h2, .closer h2 { text-wrap: balance; }

/* Team cards: inset top accent on hover */
.team-card { transition: box-shadow .22s, transform .22s; }
.team-card:hover { box-shadow: 0 6px 28px rgba(27, 25, 22, .09), inset 0 2px 0 var(--accent-deep); transform: translateY(-2px); }

/* Contact tips: same treatment */
.contact-tip { transition: box-shadow .22s; }
.contact-tip:hover { box-shadow: 0 4px 20px rgba(27, 25, 22, .07), inset 0 2px 0 var(--accent-deep); }

/* FAQ items: left accent bar on hover */
.faq-item { transition: background .15s, box-shadow .15s; }
.faq-item:hover { background: var(--paper-3); box-shadow: inset 3px 0 0 var(--accent-deep); }

/* Price cards: lift on hover */
.price-card { transition: border-color .2s, transform .2s, box-shadow .2s; }
.price-card:hover {
  border-color: color-mix(in oklch, var(--accent-deep), transparent 35%);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(27, 25, 22, .10);
}

/* Closer: proper vertical rhythm + top border */
.closer { border-top: 1px solid var(--line); padding-bottom: 80px; }

/* Railsec left rail: fade from edges */
.railsec::before {
  background: linear-gradient(to bottom, transparent 0%, var(--accent-deep) 12%, var(--accent-deep) 82%, transparent 100%);
  opacity: .5;
}

/* Pillar top rule: slightly softer */
.pil h3 { border-top: 1.5px solid color-mix(in oklch, var(--ink), transparent 12%); }

/* Scroll reveal classes (set by JS) */
@media (prefers-reduced-motion: no-preference) {
  .railsec.will-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s cubic-bezier(.16, 1, .3, 1), transform .65s cubic-bezier(.16, 1, .3, 1);
  }
  .railsec.revealed { opacity: 1; transform: none; }
}

/* ======================================================
   PAGE DE RÉFÉRENCE — structure éditoriale
   Composants du Design System « Le Fil »
   ====================================================== */

/* Utility */
.g { color: var(--accent-deep); }
.btn.inv { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.inv:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--paper); }
.btn.lg { padding: 16px 32px; font-size: 16px; }

/* ── Fil d'Ariane ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { color: var(--line); }
.breadcrumb .current { color: var(--ink-2); }

/* ── Pastilles de catégorie et badges ── */
.cat-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  border: 1px solid color-mix(in oklch, var(--accent-deep), transparent 40%);
  border-radius: 999px;
  padding: 5px 12px;
  background: color-mix(in oklch, var(--accent), transparent 88%);
}
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 12px;
}
.badge.solid { background: var(--ink); color: var(--paper); }
.badge.outline { border: 1px solid var(--line); color: var(--muted); background: transparent; }

/* ── Extensions du page-hero ── */
.page-hero .page-pills { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.page-title .g { color: var(--accent-deep); }
.page-desc {
  font-size: 18px;
  color: var(--muted);
  max-width: 62ch;
  margin-top: 20px;
  line-height: 1.65;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  flex-wrap: wrap;
}
.article-meta .sep { color: var(--line); }
.article-meta .reading { color: var(--accent-deep); }

/* ── Image d'en-tête ── */
.hero-img {
  position: relative;
  overflow: hidden;
  display: block;
  max-height: 480px;
}
.hero-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}
.hero-img .strates {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(27,25,22,.04) 0 2px, transparent 2px 10px);
  pointer-events: none;
}
.hero-img figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 44px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(transparent, rgba(20,18,14,.6));
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #e8e4d2;
}

/* ── Wrapper section ── */
.section { padding: 80px 0; }

/* ── Grille contenu + sidebar ── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}
@media (max-width: 1024px) { .content-grid { grid-template-columns: 1fr 260px; gap: 40px; } }
@media (max-width: 800px)  { .content-grid { grid-template-columns: 1fr; gap: 48px; } }

/* ── Prose éditoriale ── */
.prose {
  font-size: 17px;
  line-height: 1.82;
  color: var(--ink-2);
}
.prose p { margin-bottom: 22px; max-width: 72ch; }
.prose h2 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 52px 0 18px;
  line-height: 1.1;
}
.prose h3 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 36px 0 14px;
}
.prose a { color: var(--accent-deep); border-bottom: 1px solid var(--accent); transition: color .15s; }
.prose a:hover { color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: italic; }
.prose ul, .prose ol { padding-left: 1.5em; margin-bottom: 22px; max-width: 72ch; }
.prose li { margin-bottom: 8px; line-height: 1.65; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }
.prose figure { margin: 32px 0; }
.prose figure img { border-radius: 12px; border: 1px solid var(--line); width: 100%; }
.prose figure figcaption {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}
.prose figure.render {
  background: var(--paper-2, #f5f1ea);
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 28px;
  text-align: center;
}
.prose figure.render img {
  border: none;
  border-radius: 0;
  width: auto;
  max-height: 220px;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}
.prose figure.render--split {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  text-align: left;
}
.prose figure.render--split img {
  flex: 0 0 300px;
  width: 300px;
  border: none;
  border-radius: 0;
  max-height: none;
}
.prose figure.render--split figcaption {
  flex: 1;
  margin-top: 0;
  text-align: left;
  font-size: 14px;
  line-height: 1.65;
}
@media (max-width: 640px) {
  .prose figure.render--split { flex-direction: column; }
  .prose figure.render--split img { flex: none; width: 100%; }
}
.prose.lettrine > p:first-of-type::first-letter {
  float: left;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 72px;
  line-height: .8;
  margin-right: 10px;
  margin-top: 6px;
  color: var(--ink);
  letter-spacing: -.03em;
}

/* ── Encadré d'information ── */
.callout {
  background: var(--paper-2);
  border-left: 3px solid var(--accent-deep);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 28px 0;
}
.callout-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 10px;
}
.callout p { font-size: 15px; color: var(--ink-2); line-height: 1.65; margin: 0; max-width: none; }
.callout p + p { margin-top: 10px; }
.callout strong { color: var(--ink); }
.callout a { color: var(--accent-deep); border-bottom: 1px solid var(--accent); }

/* ── Bloc de statistiques ── */
.stat-callout {
  display: flex;
  gap: 40px;
  padding: 28px 32px;
  background: var(--paper-2);
  border-radius: 12px;
  border: 1px solid var(--line);
  margin: 32px 0;
  flex-wrap: wrap;
}
.stat-callout .sv {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink);
}
.stat-callout .sv em { font-style: normal; color: var(--accent-deep); font-size: 20px; }
.stat-callout .sk {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-top: 6px;
  max-width: 14ch;
}

/* ── Citation ── */
.quote {
  border-left: 3px solid var(--accent-deep);
  background: var(--paper-2);
  padding: 22px 28px;
  border-radius: 0 12px 12px 0;
  margin: 32px 0;
  font-family: var(--disp);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: -.01em;
  color: var(--ink);
  font-style: italic;
}
.quote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}

/* ── Tableau ── */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  overflow-x: auto;
  margin: 28px 0;
}
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-wrap th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-2);
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table-wrap td { padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tr:hover td { background: var(--paper-2); }

/* ── Sidebar ── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 90px;
  z-index: 10;
  align-self: start;
}

/* ── Sommaire (TOC) ── */
.toc {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.toc-head {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.toc a {
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 5px 10px;
  border-radius: 6px;
  transition: .15s;
  line-height: 1.4;
  display: block;
}
.toc a:hover { background: var(--paper-3); color: var(--ink); }
.toc a.active { color: var(--accent-deep); background: color-mix(in oklch, var(--accent), transparent 88%); }
.toc a.sub { font-size: 12.5px; padding-left: 22px; color: var(--muted); }
.toc a.sub.active { color: var(--accent-deep); }
@media (max-width: 800px) { .sidebar { position: static; top: auto; } }

/* ── Carte ── */
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  padding: 24px;
  transition: box-shadow .2s, transform .2s;
}
.card.soft { background: var(--paper-2); }
.card.hover:hover { box-shadow: 0 6px 24px rgba(27,25,22,.09); transform: translateY(-2px); }
.card-head {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -.01em;
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.text-muted { font-size: 14px; color: var(--muted); line-height: 1.6; margin-top: 4px; }

/* ── Liste avec coches ── */
.check-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.check-mark {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.check-mark::after {
  content: '';
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--accent-deep);
  border-bottom: 2px solid var(--accent-deep);
  transform: rotate(45deg) translateY(-1px);
}

/* ── Navigation article (précédent / suivant) ── */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}
@media (max-width: 600px) { .article-nav { grid-template-columns: 1fr; } }
.anav-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: var(--paper-2);
  transition: border-color .15s, background .15s;
}
.anav-card:hover { border-color: var(--ink); background: var(--paper-3); }
.anav-dir {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.anav-title {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.35;
}

/* ── Tags ── */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  background: var(--paper-2);
  transition: .15s;
}
.tag:hover { border-color: var(--accent-deep); color: var(--accent-deep); }

/* ── Bande CTA sombre ── */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 48px);
  letter-spacing: -.025em;
  color: var(--paper);
  line-height: 1.05;
}
.cta-band p {
  font-size: 17px;
  color: color-mix(in oklch, var(--paper), transparent 22%);
  max-width: 52ch;
  margin: 18px auto 0;
  line-height: 1.6;
}
.cta-band .btn.inv { margin-top: 32px; }

/* Article footer (tags + nav) */
.article-footer {
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.article-footer-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}


/* ===== SCROLL ANCHOR OFFSET ===== */
/* Prevent sticky header from covering headings jumped to via TOC links */
article [id],
.prose h2[id],
.prose h3[id] {
  scroll-margin-top: 90px;
}
.admin-bar article [id],
.admin-bar .prose h2[id],
.admin-bar .prose h3[id] {
  scroll-margin-top: calc(32px + 90px);
}
@media screen and (max-width: 782px) {
  .admin-bar article [id],
  .admin-bar .prose h2[id],
  .admin-bar .prose h3[id] {
    scroll-margin-top: calc(46px + 90px);
  }
}

/* ===== WORDPRESS ADMIN BAR COMPENSATION ===== */
/* When logged in, WP sets html { margin-top: 32px } which shifts the document.
   Sticky elements with fixed top values must be offset to stay below the admin bar. */
.admin-bar > header { top: 32px; }
.admin-bar .mat-tabs-bar { top: calc(32px + 70px); }
.admin-bar .sidebar { top: calc(32px + 90px); }
@media screen and (max-width: 782px) {
  .admin-bar > header { top: 46px; }
  .admin-bar .mat-tabs-bar { top: calc(46px + 70px); }
  .admin-bar .sidebar { top: calc(46px + 90px); }
}
