/* ==========================================================================
   OPTIMIKE V2.5 — ATELIER ÉDITORIAL COGNITIF
   Design System + Home Styles
   Intensification contrôlée : texture, monogramme, atlas index, folios,
   marginalia, portes d'entrée, filets de repère.
   ========================================================================== */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-sans-400.woff2') format('woff2'), url('../fonts/dm-sans-400.ttf') format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-sans-500.woff2') format('woff2'), url('../fonts/dm-sans-500.ttf') format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/dm-sans-600.woff2') format('woff2'), url('../fonts/dm-sans-600.ttf') format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/dm-sans-700.woff2') format('woff2'), url('../fonts/dm-sans-700.ttf') format('truetype');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-400.woff2') format('woff2'), url('../fonts/jetbrains-mono-400.ttf') format('truetype');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-500.woff2') format('woff2'), url('../fonts/jetbrains-mono-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/newsreader-500.woff2') format('woff2'), url('../fonts/newsreader-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/newsreader-600.woff2') format('woff2'), url('../fonts/newsreader-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/newsreader-700.woff2') format('woff2'), url('../fonts/newsreader-700.ttf') format('truetype');
}


:root {
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'Geist Mono', SFMono-Regular, monospace;

  --bg-papier: #F7F5F0;
  --bg-papier-deep: #EFEDE8;
  --bg-papier-muted: #E8E4DE;
  --text-encre: #1A1A1A;
  --text-muted: #6B6560;
  --text-faint: #6F6964 !important;
  --border-lin: #E0DCD4;
  --border-lin-strong: #D0CCC4;

  --bg-encre: #131316;
  --bg-encre-surface: #1C1C20;
  --bg-encre-panel: #242428;
  --text-encre-light: #E8E4DF;
  --text-encre-muted: #8A8580;
  --text-encre-faint: #8A8580 !important;
  --border-encre: #2E2E34;

  --accent-cuivre: #B87333;
  --accent-cuivre-deep: #985C26 !important;
  --accent-cuivre-glow: #D4A574;
  --accent-vert: #4A7C59;
  --accent-vert-glow: #6B9E7A;
  --accent-bleu: #2E5A7C;
  --accent-bleu-glow: #6B9EBF;

  --container-max: 1160px;
  --container-narrow: 720px;
  --gap-xs: 0.5rem;
  --gap-sm: 1rem;
  --gap-md: 2rem;
  --gap-lg: 4rem;
  --gap-xl: 6rem;
  --gap-xxl: 8rem;
  --editorial-margin: 3rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans); font-size: 16px; line-height: 1.65;
  color: var(--text-encre); background-color: var(--bg-papier);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Grain de papier intensifié */
body.optm-front::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 200px 200px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif); font-weight: 500; line-height: 1.15;
  letter-spacing: -0.02em; color: var(--text-encre);
}
h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-family: var(--font-sans); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
h4 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   FOLIOS & REPÈRES ÉDITORIAUX
   -------------------------------------------------------------------------- */
.opx-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; position: relative; }
@media (min-width: 640px) { .opx-inner { padding: 0 2rem; } }
@media (min-width: 1024px) { .opx-inner { padding: 0 2.5rem; } }

.opx-inner-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-lg { max-width: 800px; }
.max-w-md { max-width: 600px; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.bg-muted { background-color: var(--bg-papier-deep); }
.bg-papier { background-color: var(--bg-papier); }
.bg-encre { background-color: var(--bg-encre); }

/* Numéro de section */
.opx-section-num {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint);
  margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem;
}
.opx-section-num::before {
  content: ''; display: inline-block; width: 4px; height: 4px;
  background: var(--accent-cuivre); transform: rotate(45deg);
}

/* Folio (numéro de page) */
.opx-folio {
  position: absolute;
  right: 1.5rem;
  top: var(--gap-lg);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}
@media (min-width: 1024px) { .opx-folio { right: 2.5rem; } }

/* Filet de repère horizontal */
.opx-guide-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--border-lin);
  opacity: 0.4;
}
.opx-guide-line.top { top: 0; }
.opx-guide-line.bottom { bottom: 0; }

/* Marginalia : note de marge */
.opx-marginalia {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.opx-kicker {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 1rem;
}

.opx-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem); line-height: 1.6; color: var(--text-muted); max-width: 560px;
}

.label-mono {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
}

.text-accent-bleu { color: var(--accent-bleu); }
.text-accent-vert { color: var(--accent-vert); }
.text-accent-cuivre { color: var(--accent-cuivre); }
.text-faint { color: var(--text-faint); }
.text-encre-muted { color: var(--text-encre-muted); }
.text-encre-faint { color: var(--text-encre-faint); }

.bridge-formation-tag {
  color: var(--accent-cuivre-glow);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.opx-rule {
  display: flex; align-items: center; gap: 1rem; margin: var(--gap-lg) 0;
}
.opx-rule::before, .opx-rule::after {
  content: ''; flex: 1; height: 1px; background: var(--border-lin);
}
.opx-rule span {
  font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-faint); letter-spacing: 0.1em;
}

.opx-editorial-marker {
  position: relative; padding-left: var(--editorial-margin);
}
.opx-editorial-marker::before {
  content: ''; position: absolute; left: 0; top: 0.25rem; bottom: 0.25rem;
  width: 1px; background: var(--border-lin-strong);
}
@media (max-width: 767px) {
  .opx-editorial-marker { padding-left: 0; }
  .opx-editorial-marker::before { display: none; }
}

.opx-actions { display: flex; gap: var(--gap-sm); flex-wrap: wrap; }
.opx-button, .opx-button-secondary {
  font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem;
  padding: 0.9rem 1.75rem; min-height: 48px; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  text-align: center; width: 100%; border-radius: 2px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  cursor: pointer; border: none; position: relative; overflow: hidden;
}
.opx-button::after, .opx-button-secondary::after {
  content: ''; position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.2s ease;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
}
.opx-button:hover::after, .opx-button-secondary:hover::after { opacity: 1; }
@media (min-width: 480px) { .opx-button, .opx-button-secondary { width: auto; } }

.opx-button { background-color: var(--text-encre); color: var(--bg-papier); }
.opx-button:hover { background-color: #2A2A2A; transform: translateY(-1px); }

.opx-button-secondary { background-color: transparent; color: var(--text-encre); border: 1px solid var(--border-lin-strong); }
.opx-button-secondary:hover { background-color: var(--bg-papier-muted); border-color: var(--text-muted); }

.opx-button-cuivre { background-color: var(--accent-cuivre); color: #fff; }
.opx-button-cuivre:hover { background-color: var(--accent-cuivre-deep); }

.opx-button-encre { background-color: var(--bg-encre); color: var(--text-encre-light); border: 1px solid var(--border-encre); }
.opx-button-encre:hover { background-color: var(--bg-encre-surface); }

.opx-proof-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--gap-md);
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-lin);
  background: var(--bg-papier-deep);
  border-radius: 2px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.opx-proof-strip .proof-metric strong { color: var(--text-encre); }
.opx-proof-strip .proof-sep {
  width: 1px;
  height: 0.9rem;
  background: var(--border-lin-strong);
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.site-header {
  padding: 1.25rem 0; border-bottom: 1px solid var(--border-lin);
  position: sticky; top: 0;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 100;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }

.logo {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700;
  letter-spacing: -0.03em; color: var(--text-encre);
}
.logo span { color: var(--accent-cuivre); }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a {
  font-size: 0.875rem; font-weight: 500; color: var(--text-muted);
  transition: color 0.2s ease; position: relative;
}
.site-nav a:hover { color: var(--text-encre); }
.site-nav a.active { color: var(--text-encre); }
.site-nav a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent-cuivre);
}
@media (max-width: 639px) {
  .site-nav { gap: 1rem; }
  .site-nav a { font-size: 0.8rem; }
}

/* --------------------------------------------------------------------------
   HERO — Atlas index renforcé
   -------------------------------------------------------------------------- */
.opx-hero { padding: var(--gap-xl) 0; position: relative; }
.opx-hero-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--gap-lg); align-items: start;
}
@media (min-width: 1024px) {
  .opx-hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: var(--gap-xl); }
}

.hero-content h1 { margin-bottom: 1.25rem; max-width: 540px; }
.hero-content .opx-lead { margin-bottom: 1.75rem; max-width: 480px; }

/* Note éditoriale */
.hero-editor-note {
  display: grid;
  gap: 0.35rem;
  margin-bottom: var(--gap-md);
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0)) var(--bg-papier-deep);
  border: 1px solid var(--border-lin);
  border-radius: 2px;
  max-width: 34rem;
}
.hero-editor-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cuivre-deep);
}
.hero-editor-text { font-size: 0.8rem; line-height: 1.4; color: var(--text-muted); }
.hero-editor-text strong { color: var(--text-encre); font-weight: 600; }

/* Hero Atlas — Fiches index avec coins coupés */
.opx-hero-visual {
  position: relative; border: 1px solid var(--border-lin-strong);
  background: var(--bg-papier-deep); padding: 1.5rem; border-radius: 2px;
}
.hero-atlas-head {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.hero-atlas-head p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  max-width: 28rem;
}
.hero-atlas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }

.hero-index-card {
  padding: 1rem; background: var(--bg-papier);
  border: 1px solid var(--border-lin-strong);
  transition: border-color 160ms var(--opx-ease), transform 160ms var(--opx-ease), background-color 160ms var(--opx-ease);
  position: relative;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.hero-index-card:hover {
  border-color: var(--accent-cuivre);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.hero-index-card .card-coords {
  font-family: var(--font-mono); font-size: 0.55rem; color: var(--text-faint);
  letter-spacing: 0.1em; margin-bottom: 0.5rem; display: flex; justify-content: space-between;
}
.hero-index-card .card-title {
  font-family: var(--font-sans); font-size: 0.85rem; font-weight: 600;
  color: var(--text-encre); margin-bottom: 0.4rem;
}
.hero-index-card .card-excerpt-lines {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 0.5rem;
}
.hero-index-card .card-excerpt-lines span {
  height: 3px; background: var(--border-lin); border-radius: 1px;
}
.hero-index-card .card-excerpt-lines span:nth-child(1) { width: 85%; }
.hero-index-card .card-excerpt-lines span:nth-child(2) { width: 60%; }
.hero-index-card .card-stamp {
  font-family: var(--font-mono); font-size: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  display: inline-block; padding: 2px 6px;
  border: 1px solid var(--border-lin);
  color: var(--text-faint);
}
.hero-index-card .card-stamp.is-bleu { color: var(--accent-bleu); border-color: var(--accent-bleu); }
.hero-index-card .card-stamp.is-vert { color: var(--accent-vert); border-color: var(--accent-vert); }
.hero-index-card .card-stamp.is-cuivre { color: var(--accent-cuivre); border-color: var(--accent-cuivre); }

.hero-atlas-footer {
  margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--border-lin);
  font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-faint);
  display: flex; justify-content: space-between; align-items: center;
}
.hero-atlas-footer .atlas-live {
  display: flex; align-items: center; gap: 0.4rem;
}
.hero-atlas-footer .atlas-live::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-vert);
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@media (min-width: 640px) { .hero-atlas-grid { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------------------------
   AUTORITÉ
   -------------------------------------------------------------------------- */
.opx-authority {
  padding: var(--gap-md) 0; border-top: 1px solid var(--border-lin); border-bottom: 1px solid var(--border-lin);
  position: relative;
}
.opx-authority-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--gap-md);
}
@media (min-width: 640px) {
  .opx-authority-grid { grid-template-columns: 1.35fr repeat(3, 1fr); gap: var(--gap-lg); }
}
.authority-intro {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  max-width: 22rem;
}
.authority-intro p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.authority-item { display: flex; flex-direction: column; gap: 0.35rem; }
.authority-number {
  font-family: var(--font-serif); font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600; color: var(--text-encre); letter-spacing: -0.02em;
}
.authority-label {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.4;
}
.authority-item.is-primary .authority-number { color: var(--accent-cuivre); }

/* --------------------------------------------------------------------------
   SECTIONS
   -------------------------------------------------------------------------- */
.opx-section { padding: var(--gap-xl) 0; position: relative; }
@media (min-width: 1024px) { .opx-section { padding: var(--gap-xxl) 0; } }

.section-header { margin-bottom: var(--gap-lg); }
.section-header h2 { margin-bottom: 0.75rem; max-width: 600px; }
.section-header .opx-lead { max-width: 560px; }

/* --------------------------------------------------------------------------
   PORTES D'ENTRÉE — Section média vivant
   -------------------------------------------------------------------------- */
.opx-reading-section { padding: var(--gap-xl) 0; position: relative; }
@media (min-width: 1024px) { .opx-reading-section { padding: var(--gap-xxl) 0; } }

.opx-reading-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--gap-sm);
}
@media (min-width: 640px) { .opx-reading-grid { grid-template-columns: repeat(3, 1fr); } }

.reading-card {
  display: flex; flex-direction: column;
  padding: 1.5rem;
  background: var(--bg-papier); border: 1px solid var(--border-lin);
  border-radius: 2px; text-decoration: none; color: var(--text-encre);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  position: relative;
}
.reading-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: transparent; transition: background 0.25s ease;
}
.reading-card:hover {
  border-color: var(--border-lin-strong);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04); transform: translateY(-1px);
}
.reading-card:hover::before { background: var(--accent-cuivre); }

.reading-card .reading-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.75rem;
}
.reading-card .reading-tag {
  font-family: var(--font-mono); font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.reading-card .reading-date {
  font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-faint);
}
.reading-card h3 {
  font-family: var(--font-serif); font-size: 1.15rem; font-weight: 500;
  margin-bottom: 0.5rem; letter-spacing: -0.01em; line-height: 1.25;
}
.reading-card p {
  font-size: 0.88rem; color: var(--text-muted); line-height: 1.55;
  margin: 0 0 1rem 0; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.reading-card .reading-link {
  margin-top: auto;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem;
  transition: color 0.2s ease;
}
.reading-card:hover .reading-link { color: var(--accent-cuivre); }

/* --------------------------------------------------------------------------
   TERRITOIRE ÉDITORIAL
   -------------------------------------------------------------------------- */
.opx-editorial-grid { display: grid; grid-template-columns: 1fr; gap: var(--gap-sm); }
@media (min-width: 640px) { .opx-editorial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .opx-editorial-grid {
    grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(140px, auto);
  }
  .editorial-card.is-large { grid-column: span 6; grid-row: span 2; }
  .editorial-card.is-medium { grid-column: span 3; }
  .editorial-card.is-small { grid-column: span 3; }
  .editorial-card.is-atlas-link { grid-column: span 6; }
}

.editorial-card {
  display: flex; flex-direction: column; padding: 1.5rem;
  background: var(--bg-papier); border: 1px solid var(--border-lin);
  border-radius: 2px; text-decoration: none; color: var(--text-encre);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  position: relative;
}
.editorial-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: transparent; transition: background 0.25s ease;
}
.editorial-card:hover {
  border-color: var(--border-lin-strong);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04); transform: translateY(-1px);
}
.editorial-card:hover::before { background: var(--accent-cuivre); }

.editorial-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.editorial-card h3 {
  font-family: var(--font-serif); font-size: 1.35rem; font-weight: 500;
  margin-bottom: 0.5rem; letter-spacing: -0.01em;
}
.editorial-card.is-large h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.editorial-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; margin: 0; }

.editorial-card.is-large {
  background: var(--bg-papier-deep); border: none;
}
.editorial-card.is-large:hover::before { background: transparent; }
.editorial-card.is-large:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }

.editorial-card.is-subtle {
  justify-content: center; align-items: center; background: transparent; border-style: dashed;
}
.editorial-card.is-subtle h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 500; color: var(--text-muted); margin: 0 0 0.4rem; }
.editorial-card.is-subtle p {
  font-size: 0.88rem;
  color: var(--text-faint);
  max-width: 22rem;
}
.editorial-card.is-subtle:hover h3,
.editorial-card.is-subtle:hover p { color: var(--text-encre); }

/* --------------------------------------------------------------------------
   PORTRAIT ÉDITEUR — Carte éditoriale
   -------------------------------------------------------------------------- */
.opx-editor-section {
  padding: var(--gap-xl) 0; background: var(--bg-papier-deep);
  border-top: 1px solid var(--border-lin); border-bottom: 1px solid var(--border-lin);
  position: relative;
}
.opx-editor-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--gap-lg); align-items: center;
}
@media (min-width: 768px) {
  .opx-editor-grid { grid-template-columns: 160px 1fr; gap: var(--gap-xl); }
}
@media (min-width: 1024px) {
  .opx-editor-grid { grid-template-columns: 200px 1fr; }
}

.editor-card {
  display: grid;
  gap: 0.65rem;
  padding: 1.4rem;
  border: 1px solid var(--border-lin-strong);
  background: var(--bg-papier);
  max-width: 18rem;
}
.editor-card-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.editor-card-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--text-encre);
}
.editor-card-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-muted);
}
@media (max-width: 767px) {
  .editor-card { max-width: none; }
}

.editor-bio h3 {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; margin-bottom: 0.5rem;
}
.editor-bio .editor-role {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-cuivre);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem;
}
.editor-bio p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1rem; }
.editor-bio .editor-proof {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-faint);
  padding-top: 0.75rem; border-top: 1px solid var(--border-lin);
}

/* --------------------------------------------------------------------------
   DIAGNOSTIC
   -------------------------------------------------------------------------- */
.opx-diagnostic { padding: var(--gap-xl) 0; position: relative; }
.opx-bento-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--border-lin); border: 1px solid var(--border-lin); margin-top: var(--gap-md);
}
@media (min-width: 640px) { .opx-bento-grid { grid-template-columns: repeat(3, 1fr); } }

.opx-bento-card {
  background: var(--bg-papier); padding: 2rem 1.5rem; transition: background-color 0.2s ease;
}
.opx-bento-card:hover { background: var(--bg-papier-deep); }
.opx-bento-card h3 {
  font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600;
  margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem;
}
.opx-bento-card h3::before {
  content: ''; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent-cuivre); flex-shrink: 0;
}
.opx-bento-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; margin: 0; }

/* --------------------------------------------------------------------------
   ÉTABLI / SOLUTION ÉLYSIA
   -------------------------------------------------------------------------- */
.mode-encre { background-color: var(--bg-encre); color: var(--text-encre-light); color-scheme: dark; }
.opx-workbench-section { padding: var(--gap-xl) 0; position: relative; }
.opx-workbench-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--gap-lg); align-items: center;
}
@media (min-width: 1024px) {
  .opx-workbench-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--gap-xl); }
}

.opx-workbench-copy .opx-kicker { color: var(--accent-cuivre-glow); margin-bottom: 0.75rem; }
.opx-workbench-copy h2 { color: var(--text-encre-light); margin-bottom: 1rem; }
.opx-workbench-copy .opx-lead { color: var(--text-encre-muted); }
.opx-workbench-copy p { color: var(--text-encre-muted); }

.opx-proof-stage {
  border: 1px solid var(--border-encre); border-radius: 4px;
  background: var(--bg-encre-surface);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5); overflow: hidden;
  display: flex; flex-direction: column;
}
.opx-proof-toolbar {
  background: var(--bg-encre); border-bottom: 1px solid var(--border-encre);
  padding: 0.6rem 1rem; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 0.65rem;
}
@media (min-width: 640px) {
  .opx-proof-toolbar { font-size: 0.75rem; padding: 0.75rem 1rem; }
}
.opx-proof-title { color: var(--text-encre-muted); }
.opx-proof-status { color: var(--text-encre-muted); }
.opx-proof-stage .opx-system-body p { color: var(--text-encre-muted); }

/* M113 — Keep the workbench status readable even when legacy custom CSS loads later. */
.opx-workbench-section .opx-proof-status { color: var(--text-encre-muted); }

.opx-doclab.is-compact { display: flex; flex-direction: column; }
@media (min-width: 768px) { .opx-doclab.is-compact { flex-direction: row; } }

.opx-doclab-main {
  border-bottom: 1px solid var(--border-encre);
  display: flex; flex-direction: column; flex-grow: 1;
}
@media (min-width: 768px) {
  .opx-doclab-main { border-bottom: none; border-right: 1px solid var(--border-encre); }
}

.opx-doclab-note { padding: 1rem; position: relative; }
@media (min-width: 640px) { .opx-doclab-note { padding: 1.5rem; } }

.opx-node-connector {
  height: 12px; width: 2px; background: var(--border-encre); margin-left: 1.5rem;
}
@media (min-width: 640px) { .opx-node-connector { margin-left: 2rem; height: 16px; } }

.opx-doclab-note.is-canon { background: rgba(255,255,255,0.02); }
.opx-doclab-note.is-canon-active { background: rgba(184, 115, 51, 0.06); }
.opx-doclab-note-header { display: flex; justify-content: space-between; margin-bottom: 0.75rem; }

.accent-blue { color: var(--accent-bleu-glow); }
.accent-green { color: var(--accent-vert-glow); }
.accent-cuivre { color: var(--accent-cuivre-glow); }

.note-content h3 {
  font-family: var(--font-sans); font-size: 1rem; font-weight: 500;
  color: var(--text-encre-light); margin-bottom: 0.5rem;
}
.note-content p {
  font-size: 0.85rem; color: var(--text-encre-muted); line-height: 1.5; margin-bottom: 0;
}
.note-content .muted {
  font-size: 0.75rem; margin-top: 0.5rem; opacity: 0.7; font-family: var(--font-mono);
}
.opx-doclab-highlight { color: var(--text-encre-light); font-weight: 500; }

.opx-doclab-panel { padding: 1rem; background: var(--bg-encre); }
@media (min-width: 640px) { .opx-doclab-panel { padding: 1.5rem; min-width: 240px; } }

.panel-grid-mobile {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start;
}
@media (min-width: 768px) { .panel-grid-mobile { grid-template-columns: 1fr; } }

.meta-block { display: flex; flex-direction: column; }
.meta-label {
  font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-encre-muted);
  margin-bottom: 0.2rem; text-transform: uppercase;
}
.meta-val { font-size: 0.85rem; color: var(--text-encre-light); line-height: 1.3; }
.panel-grid-mobile.outputs-only { grid-template-columns: 1fr; }

.opx-doclab-output {
  grid-column: span 2; padding: 0.75rem;
  border-left: 2px solid var(--accent-cuivre-glow);
  background: rgba(212, 165, 116, 0.05);
}
@media (min-width: 768px) { .opx-doclab-output { grid-column: span 1; margin-top: 1rem; } }

.opx-doclab-output strong {
  display: block; font-family: var(--font-sans); color: var(--text-encre-light);
  font-size: 0.9rem; margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   CTA FINAL
   -------------------------------------------------------------------------- */
.opx-cta-section { padding: var(--gap-xl) 0; text-align: center; position: relative; }
.opx-cta-section h2 { margin-bottom: 0.75rem; }
.opx-cta-section .opx-lead { margin: 0 auto var(--gap-md); }
.opx-cta-section .opx-actions { justify-content: center; }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  padding: var(--gap-lg) 0 var(--gap-md); border-top: 1px solid var(--border-lin);
  background: var(--bg-papier-deep);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-col-brand .footer-brand {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700;
  margin-bottom: 0.75rem;
}
.footer-col-brand .footer-brand span { color: var(--accent-cuivre); }
.footer-col-brand .footer-tagline {
  font-size: 0.9rem; color: var(--text-muted); max-width: 320px; line-height: 1.55;
  margin-bottom: 1.25rem;
}
.footer-col-brand .footer-editor {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-faint);
}
.footer-col-brand .footer-editor strong {
  color: var(--text-muted); font-weight: 600;
}

.footer-col h4 {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-faint); margin-bottom: 1rem;
}
.footer-col nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col nav a {
  font-size: 0.9rem; color: var(--text-muted); transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-col nav a:hover { color: var(--text-encre); padding-left: 0.25rem; }

.footer-bottom {
  margin-top: var(--gap-lg); padding-top: var(--gap-md); border-top: 1px solid var(--border-lin);
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-faint);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}
/* --------------------------------------------------------------------------
   ACCESSIBILITÉ & UTILITAIRES
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent-cuivre); outline-offset: 2px;
}
.opx-button:focus-visible, .opx-button-secondary:focus-visible { outline-offset: 3px; }

.skip-link {
  position: absolute; top: -40px; left: 0; background: var(--text-encre);
  color: var(--bg-papier); padding: 8px; text-decoration: none;
  z-index: 1000; font-size: 0.8rem;
}
.skip-link:focus { top: 0; }

@media (max-width: 639px) {
  .opx-hero, .opx-section, .opx-workbench-section, .opx-cta-section, .opx-reading-section, .opx-editor-section, .opx-diagnostic { padding: var(--gap-lg) 0; }
}


.opx-brand-cluster { display:flex; align-items:center; flex-shrink:0; }

/* --------------------------------------------------------------------------
   HEADER — Réductible au scroll
   -------------------------------------------------------------------------- */
.opx-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-lin);
  transition: border-color 0.3s ease;
}
.opx-header.is-scrolled {
  border-color: var(--border-lin-strong);
}
body.opx-menu-open .opx-header {
  z-index: 120;
  background: var(--bg-papier);
}

.opx-header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  transition: height 0.3s ease;
}
@media (min-width: 640px) {
  .opx-header-inner { padding: 0 2rem; }
}
@media (min-width: 1024px) {
  .opx-header-inner { padding: 0 2.5rem; }
}
.opx-header.is-scrolled .opx-header-inner {
  height: 56px;
}

/* Logo */
.opx-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-encre);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: font-size 0.3s ease;
  flex-shrink: 0;
}
.opx-header.is-scrolled .opx-logo {
  font-size: 1.3rem;
}
.opx-logo span { color: var(--accent-cuivre); }
.opx-logo:hover { opacity: 0.85; }

/* Section indicator (scroll) */
.opx-section-indicator {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  margin-left: 1.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border-lin);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
@media (min-width: 1024px) {
  .opx-section-indicator { display: flex; }
}
.opx-section-indicator.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.opx-section-indicator::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--accent-cuivre);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   NAV DESKTOP
   -------------------------------------------------------------------------- */
.opx-nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
@media (min-width: 1024px) {
  .opx-nav-desktop { display: flex; }
}

.opx-nav-item { position: relative; }

.opx-nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 2px;
  transition: color 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  position: relative;
}
.opx-nav-link:hover,
.opx-nav-item.is-open .opx-nav-link {
  color: var(--text-encre);
  background: var(--bg-papier-deep);
}

/* Active indicator */
.opx-nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--accent-cuivre);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.opx-nav-item.is-active .opx-nav-link {
  color: var(--text-encre);
}
.opx-nav-item.is-active .opx-nav-link::after {
  transform: scaleX(1);
}

.opx-nav-link-arrow {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  opacity: 0.5;
  display: inline-block;
}
.opx-nav-item.is-open .opx-nav-link-arrow {
  transform: rotate(-135deg);
  margin-top: 3px;
}

/* Dropdown panel */
.opx-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 260px;
  max-width: 340px;
  background: #fff;
  border: 1px solid var(--border-lin);
  border-top: 2px solid var(--accent-cuivre);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}
.opx-nav-item.is-open .opx-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Stagger animation for dropdown items */
.opx-dropdown-item,
.opx-dropdown-divider,
.opx-dropdown-footer {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.opx-nav-item.is-open .opx-dropdown-item:nth-child(1) { transition-delay: 30ms; }
.opx-nav-item.is-open .opx-dropdown-item:nth-child(2) { transition-delay: 60ms; }
.opx-nav-item.is-open .opx-dropdown-item:nth-child(3) { transition-delay: 90ms; }
.opx-nav-item.is-open .opx-dropdown-item:nth-child(4) { transition-delay: 120ms; }
.opx-nav-item.is-open .opx-dropdown-item:nth-child(5) { transition-delay: 150ms; }
.opx-nav-item.is-open .opx-dropdown-divider { transition-delay: 170ms; }
.opx-nav-item.is-open .opx-dropdown-footer { transition-delay: 190ms; }

.opx-nav-item.is-open .opx-dropdown-item,
.opx-nav-item.is-open .opx-dropdown-divider,
.opx-nav-item.is-open .opx-dropdown-footer {
  opacity: 1;
  transform: translateY(0);
}

.opx-dropdown-item {
  display: block;
  padding: 0.65rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.opx-dropdown-item:hover {
  color: var(--text-encre);
  background: var(--bg-papier-deep);
}
.opx-dropdown-item strong {
  display: block;
  color: var(--text-encre);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}
.opx-dropdown-item .item-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}

.opx-dropdown-divider {
  height: 1px;
  background: var(--border-lin);
  margin: 0.5rem 1.5rem;
}

.opx-dropdown-footer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.opx-dropdown-footer:hover { color: var(--accent-cuivre); }
.opx-dropdown-item.is-current,
.opx-dropdown-footer.is-current {
  color: var(--accent-cuivre);
}

/* --------------------------------------------------------------------------
   CTAs
   -------------------------------------------------------------------------- */
.opx-cta-group {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1.5rem;
}
@media (min-width: 1024px) {
  .opx-cta-group { display: flex; }
}

.opx-btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 2px;
  transition: background-color 160ms var(--opx-ease), border-color 160ms var(--opx-ease), color 160ms var(--opx-ease), transform 160ms var(--opx-ease), box-shadow 160ms var(--opx-ease);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.opx-btn-primary {
  background: var(--text-encre);
  color: var(--bg-papier);
}
.opx-btn-primary:hover {
  background: #2A2A2A;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.opx-btn-secondary {
  background: rgba(184, 115, 51, 0.08);
  color: var(--accent-cuivre-deep);
  border: 1px solid rgba(184, 115, 51, 0.25);
}
.opx-btn-secondary:hover {
  background: rgba(184, 115, 51, 0.14);
  border-color: rgba(184, 115, 51, 0.4);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   MOBILE TOGGLE
   -------------------------------------------------------------------------- */
.opx-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 110;
}
body.opx-menu-open .opx-menu-toggle {
  z-index: 130;
}
@media (min-width: 1024px) {
  .opx-menu-toggle { display: none; }
}

.opx-menu-toggle span,
.opx-menu-toggle span::before,
.opx-menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-encre);
  transition: transform 260ms var(--opx-ease), opacity 260ms var(--opx-ease), top 260ms var(--opx-ease);
}
.opx-menu-toggle span {
  position: relative;
}
.opx-menu-toggle span::before,
.opx-menu-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}
.opx-menu-toggle span::before { top: -6px; }
.opx-menu-toggle span::after { top: 6px; }

.opx-menu-toggle.is-active span {
  background: transparent;
}
.opx-menu-toggle.is-active span::before {
  top: 0;
  transform: rotate(45deg);
}
.opx-menu-toggle.is-active span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   TABLETTE (768-1023px) — Nav sans CTAs
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .opx-nav-desktop { display: flex; margin-left: auto; }
  .opx-cta-group { display: none; }
  .opx-menu-toggle { display: none; }
  .opx-nav-mobile { display: none; }
  .opx-section-indicator { display: none; }
}

/* --------------------------------------------------------------------------
   DROPDOWN — Max-height pour grands menus
   -------------------------------------------------------------------------- */
.opx-dropdown {
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

/* --------------------------------------------------------------------------
   REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .opx-header,
  .opx-header-inner,
  .opx-logo,
  .opx-section-indicator,
  .opx-nav-link,
  .opx-nav-link::after,
  .opx-nav-link-arrow,
  .opx-dropdown,
  .opx-dropdown-item,
  .opx-dropdown-divider,
  .opx-dropdown-footer,
  .opx-btn,
  .opx-menu-toggle span,
  .opx-menu-toggle span::before,
  .opx-menu-toggle span::after,
  .opx-nav-mobile,
  .opx-mobile-section,
  .opx-mobile-link,
  .opx-mobile-cta {
    transition: none !important;
    animation: none !important;
  }
  .opx-nav-mobile {
    transform: none;
    opacity: 0;
    visibility: hidden;
  }
  .opx-nav-mobile.is-open {
    opacity: 1;
    visibility: visible;
  }
}

/* --------------------------------------------------------------------------
   MOBILE OVERLAY — Stagger animation
   -------------------------------------------------------------------------- */
.opx-nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--bg-papier);
  z-index: 105;
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.opx-nav-mobile.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
@media (min-width: 1024px) {
  .opx-nav-mobile { display: none; }
}

.opx-mobile-section {
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.opx-nav-mobile.is-open .opx-mobile-section:nth-child(1) { transition-delay: 100ms; }
.opx-nav-mobile.is-open .opx-mobile-section:nth-child(2) { transition-delay: 180ms; }
.opx-nav-mobile.is-open .opx-mobile-section:nth-child(3) { transition-delay: 260ms; }
.opx-nav-mobile.is-open .opx-mobile-section {
  opacity: 1;
  transform: translateX(0);
}

.opx-mobile-heading {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-lin);
}

.opx-mobile-link {
  display: block;
  padding: 0.65rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-encre);
  border-bottom: 1px solid var(--border-lin);
  transition: color 0.15s ease, padding-left 0.2s ease;
}
.opx-mobile-link:hover {
  color: var(--accent-cuivre);
  padding-left: 0.5rem;
}

.opx-mobile-link .link-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-faint);
  margin-top: 0.2rem;
  font-weight: 400;
}

.opx-mobile-cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transition-delay: 340ms;
}
.opx-nav-mobile.is-open .opx-mobile-cta {
  opacity: 1;
  transform: translateY(0);
}

.opx-mobile-cta .opx-btn {
  width: 100%;
  font-size: 0.95rem;
  padding: 0.9rem;
  min-height: 48px;
}

/* --------------------------------------------------------------------------
   FOCUS STATES (Accessibility)
   -------------------------------------------------------------------------- */
.opx-nav-link:focus-visible,
.opx-menu-toggle:focus-visible,
.opx-btn:focus-visible {
  outline: 2px solid var(--accent-cuivre);
  outline-offset: 2px;
}


/* ==========================================================================
   OPTIMIKE V2.4 — FORMATION ÉLYSIA OS (Surcharges)
   Intensification : carte de chantier, avant/après note, numéros CSS pur.
   ========================================================================== */

/* --------------------------------------------------------------------------
   SYSTEM CARD (Hero formation)
   -------------------------------------------------------------------------- */
.opx-system-card {
  border: 1px solid var(--border-encre); border-radius: 4px;
  background: var(--bg-encre); box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  overflow: hidden; width: 100%;
}
@media (min-width: 1024px) { .opx-system-card { box-shadow: 0 15px 30px rgba(0,0,0,0.4); } }

.opx-window-header {
  background: var(--bg-encre-surface); border-bottom: 1px solid var(--border-encre);
  padding: 0.5rem 1rem; display: flex; align-items: center; gap: 0.5rem;
}
.opx-window-header .dot { width: 10px; height: 10px; border-radius: 50%; background: #444; }
.opx-window-header .dot:nth-child(1) { background: #FF5F56; }
.opx-window-header .dot:nth-child(2) { background: #FFBD2E; }
.opx-window-header .dot:nth-child(3) { background: #27C93F; }
.window-title { margin-left: 1rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-encre-muted); }

.opx-system-body { padding: 1.5rem; }
@media (min-width: 640px) { .opx-system-body { padding: 2rem; } }

.opx-frontmatter {
  margin-top: 1.5rem; background: rgba(255,255,255,0.03);
  border-left: 2px solid var(--accent-cuivre-glow); padding: 1rem;
  font-family: var(--font-mono); font-size: 0.8rem; overflow-x: auto;
}
@media (min-width: 640px) { .opx-frontmatter { font-size: 0.85rem; padding: 1.25rem; } }

.fm-row { margin-bottom: 0.75rem; display: flex; flex-direction: column; }
@media (min-width: 640px) { .fm-row { flex-direction: row; gap: 1rem; margin-bottom: 0.5rem; } }
.fm-key { color: var(--accent-bleu-glow); width: auto; flex-shrink: 0; }
@media (min-width: 640px) { .fm-key { width: 140px; } }
.fm-val { color: var(--text-encre-light); word-wrap: break-word; }

/* --------------------------------------------------------------------------
   LIVRABLES — Numéros en CSS pur
   -------------------------------------------------------------------------- */
.card-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cuivre);
  margin-bottom: 0.5rem;
}

.is-highlight {
  background: var(--bg-papier);
  border-bottom: 2px solid var(--accent-cuivre);
}

/* --------------------------------------------------------------------------
   CARTE DE CHANTIER — Curriculum horizontal
   -------------------------------------------------------------------------- */
.opx-build-map {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-sm);
  margin-top: var(--gap-lg);
  position: relative;
}
@media (min-width: 768px) {
  .opx-build-map {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
}

.opx-build-step {
  position: relative;
  padding: 1.5rem 1rem;
  text-align: center;
  background: var(--bg-papier);
  border: 1px solid var(--border-lin);
}
@media (min-width: 768px) {
  .opx-build-step {
    border: none;
    background: transparent;
    padding: 1.5rem 0.5rem;
  }
  .opx-build-step::after {
    content: '';
    position: absolute;
    top: 2.5rem;
    left: 60%;
    width: 80%;
    height: 2px;
    background: var(--border-lin);
    z-index: 0;
  }
  .opx-build-step:last-child::after { display: none; }
}

.build-plot {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-papier);
  border: 2px solid var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  margin: 0 auto 1rem;
  position: relative; z-index: 1;
  color: var(--text-muted);
}
.build-plot.is-active {
  border-color: var(--accent-cuivre);
  color: var(--accent-cuivre);
}
.build-plot.is-final {
  border-color: var(--accent-cuivre);
  background: var(--accent-cuivre);
  color: #fff;
}

.build-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}

.build-step-title {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-encre);
}

.build-step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   AVANT/APRÈS NOTE — Preuve tangible
   -------------------------------------------------------------------------- */
.opx-note-transform {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-sm);
  margin: var(--gap-md) 0;
}
@media (min-width: 768px) {
  .opx-note-transform { grid-template-columns: 1fr 1fr; }
}

.note-slab {
  padding: 1.5rem;
  border: 1px solid var(--border-lin);
  background: var(--bg-papier);
  position: relative;
}
.note-slab.is-after {
  border-color: var(--accent-cuivre);
  background: var(--bg-papier-deep);
}

.note-slab-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-lin);
}
.note-slab.is-after .note-slab-header {
  border-bottom-color: var(--accent-cuivre);
}

.note-slab-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.note-slab-tag.is-raw { color: var(--accent-bleu); }
.note-slab-tag.is-canon { color: var(--accent-cuivre); }

.note-slab h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-encre);
}
.note-slab p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Connector arrow between slabs on desktop */
@media (min-width: 768px) {
  .opx-note-transform {
    position: relative;
  }
  .opx-note-transform::before {
    content: '→';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--accent-cuivre);
    background: var(--bg-papier);
    padding: 0 0.5rem;
    z-index: 2;
  }
}

/* --------------------------------------------------------------------------
   QUALIFICATION — Pour qui / Pas pour qui
   -------------------------------------------------------------------------- */
.opx-qualify-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--gap-sm);
  margin-top: var(--gap-md);
}
@media (min-width: 640px) { .opx-qualify-grid { grid-template-columns: 1fr 1fr; } }

.opx-qualify-card {
  padding: 2rem; border: 1px solid var(--border-lin); border-radius: 2px;
  background: var(--bg-papier);
}
.opx-qualify-card h3 {
  font-family: var(--font-sans); font-size: 1.1rem; font-weight: 600;
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem;
}
.opx-qualify-card.for h3::before {
  content: '+'; color: var(--accent-vert); font-weight: 700;
}
.opx-qualify-card.against h3::before {
  content: '−'; color: var(--text-faint); font-weight: 700;
}
.opx-qualify-card ul {
  list-style: none; padding: 0; margin: 0;
}
.opx-qualify-card li {
  font-size: 0.9rem; color: var(--text-muted); padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-lin);
}
.opx-qualify-card li:last-child { border-bottom: none; }


/* ==========================================================================
   OPTIMIKE V2.4 — ARTICLE SHELL & PONTS COCON (Surcharges)
   Intensification : ponts propriétaires, tampons, coins marqués, folios.
   ========================================================================== */

/* --------------------------------------------------------------------------
   STRUCTURE ARTICLE
   -------------------------------------------------------------------------- */
.opx-article-container {
  max-width: 760px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  position: relative;
}

@media (max-width: 640px) {
  .opx-article-container > .opx-folio {
    display: none;
  }
}

.article-header { margin-bottom: 3rem; }
.article-intro-note {
  display: grid;
  gap: 0.4rem;
  max-width: 34rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--bg-papier-deep);
  border: 1px solid var(--border-lin);
}
.article-intro-note p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.article-title { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 0.5rem; }
.article-meta {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.article-meta a {
  color: var(--text-encre); text-decoration: none;
  border-bottom: 1px solid var(--border-lin);
}

.article-content {
  font-family: var(--font-sans); font-size: 1.125rem;
  line-height: 1.7; color: var(--text-encre);
}
.article-content p { margin-bottom: 1.5rem; }
.article-content a,
.optm-standard-shell .entry-content a,
.optm-standard-shell .optm-content a {
  color: var(--accent-bleu);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(46, 90, 124, 0.55);
  text-decoration-color: color-mix(in srgb, var(--accent-bleu) 55%, transparent);
  text-underline-offset: 0.18em;
}
.article-content a:hover,
.optm-standard-shell .entry-content a:hover,
.optm-standard-shell .optm-content a:hover {
  color: var(--accent-cuivre-deep);
  text-decoration-color: currentColor;
}

.optm-site-main .article-content a:not(.opx-button):not(.opx-button-secondary):not(.reading-card):not(.editorial-card):not(.bridge-link):not([data-opx-ui="true"]),
.optm-site-main .entry-content a:not(.opx-button):not(.opx-button-secondary):not(.reading-card):not(.editorial-card):not(.bridge-link):not([data-opx-ui="true"]),
.optm-site-main .optm-content a:not(.opx-button):not(.opx-button-secondary):not(.reading-card):not(.editorial-card):not(.bridge-link):not([data-opx-ui="true"]) {
  color: var(--accent-bleu);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(46, 90, 124, 0.62);
  text-decoration-color: color-mix(in srgb, var(--accent-bleu) 62%, transparent);
  text-underline-offset: 0.18em;
}

.optm-site-main .article-content a:not(.opx-button):not(.opx-button-secondary):not(.reading-card):not(.editorial-card):not(.bridge-link):not([data-opx-ui="true"]):hover,
.optm-site-main .entry-content a:not(.opx-button):not(.opx-button-secondary):not(.reading-card):not(.editorial-card):not(.bridge-link):not([data-opx-ui="true"]):hover,
.optm-site-main .optm-content a:not(.opx-button):not(.opx-button-secondary):not(.reading-card):not(.editorial-card):not(.bridge-link):not([data-opx-ui="true"]):hover {
  color: var(--accent-cuivre-deep);
  text-decoration-color: currentColor;
}
.article-content h2 {
  margin-top: 3rem; margin-bottom: 1.25rem; font-size: 2rem;
}
.article-content h3 {
  margin-top: 2rem; margin-bottom: 1rem; font-size: 1.5rem;
  font-family: var(--font-sans); font-weight: 600;
}

/* --------------------------------------------------------------------------
   TABLE OF CONTENTS
   -------------------------------------------------------------------------- */
.opx-toc {
  background: var(--bg-papier-deep); padding: 1.5rem; border-radius: 2px;
  margin: 2rem 0; font-size: 0.95rem; border: 1px solid var(--border-lin);
  position: relative;
}
.opx-toc::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent-cuivre);
  opacity: 0.3;
}
.opx-toc strong {
  font-family: var(--font-mono); text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 0.8rem; display: block; margin-bottom: 1rem;
  color: var(--text-muted);
}
.opx-toc ul { list-style: none; padding-left: 0; margin-bottom: 0; }
.opx-toc li { margin-bottom: 0.5rem; }
.opx-toc li:last-child { margin-bottom: 0; }
.opx-toc a {
  color: var(--text-encre); text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
  line-height: 1.5;
}
.opx-toc a:hover { border-color: var(--text-encre); }

/* --------------------------------------------------------------------------
   CALLOUT ÉDITORIAL
   -------------------------------------------------------------------------- */
.opx-callout {
  border-left: 3px solid var(--border-lin-strong); padding: 1rem 1.5rem;
  margin: 2rem 0; font-size: 1rem; background: var(--bg-papier-deep);
  position: relative;
}
.opx-callout::before {
  content: 'NB';
  position: absolute;
  top: -0.6rem;
  left: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  background: var(--bg-papier);
  padding: 0 0.3rem;
}
.opx-callout strong {
  display: block; font-family: var(--font-mono); font-size: 0.8rem;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem;
}
.opx-callout p { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   PONTS COCON — 3 intensités propriétaires
   -------------------------------------------------------------------------- */
.opx-cocon-bridge { margin: 3rem 0; border-radius: 2px; position: relative; }

/* 1. COLD : Discret, guide gratuit, repère connexion */
.opx-cocon-bridge.is-cold {
  background: var(--bg-papier-deep);
  border-left: 3px solid var(--accent-bleu);
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  position: relative;
}
.opx-cocon-bridge.is-cold .bridge-tag {
  display: block; font-family: var(--font-mono); font-size: 0.7rem;
  text-transform: uppercase; color: var(--accent-bleu); margin-bottom: 0.5rem;
  letter-spacing: 0.06em;
}
.opx-cocon-bridge.is-cold p { margin-bottom: 0; color: var(--text-muted); }
.opx-cocon-bridge.is-cold a {
  color: var(--text-encre); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px;
}
.opx-cocon-bridge.is-cold a:hover { color: var(--accent-bleu); }
.opx-cocon-bridge.is-cold::before {
  content: '◆';
  position: absolute;
  left: -1.5rem;
  top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--accent-bleu);
  opacity: 0.6;
}
@media (max-width: 767px) {
  .opx-cocon-bridge.is-cold::before { display: none; }
}

/* 2. WARM : Carte de méthode, coin marqué */
.opx-cocon-bridge.is-warm {
  background: var(--bg-papier); border: 1px solid var(--border-lin);
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
}
.opx-cocon-bridge.is-warm::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 28px; height: 28px;
  background: var(--accent-cuivre);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  opacity: 0.12;
}
.opx-cocon-bridge.is-warm .bridge-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-lin);
  background: var(--bg-papier-deep);
}
.opx-cocon-bridge.is-warm .bridge-body {
  padding: 1.5rem 2rem;
}
.opx-cocon-bridge.is-warm h3 {
  font-family: var(--font-serif); font-size: 1.4rem; margin-top: 0;
  margin-bottom: 0.5rem; color: var(--text-encre); line-height: 1.2;
}
.opx-cocon-bridge.is-warm p {
  color: var(--text-muted); font-size: 1rem; margin-bottom: 1.25rem; line-height: 1.6;
}
.opx-cocon-bridge.is-warm .bridge-link {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500;
  color: var(--text-encre); text-decoration: none;
  border-bottom: 1px solid var(--text-encre); padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.opx-cocon-bridge.is-warm .bridge-link:hover {
  color: var(--accent-cuivre); border-color: var(--accent-cuivre);
}
.opx-cocon-bridge.is-warm > .bridge-tag {
  display: block;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-lin);
  background: var(--bg-papier-deep);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bleu);
}
.opx-cocon-bridge.is-warm > h3 {
  padding: 1.5rem 2rem 0;
}
.opx-cocon-bridge.is-warm > p {
  padding: 0 2rem;
}
.opx-cocon-bridge.is-warm > a:not(.opx-button) {
  display: inline-block;
  margin: 0 2rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-encre);
  text-decoration: none;
  border-bottom: 1px solid var(--text-encre);
}

/* 3. HOT : Bloc OS sombre, tampon FORMATION, conversion forte */
.opx-cocon-bridge.is-hot {
  border: 1px solid var(--border-encre); padding: 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-encre-surface);
  color: var(--text-encre-light);
}
.opx-cocon-bridge.is-hot::before {
  content: 'FORMATION';
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-cuivre-glow);
  opacity: 0.5;
  z-index: 2;
}
.opx-cocon-bridge.is-hot .bridge-header,
.opx-cocon-bridge.is-hot .bridge-toolbar {
  background: var(--bg-encre);
  border-bottom: 1px solid var(--border-encre);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text-encre-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.opx-cocon-bridge.is-hot .bridge-body {
  padding: 2rem; background: var(--bg-encre-surface);
}
.opx-cocon-bridge.is-hot > h3 {
  padding: 2rem 2rem 0;
}
.opx-cocon-bridge.is-hot > p {
  padding: 0 2rem;
}
.opx-cocon-bridge.is-hot > .opx-button {
  margin: 0 2rem 2rem;
  width: calc(100% - 4rem);
}
.opx-cocon-bridge.is-hot h3 {
  margin-top: 0; margin-bottom: 0.75rem;
  font-size: 1.5rem; color: var(--text-encre-light);
  font-family: var(--font-serif); line-height: 1.2;
}
.opx-cocon-bridge.is-hot p {
  font-size: 1rem; margin-bottom: 1.5rem;
  color: var(--text-encre-muted); line-height: 1.6;
}
.opx-cocon-bridge.is-hot .opx-button { width: 100%; }
@media (min-width: 640px) {
  .opx-cocon-bridge.is-hot .opx-button { width: auto; }
}
@media (max-width: 640px) {
  .opx-cocon-bridge.is-warm > h3,
  .opx-cocon-bridge.is-warm > p {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .opx-cocon-bridge.is-warm > a:not(.opx-button) {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
  }
  .opx-cocon-bridge.is-hot .bridge-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }
  .opx-cocon-bridge.is-hot > h3 {
    padding: 1.5rem 1.25rem 0;
  }
  .opx-cocon-bridge.is-hot > p {
    padding: 0 1.25rem;
  }
  .opx-cocon-bridge.is-hot > .opx-button {
    margin: 0 1.25rem 1.5rem;
    width: calc(100% - 2.5rem);
  }
}

/* --------------------------------------------------------------------------
   RELATED POSTS
   -------------------------------------------------------------------------- */
.opx-related-posts { margin-top: 5rem; border-top: 1px solid var(--border-lin); padding-top: 3rem; position: relative; }
.opx-related-posts::before {
  content: '▼';
  position: absolute;
  top: -0.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-faint);
  background: var(--bg-papier);
  padding: 0 0.5rem;
}
.opx-related-posts h3 {
  font-family: var(--font-mono); font-size: 0.85rem; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 2rem;
}
.opx-related-posts h4 {
  font-family: var(--font-serif); font-size: 1.25rem; margin-bottom: 0; color: var(--text-encre);
}



/* Article layer for legacy Gutenberg/classic content */
.optm-standard-shell {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 1.25rem;
}
.optm-standard-shell .classic-editor-title {
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 7vw, 5rem);
  line-height: .92;
  letter-spacing: 0;
  color: var(--text-encre);
  margin: 0 0 1.25rem;
}
.optm-standard-shell .entry-content,
.optm-standard-shell .optm-content {
  font-size: 1.06rem;
  line-height: 1.78;
  color: var(--text-muted);
}
.optm-standard-shell .entry-content > * + *,
.optm-standard-shell .optm-content > * + * { margin-top: 1.15rem; }
.optm-standard-shell .entry-content h2,
.optm-standard-shell .entry-content h3,
.optm-standard-shell .entry-content h4,
.optm-standard-shell .optm-content h2,
.optm-standard-shell .optm-content h3,
.optm-standard-shell .optm-content h4 {
  font-family: var(--font-serif);
  color: var(--text-encre);
  line-height: 1.05;
  letter-spacing: 0;
  margin-top: 2.75rem;
}
.optm-standard-shell .entry-content h2,
.optm-standard-shell .optm-content h2 { font-size: clamp(1.85rem, 4vw, 3rem); }
.optm-standard-shell .entry-content h3,
.optm-standard-shell .optm-content h3 { font-size: clamp(1.45rem, 3vw, 2.15rem); }
.optm-standard-shell .entry-content a {
  color: var(--accent-bleu);
  text-decoration: underline;
  text-decoration-color: rgba(46, 90, 124, 0.55);
  text-decoration-color: color-mix(in srgb, var(--accent-bleu) 55%, transparent);
  text-underline-offset: .18em;
}
.optm-standard-shell .entry-content blockquote,
.optm-standard-shell .optm-content blockquote {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--accent-cuivre);
  color: var(--text-encre);
  background: rgba(184, 115, 51, .05);
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-style: italic;
}
.optm-standard-shell .entry-content blockquote cite,
.optm-standard-shell .optm-content blockquote cite,
.article-content blockquote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-style: normal;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.optm-standard-shell .entry-content blockquote cite::before,
.optm-standard-shell .optm-content blockquote cite::before,
.article-content blockquote cite::before {
  content: '- ';
}
.optm-standard-shell .entry-content pre,
.optm-standard-shell .optm-content pre,
.optm-standard-shell .entry-content code {
  font-family: var(--font-mono);
}
.optm-standard-shell .entry-content pre {
  overflow-x: auto;
  max-width: 100%;
  white-space: pre-wrap;
  background: var(--bg-encre);
  color: var(--text-encre-light);
  padding: 1.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.optm-standard-shell .optm-content pre {
  overflow-x: auto;
  max-width: 100%;
  white-space: pre-wrap;
  background: var(--bg-encre);
  color: var(--text-encre-light);
  padding: 1.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
}
.optm-standard-shell .entry-content code,
.optm-standard-shell .optm-content code,
.article-content code {
  background: var(--bg-papier-deep);
  padding: 0.15em 0.4em;
  border-radius: 2px;
  color: var(--accent-cuivre-deep);
}
.optm-standard-shell .entry-content pre code,
.optm-standard-shell .optm-content pre code,
.article-content pre code {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  background: none;
  padding: 0;
  color: inherit;
}
.optm-standard-shell .entry-content table,
.optm-content table,
.article-content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}
.optm-standard-shell .entry-content th,
.optm-content th,
.article-content th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-lin-strong);
}
.optm-standard-shell .entry-content td,
.optm-content td,
.article-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-lin);
  color: var(--text-muted);
}
@media (max-width: 720px) {
  .optm-standard-shell .entry-content table,
  .optm-content table,
  .article-content table {
    display: block;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2.25rem 0;
    font-size: 1rem;
  }
  .optm-standard-shell .entry-content table thead,
  .optm-content table thead,
  .article-content table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .optm-standard-shell .entry-content table tbody,
  .optm-standard-shell .entry-content table tr,
  .optm-standard-shell .entry-content table td,
  .optm-content table tbody,
  .optm-content table tr,
  .optm-content table td,
  .article-content table tbody,
  .article-content table tr,
  .article-content table td {
    display: block;
    width: 100%;
  }
  .optm-standard-shell .entry-content table tr,
  .optm-content table tr,
  .article-content table tr {
    margin: 0 0 1rem;
    padding: 1rem 1rem 0.15rem;
    border: 1px solid var(--border-lin);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.38);
  }
  .optm-standard-shell .entry-content table td,
  .optm-content table td,
  .article-content table td {
    padding: 0 0 0.85rem;
    border-bottom: 0;
    color: var(--text-muted);
  }
  .optm-standard-shell .entry-content table td::before,
  .optm-content table td::before,
  .article-content table td::before {
    content: attr(data-optm-label);
    display: block;
    margin-bottom: 0.2rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
  }
  .optm-standard-shell .entry-content table td:first-child,
  .optm-content table td:first-child,
  .article-content table td:first-child {
    padding-bottom: 0.7rem;
    color: var(--text-encre);
    font-weight: 600;
  }
}
.optm-standard-shell .entry-content hr,
.article-content hr {
  border: none;
  height: 1px;
  background: var(--border-lin);
  margin: 3rem 0;
  position: relative;
}
.optm-standard-shell .entry-content hr::after,
.article-content hr::after {
  content: '◆';
  position: absolute;
  left: 50%;
  top: -0.45rem;
  transform: translateX(-50%);
  background: var(--bg-papier);
  color: var(--text-faint);
  font-size: 0.5rem;
  padding: 0 0.5rem;
}
.optm-standard-shell .entry-content img,
.optm-standard-shell .entry-content figure,
.optm-standard-shell .optm-content img,
.optm-standard-shell .optm-content figure {
  max-width: 100%;
  height: auto;
}
.optm-featured-image--auto {
  margin: 0 auto 2rem;
  max-width: 920px;
  border-radius: 8px;
  overflow: hidden;
  background: #f4f1ec;
  box-shadow: 0 18px 45px rgb(24 18 12 / 0.10);
}
.optm-featured-image--auto img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}
.optm-featured-image--auto figcaption {
  padding: 0.75rem 1rem;
  color: #6f665f;
  font-size: 0.92rem;
  line-height: 1.45;
  background: #f8f6f2;
}
.article-content .opx-article-image {
  margin: clamp(2rem, 5vw, 4rem) 0;
}
.article-content .opx-article-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-lin);
  box-shadow: 0 24px 60px rgb(31 26 20 / 0.12);
  background: var(--bg-papier-deep);
}
.article-content .opx-diagram-viewer {
  position: relative;
}
.opx-diagram-viewer__link {
  display: block;
  position: relative;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}
.opx-diagram-viewer__link::after {
  content: "Agrandir le schéma ↗";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: 2px;
  background: rgb(24 22 20 / 0.9);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  line-height: 1;
  box-shadow: 0 8px 24px rgb(24 18 12 / 0.2);
}
.opx-diagram-viewer__link:focus-visible {
  outline: 3px solid var(--accent-cuivre);
  outline-offset: 4px;
}
.opx-lightbox-open {
  overflow: hidden;
}
.opx-diagram-lightbox {
  width: min(1500px, 96vw);
  max-width: none;
  max-height: 94vh;
  max-height: 94dvh;
  margin: auto;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 4px;
  background: var(--bg-encre, #131316);
  color: var(--text-encre-light, #e8e4df);
  box-shadow: 0 32px 96px rgb(10 8 6 / 0.48);
}
.opx-diagram-lightbox::backdrop {
  background: rgb(16 14 12 / 0.82);
  backdrop-filter: blur(4px);
}
.opx-diagram-lightbox__panel {
  display: flex;
  flex-direction: column;
  max-height: 94vh;
  max-height: 94dvh;
}
.opx-diagram-lightbox__toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-dark, #2e2e34);
  background: var(--bg-encre-soft, #1c1c20);
}
.opx-diagram-lightbox__title {
  margin: 0;
  color: var(--text-encre-light, #e8e4df);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}
.opx-diagram-lightbox__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.opx-diagram-lightbox__original {
  color: var(--text-encre-light, #e8e4df);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-underline-offset: 0.2em;
}
.opx-diagram-lightbox__original:hover {
  color: #fff;
}
.opx-diagram-lightbox__close {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 1px solid var(--border-dark, #2e2e34);
  border-radius: 2px;
  background: transparent;
  color: var(--text-encre-light, #e8e4df);
  font: 400 1.65rem/1 var(--font-sans);
  cursor: pointer;
}
.opx-diagram-lightbox__close:hover {
  border-color: var(--accent-cuivre-glow, #d4a574);
  color: #fff;
}
.opx-diagram-lightbox__original:focus-visible,
.opx-diagram-lightbox__close:focus-visible,
.opx-diagram-lightbox__stage:focus-visible {
  outline: 3px solid var(--accent-cuivre-glow, #d4a574);
  outline-offset: 3px;
}
.opx-diagram-lightbox__stage {
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(1rem, 3vw, 2.5rem);
  background:
    linear-gradient(rgb(255 255 255 / 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.025) 1px, transparent 1px),
    var(--bg-encre, #131316);
  background-size: 32px 32px;
  scrollbar-color: var(--accent-cuivre-glow, #d4a574) var(--bg-encre-soft, #1c1c20);
}
.opx-diagram-lightbox__image {
  display: block;
  width: min(1600px, 88vw);
  max-width: none;
  height: auto;
  margin: 0 auto;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 3px;
  background: var(--bg-papier, #f7f5f0);
  box-shadow: 0 20px 64px rgb(0 0 0 / 0.34);
}
.opx-diagram-lightbox__caption {
  max-width: 900px;
  margin: 1rem auto 0;
  color: var(--text-encre-light, #e8e4df);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
}
.opx-diagram-lightbox__caption[hidden] {
  display: none;
}
@media (min-width: 1024px) {
  .article-content .opx-diagram-viewer {
    width: min(1000px, calc(100vw - 4rem));
    margin-left: 50%;
    transform: translateX(-50%);
  }
}
@media (max-width: 1023px) {
  .opx-diagram-viewer__link::after {
    position: static;
    display: block;
    margin-top: 0.65rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--link-blue);
    font-size: 0.72rem;
    line-height: 1.4;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    box-shadow: none;
  }
}
@media (max-width: 767px) {
  .opx-diagram-lightbox {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }
  .opx-diagram-lightbox__panel {
    height: 100vh;
    height: 100dvh;
    max-height: none;
  }
  .opx-diagram-lightbox__toolbar {
    min-height: 72px;
    padding: 0.75rem 1rem;
  }
  .opx-diagram-lightbox__title {
    font-size: 0.75rem;
  }
  .opx-diagram-lightbox__original {
    display: none;
  }
  .opx-diagram-lightbox__stage {
    padding: 1rem;
  }
  .opx-diagram-lightbox__image {
    width: 900px;
  }
  .opx-diagram-lightbox__caption {
    width: min(760px, calc(900px - 2rem));
    max-width: none;
    font-size: 0.9rem;
    text-align: left;
  }
}
.optm-standard-shell .entry-content figcaption,
.article-content figcaption {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  text-align: center;
}

.article-content blockquote {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--accent-cuivre);
  background: var(--bg-papier-deep);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-encre);
  font-style: italic;
}
.article-content ul,
.article-content ol {
  margin: 1.5rem 0;
  padding-left: 1.75rem;
}
.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.article-content ul li::marker { color: var(--accent-cuivre); }
.article-content ol li::marker {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.article-content pre {
  background: var(--bg-encre);
  color: var(--text-encre-light);
  padding: 1.5rem;
  border-radius: 4px;
  overflow-x: auto;
  max-width: 100%;
  white-space: pre-wrap;
  margin: 2rem 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
}
.article-content img {
  margin: 2rem 0;
  border: 1px solid var(--border-lin);
}
.article-content .wp-caption {
  max-width: 100%;
}

/* WordPress theme shell compatibility */
body.admin-bar .opx-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .opx-header { top: 46px; } }
.opx-mobile-link-accent { color: var(--accent-cuivre); }
.optm-site-main { background: var(--bg-papier); }
@supports not (clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%)) {
  .opx-index-card, .opx-editor-stamp { clip-path: none; }
}
@media (max-width: 640px) {
  .opx-article-container > .opx-folio { display: none; }
}

/* ==========================================================================
   OPTIMIKE V2.6.1 — PASSE LOCALE PLUS FRANCHE
   Gate: garder seulement si le delta est visible en 3 secondes.
   ========================================================================== */

.opx-hero-media-v261 {
  padding-top: clamp(4.5rem, 8vw, 7.5rem);
  padding-bottom: clamp(4rem, 7vw, 6.5rem);
  background:
    linear-gradient(90deg, rgba(26, 26, 26, 0.045) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(180deg, rgba(26, 26, 26, 0.035) 1px, transparent 1px) 0 0 / 96px 96px,
    var(--bg-papier);
  border-bottom: 1px solid var(--border-lin);
}
.opx-hero-media-v261 .opx-hero-grid {
  align-items: start;
}
@media (min-width: 1024px) {
  .opx-hero-media-v261 .opx-hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    align-items: center;
  }
}
.opx-hero-media-v261 .hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.opx-hero-media-v261 h1 {
  max-width: 620px;
  font-size: clamp(3.2rem, 8.4vw, 7.35rem);
  line-height: 0.88;
  letter-spacing: 0;
  margin-bottom: 1rem;
}
.hero-thesis {
  max-width: 34rem;
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.15;
  color: var(--text-encre);
}
.opx-hero-media-v261 .hero-editor-note {
  border-left: 3px solid var(--accent-cuivre);
  background: rgba(255, 255, 255, 0.34);
}
.opx-hero-media-v261 .opx-hero-visual {
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 2vw, 1.5rem);
  background:
    linear-gradient(135deg, rgba(184, 115, 51, 0.09), transparent 38%),
    var(--bg-papier-deep);
  box-shadow: 0 18px 45px rgba(26, 26, 26, 0.09);
}
.opx-hero-media-v261 .opx-actions {
  gap: 0.75rem;
}
.opx-hero-media-v261 .hero-atlas-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(108px, auto);
}
@media (min-width: 720px) {
  .opx-hero-media-v261 .hero-atlas-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.opx-hero-media-v261 .hero-index-card {
  min-height: 108px;
  display: flex;
  flex-direction: column;
  background: rgba(247, 245, 240, 0.94);
}
.opx-hero-media-v261 .hero-index-card.is-featured {
  grid-column: span 2;
  min-height: 180px;
  background: var(--bg-encre);
  border-color: var(--bg-encre);
  color: var(--text-encre-light);
}
@media (min-width: 720px) {
  .opx-hero-media-v261 .hero-index-card.is-featured {
    grid-row: span 2;
  }
}
.opx-hero-media-v261 .hero-index-card.is-featured .card-title {
  color: var(--text-encre-light);
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1;
}
.opx-hero-media-v261 .hero-index-card.is-featured .card-coords,
.opx-hero-media-v261 .hero-index-card.is-featured .card-summary {
  color: var(--text-encre-muted);
}
.opx-hero-media-v261 .hero-index-card.is-featured .card-excerpt-lines span {
  background: rgba(255, 255, 255, 0.14);
}
.hero-index-card .card-summary {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.opx-hero-media-v261 .hero-index-card.is-live-card {
  border-color: rgba(74, 124, 89, 0.38);
}
.opx-authority-ledger {
  background: var(--bg-encre);
  color: var(--text-encre-light);
  border-color: var(--border-encre);
}
.opx-authority-ledger .authority-intro strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--text-encre-light);
}
.opx-authority-ledger .authority-intro p,
.opx-authority-ledger .authority-label {
  color: var(--text-encre-muted);
}
.opx-authority-ledger .authority-number {
  color: var(--text-encre-light);
}
.opx-authority-ledger .authority-item {
  padding-left: 1rem;
  border-left: 1px solid var(--border-encre);
}
.opx-authority-ledger .authority-item.is-primary .authority-number {
  color: var(--accent-cuivre-glow);
}

.opx-hero-formation-v261 {
  border-bottom: 1px solid var(--border-lin);
}
.opx-hero-formation-v261 h1 {
  font-size: clamp(2.65rem, 6.4vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}
.is-os-blueprint .opx-system-body {
  padding: clamp(1.25rem, 2.6vw, 2.2rem);
}
.opx-os-stack {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.os-layer {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.8rem;
  row-gap: 0.1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border-encre);
  background: rgba(255, 255, 255, 0.03);
}
.os-layer span {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-cuivre-glow);
}
.os-layer strong {
  color: var(--text-encre-light);
  font-size: 1rem;
}
.os-layer em {
  color: var(--text-encre-muted);
  font-style: normal;
  font-size: 0.82rem;
  line-height: 1.35;
}
.os-layer.is-output {
  border-color: rgba(212, 165, 116, 0.55);
  background: rgba(212, 165, 116, 0.07);
}
.opx-system-result {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-encre);
}
.opx-system-result p {
  margin: 0.45rem 0 0;
  color: var(--text-encre-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.opx-transform-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 1.5rem 0 0;
  background: var(--border-encre);
  border: 1px solid var(--border-encre);
}
@media (min-width: 640px) {
  .opx-transform-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.opx-transform-steps span {
  padding: 0.75rem 0.8rem;
  background: var(--bg-encre-surface);
  color: var(--text-encre-light);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}
.opx-note-transform {
  margin-top: 1.4rem;
}

.opx-article-container.is-premium-article {
  max-width: 1060px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 4rem;
  row-gap: 0;
}
@media (min-width: 1040px) {
  .opx-article-container.is-premium-article {
    grid-template-columns: minmax(0, 720px) 240px;
    align-items: start;
  }
  .opx-article-container.is-premium-article > .opx-folio,
  .opx-article-container.is-premium-article > .opx-section-num,
  .opx-article-container.is-premium-article > .article-header,
  .opx-article-container.is-premium-article > .article-content,
  .opx-article-container.is-premium-article > .opx-related-posts {
    grid-column: 1;
  }
  .opx-article-container.is-premium-article > .article-side-rail {
    grid-column: 2;
    grid-row: 3 / span 2;
    position: sticky;
    top: 92px;
  }
}
.article-side-rail {
  margin: 0 0 2rem;
  padding: 1rem;
  border: 1px solid var(--border-lin);
  background: var(--bg-papier-deep);
}
.rail-kicker {
  margin-bottom: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cuivre-deep);
}
.rail-item {
  padding: 0.75rem 0;
  border-top: 1px solid var(--border-lin);
}
.rail-item span {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.rail-item strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--text-encre);
}
.is-premium-article .article-header {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-lin);
}
.is-premium-article .article-title {
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  line-height: 0.96;
}
.is-premium-article .opx-toc {
  background:
    linear-gradient(90deg, rgba(184, 115, 51, 0.06), transparent),
    var(--bg-papier-deep);
}

/* ==========================================================================
   OPTIMIKE V2.6.2 — ATLAS CARTOGRAPHIQUE + ROUTE COGNITIVE ARTICLE
   Gate: garder seulement si le delta est visible sans casser la lecture.
   ========================================================================== */

.opx-hero-media-v261 .opx-hero-visual {
  position: relative;
  overflow: hidden;
}
.opx-hero-media-v261 .opx-hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background:
    linear-gradient(90deg, rgba(27, 36, 42, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(27, 36, 42, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
}
.opx-hero-media-v261 .hero-atlas-head,
.opx-hero-media-v261 .hero-atlas-map,
.opx-hero-media-v261 .hero-atlas-grid,
.opx-hero-media-v261 .hero-atlas-footer {
  position: relative;
  z-index: 1;
}
.hero-atlas-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1.15rem 0 1rem;
  padding: 1rem;
  border: 1px solid rgba(27, 36, 42, 0.16);
  background:
    radial-gradient(circle at 14% 28%, rgba(81, 119, 139, 0.13), transparent 22%),
    radial-gradient(circle at 72% 62%, rgba(74, 124, 89, 0.12), transparent 26%),
    rgba(250, 249, 246, 0.84);
}
.atlas-route-line {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 1px;
  background:
    linear-gradient(90deg, rgba(81,119,139,0.08), rgba(184,115,51,0.7), rgba(74,124,89,0.12));
  transform: translateY(-50%);
}
.atlas-node {
  position: relative;
  min-height: 96px;
  display: grid;
  align-content: space-between;
  gap: 0.35rem;
  padding: 0.8rem;
  border: 1px solid rgba(27, 36, 42, 0.2);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text-encre);
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.atlas-node:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 115, 51, 0.52);
  background: var(--bg-papier);
}
.atlas-node::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  left: 50%;
  top: 50%;
  border: 1px solid var(--accent-cuivre);
  background: var(--bg-papier);
  transform: translate(-50%, -50%) rotate(45deg);
}
.atlas-node .node-code {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}
.atlas-node strong {
  font-family: var(--font-serif);
  font-size: 1.04rem;
  line-height: 1;
}
.atlas-node em {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.atlas-node.is-origin { border-color: rgba(81, 119, 139, 0.34); }
.atlas-node.is-method { border-color: rgba(74, 124, 89, 0.34); }
.atlas-node.is-action { border-color: rgba(184, 115, 51, 0.38); }
.atlas-node.is-elysia {
  background: var(--bg-encre);
  color: var(--text-encre-light);
  border-color: var(--border-encre);
}
.atlas-node.is-elysia .node-code,
.atlas-node.is-elysia em { color: var(--text-encre-muted); }
.atlas-node.is-elysia::after { background: var(--accent-cuivre-glow); }

.article-side-rail.is-cognitive-route {
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--bg-encre), var(--bg-encre-surface));
  border-color: var(--border-encre);
  color: var(--text-encre-light);
}
.article-side-rail.is-cognitive-route .rail-kicker {
  margin: 0;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-encre);
  color: var(--accent-cuivre-glow);
}
.route-coordinates {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-encre);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-encre-muted);
}
.route-steps {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0.8rem 1rem 0.5rem;
  list-style: none;
}
.route-steps::before {
  content: '';
  position: absolute;
  left: 1.34rem;
  top: 1.35rem;
  bottom: 1.05rem;
  width: 1px;
  background: var(--border-encre);
}
.route-steps li {
  position: relative;
  padding: 0.55rem 0;
}
.route-step-link {
  display: grid;
  width: 100%;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  column-gap: 0.6rem;
  color: inherit;
  text-decoration: none;
}
.route-step-link,
.route-step-link * {
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-color: transparent !important;
}
.optm-site-main .optm-content .route-step-link,
.optm-site-main .entry-content .route-step-link,
.optm-site-main .article-content .route-step-link {
  border-bottom: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
}
.route-step-link:focus-visible {
  outline: 2px solid var(--accent-cuivre);
  outline-offset: 4px;
  border-radius: 6px;
}
.route-step-link > span:first-child {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid var(--border-encre);
  background: var(--bg-encre);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  color: var(--text-encre-muted);
}
.route-step-copy {
  position: static;
  z-index: auto;
  display: block;
  min-width: 0;
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
.route-steps strong {
  display: block;
  color: var(--text-encre-light);
  font-size: 0.82rem;
  line-height: 1.22;
}
.route-step-link:hover strong,
.route-step-link:focus-visible strong {
  color: var(--accent-cuivre-glow);
}
.route-steps em {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.57rem;
  font-style: normal;
  text-transform: uppercase;
  color: var(--text-encre-muted);
}
.route-steps li.is-active .route-step-link > span:first-child {
  border-color: var(--accent-cuivre);
  background: var(--accent-cuivre);
  color: var(--bg-encre);
}
.article-side-rail.is-cognitive-route .rail-item {
  margin: 0 1rem;
  border-top-color: var(--border-encre);
}
.article-side-rail.is-cognitive-route .rail-item span {
  color: var(--text-encre-muted);
}
.article-side-rail.is-cognitive-route .rail-item strong {
  color: var(--text-encre-light);
}
.route-next {
  display: block;
  margin: 0.8rem 1rem 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-encre);
  color: var(--accent-cuivre-glow);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.35;
  text-decoration: none;
}
.route-next:hover {
  color: var(--text-encre-light);
}

.opx-proof-slab {
  margin: 3rem 0;
  border: 1px solid var(--border-lin-strong);
  background:
    linear-gradient(135deg, rgba(184,115,51,0.08), transparent 38%),
    var(--bg-papier-deep);
}
.proof-slab-head {
  display: grid;
  gap: 0.4rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-lin);
}
.proof-slab-head strong {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.08;
  color: var(--text-encre);
}
.proof-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
}
.proof-card {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 0.65rem;
  padding: 1.1rem;
  background: var(--bg-papier);
}
.proof-card + .proof-arrow,
.proof-arrow + .proof-card {
  border-left: 1px solid var(--border-lin);
}
.proof-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.proof-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.48;
}
.proof-card.is-canon {
  background: var(--bg-encre);
  color: var(--text-encre-light);
}
.proof-card.is-canon .proof-label,
.proof-card.is-canon p {
  color: var(--text-encre-light);
}
.proof-card.is-output {
  box-shadow: inset 3px 0 0 var(--accent-cuivre);
}
.proof-arrow {
  display: grid;
  place-items: center;
  min-width: 38px;
  padding: 0 0.2rem;
  background: var(--bg-papier-deep);
  font-family: var(--font-mono);
  color: var(--accent-cuivre-deep);
}

@media (max-width: 780px) {
  .hero-atlas-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .atlas-route-line {
    display: none;
  }
  .article-side-rail.is-cognitive-route {
    margin-top: 0.5rem;
  }
  .article-side-rail.is-cognitive-route .rail-kicker,
  .route-coordinates {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .route-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    padding: 0;
    background: var(--border-encre);
  }
  .route-steps::before {
    display: none;
  }
  .route-steps li {
    display: block;
    padding: 0.75rem 0.65rem;
    background: var(--bg-encre-surface);
  }
  .route-step-link {
    display: block;
  }
  .route-step-link > span:first-child {
    margin-bottom: 0.45rem;
  }
  .route-steps strong {
    font-size: 0.72rem;
  }
  .route-steps em {
    font-size: 0.5rem;
  }
  .article-side-rail.is-cognitive-route .rail-item {
    margin: 0 0.85rem;
  }
  .route-next {
    margin-left: 0.85rem;
    margin-right: 0.85rem;
  }
  .proof-flow {
    grid-template-columns: minmax(0, 1fr);
  }
  .proof-card,
  .proof-arrow {
    border-left: 0;
    border-top: 1px solid var(--border-lin);
  }
  .proof-arrow {
    min-height: 34px;
    transform: rotate(90deg);
  }
  .proof-card {
    min-height: auto;
  }
}

/* ==========================================================================
   OPTIMIKE V2.6.4 — ARTICLE PROOF MOBILE FIX
   Le proof slab doit rester lisible dans une colonne de lecture mobile.
   ========================================================================== */

@media (max-width: 780px) {
  .opx-proof-slab {
    overflow: visible;
  }

  .opx-proof-slab .proof-flow {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .opx-proof-slab .proof-card,
  .opx-proof-slab .proof-arrow {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border-left: 0;
    border-top: 1px solid var(--border-lin);
  }

  .opx-proof-slab .proof-card {
    padding: clamp(1rem, 5vw, 1.3rem);
  }

  .opx-proof-slab .proof-card p,
  .opx-proof-slab .proof-card strong {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .opx-proof-slab .proof-arrow {
    min-height: 32px;
    padding: 0;
    transform: none;
  }
}

/* ==========================================================================
   OPTIMIKE V2.6.3 — MICRO-MOTION SOBRE
   Gate: motion fonctionnelle uniquement, pas de reveal decoratif.
   ========================================================================== */

:root {
  --motion-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --motion-ease-soft: cubic-bezier(0.32, 0.72, 0, 1);
}

.opx-button,
.opx-button-secondary,
.reading-card,
.editorial-card,
.bridge-link,
.route-step-link,
.route-next,
.atlas-node,
.hero-index-card {
  transition:
    transform 160ms var(--motion-ease-out),
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.opx-button:active,
.opx-button-secondary:active {
  transform: translateY(1px) scale(0.985);
}

@media (hover: hover) and (pointer: fine) {
  .atlas-node:hover,
  .hero-index-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(27, 24, 21, 0.08);
  }
  .reading-card:hover,
  .editorial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(27, 24, 21, 0.06);
  }
  .opx-button:hover,
  .opx-button-secondary:hover,
  .bridge-link:hover,
  .route-next:hover {
    transform: translateY(-1px);
  }
  .article-side-rail.is-cognitive-route:hover .route-steps li.is-active .route-step-link > span:first-child {
    box-shadow: 0 0 0 4px rgba(184, 115, 51, 0.14);
  }
}

.route-steps li.is-active .route-step-link > span:first-child,
.hero-atlas-footer .atlas-live::before {
  transition:
    box-shadow 220ms ease,
    opacity 220ms ease;
}

.site-header,
.optm-site-header {
  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------------------
   M69 — Contact page
   -------------------------------------------------------------------------- */
.opx-contact-v69 {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 36%),
    var(--bg-papier);
}
.opx-contact-v69 .opx-contact-hero {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--border-lin);
}
.opx-contact-v69 .opx-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 980px) {
  .opx-contact-v69 .opx-contact-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
  }
}
.opx-contact-v69 .opx-contact-copy h1 {
  max-width: 780px;
  font-size: clamp(2.7rem, 6.8vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: 0;
  margin-bottom: 1.25rem;
}
.opx-contact-v69 .opx-contact-copy .opx-lead {
  max-width: 660px;
}
.opx-contact-v69 .opx-contact-actions {
  margin-top: 1.75rem;
}
.opx-contact-v69 .opx-contact-panel {
  border: 1px solid var(--border-lin-strong);
  background: var(--bg-papier-deep);
  border-radius: 4px;
  padding: clamp(1.25rem, 2.8vw, 2rem);
  box-shadow: 0 18px 44px rgba(26, 26, 26, 0.08);
}
.opx-contact-v69 .opx-contact-panel h2,
.opx-contact-v69 .opx-contact-panel h3 {
  font-family: var(--font-serif);
  color: var(--text-encre);
  letter-spacing: 0;
}
.opx-contact-v69 .opx-contact-panel h2 {
  font-size: clamp(1.55rem, 2.3vw, 2.2rem);
  margin-bottom: 1rem;
}
.opx-contact-v69 .opx-contact-panel ul {
  display: grid;
  gap: 0.9rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}
.opx-contact-v69 .opx-contact-panel li {
  border-left: 2px solid var(--accent-cuivre);
  color: var(--text-muted);
  padding-left: 0.95rem;
}
.opx-contact-v69 .opx-contact-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.opx-contact-v69 .opx-contact-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}
.opx-contact-v69 .opx-contact-heading h2 {
  max-width: 720px;
  margin-bottom: 0.85rem;
}
.opx-contact-v69 .opx-contact-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
@media (min-width: 800px) {
  .opx-contact-v69 .opx-contact-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.opx-contact-v69 .opx-contact-card {
  border: 1px solid var(--border-lin);
  background: rgba(255, 255, 255, 0.42);
  border-radius: 4px;
  min-height: 220px;
  padding: clamp(1.15rem, 2vw, 1.5rem);
}
.opx-contact-v69 .opx-contact-card-number {
  color: var(--accent-cuivre-deep);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.opx-contact-v69 .opx-contact-card h3 {
  margin-bottom: 0.7rem;
}
.opx-contact-v69 .opx-contact-band {
  background: var(--bg-encre);
  color: var(--text-encre-light);
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.opx-contact-v69 .opx-contact-band h2 {
  color: var(--text-encre-light);
}
.opx-contact-v69 .opx-contact-band p {
  color: var(--text-encre-muted);
}
.opx-contact-v69 .opx-contact-proof {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-top: 2rem;
  background: var(--border-encre);
  border: 1px solid var(--border-encre);
  border-radius: 4px;
  overflow: hidden;
}
@media (min-width: 760px) {
  .opx-contact-v69 .opx-contact-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.opx-contact-v69 .opx-contact-proof article {
  background: var(--bg-encre-surface);
  min-height: 180px;
  padding: clamp(1.2rem, 2.2vw, 1.6rem);
}
.opx-contact-v69 .opx-contact-proof span {
  color: var(--accent-cuivre-glow);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.opx-contact-v69 .opx-contact-proof strong {
  color: var(--text-encre-light);
  display: block;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
}
.opx-contact-v69 .opx-contact-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
}
@media (min-width: 760px) {
  .opx-contact-v69 .opx-contact-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.opx-contact-v69 .opx-contact-link-card {
  border: 1px solid var(--border-lin);
  border-radius: 4px;
  background: var(--bg-papier-deep);
  min-height: 128px;
  padding: 1.1rem;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.opx-contact-v69 .opx-contact-link-card:hover {
  background: var(--bg-papier);
  border-color: var(--accent-cuivre);
  transform: translateY(-1px);
}
.opx-contact-v69 .opx-contact-link-card span {
  color: var(--text-faint);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}
.opx-contact-v69 .opx-contact-link-card strong {
  color: var(--text-encre);
  display: block;
  font-size: 1rem;
  line-height: 1.3;
}
.opx-contact-v69 .opx-contact-final {
  border-top: 1px solid var(--border-lin);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.opx-contact-v69 .opx-contact-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 940px) {
  .opx-contact-v69 .opx-contact-form-grid {
    grid-template-columns: minmax(0, 0.62fr) minmax(380px, 0.82fr);
  }
}
.opx-contact-v69 .opx-contact-form-note {
  border-left: 2px solid var(--accent-cuivre);
  color: var(--text-muted);
  padding-left: 1rem;
}
.opx-contact-v69 .opx-contact-form-wrap {
  border: 1px solid var(--border-lin-strong);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.opx-contact-v69 .opx-contact-form {
  display: grid;
  gap: 1rem;
}
.opx-contact-v69 .opx-contact-field-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .opx-contact-v69 .opx-contact-field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.opx-contact-v69 .opx-contact-field {
  display: grid;
  gap: 0.45rem;
}
.opx-contact-v69 .opx-contact-field label {
  color: var(--text-encre);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.opx-contact-v69 .opx-contact-field input,
.opx-contact-v69 .opx-contact-field select,
.opx-contact-v69 .opx-contact-field textarea {
  appearance: none;
  background: var(--bg-papier);
  border: 1px solid var(--border-lin-strong);
  border-radius: 3px;
  color: var(--text-encre);
  font: 500 1rem/1.4 var(--font-sans);
  min-height: 48px;
  padding: 0.85rem 0.95rem;
  width: 100%;
}
.opx-contact-v69 .opx-contact-field textarea {
  min-height: 150px;
  resize: vertical;
}
.opx-contact-v69 .opx-contact-field input:focus-visible,
.opx-contact-v69 .opx-contact-field select:focus-visible,
.opx-contact-v69 .opx-contact-field textarea:focus-visible {
  border-color: var(--accent-cuivre);
  box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.14);
  outline: none;
}
.opx-contact-v69 .opx-contact-field-help {
  color: var(--text-faint);
  font-size: 0.82rem;
  line-height: 1.5;
}
.opx-contact-v69 .opx-contact-success {
  background: rgba(47, 93, 82, 0.09);
  border: 1px solid rgba(47, 93, 82, 0.32);
  border-left: 3px solid var(--accent-vert, #2f5d52);
  border-radius: 3px;
  color: var(--text-encre);
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
}
.opx-contact-v69 .opx-contact-success[hidden] {
  display: none;
}
.opx-contact-v69 .opx-contact-success strong,
.opx-contact-v69 .opx-contact-success span {
  display: block;
}
.opx-contact-v69 .opx-contact-success span {
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.opx-contact-v69 .opx-contact-privacy {
  border-top: 1px solid var(--border-lin);
  color: var(--text-faint);
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0.15rem 0 0;
  padding-top: 0.9rem;
}
.opx-contact-v69 .opx-contact-hp {
  left: -10000px;
  position: absolute;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.opx-contact-v69 .opx-contact-form .opx-button {
  margin-top: 0.25rem;
}
.opx-contact-v69 .opx-contact-form .opx-button[disabled] {
  cursor: wait;
  opacity: 0.72;
}
.opx-contact-v69 .opx-contact-form-footnote {
  color: var(--text-faint);
  font-size: 0.88rem;
}
.opx-contact-v69 .opx-contact-form-footnote a {
  color: var(--accent-bleu);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
@media (max-width: 639px) {
  .opx-contact-v69 .opx-contact-copy h1 {
    font-size: clamp(2.35rem, 14vw, 3.8rem);
    line-height: 0.98;
  }
  .opx-contact-v69 .opx-button,
  .opx-contact-v69 .opx-button-secondary {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   M99 — Gabarit tutoriel porte par le theme
   -------------------------------------------------------------------------- */
.opx-template-tutorial,
.opx-tutorial-obsidian {
  --opx-ink: var(--text-encre);
  --opx-line: var(--border-lin);
  --opx-accent: var(--accent-cuivre);
  --opx-panel: var(--bg-papier);
}
.opx-tutorial-hero {
  position: relative;
  padding: var(--gap-xl) 0 var(--gap-lg);
  background: var(--bg-papier);
  border-bottom: 1px solid var(--border-lin);
}
.opx-tutorial-hero::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--border-lin-strong);
  opacity: 0.55;
}
.opx-tutorial-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.opx-template-tutorial .opx-hero-grid,
.opx-tutorial-obsidian .opx-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(260px, 0.66fr);
  gap: var(--gap-lg);
  align-items: end;
}
.opx-tutorial-hero .opx-kicker {
  margin-bottom: 1rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.opx-tutorial-hero h1 {
  max-width: 760px;
  color: var(--text-encre);
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 5.2vw, 4.4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}
.opx-tutorial-lead {
  max-width: 620px;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.62;
}
.opx-hero-panel {
  position: relative;
  border: 1px solid var(--border-lin);
  border-radius: 2px;
  background: var(--bg-papier-deep);
  padding: 1.25rem;
  box-shadow: none;
}
.opx-hero-panel::before {
  content: 'REPERE';
  position: absolute;
  top: -0.58rem;
  left: 1rem;
  background: var(--bg-papier);
  padding: 0 0.35rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}
.opx-hero-panel p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.58;
}
.opx-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}
.opx-chip {
  border: 1px solid var(--border-lin);
  border-radius: 2px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.6rem;
  text-transform: uppercase;
}
.opx-reading-path {
  position: relative;
  z-index: 1;
  background: var(--bg-papier-deep);
  border-bottom: 1px solid var(--border-lin);
  backdrop-filter: none;
}
.opx-reading-path nav {
  display: flex;
  flex-wrap: wrap;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  gap: 0.75rem;
}
.opx-reading-path a {
  border: 1px solid var(--border-lin);
  border-radius: 2px;
  background: var(--bg-papier);
  color: var(--text-muted) !important;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.55rem 0.7rem;
  text-transform: uppercase;
}
.opx-reading-path a:hover {
  border-color: var(--border-lin-strong);
  color: var(--text-encre) !important;
}
.opx-template-tutorial .opx-article-body,
.opx-tutorial-obsidian .opx-article-body {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--gap-xl) 1.5rem;
}
.opx-prose {
  max-width: 760px;
  color: #333;
  font-size: 1.08rem;
  line-height: 1.76;
}
.opx-prose h2 {
  margin: var(--gap-lg) 0 1.1rem;
  color: var(--text-encre);
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
}
.opx-prose h3 {
  color: var(--text-encre);
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0;
}
.opx-card-grid,
.opx-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--border-lin);
  background: var(--border-lin);
}
.opx-step-grid {
  counter-reset: step;
}
.opx-card,
.opx-step {
  border: 0;
  border-radius: 0;
  background: var(--bg-papier);
  box-shadow: none;
  padding: 1.35rem;
}
.opx-step {
  counter-increment: step;
  position: relative;
  min-height: 116px;
  padding-left: 3.6rem;
}
.opx-step::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.35rem;
  display: grid;
  width: 1.6rem;
  height: 1.6rem;
  place-items: center;
  border: 1px solid var(--accent-cuivre);
  border-radius: 50%;
  background: transparent;
  color: var(--accent-cuivre);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.opx-card p,
.opx-step p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.58;
}
.opx-feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.opx-feature-strip span {
  border: 1px solid var(--border-lin);
  border-radius: 2px;
  background: var(--bg-papier-deep);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.65rem;
  text-transform: uppercase;
}
.opx-template-tutorial .opx-callout,
.opx-tutorial-obsidian .opx-callout {
  border: 1px solid var(--border-lin);
  border-left: 3px solid var(--accent-cuivre);
  border-radius: 2px;
  background: var(--bg-papier-deep);
  padding: 1.25rem 1.5rem;
}
.opx-faq {
  counter-reset: faq;
  display: grid;
  gap: 1px;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--border-lin);
  background: var(--border-lin);
}
.opx-faq article {
  counter-increment: faq;
  position: relative;
  border: 0;
  border-radius: 0;
  background: var(--bg-papier-deep);
  padding: 1.35rem 1.35rem 1.35rem 3.75rem;
}
.opx-faq article::before {
  content: "Q" counter(faq, decimal-leading-zero);
  position: absolute;
  left: 1.25rem;
  top: 1.42rem;
  color: var(--accent-cuivre);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.opx-faq h3 {
  margin: 0 0 0.5rem;
  color: var(--text-encre);
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
}
.opx-faq p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.64;
}
.opx-faq-disclosure {
  counter-reset: faq;
  display: grid;
  gap: 1px;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--border-lin);
  background: var(--border-lin);
}
.opx-faq-disclosure details {
  counter-increment: faq;
  background: var(--bg-papier-deep);
}
.opx-faq-disclosure summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  padding: 1rem 3.5rem 1rem 3.75rem;
  color: var(--text-encre);
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.opx-faq-disclosure summary::-webkit-details-marker {
  display: none;
}
.opx-faq-disclosure summary::before {
  content: "Q" counter(faq, decimal-leading-zero);
  position: absolute;
  left: 1.25rem;
  color: var(--accent-cuivre);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}
.opx-faq-disclosure summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  color: var(--accent-cuivre);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 400;
}
.opx-faq-disclosure details[open] summary::after {
  content: "−";
}
.opx-faq-disclosure summary:focus-visible {
  outline: 3px solid var(--accent-cuivre);
  outline-offset: -3px;
}
.opx-faq-disclosure__answer {
  padding: 0 3.75rem 1.25rem;
}
.opx-faq-disclosure__answer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.64;
}
@media (max-width: 600px) {
  .opx-faq-disclosure summary {
    padding: 0.9rem 3rem 0.9rem 2.9rem;
    font-size: 1rem;
  }
  .opx-faq-disclosure summary::before {
    left: 0.85rem;
  }
  .opx-faq-disclosure summary::after {
    right: 0.9rem;
  }
  .opx-faq-disclosure__answer {
    padding: 0 1rem 1.1rem 2.9rem;
  }
}
.opx-related {
  margin-top: var(--gap-md);
  border: 1px solid var(--border-encre);
  border-radius: 2px;
  background: var(--bg-encre);
  color: #d8d2ca;
  padding: 1.75rem;
}
.opx-related h2 {
  color: var(--text-encre-light);
  font-family: var(--font-serif);
  font-weight: 500;
}
.opx-related p {
  color: #d8d2ca;
}
.opx-related a {
  color: #9fd0ef !important;
  text-decoration-color: rgba(159, 208, 239, 0.7) !important;
}
.opx-related a:hover {
  color: var(--accent-cuivre-glow) !important;
  text-decoration-color: currentColor !important;
}

/* --------------------------------------------------------------------------
   M100 — Copyable Markdown blocks
   -------------------------------------------------------------------------- */
.omk-obsidian-template-wrapper {
  --omk-code-bg: var(--bg-encre, #131316);
  --omk-border-radius: 4px;
  --omk-beam-width: 0;
  --omk-obsidian-btn-bg: rgba(247, 245, 240, 0.08);
  --omk-obsidian-btn-border: rgba(232, 228, 223, 0.18);
  --omk-obsidian-btn-hover-bg: rgba(184, 115, 51, 0.16);
  margin: 3rem 0 3.25rem;
  border: 1px solid var(--border-encre, #2E2E34);
  border-radius: 4px;
  background: var(--bg-encre, #131316);
  box-shadow: 0 18px 38px rgba(26, 26, 26, 0.16);
  overflow: visible;
}
.omk-obsidian-template-wrapper::before {
  content: "•••  OBSIDIAN // TEMPLATE";
  top: -1.65rem;
  left: 0;
  color: var(--text-faint, #9A9590);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  opacity: 1;
}
.omk-obsidian-template-wrapper[data-opx-copy-kind="markdown"]::before {
  content: "•••  MARKDOWN // COPIABLE";
}
.omk-obsidian-template-wrapper[data-opx-copy-kind="markdown-table"]::before {
  content: "•••  MARKDOWN // TABLEAU";
}
.omk-obsidian-template-wrapper .omk-beam-layer {
  display: none;
}
.omk-obsidian-template-wrapper .omk-obsidian-template-wrapper[data-opx-copy-nested="1"] {
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.omk-obsidian-template-wrapper .omk-obsidian-template-wrapper[data-opx-copy-nested="1"]::before,
.omk-obsidian-template-wrapper .omk-obsidian-template-wrapper[data-opx-copy-nested="1"] .omk-obsidian-copy-button {
  display: none !important;
}
.omk-obsidian-template-wrapper .omk-content-layer {
  margin: 0;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0) 34%),
    var(--bg-encre, #131316);
  box-shadow: none;
}
.omk-obsidian-template-wrapper .omk-content-layer::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-cuivre, #B87333);
  opacity: 0.9;
}
.omk-obsidian-template-wrapper .omk-content-layer pre {
  max-height: min(680px, 72vh);
  padding: 1.65rem 1.65rem 1.75rem !important;
  padding-right: 12.5rem !important;
  color: var(--text-encre-light, #E8E4DF) !important;
  font-family: var(--font-mono, ui-monospace, monospace) !important;
  font-size: 0.88rem !important;
  line-height: 1.75 !important;
  scrollbar-color: rgba(232, 228, 223, 0.24) transparent;
}
.omk-obsidian-template-wrapper code {
  color: inherit !important;
  white-space: pre;
}
.omk-obsidian-copy-button {
  top: 0.85rem !important;
  right: 0.85rem !important;
  min-width: 0;
  height: 30px;
  border-radius: 2px !important;
  color: var(--text-encre-light, #E8E4DF) !important;
  font-family: var(--font-mono, ui-monospace, monospace) !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.06em;
}
.omk-obsidian-copy-button:hover {
  border-color: rgba(212, 165, 116, 0.58);
  color: #fff !important;
  box-shadow: none;
}
.omk-obsidian-copy-button:focus-visible {
  outline: 2px solid var(--accent-cuivre-glow, #D4A574);
  outline-offset: 3px;
}
.omk-obsidian-copy-button:disabled {
  background: rgba(74, 124, 89, 0.22) !important;
  border-color: rgba(107, 158, 122, 0.34) !important;
  color: #dcefe1 !important;
}
.opx-copyable-note {
  margin: -1.5rem 0 2.5rem;
  color: var(--text-muted, #6B6560);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   M101 — Resource library / template pages
   -------------------------------------------------------------------------- */
.opx-template-library .opx-tutorial-hero {
  border-bottom: 1px solid var(--border-lin);
}
.opx-template-library .opx-article-body {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--gap-xl) 1.5rem;
}
.opx-template-library .opx-template-index {
  margin: 1.75rem 0 2.25rem;
}
.opx-template-block {
  margin: clamp(3rem, 6vw, 5rem) 0;
}
.opx-template-block .opx-callout {
  margin-bottom: 2.6rem;
}
.opx-template-block .opx-callout strong {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.1;
  color: var(--text-encre);
  text-transform: none;
}
.opx-template-block .opx-callout p {
  max-width: 46rem;
  margin: 0;
}
.opx-template-library .opx-related {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

@media (max-width: 760px) {
  .opx-template-library .opx-article-body {
    padding: var(--gap-lg) 1.25rem;
  }
  .opx-tutorial-hero {
    padding: var(--gap-lg) 0 var(--gap-md);
  }
  .opx-template-tutorial .opx-hero-grid,
  .opx-tutorial-obsidian .opx-hero-grid,
  .opx-card-grid,
  .opx-step-grid {
    grid-template-columns: 1fr;
  }
  .opx-template-tutorial .opx-article-body,
  .opx-tutorial-obsidian .opx-article-body {
    padding: var(--gap-lg) 1.25rem;
  }
  .opx-reading-path nav {
    padding: 0.75rem 1.25rem;
  }
  .omk-obsidian-template-wrapper .omk-content-layer pre {
    max-height: 70vh;
    padding-top: 3.7rem !important;
    padding-right: 1.25rem !important;
    padding-left: 1.25rem !important;
    font-size: 0.82rem !important;
  }
  .omk-obsidian-copy-button {
    left: 1rem !important;
    right: auto !important;
    max-width: calc(100% - 2rem);
  }
}

/* --------------------------------------------------------------------------
   M113 — Accessibility normalization and Atlas progressive disclosure
   -------------------------------------------------------------------------- */
.opx-button-cuivre {
  background-color: var(--accent-cuivre-deep) !important;
}
.opx-button-cuivre:hover {
  background-color: var(--accent-cuivre-deep) !important;
}
.hero-index-card .card-stamp.is-cuivre,
.editor-bio .editor-role,
.card-num,
.note-slab-tag.is-canon,
.opx-universe-route-link span {
  color: var(--accent-cuivre-deep) !important;
}
.opx-workbench-section .text-accent-cuivre,
.opx-workbench-section .card-num,
.mode-encre .text-accent-cuivre,
.mode-encre .card-num,
.bg-encre .text-accent-cuivre,
.bg-encre .card-num {
  color: var(--accent-cuivre-glow) !important;
}

.opx-universe-disclosure {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border-lin);
}
.opx-universe-disclosure summary {
  min-height: 44px;
  padding: 0.9rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  color: var(--text-encre);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.opx-universe-disclosure summary::after {
  content: '+';
  color: var(--accent-cuivre-deep);
  font-size: 1rem;
}
.opx-universe-disclosure[open] summary::after {
  content: '−';
}
.opx-universe-disclosure summary:focus-visible {
  outline: 2px solid var(--accent-cuivre-deep);
  outline-offset: 4px;
}
.opx-universe-disclosure[open] .opx-universe-links-flow {
  padding: 0.35rem 0 0.5rem;
}
.opx-universe-topic.is-final .opx-universe-disclosure {
  border-top-color: var(--border-encre);
}
.opx-universe-topic.is-final .opx-universe-disclosure summary {
  color: var(--text-encre-light);
}
.opx-universe-topic.is-final .opx-universe-disclosure summary::after {
  color: var(--accent-cuivre-glow);
}
.opx-universe-topic.is-final .opx-universe-disclosure summary:focus-visible {
  outline-color: var(--accent-cuivre-glow);
}

@media (max-width: 760px) {
  .opx-section-num,
  .label-mono,
  .opx-kicker,
  .opx-folio,
  .opx-marginalia,
  .hero-index-card .card-coords,
  .hero-atlas-footer,
  .reading-card .reading-date,
  .rail-item span,
  .atlas-node .node-code,
  .route-step-link > span:first-child,
  .route-steps em,
  .proof-label,
  .opx-tutorial-hero .opx-kicker,
  .opx-universe-topic-meta em,
  .opx-universe-topic-meta small,
  .opx-universe-section-tags span,
  .opx-universe-route-link span,
  .opx-mobile-heading,
  .opx-mobile-link .link-meta,
  .opx-proof-title,
  .opx-proof-status,
  .footer-col h4,
  .footer-bottom,
  .omk-obsidian-copy-button {
    font-size: 0.75rem !important;
  }
  .opx-universe-disclosure summary {
    align-items: flex-start;
  }
}


/* --------------------------------------------------------------------------
   0.1.53 DESIGN 20261010 : jetons de mouvement, ÉLYSIA OS actif, lettre Optimike, liens légaux
   -------------------------------------------------------------------------- */
:root { --opx-ease: cubic-bezier(.2,.7,.2,1); --opx-t-fast: 160ms; --opx-t-base: 260ms; --opx-t-slow: 520ms; }
.opx-cta-group .opx-btn-secondary.is-active { background: rgba(184,115,51,.16); border-color: #B87333; color: #1A1A1A; }
.opx-newsletter { background: #EFEDE8; border-top: 1px solid #E0DCD4; padding: 72px 0; }
.opx-newsletter-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: end; }
@media (min-width: 900px) { .opx-newsletter-grid { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 64px; } }
.opx-newsletter .opx-newsletter-copy .opx-newsletter-eyebrow { margin: 0 0 14px; font: 500 12px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #985C26; }
.opx-newsletter-copy h2 { margin: 0 0 14px; font-family: var(--font-serif); font-weight: 500; font-size: clamp(28px, 3vw, 40px); line-height: 1.12; letter-spacing: -.02em; color: #1A1A1A; max-width: 18em; text-wrap: balance; }
.opx-newsletter-copy p { margin: 0; color: #6B6560; font-size: 16px; line-height: 1.6; max-width: 34em; }
.opx-newsletter-form { margin: 0; }
.opx-newsletter-label { display: block; margin: 0 0 8px; font: 500 14px/1.4 var(--font-sans); color: #1A1A1A; }
.opx-newsletter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.opx-newsletter-row input[type="email"] { flex: 1 1 240px; min-height: 52px; padding: 0 16px; border: 1px solid #A8A29A; border-radius: 2px; background: #F7F5F0; font: 400 16px var(--font-sans); color: #1A1A1A; transition: border-color 160ms var(--opx-ease), box-shadow 160ms var(--opx-ease); }
.opx-newsletter-row input[type="email"]:focus { outline: none; border-color: #1A1A1A; box-shadow: 0 0 0 3px rgba(184,115,51,.25); }
.opx-newsletter-row .opx-btn { min-height: 52px; padding: 0 24px; font-size: 15px; }
.opx-newsletter-privacy { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: #6B6560; }
.opx-newsletter-privacy a { color: #1A1A1A; text-decoration: underline; text-decoration-color: #B87333; text-underline-offset: 3px; }
.opx-newsletter-success { margin: 12px 0 0; padding: 10px 14px; border-left: 2px solid #4A7C59; background: #F7F5F0; font-weight: 500; color: #1A1A1A; }
.opx-newsletter-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.footer-legal a { color: var(--text-faint); text-decoration: none; transition: color 160ms var(--opx-ease); }
.footer-legal a:hover { color: var(--text-encre); }
@media (max-width: 639px) { .opx-newsletter { padding: 52px 0; } .opx-newsletter-row .opx-btn { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .opx-newsletter *, .footer-legal a { transition: none !important; } }


/* --------------------------------------------------------------------------
   0.1.54 ARTICLE 20261010 : méta d'article, sommaire, aperçu des liens
   -------------------------------------------------------------------------- */
.opx-article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 22px !important; padding: 12px 0; border-top: 1px solid #E0DCD4; border-bottom: 1px solid #E0DCD4; font: 500 12px/1.5 var(--font-mono) !important; letter-spacing: .06em; text-transform: uppercase; color: #6B6560 !important; }
.opx-article-meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 14px 2px 0; border-radius: 50%; background: #B87333; vertical-align: middle; }
.opx-article-meta time { color: #1A1A1A; }
.opx-article-toc { margin: 0 0 32px; border: 1px solid #E0DCD4; background: #EFEDE8; border-radius: 2px; }
.opx-article-toc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px; font: 500 12px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #985C26; }
.opx-article-toc summary::-webkit-details-marker { display: none; }
.opx-article-toc summary span { color: #6B6560; letter-spacing: .04em; }
.opx-article-toc summary::after { content: "+"; font-size: 16px; line-height: 1; color: #985C26; transition: transform 260ms var(--opx-ease); }
.opx-article-toc[open] summary::after { transform: rotate(45deg); }
.opx-article-toc ol { margin: 0 !important; padding: 4px 18px 16px 40px !important; display: grid; gap: 6px; counter-reset: none; }
.opx-article-toc li { margin: 0 !important; padding-left: 4px; font-size: 15px; line-height: 1.45; color: #6B6560; }
.opx-article-toc li::marker { font: 500 12px var(--font-mono); color: #985C26; }
.opx-article-toc a { color: #1A1A1A !important; text-decoration: none !important; background: linear-gradient(#B87333, #B87333) 0 100% / 0 1px no-repeat; transition: background-size 260ms var(--opx-ease); }
.opx-article-toc a:hover, .opx-article-toc a:focus-visible { background-size: 100% 1px; }
.opx-link-preview { position: fixed; z-index: 1200; width: 340px; padding: 14px 16px; background: #FBFAF7; border: 1px solid #D0CCC4; box-shadow: 0 24px 60px -30px rgba(26,26,26,.5); border-radius: 2px; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity 260ms var(--opx-ease), transform 260ms var(--opx-ease); }
.opx-link-preview.is-visible { opacity: 1; transform: none; }
.opx-link-preview p { margin: 0; }
.opx-link-preview-meta { font: 500 12px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: #6B6560; }
.opx-link-preview-title { margin: 6px 0 4px !important; font: 500 18px/1.25 var(--font-serif); color: #1A1A1A; }
.opx-link-preview-text { font: 400 14px/1.5 var(--font-sans); color: #3B3833; }
@media (prefers-reduced-motion: reduce) { .opx-link-preview, .opx-article-toc a, .opx-article-toc summary::after { transition: none !important; } }


/* 0.1.55 LOGO 20261010 : point de « Optimike. » recollé (il était décollé par le gap du flex). */
.opx-logo { gap: 0; }
.opx-logo span { margin-left: -0.02em; }

/* 0.1.56 STATEMENT 20261012 : énoncé de clôture (optm-statement).
   Phrase signature, dans la voix de l'auteur, qui ferme une section ; une par section, jamais en hero.
   Serif, encre, taille fluide 24 px (mobile) → 36 px (desktop). Sélecteurs renforcés pour gagner sur
   les styles de page (CSS custom des landings, ex. .opx-elysia-landing p). */
.optm-standard-shell .optm-content p.optm-statement,
.opx-page .opx-elysia-section p.optm-statement,
.optm-content p.optm-statement,
p.optm-statement {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  font-weight: 500;
  font-style: normal;
  line-height: 1.22;
  letter-spacing: -0.005em;
  color: var(--text-encre);
  max-width: 34ch;
  margin-top: 2rem;
  margin-bottom: 0;
  text-wrap: balance;
}


/* --------------------------------------------------------------------------
   0.1.64 SOCLE 20261017 : corrections systémiques (étude design du 17 octobre 2026, lots 0 et 1)
   -------------------------------------------------------------------------- */
/* Schéma agrandissable dans un groupe WordPress « constrained » (ex. /excalibrain-obsidian/) :
   la règle de mise en page de WordPress force margin-left:auto !important et max-width:760px,
   ce qui annulait la sortie de colonne et laissait le translateX(-50%) décaler l'image hors de l'écran. */
@media (min-width: 1024px) {
  .article-content.is-layout-constrained > .opx-diagram-viewer {
    max-width: none !important;
    margin-left: 50% !important;
    margin-right: 0 !important;
  }
}
/* Boutons WordPress (core/buttons) dans le contenu : sans ce style, fond gris par défaut et texte de lien bleu souligné (1,64:1).
   :not(#optm-button) donne le poids d'un identifiant, au-dessus de la règle de lien M52b d'optm-custom.css (!important).
   Plein = encre ; contour = encre sur papier. Le cuivre reste réservé aux actions d'offre (DESIGN.md §2). */
.optm-site-main .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.optm-site-main .wp-block-button .wp-block-button__link:not(#optm-button) {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px;
  border: 1px solid var(--text-encre); border-radius: 2px; background: var(--text-encre) !important; color: var(--bg-papier) !important;
  font: 600 15px/1.25 var(--font-sans); text-decoration: none !important;
  transition: background-color 160ms var(--opx-ease), color 160ms var(--opx-ease);
}
.optm-site-main .wp-block-button .wp-block-button__link:not(#optm-button):hover { background: #2A2A2A !important; color: var(--bg-papier) !important; }
.optm-site-main .wp-block-button.is-style-outline .wp-block-button__link:not(#optm-button) { background: transparent !important; color: var(--text-encre) !important; }
.optm-site-main .wp-block-button.is-style-outline .wp-block-button__link:not(#optm-button):hover { background: rgba(26, 26, 26, .05) !important; color: var(--text-encre) !important; }
.optm-site-main .wp-block-button .wp-block-button__link:not(#optm-button):focus-visible { outline: 3px solid var(--text-encre); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .optm-site-main .wp-block-button .wp-block-button__link:not(#optm-button) { transition: none; } }

/* --------------------------------------------------------------------------
   0.1.65 SYSTÈME ÉDITORIAL 20261017 : en-tête, surtitre, méta, corps, rail mobile (étude design du 17 octobre 2026, lot 2)
   La page de vente (2559) et la formation (746) gardent leur rendu : seul l'en-tête commun les concerne,
   et sur 2559 il était déjà en contour (mêmes valeurs).
   -------------------------------------------------------------------------- */
/* En-tête : « Explorer les guides » en contour sur tout le site ; le plein reste à l'action de la page. */
.opx-header .opx-btn.opx-btn-primary,
.opx-nav-mobile .opx-btn.opx-btn-primary { background: transparent; color: #1a1a1a; border: 1px solid #d0ccc4; box-shadow: none; }
.opx-header .opx-btn.opx-btn-primary:hover,
.opx-nav-mobile .opx-btn.opx-btn-primary:hover { border-color: #1a1a1a; background: transparent; color: #1a1a1a; }

/* Surtitre des articles : rubrique réelle (assets/data/rubriques.json) au lieu de « Optimike » ; casse normale, encre douce. */
.optm-standard-shell .optm-page-header .opx-kicker { text-transform: none; letter-spacing: 0; font-size: 0.8125rem; color: #6B6560; margin-bottom: 0.75rem; }

/* Méta sur une ligne, en casse normale ; mots de liaison masqués visuellement sous 600 px. */
.opx-article-meta { letter-spacing: 0 !important; text-transform: none !important; gap: 4px 12px; }
.opx-article-meta > span { white-space: nowrap; }
.opx-article-meta > span + span::before { margin-right: 12px; }
@media (max-width: 600px) {
  .opx-article-meta__long { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}

/* Corps de texte en encre (même rôle, une seule couleur) et lignes de 70 caractères au plus.
   Standard : même ensemble d'éléments que la règle du socle V2.4.1 d'optm-custom.css (gris #6B6560), un cran plus spécifique.
   Articles récents, guides à parcours et tutoriels : paragraphes et listes enfants directs de la colonne seulement
   (les encarts, panneaux sombres et légendes gardent leurs couleurs). */
body .optm-standard-shell .optm-content :where(p, ul, ol) { color: var(--text-encre); }
body .optm-standard-shell .optm-content > :where(p, ul, ol),
body:not(.page-id-2559):not(.page-id-746) .opx-article-container .article-content > :where(p, ul, ol),
body:not(.page-id-2559):not(.page-id-746) .opx-tutorial-obsidian .opx-prose > :where(p, ul, ol) { max-width: 36em; }
body:not(.page-id-2559):not(.page-id-746) .opx-article-container .article-content > :where(p:not(.opx-lead), ul, ol),
body:not(.page-id-2559):not(.page-id-746) .opx-tutorial-obsidian .opx-prose > :where(p, ul, ol) { color: var(--text-encre); }

/* Rail « Parcours de lecture » : l'original à partir de 1040 px, la copie placée après la réponse en dessous
   (functions.php, optm_article_mobile_rail). Les règles de page qui masquaient le rail sur mobile (/obsidian/) s'appliquent aussi à la copie. */
@media (max-width: 1039px) {
  .opx-article-container > .article-side-rail:not(.is-mobile-copy) { display: none; }
  .article-content > .article-side-rail.is-mobile-copy { margin: 1.5rem 0 2rem; }
}
@media (min-width: 1040px) {
  .article-side-rail.is-mobile-copy { display: none; }
}
/* Indicateur de section de l'en-tête : 3,2:1 (et 1,1:1 pendant son fondu, encore lu par axe). Encre douce, 12 px,
   retiré de l'arbre d'accessibilité tant qu'il est masqué. 2559 garde son rendu. */
body:not(.page-id-2559) .opx-section-indicator { color: #6B6560; font-size: 0.75rem; visibility: hidden; transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s; }
body:not(.page-id-2559) .opx-section-indicator.is-visible { visibility: visible; transition-delay: 0s; }

/* --------------------------------------------------------------------------
   0.1.66 PREUVE 20261017 : ligne de provenance et cartouche « Testé le… » (étude design du 17 octobre 2026, lot 3)
   Pilote : /tutoriel-obsidian-pour-debutants/. Composant AO-M11 proof-freshness-cartouche publié (une carte de section).
   -------------------------------------------------------------------------- */
/* Ligne de provenance sous un média : nature de l'image, coffre, version, date. Bleu sourd (rôle des étiquettes de provenance). */
.optm-content .opx-provenance { display: block; margin-top: 8px; font: 500 12px/1.5 var(--font-mono); letter-spacing: 0; text-transform: none; color: #2E5A7C; }
.optm-content .opx-provenance strong { font-weight: 600; }

/* Cartouche de preuve : une affirmation ou une section, jamais toute la page. États écrits, pas seulement colorés. */
.optm-content .opx-proof-freshness { display: flex; flex-direction: column; max-width: 40rem; margin: 28px 0 32px; padding: 22px 24px; border: 1px solid #D0CCC4; border-top: 3px solid #985C26; background: rgba(255, 255, 255, .42); border-radius: 0; }
.optm-content .opx-proof-freshness[data-state="up_to_date"] { border-top-color: #4A7C59; }
.optm-content .opx-proof-freshness[data-state="review_required"] { border-top-color: #8B2F2F; }
.optm-content .opx-proof-freshness__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 0 0 14px; }
.optm-content .opx-proof-freshness__type { margin: 0; font: 600 12px/1.35 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: #2E5A7C; }
.optm-content .opx-proof-freshness__status { flex: 0 0 auto; padding: 5px 8px; border: 1px solid currentColor; font: 600 12px/1.2 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: #985C26; }
.optm-content .opx-proof-freshness[data-state="up_to_date"] .opx-proof-freshness__status { color: #3F6B4C; }
.optm-content .opx-proof-freshness__scope { margin: 0; font: 500 21px/1.3 var(--font-serif); color: var(--text-encre); max-width: none; }
.optm-content .opx-proof-freshness__scope strong { display: block; margin-bottom: 6px; font: 600 12px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: #6B6560; }
.optm-content .opx-proof-freshness__verification { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid #D0CCC4; font-size: 15px; line-height: 1.6; color: var(--text-encre); max-width: none; }
.optm-content .opx-proof-freshness__limit { margin: 14px 0 0; padding-left: 12px; border-left: 2px solid #985C26; font-size: 14px; line-height: 1.55; color: #4A4541; max-width: none; }
.optm-content .opx-proof-freshness__limit strong { color: var(--text-encre); }
.optm-content a.opx-proof-freshness__details { align-self: flex-start; margin-top: 14px; font: 600 14px/1.4 var(--font-sans); color: var(--text-encre); text-decoration: underline; text-decoration-color: #985C26; text-underline-offset: 4px; }
.optm-content a.opx-proof-freshness__details:focus-visible { outline: 3px solid #2E5A7C; outline-offset: 4px; }
@media (max-width: 600px) {
  .optm-content .opx-proof-freshness { padding: 18px; }
  .optm-content .opx-proof-freshness__head { display: grid; gap: 10px; }
  .optm-content .opx-proof-freshness__status { justify-self: start; }
  .optm-content .opx-proof-freshness__scope { font-size: 19px; }
}
@media (forced-colors: active) { .optm-content .opx-proof-freshness, .optm-content .opx-proof-freshness__status { border-color: CanvasText; } }
/* Captures agrandissables : le signal du diagram-viewer nomme une capture, pas un schéma. */
.opx-diagram-viewer.is-capture .opx-diagram-viewer__link::after { content: "Agrandir la capture ↗"; }
/* Numéros du chemin de tutoriel : blanc sur cuivre profond (5,4:1) au lieu du cuivre de marque (3,8:1, texte de 12 px). */
.optm-content .opx-tutorial-path .opx-tutorial-path__num { background: #985C26; }
/* Lien dans le bandeau sombre « suite de lecture » des tutoriels : la règle de lien M52b (bleu, !important) donnait 2,2:1 sur graphite. */
.optm-content .opx-related p a:not(#optm-link) { color: #F7F5F0 !important; text-decoration-color: #D4A574 !important; }
.optm-content .opx-related p a:not(#optm-link):hover { color: #D4A574 !important; }
/* 0.1.67 : pastilles du chemin de tutoriel. Les plages de minutes (« 10-15 ») débordaient du rond de 32 px et passaient
   sur deux lignes (/tutoriel-obsidian-pour-debutants/, « Vos 30 premières minutes »). La pastille s'élargit au texte ;
   un chiffre seul garde un rond ; colonne fixe de 3,5 rem pour que les titres restent alignés. */
.optm-content .opx-tutorial-path .opx-tutorial-path__num { box-sizing: border-box; justify-self: start; width: auto; min-width: 2rem; padding: 0 0.55rem; border-radius: 999px; white-space: nowrap; }
@media (min-width: 821px) {
  .optm-content .opx-tutorial-path .opx-tutorial-path__item { grid-template-columns: 3.5rem minmax(0, 1fr) minmax(12rem, 0.55fr); }
  .optm-content .opx-tutorial-path--inline .opx-tutorial-path__item { grid-template-columns: 3.5rem minmax(0, 1fr); }
}
/* --------------------------------------------------------------------------
   0.1.68 LOT 0 20261017 : reste des corrections systémiques (étude design du 17 octobre 2026)
   -------------------------------------------------------------------------- */
/* Pied de page : titres de colonnes, copyright et liens légaux à 12 px (11,2 px auparavant, sous le plancher du canon). 2559 garde son rendu. */
body:not(.page-id-2559) .footer-col h4,
body:not(.page-id-2559) .footer-bottom,
body:not(.page-id-2559) .footer-bottom a,
body:not(.page-id-2559) .footer-legal a { font-size: 0.75rem; }
/* Petits libellés de couleur : cuivre profond et vert profond (texte de 10 à 12 px sous 4,5:1 avec les teintes de marque), 12 px au moins. */
body:not(.page-id-2559) .optm-content .text-accent-cuivre { color: #985C26; }
body:not(.page-id-2559) .optm-content .text-accent-vert { color: #3F6B4C; }
body:not(.page-id-2559) .optm-content .reading-tag { font-size: 0.75rem; }
/* Zones défilantes rendues focusables par app.js : contour visible au clavier. */
.optm-content [data-optm-scroll-region]:focus-visible { outline: 3px solid #2E5A7C; outline-offset: 3px; }/* Numéro de section sur l'établi graphite (formation) : plancher fonctionnel #A39D96 (6,9:1) au lieu de #6F6964 (3,4:1). */
body:not(.page-id-2559) .opx-workbench-copy > .opx-section-num { color: #A39D96; }
