:root {
  --bg: #000000;
  --panel: #ffffff;
  --panel-2: #f6f7f9;
  --line: #d8dde6;
  --text: #0f172a;
  --muted: #5b6472;
  --accent: #2a2d74;
  --stroke: #6a6a6f;
  --stroke-hover: #8b8b90;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  overflow: hidden;
}

.topbar {
  height: 102px;
  background: var(--accent);
  color: #f3f4f6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  height: 100%;
  padding: 16px 20px 14px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.topbar h1 {
  margin: 0 0 6px 0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
}

.topbar p {
  margin: 0;
  font-size: 16px;
  opacity: 0.95;
}

.credit-top {
  max-width: 460px;
  text-align: right;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
}

.layout {
  display: flex;
  height: calc(100vh - 102px);
  min-height: 0;
}

.sidebar {
  width: 470px;
  min-width: 470px;
  max-width: 470px;
  background: #ffffff;
  color: #0f172a;
  border-right: 1px solid #d8dde6;
  padding: 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.panel {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.panel:last-child {
  border-bottom: 0;
}

.panel h2 {
  margin: 0 0 12px 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  color: #111827;
}

.panel h3 {
  margin: 14px 0 10px 0;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

label {
  display: block;
  margin: 12px 0 6px 0;
  font-size: 15px;
  color: var(--muted);
}

select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid #cfd6e1;
  background: #ffffff;
  color: #111827;
  font-size: 16px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #687588 50%),
    linear-gradient(135deg, #687588 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

select:focus {
  border-color: #4f8ca0;
  box-shadow: 0 0 0 2px rgba(79, 140, 160, 0.12);
}

select:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #dbe3ee;
}

.help-text {
  margin: 10px 0 0 0;
  font-size: 13px;
  color: var(--muted);
}

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid #d9e0ea;
  border-radius: 22px;
  padding: 16px 16px 14px 16px;
  min-height: 108px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.kpi-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.kpi-value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  color: #111827;
  margin-bottom: 4px;
}

.kpi-sub {
  font-size: 14px;
  color: var(--muted);
}

.analytics-panel {
  width: 100%;
}

/* Mobile credit watermark */
.mobile-credit {
  display: none;
}

.legend-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#legend {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #111827;
}

.legend-swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 4px;
  flex: 0 0 18px;
}

.status {
  margin-top: 8px;
  font-size: 13px;
  color: #546274;
  min-height: 18px;
}

.map-wrap {
  flex: 1;
  min-width: 0;
  min-height: 0;
  background: #000000;
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
  background: #000000;
}

.leaflet-container {
  background: #000000;
  font: inherit;
}

.leaflet-tile-pane {
  filter: saturate(0.9) brightness(0.92);
}

.leaflet-control-zoom {
  margin-top: 16px !important;
  margin-left: 16px !important;
  border: 0 !important;
  box-shadow: none !important;
}

.leaflet-control-zoom a {
  width: 38px !important;
  height: 38px !important;
  line-height: 38px !important;
  background: rgba(255, 255, 255, 0.96);
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.22) !important;
  box-shadow: none !important;
}

.leaflet-control-zoom a:first-child {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.leaflet-control-zoom a:last-child {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: #ffffff;
  color: #111827;
}

.leaflet-popup-content {
  margin: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
}

.leaflet-tooltip {
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: none;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13px;
}

.leaflet-tooltip:before {
  border-top-color: rgba(255, 255, 255, 0.94) !important;
}

.value-label-tooltip {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-size: 8px;
  font-weight: 700;
  text-shadow:
    -1px -1px 0 rgba(0,0,0,0.55),
     1px -1px 0 rgba(0,0,0,0.55),
    -1px  1px 0 rgba(0,0,0,0.55),
     1px  1px 0 rgba(0,0,0,0.55);
  white-space: nowrap;
  padding: 0 !important;
}

.value-label-tooltip:before {
  display: none !important;
}

/* Tooltip flottant au survol des bureaux */
.bv-hover-tooltip {
  background: rgba(255, 255, 255, 0.97) !important;
  color: #111827 !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14) !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  font-size: 13px !important;
  pointer-events: none !important;
  max-width: 260px !important;
  white-space: normal !important;
  word-break: break-word !important;
}

.bv-hover-tooltip:before {
  border-top-color: rgba(255, 255, 255, 0.97) !important;
}

/* Popup au clic : plus large */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14) !important;
}

.leaflet-popup-content {
  margin: 12px 14px !important;
  min-width: 240px !important;
}

/* Cartouche mobile */
.map-card {
  display: none;
}

.mobile-filters-btn {
  display: none;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.mobile-overlay {
  display: none;
}

.mobile-summary-bar {
  display: none;
}

.mobile-summary-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #d9e0ea;
}

.mobile-summary-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

/* Bottom info bar (mobile only) */
.mobile-bottom-bar {
  display: none;
}

.sidebar::-webkit-scrollbar {
  width: 10px;
}

.sidebar::-webkit-scrollbar-track {
  background: #f3f4f6;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #cfd6e1;
  border-radius: 8px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #bcc7d6;
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .topbar {
    position: relative;
    z-index: 1200;
    height: auto;
  }

  .topbar-inner {
    padding: 14px 16px 12px 16px;
    display: block;
  }

  .topbar h1 {
    font-size: 22px;
  }

  .topbar p {
    font-size: 15px;
  }

  .mobile-filters-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
  }

  .credit-top {
    display: none;
  }

  .layout {
    position: relative;
    display: block;
    height: calc(100vh - 102px);
    overflow: hidden;
  }

  .map-wrap {
    position: absolute;
    inset: 0;
    height: calc(100% - 130px);
    min-height: 0;
    z-index: 1;
  }

  #map {
    height: 100%;
    min-height: 0;
  }

  .mobile-summary-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
  }

  .sidebar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: min(88vw, 390px);
    max-width: min(88vw, 390px);
    min-width: 0;
    z-index: 1300;
    border-right: 1px solid #d8dde6;
    border-bottom: 0;
    transform: translateX(-102%);
    transition: transform 0.28s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
    overflow-y: auto;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .mobile-overlay {
    position: absolute;
    inset: 0;
    z-index: 1250;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .mobile-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  /* cartouche mobile */
  .map-card {
    display: block;
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1100;
    width: 245px;
    max-width: calc(100% - 28px);
    padding: 10px 10px 8px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    color: #111827;
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(4px);
  }

  .map-card-election {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 4px;
  }

  .map-card-title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
    color: #0f172a;
  }

  .map-card-city {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }

  .map-card-city-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .map-card-city-value {
    font-size: 13px;
    font-weight: 800;
    color: #111827;
  }

  .map-card-legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .map-card-legend-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #111827;
  }

  .map-card-legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    flex: 0 0 14px;
  }

  /* étiquettes un peu plus grandes */
  .value-label-tooltip {
    font-size: 5px !important;
  }

  /* Mention crédit mobile */
  .mobile-credit {
    display: block;
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 1100;
    font-size: 9px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.82);
    text-align: right;
    text-shadow:
      -1px -1px 0 rgba(0,0,0,0.55),
       1px -1px 0 rgba(0,0,0,0.55),
      -1px  1px 0 rgba(0,0,0,0.55),
       1px  1px 0 rgba(0,0,0,0.55);
    pointer-events: none;
    max-width: 260px;
  }

  /* ── Bottom info bar ──────────────────────────────────────────────────── */
  .mobile-bottom-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    padding: 10px 14px 14px 14px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
  }

  .mobile-bottom-bar-election {
    font-size: 10px;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 3px;
  }

  .mobile-bottom-bar-title {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 7px;
  }

  .mobile-bottom-bar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin-bottom: 7px;
  }

  .mobile-bottom-bar-legend-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #111827;
  }

  .mobile-bottom-bar-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    flex: 0 0 12px;
  }

  .mobile-bottom-bar-credit {
    font-size: 10px;
    color: #94a3b8;
    font-style: italic;
    line-height: 1.4;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
  }
}

@media (min-width: 901px) {
  .mobile-filters-btn,
  .mobile-overlay,
  .mobile-summary-bar,
  .map-card,
  .mobile-bottom-bar {
    display: none !important;
  }

  .sidebar {
    transform: none !important;
    box-shadow: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   SIMULATEUR — bouton + modale
══════════════════════════════════════════════════════════════ */

/* ── Bouton flottant ── */
.simulateur-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1500;
  display: none;
  align-items: center;
  padding: 10px 18px;
  border-radius: 30px;
  border: none;
  background: #1e4f7a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.28);
  transition: background 0.18s, transform 0.12s;
  white-space: nowrap;
}
.simulateur-btn:hover  { background: #163d60; }
.simulateur-btn:active { transform: scale(0.97); }
.simulateur-btn.visible { display: inline-flex; }

/* ── Overlay ── */
.simul-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,0.48);
  overflow-y: auto;
  padding: 24px 16px;
}
.simul-overlay.active { display: flex; align-items: flex-start; justify-content: center; }

/* ── Modale ── */
.simul-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 980px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.22);
  overflow: hidden;
}

/* ── Header ── */
.simul-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid #e5e9ef;
  background: #1e4f7a;
  color: #fff;
}
.simul-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}
.simul-subtitle {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.82);
}
.simul-close {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.simul-close:hover { background: rgba(255,255,255,0.22); }

/* ── Disclaimer ── */
.simul-disclaimer {
  margin: 16px 24px 0;
  padding: 12px 14px;
  background: #f3f4f6;
  border-left: 3px solid #9ca3af;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
  line-height: 1.55;
}

/* ── Explainer ── */
.simul-explainer {
  margin: 12px 24px 0;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.65;
}

/* ── Corps en 2 colonnes ── */
.simul-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 20px 24px 24px;
}
.simul-sliders {
  padding-right: 24px;
  border-right: 1px solid #e5e9ef;
}
.simul-results {
  padding-left: 24px;
}

.simul-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 10px;
}
.simul-hint {
  font-size: 12px;
  color: #9ca3af;
  margin: 0 0 12px;
  line-height: 1.5;
}

/* ── Grille T1 ── */
.simul-t1-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.simul-t1-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.simul-t1-swatch {
  width: 10px; height: 10px;
  border-radius: 2px;
  flex: 0 0 10px;
}
.simul-t1-name  { flex: 1; color: #374151; }
.simul-t1-voix  { color: #6b7280; min-width: 44px; text-align: right; }
.simul-t1-pct   { color: #111827; font-weight: 700; min-width: 38px; text-align: right; }

/* ── Sliders de report ── */
.simul-cand-block {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f3f5;
}
.simul-cand-block:last-child { border-bottom: none; margin-bottom: 0; }
.simul-cand-name {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.simul-cand-swatch {
  width: 10px; height: 10px;
  border-radius: 2px;
  flex: 0 0 10px;
}
.simul-cand-voix-small {
  font-size: 11px;
  font-weight: 400;
  color: #9ca3af;
  margin-left: 4px;
}

.simul-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.simul-slider-label {
  font-size: 11px;
  color: #6b7280;
  width: 130px;
  flex: 0 0 130px;
  line-height: 1.3;
}
.simul-slider-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.simul-slider-wrap input[type=range] {
  flex: 1;
  accent-color: #1e4f7a;
}
.simul-slider-val {
  font-size: 11px;
  font-weight: 700;
  color: #111827;
  min-width: 34px;
  text-align: right;
}

/* ── Résultats ── */
.simul-result-candidate {
  margin-bottom: 14px;
}
.simul-result-name {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.simul-result-camp {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}
.simul-camp-g { background: #dcfce7; color: #166534; }
.simul-camp-d { background: #dbeafe; color: #1e3a8a; }

.simul-result-bar-wrap {
  height: 28px;
  background: #f1f3f5;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 4px;
}
.simul-result-bar {
  height: 100%;
  border-radius: 6px;
  transition: width 0.35s ease;
  min-width: 4px;
}
.simul-bar-g { background: #25a244; }
.simul-bar-d { background: #2563eb; }

.simul-result-nums {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.simul-result-pct  { font-weight: 800; color: #111827; font-size: 16px; }
.simul-result-voix { color: #6b7280; }

/* ── Écart ── */
.simul-ecart-box {
  margin: 16px 0 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-align: center;
}
.simul-ecart-box.winner-g { background: #f0fdf4; border-color: #86efac; }
.simul-ecart-box.winner-d { background: #eff6ff; border-color: #93c5fd; }
.simul-ecart-label {
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 2px;
}
.simul-ecart-voix {
  font-size: 12px;
  color: #6b7280;
}

/* ── Message dynamique ── */
.simul-message {
  font-size: 13px;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 16px;
  padding: 10px 12px;
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  border-radius: 0 6px 6px 0;
  min-height: 50px;
}

/* ── Graphique barres ── */
.simul-chart-wrap {
  margin-top: 4px;
}
.simul-chart-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 10px;
}
.simul-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 11px;
}
.simul-bar-rowlabel {
  width: 110px;
  flex: 0 0 110px;
  color: #374151;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.simul-bar-rowtrack {
  flex: 1;
  height: 18px;
  background: #f1f3f5;
  border-radius: 4px;
  display: flex;
  overflow: hidden;
}
.simul-bar-seg {
  height: 100%;
  transition: width 0.35s ease;
}
.simul-bar-seg-g   { background: #25a244; }
.simul-bar-seg-d   { background: #2563eb; }
.simul-bar-seg-abs { background: #d1d5db; }

/* ── Responsive mobile ── */
@media (max-width: 900px) {

  /* ── Layout modale : colonne unique ── */
  .simul-body {
    grid-template-columns: 1fr;
    padding: 12px 14px 20px;
  }
  .simul-sliders {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid #e5e9ef;
    padding-bottom: 16px;
    margin-bottom: 16px;
  }
  .simul-results { padding-left: 0; }

  /* ── Header simplifié : disclaimer court intégré, explainer masqué ── */
  .simul-disclaimer { display: none; }
  .simul-explainer  { display: none; }
  .simul-header {
    padding: 14px 14px 12px;
  }
  .simul-title {
    font-size: 15px;
    margin-bottom: 3px;
  }
  .simul-subtitle {
    font-size: 11px;
  }
  /* Disclaimer court affiché sous le sous-titre via pseudo-element */
  .simul-header > div::after {
    content: "Outil exploratoire — pas une prévision électorale.";
    display: block;
    margin-top: 5px;
    font-size: 10px;
    color: rgba(255,255,255,0.70);
    font-style: italic;
  }

  /* ── Sliders plus grands et plus faciles à manipuler ── */
  .simul-cand-block {
    margin-bottom: 18px;
    padding-bottom: 18px;
  }
  .simul-slider-row {
    margin-bottom: 10px;
    gap: 8px;
  }
  .simul-slider-label {
    font-size: 12px;
    width: 110px;
    flex: 0 0 110px;
  }
  .simul-slider-wrap input[type=range] {
    height: 36px;        /* zone tactile agrandie */
    cursor: pointer;
  }
  /* Thumb et track plus grands via accent + padding */
  .simul-slider-wrap input[type=range]::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
  }
  .simul-slider-wrap input[type=range]::-moz-range-thumb {
    width: 28px;
    height: 28px;
  }
  .simul-slider-val {
    font-size: 13px;
    min-width: 38px;
  }

  /* ── Récap T1 : déplacé en bas via order ── */
  /* On entoure simulT1Grid et son titre dans un conteneur ordonné */
  .simul-t1-section {
    order: 10;           /* pousse en bas de la colonne sliders */
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e9ef;
  }
  .simul-sliders {
    display: flex;
    flex-direction: column;
  }
  /* Les éléments sans order explicite restent en haut */
}

/* Bouton mobile : positionné au-dessus du bloc blanc fixe du bas (≈ 140px de haut).
   position:fixed + bottom calculé pour être juste au-dessus du mobile-bottom-bar.
   z-index 1150 : au-dessus de la carte (z:1), sous la sidebar (z:1300). */
@media (max-width: 900px) {
  .simulateur-btn.visible {
    bottom: 148px;
    left: 14px;
    right: auto;
    z-index: 1150;
    font-size: 11px;
    padding: 7px 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.28);
  }
}

/* ── Bloc finalistes dans le simulateur ── */
.simul-section-label-fin {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 10px;
}
.simul-hint-inline {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #9ca3af;
  font-style: italic;
}
.simul-cand-finaliste {
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 12px 6px !important;
  margin-bottom: 8px !important;
  border: 0.5px solid #e2e8f0 !important;
}

/* Section titre listes éliminées */
.simul-section-title-elim {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 16px 0 10px;
}
