/* ============================================================
   COMMUTALISME — Feuille de style
   Police : Sora (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&display=swap');

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --primary:        #7C3AED;
  --primary-light:  #A78BFA;
  --primary-dark:   #6D28D9;

  --success:        #10B981;
  --success-light:  rgba(16,185,129,.14);
  --warning:        #F59E0B;
  --warning-light:  rgba(245,158,11,.12);
  --danger:         #EF4444;
  --danger-light:   rgba(239,68,68,.12);

  --bg:             #0A1628;
  --surface:        #0F1F3D;
  --border:         rgba(255,255,255,.09);
  --border-focus:   rgba(124,58,237,.55);

  --text:           rgba(255,255,255,.92);
  --text-muted:     rgba(255,255,255,.72);
  --text-heading:   #FFFFFF;

  --shadow-sm:      0 2px 8px rgba(0,0,0,.35);
  --shadow-md:      0 6px 24px rgba(0,0,0,.45);

  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;

  --transition:     0.2s ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Sora', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--text-heading); font-weight: 700; line-height: 1.3; }
p { color: var(--text-muted); }
a { color: var(--primary); text-decoration: none; }
code { font-family: 'Fira Code', 'Courier New', monospace; font-size: .9em; background: rgba(255,255,255,.07); padding: 2px 6px; border-radius: 4px; color: var(--primary-light); }
sub { font-size: .75em; }

/* ─── Layout ────────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.calculator-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin: 2rem 0;
}

@media (max-width: 900px) {
  .calculator-layout { grid-template-columns: 1fr; }
}

/* ─── Header ────────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
  color: #fff;
  padding: 2rem 0 1.75rem;
  border-bottom: 3px solid var(--primary);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .4rem;
}

.site-title {
  color: #fff;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -.5px;
}

.site-badge {
  background: var(--primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.site-tagline {
  color: #94A3B8;
  font-size: .9rem;
}

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  margin-top: 3rem;
  background: #0F172A;
  color: #94A3B8;
  padding: 1.5rem 0;
  font-size: .82rem;
  text-align: center;
  line-height: 1.8;
}

.site-footer strong { color: #CBD5E1; }

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.card + .card,
.card + .collapsible-card {
  margin-top: 1rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1.25rem;
}

.card-subtitle {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ─── Form elements ─────────────────────────────────────────── */
.field {
  margin-bottom: 1.25rem;
}
.field:last-child { margin-bottom: 0; }

.label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .4rem;
}

.value-badge {
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary);
  background: #EFF6FF;
  padding: 2px 8px;
  border-radius: 100px;
}

.input-group {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.input {
  flex: 1;
  border: none;
  outline: none;
  padding: .6rem .85rem;
  font-size: .95rem;
  color: var(--text);
  background: transparent;
  font-family: inherit;
}
.input::placeholder { color: #CBD5E1; }

.input-addon {
  padding: .6rem .85rem;
  background: var(--bg);
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 600;
  border-left: 1.5px solid var(--border);
  white-space: nowrap;
}

.select {
  width: 100%;
  padding: .6rem .85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2364748B' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .6rem center;
  background-size: 1.2em;
  padding-right: 2.5rem;
}
.select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }

/* Slider */
.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(37,99,235,.4);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.slider::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  cursor: pointer;
}

.slider-track-labels {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .3rem;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  cursor: pointer;
  font-size: .9rem;
  color: var(--text);
}
.checkbox {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.field-hint {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: .4rem;
  line-height: 1.5;
}

/* Bounds info */
.bounds-info {
  margin-top: .5rem;
  font-size: .78rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
}

/* Region info */
.region-info {
  margin-top: .75rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .5rem;
}

.region-stat {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: .5rem .7rem;
  font-size: .78rem;
  text-align: center;
}
.region-stat span { display: block; color: var(--text-muted); margin-bottom: .2rem; }
.region-stat strong { color: var(--primary); font-size: .9rem; }

/* Income sources */
.income-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}
.income-item .input-group { flex: 1; }

.btn-remove-income {
  width: 28px;
  height: 28px;
  border: none;
  background: #FEE2E2;
  color: var(--danger);
  border-radius: 50%;
  cursor: pointer;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}
.btn-remove-income:hover { background: #FCA5A5; }

.btn-add {
  width: 100%;
  border: 1.5px dashed var(--border);
  background: none;
  color: var(--primary);
  font-size: .85rem;
  font-weight: 600;
  padding: .5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), border-color var(--transition);
  margin-top: .25rem;
}
.btn-add:hover { background: #EFF6FF; border-color: var(--primary-light); }

.income-total {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: .5rem;
  padding: .4rem .7rem;
  background: #F0FDF4;
  border-radius: var(--radius-sm);
}
.income-total strong { color: var(--success); }

/* ─── Collapsible ───────────────────────────────────────────── */
.collapsible-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.collapsible-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-heading);
  text-align: left;
  transition: background var(--transition);
}
.collapsible-trigger:hover { background: var(--bg); }

.collapse-icon {
  font-size: .75rem;
  color: var(--text-muted);
  transition: transform var(--transition);
}
.collapsible-trigger[aria-expanded="true"] .collapse-icon { transform: rotate(180deg); }

.collapsible-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
}
.collapsible-body.open {
  max-height: 800px;
  padding: 0 1.5rem 1.5rem;
}

/* ─── Empty state ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  border: 2px dashed var(--border);
}

.empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.empty-icon svg { width: 28px; height: 28px; stroke: var(--text-muted); }
.empty-state p { font-size: .9rem; }

/* ─── Result main card ──────────────────────────────────────── */
.result-main {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 4px solid var(--primary);
}

.result-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .75rem;
}

.result-prices {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}

.price-original {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-adjusted {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -1px;
  transition: color var(--transition);
}

.price-adjusted.reduction { color: var(--success); }
.price-adjusted.neutral   { color: var(--text-heading); }
.price-adjusted.increase  { color: var(--warning); }
.price-adjusted.surge     { color: var(--danger); }

.variation-badge {
  display: inline-block;
  font-size: .9rem;
  font-weight: 700;
  padding: .35rem .9rem;
  border-radius: 100px;
  margin-top: .25rem;
}
.variation-badge.reduction { background: var(--success-light); color: var(--success); }
.variation-badge.neutral   { background: rgba(255,255,255,.08); color: rgba(255,255,255,.65); }
.variation-badge.increase  { background: var(--warning-light); color: var(--warning); }
.variation-badge.surge     { background: var(--danger-light); color: var(--danger); }

/* ─── Meter / Jauge ─────────────────────────────────────────── */
.meter-card { padding: 1.25rem 1.5rem; }

.meter-wrapper { margin: 2.5rem 0 .5rem; }

.meter-bar {
  position: relative;
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(to right, #EF4444, #94A3B8, #10B981);
  margin-bottom: 1.75rem; /* espace pour le label "Pauvreté" en-dessous */
}

.meter-needle {
  position: absolute;
  top: -7px;
  width: 4px;
  height: 28px;
  background: #0F172A;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: left 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}
.meter-needle::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #0F172A;
}

.meter-median {
  position: absolute;
  bottom: 100%;
  padding-bottom: 4px;
  transform: translateX(-50%);
  transition: left 0.3s ease;
  text-align: center;
  z-index: 1;
}
.meter-median-label {
  font-size: .65rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  display: block;
  line-height: 1;
}
.meter-median::after {
  content: '';
  display: block;
  width: 2px;
  height: 8px;
  background: var(--text-muted);
  margin: 2px auto 0;
  border-radius: 1px;
}

/* Marqueur seuil de pauvreté — placé sous la barre pour éviter le chevauchement avec "Médian" */
.meter-poverty {
  position: absolute;
  top: 100%;
  padding-top: 4px;
  transform: translateX(-50%);
  transition: left 0.3s ease;
  text-align: center;
  z-index: 1;
}
.meter-poverty::before {
  content: '';
  display: block;
  width: 2px;
  height: 8px;
  background: var(--warning);
  margin: 0 auto 2px;
  border-radius: 1px;
}
.meter-poverty-label {
  font-size: .6rem;
  font-weight: 600;
  color: var(--warning);
  white-space: nowrap;
  display: block;
  line-height: 1;
}

.poverty-flag {
  color: var(--warning);
  font-weight: 600;
  font-size: .82rem;
}

.meter-scale {
  display: flex;
  justify-content: space-between;
  font-size: .68rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.meter-ratio {
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: .75rem;
  padding-top: .5rem;
  border-top: 1px solid var(--border);
}
.meter-ratio strong { color: var(--primary); }

/* ─── Details table ─────────────────────────────────────────── */
.details-card { padding: 1.25rem 1.5rem; }

.details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.details-table td {
  padding: .45rem 0;
  border-bottom: 1px solid var(--border);
}
.details-table td:first-child { color: var(--text-muted); }
.details-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--text);
}
.details-table tr:last-child td { border-bottom: none; }
.details-table tr.highlight td { color: var(--primary); }
.details-table tr.highlight td:last-child { font-size: 1rem; }
.details-table tr.warn td:first-child { color: var(--warning); }
.details-table tr.warn td:last-child  { color: var(--warning); }

/* ─── Comparative table ─────────────────────────────────────── */
.comparative-card { padding: 0; }

.table-scroll { overflow-x: auto; padding: 0 1.5rem 1.25rem; }

.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
  min-width: 460px;
}
.comp-table th {
  padding: .6rem .75rem;
  text-align: left;
  font-weight: 700;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  background: var(--bg);
}
.comp-table td {
  padding: .55rem .75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.comp-table tbody tr:last-child td { border-bottom: none; }
.comp-table tbody tr:hover { background: var(--bg); }
.comp-table tr.is-current td { background: #EFF6FF; font-weight: 600; }
.comp-table .var-cell { font-weight: 700; }
.comp-table .var-cell.reduction { color: var(--success); }
.comp-table .var-cell.neutral   { color: var(--text-muted); }
.comp-table .var-cell.increase  { color: var(--warning); }
.comp-table .var-cell.surge     { color: var(--danger); }
.comp-table tr.row-corrected td { background: #FFFBEB; }
.comp-table tr.row-corrected:hover td { background: #FEF3C7; }

.corr-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 100px;
  background: var(--warning-light);
  color: var(--warning);
  margin-left: .4rem;
  vertical-align: middle;
}

/* ─── About section ─────────────────────────────────────────── */
.about-section {
  margin-bottom: 2rem;
}
.about-section .card-title { font-size: 1.1rem; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: .5rem;
}
@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-col h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .4rem;
}
.about-col p { font-size: .85rem; line-height: 1.65; }

/* ─── Navigation ────────────────────────────────────────────── */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .5rem;
}

.site-nav {
  display: flex;
  gap: .25rem;
}

.nav-link {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  padding: .38rem .9rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover  { color: #fff; background: rgba(255,255,255,.12); }
.nav-link.active { color: #fff; background: var(--primary); }

/* ─── About page layout ──────────────────────────────────────── */
.about-content {
  padding: 2.5rem 0 4rem;
}
.main-content {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.about-section {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 1.25rem;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 750px) {
  .about-hero { grid-template-columns: 1fr; }
}

.about-hero-text h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.about-hero-text p  { font-size: .9rem; line-height: 1.75; margin-bottom: .75rem; color: var(--text-muted); }
.about-hero-text p strong { color: var(--text); }
.about-hero-text p:last-child { margin-bottom: 0; }

.hero-quote {
  background: #EFF6FF;
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.hero-quote p {
  font-size: .9rem;
  font-style: italic;
  color: var(--primary-dark);
  line-height: 1.65;
  margin: 0;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.hero-stat {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: .6rem .85rem;
  display: flex;
  flex-direction: column;
}
.hero-stat-val   { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.hero-stat-label { font-size: .72rem; color: var(--text-muted); margin-top: .1rem; }

/* ─── System comparison ──────────────────────────────────────── */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 750px) {
  .systems-grid { grid-template-columns: 1fr; }
}

.system-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-top: 4px solid transparent;
}
.system-capitalism  { border-top-color: var(--primary); }
.system-commutalisme { border-top-color: #F59E0B; }
.system-communism   { border-top-color: #EF4444; }

.system-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .75rem;
}
.system-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.system-capitalism  .system-dot { background: var(--primary); }
.system-commutalisme .system-dot { background: #F59E0B; }
.system-communism   .system-dot { background: #EF4444; }
.system-header h3 { font-size: 1rem; margin: 0; }

.system-card > p { font-size: .85rem; line-height: 1.65; margin-bottom: 1rem; color: var(--text-muted); }

.pros-cons {
  list-style: none;
  font-size: .8rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.pros-cons li { padding-left: 1.4rem; position: relative; color: var(--text-muted); }
.pros-cons li.pro::before { content: '+'; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.pros-cons li.con::before { content: '−'; position: absolute; left: 2px; color: var(--danger); font-weight: 800; }

/* ─── Principles ─────────────────────────────────────────────── */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 700px) {
  .principles-grid { grid-template-columns: 1fr; }
}

.principle-card {
  display: flex;
  gap: 1rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.principle-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.principle-body h3 { font-size: .9rem; margin-bottom: .4rem; }
.principle-body p  { font-size: .82rem; line-height: 1.65; color: var(--text-muted); }
.principle-body p strong { color: var(--text); }

/* ─── Formula card ───────────────────────────────────────────── */
.formula-card {}

.formula-core {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
}
.formula-heading {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.formula-block {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  align-items: center;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: .95rem;
}
.formula-row      { color: var(--text); }
.formula-main     { font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.formula-sub      { font-size: .82rem; color: var(--text-muted); }
.formula-divider  { width: 80%; height: 1px; background: var(--border); margin: .25rem 0; }

.formula-params {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 800px) {
  .formula-params { grid-template-columns: 1fr; }
}

.param-group h3 {
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .85rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--border);
}
.param-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.param-row dt {
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 4px;
  margin-bottom: .25rem;
}
.param-row dd {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.indice-guide {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.indice-row {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .65rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .83rem;
}
.indice-below { background: #F0FDF4; }
.indice-at    { background: var(--bg); }
.indice-above { background: #FFF7ED; }

.indice-arrow {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}
.indice-below  .indice-arrow { color: var(--success); }
.indice-at     .indice-arrow { color: var(--text-muted); }
.indice-above  .indice-arrow { color: var(--warning); }

.indice-row strong { display: block; margin-bottom: .15rem; }
.indice-row span   { color: var(--text-muted); line-height: 1.5; }

/* ─── About table ────────────────────────────────────────────── */
.card-note {
  font-size: .83rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.table-note {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: .85rem;
  font-style: italic;
  line-height: 1.6;
}

.about-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
  min-width: 520px;
}
.about-table th {
  padding: .6rem .75rem;
  text-align: left;
  font-weight: 700;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  background: var(--bg);
  white-space: nowrap;
}
.about-table td {
  padding: .55rem .75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.about-table tbody tr:last-child td { border-bottom: none; }
.about-table tbody tr:hover { background: var(--bg); }

.about-table .row-necessity { background: #F0FDF4; }
.about-table .row-highlight { background: #EFF6FF; font-weight: 600; }
.about-table .row-luxury    { background: #FFF1F2; }
.about-table .row-floor     { background: #F0FDF4; }
.about-table .row-median    { background: #F8FAFC; }
.about-table .row-example   { background: #EFF6FF; font-weight: 600; }

.tag-floor {
  display: inline-block;
  font-size: .65rem;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 100px;
  background: var(--success-light);
  color: var(--success);
  vertical-align: middle;
}
.var-down { color: var(--success); font-weight: 700; }
.var-up   { color: var(--danger);  font-weight: 700; }

/* ─── Affordability section ──────────────────────────────────── */
.afford-intro {
  font-size: .9rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.afford-intro em { color: var(--warning); font-style: normal; font-weight: 600; }

.afford-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 750px) {
  .afford-steps { grid-template-columns: 1fr; }
}

.afford-step {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}
.afford-step-label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .6rem;
}
.afford-code {
  display: block;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: .85rem;
  background: var(--surface);
  padding: .45rem .7rem;
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--primary-light);
  color: var(--text);
  margin-bottom: .6rem;
}
.afford-step p {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.afford-example {
  background: var(--warning-light);
  border: 1px solid #FDE68A;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
}
.afford-example-title {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .85rem;
}
.afford-example-calc {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .83rem;
  font-family: 'Fira Code', 'Courier New', monospace;
}
.afford-calc-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: .75rem;
  align-items: baseline;
}
.afford-calc-row span:first-child { color: var(--text-muted); }
.afford-result-row {
  margin-top: .35rem;
  padding-top: .5rem;
  border-top: 1px solid #FDE68A;
}
.afford-result-row span:last-child { font-weight: 700; color: var(--primary-dark); }

/* ─── Example step-by-step ───────────────────────────────────── */
.example-context-card { margin-bottom: 1.25rem; }
.example-context-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .85rem;
}
.example-params {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.example-param {
  flex: 1;
  min-width: 130px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: .55rem .9rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.ep-label { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.ep-value { font-size: .93rem; font-weight: 700; color: var(--text); }

.steps { display: flex; flex-direction: column; gap: 1rem; }

.step {
  display: flex;
  gap: 1.1rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.step-final {
  border: 2px solid var(--primary);
  background: #EFF6FF;
}
.step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-final .step-num { background: var(--primary-dark); }

.step-content h3 { font-size: .9rem; margin-bottom: .5rem; }
.step-content > p { font-size: .82rem; color: var(--text-muted); line-height: 1.65; margin-top: .5rem; }
.step-content > p strong { color: var(--text); }

.step-calc {
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: .85rem;
  background: var(--bg);
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary-light);
  line-height: 1.9;
  color: var(--text);
  white-space: pre-wrap;
  margin: 0;
}
.final-calc {
  background: #DBEAFE;
  border-left-color: var(--primary-dark);
  font-size: .95rem;
}

/* ─── Chart ──────────────────────────────────────────────────── */
.chart-card {}
.chart-wrapper {
  position: relative;
  height: 420px;
  margin: 1rem 0 .5rem;
}
@media (max-width: 600px) {
  .chart-wrapper { height: 280px; }
}

/* Contrôles du graphique */
.chart-controls {
  display: flex;
  align-items: center;
  gap: .75rem 1.25rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.chart-range-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.chart-range-label span {
  font-variant-numeric: tabular-nums;
  min-width: 3rem;
  color: var(--primary-light);
}
.chart-range-label input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 90px;
  height: 4px;
  background: rgba(255,255,255,.12);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.chart-range-label input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-light);
  cursor: pointer;
  transition: background .15s;
}
.chart-range-label input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: var(--primary-light);
  cursor: pointer;
}
.chart-range-label input[type="range"]:hover::-webkit-slider-thumb { background: var(--primary); }
.chart-btn {
  padding: .35rem .85rem;
  font-size: .78rem;
  font-weight: 600;
  font-family: inherit;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.chart-btn:hover {
  background: rgba(37,99,235,.06);
  border-color: var(--primary);
  color: var(--primary);
}

/* Badge source */
.source-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 500;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  margin-left: .3rem;
  vertical-align: middle;
  white-space: nowrap;
}

/* ─── Limits ─────────────────────────────────────────────────── */
.limits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 700px) {
  .limits-grid { grid-template-columns: 1fr; }
}
.limit-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-left: 3px solid var(--warning);
}
.limit-card h3 { font-size: .88rem; font-weight: 700; color: var(--warning); margin-bottom: .45rem; }
.limit-card p  { font-size: .82rem; line-height: 1.65; color: var(--text-muted); margin: 0; }

/* ─── Prerequisite document ─────────────────────────────────── */
.prereq-intro-card {}
.prereq-doc-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 800px) {
  .prereq-doc-header { grid-template-columns: 1fr; }
}
.prereq-doc-tag {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  margin-bottom: .6rem;
}
.prereq-doc-header h2 { font-size: 1.25rem; margin-bottom: .85rem; }
.prereq-doc-sub { font-size: .88rem; color: var(--text-muted); line-height: 1.75; margin-bottom: .6rem; }
.prereq-doc-sub:last-child { margin-bottom: 0; }
.prereq-doc-sub strong { color: var(--text); }

.prereq-legend {
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius-md);
  font-size: .8rem;
  color: var(--text-muted);
  align-self: start;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .65rem;
  border-radius: 100px;
  white-space: nowrap;
}
.status-deployed { background: var(--success-light); color: var(--success); }
.status-progress  { background: #DBEAFE; color: var(--primary-dark); }
.status-needed    { background: var(--warning-light); color: var(--warning); }

.prereqs-list { display: flex; flex-direction: column; gap: 1.25rem; }

.prereq-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.prereq-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.prereq-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  letter-spacing: -1px;
  min-width: 2.5rem;
}
.prereq-meta { flex: 1; }
.prereq-category {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: .3rem;
}
.prereq-meta h3 { font-size: .98rem; margin-bottom: .5rem; }

.prereq-body { padding: 1.25rem 1.5rem; }
.prereq-body > p { font-size: .86rem; line-height: 1.75; color: var(--text-muted); margin-bottom: 1rem; }
.prereq-body > p:last-child { margin-bottom: 0; }

.prereq-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin: 1rem 0;
}
@media (max-width: 700px) {
  .prereq-points { grid-template-columns: 1fr; }
}

.prereq-point {
  padding: .85rem 1rem;
  border-radius: var(--radius-md);
  font-size: .8rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.prereq-existing { background: #F0FDF4; border-left: 3px solid var(--success); }
.prereq-action   { background: #EFF6FF; border-left: 3px solid var(--primary); }

.pp-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .4rem;
}
.prereq-existing .pp-label { color: var(--success); }
.prereq-action   .pp-label { color: var(--primary); }

.prereq-why {
  font-size: .83rem !important;
  color: var(--text) !important;
  padding: .75rem 1rem;
  border-left: 3px solid var(--primary-light);
  background: #F8FAFC;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.7 !important;
  margin-bottom: 0 !important;
}
.prereq-why strong { color: var(--primary-dark); }

/* ─── Manifesto ──────────────────────────────────────────────── */
.manifesto-card { border-top: 4px solid var(--primary); }
.manifesto-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.manifesto-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.manifesto-body p { font-size: .9rem; line-height: 1.8; color: var(--text-muted); }
.manifesto-body p strong { color: var(--text); }
.manifesto-quote {
  border-left: 3px solid var(--primary);
  padding: 1rem 1.5rem;
  background: #EFF6FF;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: .93rem;
  color: var(--primary-dark);
  line-height: 1.7;
  margin: 0;
}
.manifesto-footer {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.cta-secondary {
  background: var(--bg);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cta-secondary:hover { background: #EFF6FF; }

/* ─── CTA ────────────────────────────────────────────────────── */
.about-cta {
  text-align: center;
  padding: 2rem 0 .5rem;
}
.about-cta p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.cta-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  padding: .7rem 2rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.cta-btn:hover { background: var(--primary-dark); }

/* ─── Product picker ─────────────────────────────────────────── */
.product-picker {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  max-height: 420px;
  overflow-y: auto;
  padding: .5rem;
}

.product-group + .product-group {
  margin-top: .4rem;
  padding-top: .4rem;
  border-top: 1px solid var(--border);
}

.product-group-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .2rem .25rem .3rem;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .3rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .4rem .25rem .45rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  font-family: inherit;
  text-align: center;
}

.product-card:hover {
  border-color: var(--border-focus);
  background: #EFF6FF;
}

.product-card.is-selected {
  border-color: var(--primary);
  background: #EFF6FF;
  box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}

.product-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.product-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
  display: block;
}

/* Placeholder lorsque l'image n'est pas encore disponible */
.product-icon.no-img img {
  display: none;
}

.product-icon.no-img::after {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--border);
}

.product-label {
  font-size: .68rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  text-align: center;
}

.product-card.is-selected .product-label {
  color: var(--primary);
  font-weight: 600;
}

.product-selection-hint {
  font-size: .8rem;
}

/* ─── Utilities ─────────────────────────────────────────────── */
.hidden { display: none !important; }
.mt-sm  { margin-top: .5rem; }
.mt-md  { margin-top: 1rem; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 600px) {
  .site-title { font-size: 1.5rem; }
  .price-adjusted { font-size: 2rem; }
  .region-info { grid-template-columns: 1fr 1fr; }
  .card { padding: 1.1rem; }
}

/* ═══════════════════════════════════════════════════════════
   THÈME SOMBRE — Overrides des couleurs codées en dur
═══════════════════════════════════════════════════════════ */

/* Inputs & selects */
.input::placeholder               { color: rgba(255,255,255,.22); }
.input-addon                      { background: rgba(255,255,255,.05); border-left-color: rgba(255,255,255,.09); }
.select                           { background-color: var(--surface); color: var(--text); }
.select option                    { background: #0F1F3D; color: rgba(255,255,255,.88); }
.value-badge                      { background: rgba(124,58,237,.14); color: var(--primary-light); }
.bounds-info, .region-stat        { background: rgba(255,255,255,.04); }
.region-stat strong               { color: var(--primary-light); }
.income-total                     { background: rgba(16,185,129,.1); }
.income-total strong              { color: var(--success); }
.btn-add:hover                    { background: rgba(124,58,237,.08); border-color: rgba(124,58,237,.35); }
.btn-remove-income                { background: rgba(239,68,68,.12); }
.btn-remove-income:hover          { background: rgba(239,68,68,.2); }

/* Cards & collapsibles */
.collapsible-trigger:hover        { background: rgba(255,255,255,.03); }
.product-card                     { background: rgba(255,255,255,.04); }
.product-card:hover               { background: rgba(124,58,237,.1); border-color: rgba(124,58,237,.4); }
.product-card.is-selected         { background: rgba(124,58,237,.13); border-color: var(--primary); box-shadow: 0 0 0 2px rgba(124,58,237,.2); }
.product-card.is-selected .product-label { color: var(--primary-light); }
.product-icon                     { background: rgba(255,255,255,.07); }

/* Tables */
.comp-table th, .about-table th   { background: rgba(255,255,255,.03); }
.comp-table tbody tr:hover        { background: rgba(255,255,255,.03); }
.about-table tbody tr:hover       { background: rgba(255,255,255,.03); }
.comp-table tr.is-current td      { background: rgba(124,58,237,.1); }
.comp-table tr.row-corrected td   { background: rgba(245,158,11,.07); }
.comp-table tr.row-corrected:hover td { background: rgba(245,158,11,.12); }
.about-table .row-necessity       { background: rgba(16,185,129,.06); }
.about-table .row-highlight,
.about-table .row-example         { background: rgba(124,58,237,.08); }
.about-table .row-luxury          { background: rgba(239,68,68,.06); }
.about-table .row-floor           { background: rgba(16,185,129,.06); }
.about-table .row-median          { background: rgba(255,255,255,.02); }
.corr-tag                         { background: rgba(245,158,11,.12); color: var(--warning); }
.tag-floor                        { background: rgba(16,185,129,.12); color: var(--success); }

/* Status badges */
.status-deployed                  { background: rgba(16,185,129,.12); color: var(--success); }
.status-progress                  { background: rgba(59,130,246,.12); color: #93C5FD; }
.status-needed                    { background: rgba(245,158,11,.12); color: var(--warning); }

/* Result & meter */
.result-main                      { border-top-color: var(--primary); }
.meter-needle                     { background: var(--primary-light); }
.meter-needle::after              { border-top-color: var(--primary-light); }

/* About hero */
.hero-quote                       { background: rgba(124,58,237,.1); border-left-color: var(--primary-light); }
.hero-quote p                     { color: #C4B5FD; }
.hero-stat                        { background: rgba(255,255,255,.05); }
.hero-stat-val                    { color: var(--primary-light); }

/* Index guide */
.indice-below                     { background: rgba(16,185,129,.08); }
.indice-at                        { background: rgba(255,255,255,.04); }
.indice-above                     { background: rgba(245,158,11,.08); }

/* Steps & formula */
.step, .principle-card, .system-card { background: var(--surface); }
.step-calc                        { background: rgba(255,255,255,.04); border-left-color: rgba(124,58,237,.5); }
.final-calc                       { background: rgba(124,58,237,.12); border-left-color: var(--primary); }
.step-final                       { background: rgba(124,58,237,.08); border-color: var(--primary); }
.formula-core                     { background: rgba(255,255,255,.04); }
.formula-main                     { color: var(--primary-light); }
.formula-row                      { color: var(--text); }
.param-row dt                     { background: rgba(255,255,255,.07); color: var(--text); }
.example-param                    { background: rgba(255,255,255,.04); }
.afford-step                      { background: rgba(255,255,255,.04); }
.afford-code                      { background: rgba(255,255,255,.07); border-left-color: var(--primary-light); color: var(--text); }
.afford-example                   { background: rgba(245,158,11,.07); border-color: rgba(245,158,11,.22); }
.afford-result-row                { border-top-color: rgba(245,158,11,.22); }
.afford-result-row span:last-child { color: var(--primary-light); }

/* Prereq document */
.prereq-header                    { background: rgba(255,255,255,.03); }
.prereq-legend                    { background: rgba(255,255,255,.04); }
.prereq-num                       { color: rgba(255,255,255,.15); }
.prereq-existing                  { background: rgba(16,185,129,.07); }
.prereq-action                    { background: rgba(124,58,237,.08); }
.prereq-why                       { background: rgba(255,255,255,.04); border-left-color: var(--primary-light); }
.prereq-why strong                { color: var(--primary-light); }

/* Manifesto */
.manifesto-quote                  { background: rgba(124,58,237,.1); color: #C4B5FD; }
.cta-secondary                    { background: rgba(255,255,255,.05); color: var(--primary-light); border-color: rgba(124,58,237,.4); }
.cta-secondary:hover              { background: rgba(124,58,237,.1); }

/* Chart & misc */
.chart-btn                        { background: var(--surface); color: var(--text-muted); border-color: var(--border); }
.chart-btn:hover                  { background: rgba(124,58,237,.1); border-color: rgba(124,58,237,.4); color: var(--primary-light); }
.source-tag                       { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.section-title                    { color: var(--text-heading); }

/* ═══════════════════════════════════════════════════════════
   PAGE HERO — En-tête des pages de contenu
═══════════════════════════════════════════════════════════ */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, #030D1F 0%, #071020 55%, #0C1830 100%);
  padding: 5.5rem 0 3.5rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.page-hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.page-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.page-orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(124,58,237,.18) 0%, transparent 65%);
  top: -40%; right: -5%;
}
.page-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,.13) 0%, transparent 65%);
  bottom: -35%; left: -5%;
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.016) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
}
.page-hero-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #A78BFA;
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(124,58,237,.3);
  padding: .3rem .85rem;
  border-radius: 99px;
  margin-bottom: 1.1rem;
}
.page-hero-title {
  font-family: 'Sora', system-ui, sans-serif;
  font-size: clamp(1.65rem, 3.8vw, 2.7rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  margin-bottom: .75rem;
  line-height: 1.15;
}
.page-hero-sub {
  font-size: .95rem;
  color: rgba(255,255,255,.48);
  max-width: 580px;
  line-height: 1.7;
  margin: 0;
}
