/* ============================================
   LE FAUX CENTRE — style.css
   Page canonique : Anatomie d'un langage d'emprise
   Palette : anthracite / bronze / papier froid
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Colors */
  --bg-primary: #FAFAFA;
  --bg-white: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-secondary: #666666;
  --accent: #2C2C2C;
  --accent-hover: #1A1A1A;
  --accent-secondary: #8B8B8B;
  --accent-secondary-hover: #6E6E6E;
  --badge-gold: #999999;
  --badge-gold-bg: rgba(150, 150, 150, 0.08);
  --border-light: #E0E0E0;
  --bg-light: rgba(0, 0, 0, 0.02);
  --bg-accent-light: rgba(0, 0, 0, 0.03);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --h1: clamp(32px, 5vw, 48px);
  --h2: clamp(24px, 4vw, 32px);
  --h3: clamp(18px, 3vw, 22px);
  --body: clamp(16px, 2vw, 18px);
  --small: 14px;

  /* Spacing */
  --section-gap: clamp(48px, 8vw, 80px);
  --content-width: 800px;
  --content-wide: 1000px;
  --radius: 12px;
  --border: 1px solid var(--border-light);
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

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

/* --- Site Header (sticky) --- */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.logo-link {
  flex-shrink: 0;
}

.logo {
  height: 54px;
  width: auto;
}

/* Desktop nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-desktop a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-desktop a:hover {
  color: var(--accent);
  background: var(--bg-light);
}

/* Header social icons */
.header-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
  flex-shrink: 0;
}

.header-social a {
  color: var(--text-secondary);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.header-social a:hover {
  color: var(--accent);
}

.header-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Mobile hamburger */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 6px;
  transition: background 0.2s;
}

.menu-btn:hover {
  background: var(--bg-light);
}

/* Mobile nav dropdown */
.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-white);
  flex-direction: column;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 99;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 14px 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.2s, background 0.2s;
}

.nav-mobile a:hover {
  color: var(--accent);
  background: var(--bg-light);
}

/* --- Content Container --- */
.section-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-inner--wide {
  max-width: var(--content-wide);
}

/* --- Section Spacing --- */
.section {
  padding: var(--section-gap) 0;
}

.section:nth-child(even) {
  background-color: var(--bg-white);
}

.section + .section {
  border-top: 1px solid var(--border-light);
}

.section-alt {
  background-color: var(--bg-white);
}

.section-subtitle {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.thesis {
  font-family: var(--font-display);
  font-size: var(--h3);
  font-weight: 600;
  font-style: normal;
  color: var(--text-primary);
  border-left: 4px solid var(--accent);
  background: var(--bg-light);
}

.section h2 {
  font-family: var(--font-display);
  font-size: var(--h2);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section h3 {
  font-family: var(--font-display);
  font-size: var(--h3);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.section p:last-child {
  margin-bottom: 0;
}

/* Section variants */
.section--wide .section-inner {
  max-width: var(--content-wide);
}

/* --- Hero --- */
.hero {
  background-color: var(--bg-primary);
  padding: clamp(48px, 6vw, 80px) 24px;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-content {
  flex: 1;
  text-align: left;
  min-width: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--h1);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: var(--h2);
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-bottom: 24px;
}

.hero-epigraph {
  border-left: 3px solid var(--accent-secondary);
  padding: 12px 18px;
  margin-bottom: 32px;
  color: var(--accent-secondary);
  font-style: italic;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.6;
  background: var(--bg-accent-light);
  border-radius: 0 8px 8px 0;
}

.hero-epigraph cite {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: var(--small);
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-meta {
  font-size: var(--small);
  color: var(--text-secondary);
  margin-top: 16px;
  letter-spacing: 0.02em;
}

.hero-counter {
  font-size: var(--small);
  color: var(--text-secondary);
  margin-top: 12px;
}

.hero-counter strong {
  color: var(--accent);
  font-weight: 700;
}

.hero-image {
  flex: 0 0 50%;
  max-width: 50%;
  overflow: hidden;
  cursor: zoom-in;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.1));
  margin: 0 auto;
  transform: rotate(-2deg);
  transform-origin: center center;
  border-radius: 4px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.4s ease;
}

.hero-image:hover img {
  transform: scale(1.4) rotate(0deg);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.18));
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--bg-white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--bg-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(58, 58, 58, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background: var(--bg-light);
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Bronze variant */
.btn-bronze {
  background: var(--accent-secondary);
  color: var(--bg-white);
  border-color: var(--accent-secondary);
}

.btn-bronze:hover {
  background: var(--accent-secondary-hover);
  border-color: var(--accent-secondary-hover);
  color: var(--bg-white);
  transform: translateY(-1px);
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  box-shadow: 0 6px 24px rgba(58, 58, 58, 0.10);
  border-color: #AAAAAA;
}

.card h3 {
  font-family: var(--font-display);
  font-size: var(--h3);
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.card-label {
  display: block;
  font-size: var(--small);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.card-icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}

.card-chapters {
  font-size: var(--small);
  color: var(--accent-secondary);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.card p {
  font-size: clamp(15px, 1.8vw, 16px);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
}

/* --- FAQ Accordion — 7 Signaux d'alerte --- */
.signals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.signal-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.signal-item:hover {
  border-color: #AAAAAA;
  box-shadow: 0 4px 16px rgba(58, 58, 58, 0.07);
}

.signal-item[open] {
  border-color: var(--accent-secondary);
  box-shadow: 0 6px 24px rgba(139, 115, 85, 0.10);
}

.signal-item summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.2s;
}

.signal-item summary::-webkit-details-marker {
  display: none;
}

.signal-item summary::marker {
  display: none;
  content: "";
}

.signal-item[open] summary {
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-accent-light);
}

.signal-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-white);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.25s;
  flex-shrink: 0;
}

.signal-item[open] .signal-badge {
  background: var(--accent-secondary);
}

.signal-title {
  flex: 1;
  line-height: 1.4;
}

/* Chevron */
.signal-item summary::after {
  content: "▸";
  color: var(--text-secondary);
  font-size: 14px;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.25s;
}

.signal-item[open] summary::after {
  content: "▾";
  color: var(--accent-secondary);
  transform: none;
}

/* FAQ answer content */
.signal-body {
  padding: 20px 24px 24px 76px;
}

.signal-body p {
  margin-bottom: 14px;
  line-height: 1.75;
  color: var(--text-primary);
  font-size: clamp(15px, 1.8vw, 16px);
}

.signal-body p:last-child {
  margin-bottom: 0;
}

/* Signal test block */
.signal-test {
  background: var(--bg-accent-light);
  border-left: 3px solid var(--accent-secondary);
  padding: 16px 18px;
  border-radius: 0 6px 6px 0;
  margin-top: 16px;
  font-size: clamp(14px, 1.6vw, 15px);
  color: var(--text-primary);
  line-height: 1.65;
}

.signal-test strong {
  color: var(--accent-secondary);
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: var(--small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Grille QIMI Table --- */
.table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.grille-table {
  width: 100%;
  border-collapse: collapse;
}

.grille-table thead th {
  background: var(--accent);
  color: var(--bg-white);
  padding: 12px 16px;
  text-align: left;
  font-size: var(--small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.grille-table thead th:first-child {
  border-radius: var(--radius) 0 0 0;
}

.grille-table thead th:last-child {
  border-radius: 0 var(--radius) 0 0;
}

.grille-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  line-height: 1.6;
  font-size: clamp(14px, 1.6vw, 15px);
}

.grille-table tbody tr:last-child td {
  border-bottom: none;
}

.grille-table tbody tr:hover {
  background: var(--bg-light);
}

.grille-table .score-row {
  font-weight: 700;
  color: var(--accent-secondary);
  background: var(--bg-accent-light);
}

.grille-table .score-row:hover {
  background: var(--bg-accent-light);
}

.grille-result {
  background: var(--bg-accent-light);
  border-left: 4px solid var(--accent-secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin-top: 24px;
  font-size: clamp(15px, 1.8vw, 16px);
  line-height: 1.65;
}

/* --- Download Section --- */
.download-section-card {
  max-width: 480px;
  margin: 0 auto;
}

.download-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: box-shadow 0.25s;
}

.download-card:hover {
  box-shadow: 0 8px 28px rgba(58, 58, 58, 0.10);
}

.download-card-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 20px;
  line-height: 1;
}

.download-card-title {
  font-family: var(--font-display);
  font-size: var(--h2);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.download-card-subtitle {
  font-family: var(--font-display);
  font-size: var(--h3);
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.download-card-info {
  font-size: var(--small);
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.download-card-license {
  font-size: var(--small);
  color: var(--text-secondary);
  margin-top: 16px;
}

.download-card-license a {
  color: var(--accent-secondary);
}

.download-card h3 {
  font-family: var(--font-display);
  font-size: var(--h3);
  margin-bottom: 8px;
}

.download-card .file-info {
  font-size: var(--small);
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.download-card .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 20px;
}

.sha-block {
  background: var(--bg-light);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  word-break: break-all;
  text-align: left;
  margin-top: 16px;
  line-height: 1.5;
}

.sha-block dt {
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
  margin-bottom: 4px;
}

.sha-block dd {
  word-break: break-all;
}

/* Download grid (multi-item) */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.download-grid-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.download-grid-card:hover {
  border-color: var(--accent-secondary);
  box-shadow: 0 4px 16px rgba(139, 115, 85, 0.10);
  color: var(--text-primary);
}

.download-grid-card .card-title {
  font-weight: 600;
  font-size: 16px;
}

.download-grid-card .card-desc {
  font-size: var(--small);
  color: var(--text-secondary);
}

/* --- Newsletter Section (dark) --- */
.section-newsletter {
  background: linear-gradient(135deg, #1C1C1C 0%, #2A2A2A 50%, #1C1C1C 100%);
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: clamp(56px, 8vw, 88px);
  padding-bottom: clamp(56px, 8vw, 88px);
}

.section-newsletter::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 200%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(201, 176, 55, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(139, 115, 85, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.section-newsletter .section-inner {
  position: relative;
  z-index: 1;
}

.section-newsletter h2 {
  font-family: var(--font-display);
  color: #FFFFFF;
  border-bottom: none;
  margin-bottom: 8px;
}

.newsletter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(201, 176, 55, 0.12);
  border: 1px solid rgba(201, 176, 55, 0.25);
  margin: 0 auto 20px;
}

.newsletter-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--badge-gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.newsletter-subtitle {
  color: rgba(255, 255, 255, 0.70);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 520px;
  margin: 32px auto 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.newsletter-fields {
  display: flex;
  gap: 10px;
}

.newsletter-form {}

.newsletter-fields input[type="email"] {
  flex: 1;
  padding: 15px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  outline: none;
  transition: all 0.25s ease;
}

.newsletter-fields input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.newsletter-fields input[type="email"]:focus {
  border-color: var(--badge-gold);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(201, 176, 55, 0.12);
}

.newsletter-fields button {
  padding: 15px 26px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--badge-gold) 0%, #D4BC4A 100%);
  color: #1A1714;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(201, 176, 55, 0.25);
}

.newsletter-fields button:hover {
  background: linear-gradient(135deg, #D4BC4A 0%, #E0CA5C 100%);
  box-shadow: 0 4px 16px rgba(201, 176, 55, 0.35);
  transform: translateY(-1px);
}

.newsletter-fields button:active {
  transform: translateY(0);
}

.newsletter-fields button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.newsletter-msg {
  margin-top: 16px;
  font-size: var(--small);
  min-height: 20px;
  transition: all 0.3s ease;
}

.newsletter-msg.success {
  color: #8FD584;
}

.newsletter-msg.error {
  color: #F5A0A0;
}

.newsletter-privacy {
  margin-top: 20px;
  font-size: 12px;
  color: var(--badge-gold) !important;
  letter-spacing: 0.02em;
  opacity: 0.8;
}

.newsletter-privacy svg {
  display: inline;
  width: 12px;
  height: 12px;
  vertical-align: -1px;
  margin-right: 3px;
  fill: none;
  stroke: var(--badge-gold);
  stroke-width: 2;
  opacity: 0.8;
}

/* --- Table des matières --- */
.toc-movements {
  margin-top: 24px;
}

.toc-movement {
  margin-bottom: 36px;
}

.toc-movement:last-child {
  margin-bottom: 0;
}

.toc-movement-title,
.toc-movement h3 {
  font-family: var(--font-display);
  font-size: var(--h3);
  color: var(--accent-secondary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.toc-list {
  list-style: none;
  padding: 0;
}

.toc-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dotted var(--border-light);
  font-size: clamp(14px, 1.7vw, 16px);
  line-height: 1.55;
}

.toc-list li:last-child {
  border-bottom: none;
}

.toc-prelim {
  font-style: italic;
  color: var(--text-secondary);
}

.chapter-num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: var(--small);
  font-weight: 600;
  flex-shrink: 0;
  min-width: 36px;
}

.chapter-title {
  flex: 1;
  color: var(--text-primary);
}

.chapter-page {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* Full-width ToC table variant */
.toc-table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  -webkit-overflow-scrolling: touch;
}

.toc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--small);
}

.toc-table thead th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border-light);
  font-family: var(--font-mono);
}

.toc-table tbody tr {
  border-bottom: 1px solid #eeeeee;
}

.toc-table tbody tr:hover {
  background: var(--bg-light);
}

.toc-table td {
  padding: 12px 16px;
  vertical-align: top;
  line-height: 1.5;
}

.toc-table td:first-child {
  font-family: var(--font-mono);
  color: var(--accent-secondary);
  font-weight: 600;
  white-space: nowrap;
}

.toc-table td:nth-child(3) {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  white-space: nowrap;
}

.toc-table td:last-child {
  color: var(--text-secondary);
  font-style: italic;
}

/* --- Author Section --- */
.author-block {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 40px;
}

.author-quote {
  font-family: var(--font-display);
  font-size: var(--h3);
  font-style: italic;
  color: var(--accent-secondary);
  line-height: 1.4;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.author-name {
  font-weight: 700;
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-primary);
  margin-bottom: 4px;
}

.author-description {
  margin-top: 16px;
  font-size: clamp(14px, 1.7vw, 15px);
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}

.author-method {
  font-size: var(--small);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 8px;
}

.author-roles {
  list-style: none;
  margin: 16px 0;
  font-size: clamp(14px, 1.6vw, 15px);
}

.author-roles li {
  padding: 5px 0 5px 20px;
  position: relative;
  color: var(--text-secondary);
}

.author-roles li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
  font-weight: 700;
}

.author-stance {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--bg-accent-light);
  border-left: 3px solid var(--accent-secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.65;
}

/* --- Integrity / SHA Block --- */
.integrity-block {
  background: var(--bg-white);
  border-left: 4px solid var(--accent-secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.integrity-block h4 {
  font-size: var(--small);
  font-weight: 600;
  color: var(--accent-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

.integrity-block dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  font-size: var(--small);
}

.integrity-block dt {
  color: var(--text-secondary);
  font-weight: 500;
}

.integrity-block dd {
  font-family: var(--font-mono);
  word-break: break-all;
  color: var(--text-primary);
}

.integrity-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  font-size: var(--small);
}

.integrity-row {
  display: contents;
}

.integrity-row dt {
  color: var(--text-secondary);
  font-weight: 500;
}

.integrity-row dd {
  font-family: var(--font-mono);
  word-break: break-all;
  color: var(--text-primary);
}

.integrity-hash {
  font-family: var(--font-mono);
  font-size: 12px;
  word-break: break-all;
}

.mirrors-note {
  margin-top: 16px;
  font-size: var(--small);
  color: var(--text-secondary);
  text-align: center;
}

.integrity-block code {
  display: block;
  margin-top: 12px;
  background: var(--bg-light);
  padding: 10px 14px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-secondary);
  overflow-x: auto;
  word-break: break-all;
}

/* --- Site Footer --- */
.footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  padding: 40px 24px 28px;
  margin-top: var(--section-gap);
  text-align: center;
}

.footer-inner {
  max-width: 700px;
  margin: 0 auto;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-social a {
  color: var(--text-secondary);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.footer-social a:hover {
  color: var(--accent);
}

.footer-social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-license {
  font-size: var(--small);
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}

.footer-license a {
  color: var(--accent-secondary);
}

.footer-license a:hover {
  color: var(--accent-secondary-hover);
}

.footer-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.footer-links {
  font-size: 13px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-links .sep {
  color: var(--border-light);
  margin: 0 4px;
}

/* --- Screen reader only --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Utility: Quotes, callouts, etc. --- */
blockquote {
  border-left: 3px solid var(--accent-secondary);
  padding: 14px 20px;
  margin: 24px 0;
  background: var(--bg-accent-light);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.65;
}

blockquote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: var(--small);
  color: var(--accent-secondary);
  letter-spacing: 0.02em;
}

.callout {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: clamp(15px, 1.7vw, 16px);
  line-height: 1.65;
}

.callout--bronze {
  background: var(--bg-accent-light);
  border-color: rgba(139, 115, 85, 0.25);
  border-left: 3px solid var(--accent-secondary);
  border-radius: 0 8px 8px 0;
}

/* --- Ref note --- */
.ref-note {
  font-size: var(--small);
  color: var(--accent-secondary);
  font-style: italic;
  margin-top: 8px;
}

/* --- Badge --- */
.badge {
  display: inline-block;
  background: var(--badge-gold-bg);
  color: #8A7020;
  border: 1px solid rgba(201, 176, 55, 0.30);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.badge--dark {
  background: var(--bg-light);
  color: var(--text-secondary);
  border-color: var(--border-light);
}

/* --- Video wrapper --- */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 24px 0;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Bullet lists (styled) --- */
.feature-list {
  list-style: none;
  margin: 16px 0;
}

.feature-list li {
  padding: 6px 0 6px 22px;
  position: relative;
  color: var(--text-secondary);
  font-size: clamp(15px, 1.7vw, 16px);
  line-height: 1.6;
}

.feature-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
  font-size: 13px;
  top: 8px;
}

/* --- Press angles --- */
.press-angles {
  list-style: none;
  margin: 16px 0;
}

.press-angles li {
  padding: 8px 0 8px 20px;
  position: relative;
  font-size: clamp(15px, 1.7vw, 16px);
  line-height: 1.6;
}

.press-angles li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
  font-weight: 700;
}

.press-angles strong {
  color: var(--accent-secondary);
}

/* --- Charter grid (accept / reject) --- */
.charter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.charter-block {
  border-radius: var(--radius);
  padding: 24px;
}

.charter-block--accept {
  background: rgba(58, 58, 58, 0.04);
  border: 1px solid rgba(58, 58, 58, 0.12);
}

.charter-block--reject {
  background: rgba(139, 115, 85, 0.06);
  border: 1px solid rgba(139, 115, 85, 0.15);
}

.charter-block h3 {
  font-size: 16px;
  margin-bottom: 14px;
}

.charter-block--accept h3 {
  color: var(--accent);
}

.charter-block--reject h3 {
  color: var(--accent-secondary);
}

.charter-block ul {
  list-style: none;
}

.charter-block li {
  padding: 5px 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* --- Section intro layout --- */
.section--intro {
  text-align: left;
}

/* --- Mirrors list --- */
.mirrors {
  margin-top: 16px;
  font-size: var(--small);
  color: var(--text-secondary);
}

.mirrors strong {
  display: block;
  margin-bottom: 6px;
}

.mirrors ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.mirrors a {
  color: var(--accent-secondary);
}

.mirrors a:hover {
  color: var(--accent-secondary-hover);
}

/* --- Responsive — Mobile (max 767px) --- */
@media (max-width: 767px) {
  /* Header */
  .header-inner {
    padding: 10px 16px;
    justify-content: center;
  }

  .nav-desktop,
  .header-social {
    display: none;
  }

  .menu-btn {
    display: block;
    right: 12px;
    left: auto;
  }

  .logo {
    height: 44px;
  }

  /* Content */
  .section-inner {
    padding: 0 16px;
  }

  /* Hero */
  .hero {
    flex-direction: column;
    gap: 32px;
    padding: 0 16px;
    text-align: center;
  }

  .hero-content {
    text-align: center;
  }

  .hero-epigraph {
    text-align: left;
  }

  .hero-image {
    flex: none;
    max-width: 80%;
    width: 80%;
    margin: 0 auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  /* Cards */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* FAQ */
  .signal-item summary {
    padding: 16px 18px;
    font-size: 15px;
    gap: 12px;
  }

  .signal-badge {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 12px;
  }

  .signal-body {
    padding: 16px 18px 20px 18px;
  }

  /* Table */
  .table-wrapper {
    margin: 24px -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  /* Download grid */
  .download-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Charter */
  .charter-grid {
    grid-template-columns: 1fr;
  }

  /* Author */
  .author-block {
    padding: 28px 20px;
  }

  /* ToC */
  .toc-list li {
    gap: 8px;
  }

  /* Footer */
  .footer-links {
    flex-direction: column;
    gap: 8px;
  }

  .footer-links .sep {
    display: none;
  }
}

/* --- Tablet (768px – 1023px) --- */
@media (min-width: 768px) and (max-width: 1023px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-image {
    max-width: 45%;
    flex: 0 0 45%;
  }

  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-inner {
    padding: 0 24px;
  }
}

/* --- Newsletter mobile --- */
@media (max-width: 600px) {
  .newsletter-fields {
    flex-direction: column;
  }

  .newsletter-fields button {
    width: 100%;
  }

  .newsletter-card {
    padding: 24px 18px;
  }
}

/* --- Print styles --- */
@media print {
  .header,
  .footer,
  .hero-actions,
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-bronze,
  .section-newsletter,
  .video-wrapper,
  .menu-btn {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 11pt;
    line-height: 1.6;
  }

  h1, h2, h3 {
    color: #000000;
    font-family: Georgia, serif;
  }

  .section {
    padding: 20pt 0;
    background: none !important;
    page-break-inside: avoid;
  }

  a {
    color: #000000;
    text-decoration: none;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555555;
    font-style: italic;
  }

  a[href^="#"]::after {
    content: "";
  }

  .grille-table,
  .toc-table {
    border-collapse: collapse;
    font-size: 9pt;
  }

  .grille-table th,
  .toc-table th {
    background: #dddddd !important;
    color: #000000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .signal-item {
    page-break-inside: avoid;
  }

  .signal-body {
    display: block !important;
  }

  details[open] summary::after {
    content: "";
  }

  blockquote {
    border-left: 3px solid #999999;
    background: none;
  }

  .hero-image img {
    max-width: 200pt;
    transform: none;
    filter: none;
  }
}

/* ===== BLOC ÉDITORIAL (style Monde Diplomatique) ===== */
.sponsor-block {
    margin: 32px 0;
    padding: 36px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 36px;
}

.sponsor-logo {
    flex: 0 0 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-light);
    padding-right: 36px;
}

.sponsor-hex {
    width: 72px;
    height: auto;
    margin-bottom: 12px;
}

.sponsor-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-align: center;
    text-transform: uppercase;
}

.sponsor-content {
    flex: 1;
}

.sponsor-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.sponsor-tagline {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.sponsor-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.65;
}

.sponsor-text em {
    font-style: italic;
    color: var(--text-primary);
}

.sponsor-btn {
    display: inline-block;
    background-color: var(--text-primary);
    color: #fff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 9px 22px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.sponsor-btn:hover {
    background-color: #333;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .sponsor-block {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .sponsor-logo {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding-right: 0;
        padding-bottom: 20px;
    }
}
