/**
 * =====================================================
 * SIMULATION AIDES PAC — STYLES PAGE /simulation-aides/
 * =====================================================
 * Charte graphique pompeachaleur80.fr
 * - Vert foncé : #124b42
 * - Vert anis  : #adef02
 * - Beige crème : #f7eee3
 *
 * Conventions de markup (gérées en JS au chargement) :
 * - **xxx**  → <strong> (gras vert foncé)
 * - ==xxx==  → <span class="sim-hl"> (surlignage anis)
 *
 * Auteur : intégration design Claude — Mai 2026
 * =====================================================
 */

/* === Variables CSS scopées à la page === */
.sim-page {
  --sim-green-dark: #124b42;
  --sim-green-darker: #0d3a33;
  --sim-anis: #adef02;
  --sim-anis-dark: #98d402;
  --sim-cream: #f7eee3;
  --sim-cream-soft: #fdf9f3;
  --sim-text-dark: #1a2e2a;
  --sim-text-muted: #5a6b66;
  --sim-zone-h1: #adef02;
  --sim-zone-h2: #a8d8b9;
  --sim-zone-h3: #d4f0e0;
}

/* Markup converti par JS */
.sim-page .sim-hl {
  background: linear-gradient(180deg, transparent 65%, var(--sim-anis) 65%, var(--sim-anis) 95%, transparent 95%);
  padding: 0 4px;
  color: var(--sim-green-dark);
}
.sim-page strong {
  color: var(--sim-green-dark);
  font-weight: 700;
}

/* ============================================ */
/* === BLOC 1 : HERO + SIMULATEUR ============= */
/* ============================================ */
.sim-hero {
  background: linear-gradient(165deg, var(--sim-cream) 0%, var(--sim-cream-soft) 50%, #d8e6df 100%);
  position: relative;
  overflow: hidden;
  border-radius: 0 0 20px 20px;
}
.sim-hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(173, 239, 2, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.sim-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 0;
}

.sim-hero-content { padding-top: 8px; }

.sim-hero-h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--sim-green-dark);
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}

.sim-hero-accroche {
  font-size: 17px;
  line-height: 1.6;
  color: var(--sim-text-muted);
  margin: 0 0 32px;
  max-width: 540px;
}

.sim-hero-bullets {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}
.sim-hero-bullets li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(18, 75, 66, 0.12);
  font-size: 16px;
  color: var(--sim-text-dark);
  font-weight: 500;
}
.sim-hero-bullets li:last-child { border-bottom: 0; }
.sim-hero-bullets .sim-bullet-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  color: var(--sim-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sim-hero-bullets .sim-bullet-icon svg {
  width: 28px; height: 28px;
}

/* === Widget Trustindex (script externe) === */
.sim-trustindex-wrapper {
  margin-bottom: 36px;
  display: inline-block;
  /* Le script Trustindex injecte son propre HTML/CSS, on encadre juste */
}

/* === Bandeau logos === */
.sim-trust-block {
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1px solid rgba(18, 75, 66, 0.15);
}
.sim-trust-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--sim-text-muted);
  margin-bottom: 20px;
}
.sim-trust-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sim-trust-logos .sim-logo-cell {
  background: white;
  border-radius: 12px;
  padding: 8px 10px;
  height: 90px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(18, 75, 66, 0.06);
  transition: transform 0.2s;
}
.sim-trust-logos .sim-logo-cell:hover { transform: translateY(-2px); }
.sim-trust-logos img {
  max-width: 90%;
  max-height: 75px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* === Wrapper simulateur (sans double carte) === */
.sim-widget-wrapper {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sim-widget-title {
  text-align: center;
  padding: 0 8px;
}
.sim-widget-title h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--sim-green-dark);
  letter-spacing: -0.02em;
}
.sim-widget-subtitle {
  font-size: 14px;
  color: var(--sim-text-muted);
  margin: 0;
  font-weight: 500;
}
/* Le simulateur (pac-simulateur.js) garde son design propre, on ne l'override pas */
#pac-simulateur-container {
  width: 100%;
}
.sim-widget-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 12px;
  color: var(--sim-text-muted);
}
.sim-widget-trust-row > div {
  display: flex; align-items: center; gap: 6px;
  font-weight: 600;
}
.sim-widget-trust-row svg { width: 14px; height: 14px; }

/* ============================================ */
/* === BLOC 2 : LOCAL (silhouette dpt) ======== */
/* ============================================ */
.sim-local { background: white; padding: 80px 0; }
.sim-local-container {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.sim-local-image-wrapper { position: sticky; top: 80px; }
.sim-local-card {
  background: var(--sim-cream);
  border-radius: 20px;
  padding: 40px 32px 32px;
  box-shadow: 0 12px 36px rgba(18, 75, 66, 0.1);
  border: 1px solid rgba(18, 75, 66, 0.08);
  position: relative;
  overflow: hidden;
}
.sim-local-card::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(173, 239, 2, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.sim-local-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--sim-green-dark);
  text-align: center;
  margin-bottom: 20px;
  opacity: 0.65;
  position: relative;
}
.sim-local-silhouette {
  background: white;
  border-radius: 16px;
  padding: 24px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  box-shadow: inset 0 0 0 1px rgba(18, 75, 66, 0.06);
  position: relative;
}
.sim-local-silhouette img {
  width: 100%;
  height: auto;
  max-height: 320px;
  max-width: 95%;
  object-fit: contain;
  display: block;
}
.sim-local-name {
  text-align: center;
  position: relative;
}
.sim-local-name .sim-nom-big {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  color: var(--sim-green-dark);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.sim-local-name .sim-num-small {
  font-size: 13px;
  color: var(--sim-text-muted);
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.3px;
}
.sim-local-name .sim-num-small strong {
  color: var(--sim-green-dark);
  font-weight: 800;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  margin-left: 2px;
}

.sim-local-content {}
.sim-local-content h2 {
  margin: 0 0 28px;
  color: var(--sim-green-dark);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 800;
  line-height: 1.2;
}
.sim-local-content p {
  margin: 0 0 18px;
  color: var(--sim-text-dark);
  line-height: 1.6;
}
.sim-local-content h3 {
  margin: 28px 0 14px;
  color: var(--sim-green-dark);
  font-size: 20px;
  font-weight: 700;
}
.sim-local-bullets {
  list-style: none;
  background: var(--sim-cream);
  border-radius: 14px;
  padding: 16px 28px;
  margin: 24px 0 0;
  border-left: 4px solid var(--sim-anis);
}
.sim-local-bullets li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}
.sim-local-bullets li:not(:last-child) {
  border-bottom: 1px solid rgba(18, 75, 66, 0.12);
}
.sim-local-bullets .sim-bullet-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  color: var(--sim-green-dark);
  display: flex; align-items: center; justify-content: center;
}
.sim-local-bullets .sim-bullet-icon svg { width: 28px; height: 28px; }

/* ============================================ */
/* === BLOC 3 : CAS PRATIQUES ================= */
/* ============================================ */
.sim-cas {
  background: linear-gradient(180deg, var(--sim-cream) 0%, var(--sim-cream-soft) 100%);
  padding: 80px 24px;
  border-radius: 20px;
}
.sim-cas-container { max-width: 1280px; margin: 0 auto; }
.sim-cas-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
}
.sim-cas-header h2 {
  margin: 0 0 16px;
  color: var(--sim-green-dark);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.2;
}
.sim-cas-header p {
  margin: 0 auto;
  color: var(--sim-text-muted);
  max-width: 640px;
  line-height: 1.6;
}

.sim-cas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.sim-cas-card {
  background: white;
  border-radius: 18px !important;
  padding: 28px 24px;
  box-shadow: 0 8px 28px rgba(18, 75, 66, 0.08);
  border-top: 6px solid var(--sim-anis);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
  position: relative;
}
.sim-cas-card:hover { transform: translateY(-4px); }
.sim-cas-card.sim-featured::before {
  content: 'Le plus rentable';
  position: absolute;
  top: -12px; right: 16px;
  background: var(--sim-green-dark);
  color: var(--sim-anis);
  font-size: 10px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sim-cas-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sim-cream);
  color: var(--sim-green-dark);
  font-size: 36px;
  font-weight: 800;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  margin-bottom: 18px;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(18, 75, 66, 0.08);
  border: 1px solid rgba(18, 75, 66, 0.06);
}
.sim-cas-card.sim-featured .sim-cas-num { background: var(--sim-anis); }

.sim-cas-titre {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--sim-green-dark);
  line-height: 1.3;
}
.sim-cas-profil {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--sim-text-muted);
  line-height: 1.5;
}

.sim-cas-total {
  background: var(--sim-green-dark);
  color: white;
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  margin-bottom: 18px;
}
.sim-cas-total-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
  margin-bottom: 4px;
}
.sim-cas-total-amount {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  color: var(--sim-anis);
  letter-spacing: -1px;
  margin: 4px 0 2px;
}
.sim-cas-total-sub {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}

.sim-cas-aides {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.sim-cas-aide-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(18, 75, 66, 0.15);
  min-width: 0;
}
.sim-cas-aide-label { min-width: 0; flex: 1 1 auto; overflow: hidden; }
.sim-cas-aide-item:last-child { border-bottom: 0; }
.sim-cas-aide-label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sim-cas-aide-icon {
  width: 36px; height: 36px;
  background: rgba(173, 239, 2, 0.18);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--sim-green-dark);
  flex-shrink: 0;
}
.sim-cas-aide-icon svg { width: 22px; height: 22px; }
.sim-cas-aide-text {
  font-size: 12px;
  color: var(--sim-text-dark);
  line-height: 1.35;
  word-break: break-word;
  hyphens: auto;
}
.sim-cas-aide-montant {
  font-weight: 800;
  font-size: 13px;
  color: var(--sim-green-dark);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
  min-width: 0;
}

.sim-cas-commentaire {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(18, 75, 66, 0.1);
  font-size: 13px;
  color: var(--sim-text-muted);
  line-height: 1.5;
  font-style: italic;
}

.sim-cas-disclaimer {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(18, 75, 66, 0.05);
  border-left: 3px solid var(--sim-green-dark);
  border-radius: 6px;
  font-size: 13px;
  color: var(--sim-text-muted);
  font-style: italic;
  line-height: 1.6;
}

/* ============================================ */
/* === BLOC 4 : ZONE CLIMATIQUE =============== */
/* ============================================ */
.sim-zone { background: white; padding: 80px 0; }
.sim-zone-container { max-width: 1180px; margin: 0 auto; }

.sim-zone-banner {
  background: linear-gradient(135deg, var(--sim-green-dark) 0%, var(--sim-green-darker) 100%);
  color: white;
  border-radius: 16px;
  padding: 28px 36px;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 12px 36px rgba(18, 75, 66, 0.18);
  position: relative;
  overflow: hidden;
}
.sim-zone-banner::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(173, 239, 2, 0.18) 0%, transparent 70%);
}
.sim-zone-banner-icon {
  flex-shrink: 0;
  width: 72px; height: 72px;
  background: var(--sim-anis);
  color: var(--sim-green-dark);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.sim-zone-banner-icon svg { width: 42px; height: 42px; }
.sim-zone-banner-content { flex: 1; position: relative; z-index: 1; }
.sim-zone-banner-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--sim-anis);
  font-weight: 700;
  margin-bottom: 6px;
}
.sim-zone-banner-title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  color: white;
}

.sim-zone-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}
.sim-zone-header h2 {
  margin: 0 0 16px;
  color: var(--sim-green-dark);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 800;
  line-height: 1.2;
}
.sim-zone-header p {
  margin: 0 auto;
  color: var(--sim-text-muted);
  line-height: 1.6;
}

.sim-zone-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 56px;
}

.sim-zone-map {
  background: var(--sim-cream);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}
.sim-zone-map img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.sim-zone-text h3 {
  margin: 0 0 16px;
  color: var(--sim-green-dark);
  font-size: 18px;
  font-weight: 700;
}
.sim-zone-text p {
  margin: 16px 0;
  color: var(--sim-text-dark);
  line-height: 1.6;
}

.sim-zone-list {
  list-style: none;
  margin: 0 0 24px;
  background: var(--sim-cream-soft);
  border-radius: 14px;
  padding: 8px 24px;
  border: 1px solid rgba(18, 75, 66, 0.08);
}
.sim-zone-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
}
.sim-zone-list li:not(:last-child) {
  border-bottom: 1px solid rgba(18, 75, 66, 0.1);
}
.sim-zone-list-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--sim-green-dark);
  border: 1.5px solid rgba(18, 75, 66, 0.15);
}
.sim-zone-list-icon.h1 { background: var(--sim-zone-h1); }
.sim-zone-list-icon.h2 { background: var(--sim-zone-h2); }
.sim-zone-list-icon.h3 { background: var(--sim-zone-h3); }
.sim-zone-list-icon svg { width: 26px; height: 26px; }
.sim-zone-list-content { flex: 1; }
.sim-zone-list-badge {
  display: inline-block;
  background: var(--sim-green-dark);
  color: var(--sim-anis);
  font-weight: 800;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.sim-zone-list-text {
  display: block;
  font-size: 14px;
  color: var(--sim-text-dark);
  line-height: 1.5;
}

.sim-zone-comparatif {
  background: var(--sim-green-dark);
  border-radius: 16px;
  padding: 32px;
  color: white;
}
.sim-zone-comparatif h3 {
  color: white;
  text-align: center;
  margin: 0 0 24px;
  font-size: 18px;
}
.sim-zone-comparatif-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.sim-zone-comparatif-row:last-child { border-bottom: 0; }
.sim-zone-comparatif-badge {
  background: var(--sim-anis);
  color: var(--sim-green-dark);
  font-weight: 800;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  text-align: center;
}
.sim-zone-comparatif-badge.h2 { background: var(--sim-zone-h2); }
.sim-zone-comparatif-badge.h3 { background: var(--sim-zone-h3); }
.sim-zone-comparatif-bar {
  height: 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  overflow: hidden;
}
.sim-zone-comparatif-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sim-anis) 0%, var(--sim-anis-dark) 100%);
  border-radius: 100px;
}
.sim-zone-comparatif-amount {
  font-weight: 800;
  font-size: 16px;
  color: var(--sim-anis);
  white-space: nowrap;
}

.sim-zone-conclusion {
  margin-top: 24px;
  color: var(--sim-text-dark);
  line-height: 1.6;
}

/* ============================================ */
/* === BLOC 5 : FAQ =========================== */
/* ============================================ */
.sim-faq {
  background: var(--sim-cream);
  padding: 80px 24px 100px;
  border-radius: 20px;
}
.sim-faq-container { max-width: 920px; margin: 0 auto; }
.sim-faq-header {
  text-align: center;
  margin-bottom: 48px;
}
.sim-faq-header h2 {
  margin: 0 0 20px;
  color: var(--sim-green-dark);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.2;
}
.sim-faq-header p {
  margin: 0 auto;
  color: var(--sim-text-muted);
  max-width: 640px;
  line-height: 1.6;
}

.sim-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sim-faq-item {
  background: white;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 4px 16px rgba(18, 75, 66, 0.06);
  border-left: 4px solid var(--sim-anis);
}
.sim-faq-question {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.sim-faq-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--sim-green-dark);
  color: var(--sim-anis);
  border-radius: 12px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  margin-top: 2px;
  position: relative;
  gap: 0;
}
.sim-faq-num-digit {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1px;
}
.sim-faq-num-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}
.sim-faq-num-icon svg {
  width: 12px; height: 12px;
}
.sim-faq-question h3 {
  flex: 1;
  margin: 0;
  color: var(--sim-green-dark);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}
.sim-faq-answer {
  padding-left: 58px;
  color: var(--sim-text-dark);
  line-height: 1.6;
}
.sim-faq-answer p {
  margin: 0 0 12px;
}
.sim-faq-answer p:last-child { margin-bottom: 0; }

/* ============================================ */
/* === RESPONSIVE / MOBILE ===================== */
/* ============================================ */
@media (max-width: 1023px) {
  .sim-hero-grid {
    grid-template-columns: 1fr;
    padding: 24px 20px 48px;
    gap: 32px;
  }
  /* Inversion ordre : simulateur AVANT hero sur mobile */
  .sim-hero-content { order: 2; padding-top: 0; }
  .sim-widget-wrapper { order: 1; position: static; gap: 12px; }
  .sim-widget-title h2 { font-size: 22px; }
  .sim-widget-subtitle { font-size: 13px; }

  .sim-trust-logos { gap: 12px; }
  .sim-trust-logos .sim-logo-cell { height: 75px; padding: 8px 8px; }
  .sim-trust-logos img { max-height: 60px; }
  .sim-trustindex { width: 100%; }

  .sim-local, .sim-zone { padding: 56px 20px; }
  .sim-cas { padding: 56px 16px; }
  .sim-faq { padding: 56px 20px 80px; }
  .sim-local-container { grid-template-columns: 1fr; gap: 32px; padding: 0; }
  .sim-local-image-wrapper { position: static; order: 1; }
  .sim-local-content { order: 2; }

  .sim-cas-grid { grid-template-columns: 1fr; gap: 20px; }

  .sim-zone-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 16px;
  }
  .sim-zone-banner-icon { width: 56px; height: 56px; }
  .sim-zone-grid { grid-template-columns: 1fr; gap: 32px; }
  .sim-zone-map { padding: 24px; }
  .sim-zone-comparatif { padding: 24px; }
  .sim-zone-comparatif-row {
    grid-template-columns: 60px 1fr auto;
    gap: 14px;
  }

  .sim-faq-item { padding: 20px 22px; }
  .sim-faq-answer { padding-left: 0; margin-top: 8px; }
}


/* ============================================ */
/* === SMART LAYOUT (autofill detection) ====== */
/* ============================================ */
/* Quand l'utilisateur arrive depuis le formulaire avec ?prenom=... &dpt=... etc. */
/* Le JS ajoute la classe .has-autofill sur <body> */
/* DOM identique pour SEO, seul l'affichage change */

@media (min-width: 1024px) {
  body.has-autofill .sim-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* Simu en haut, centré, max 700px */
  body.has-autofill .sim-widget-wrapper {
    order: 1;
    position: static;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
  }
  /* Hero passe en dessous */
  body.has-autofill .sim-hero-content {
    order: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
  }
}


/* ============================================ */
/* === MOBILE PADDING (aération latérale) ===== */
/* ============================================ */
@media (max-width: 1023px) {
  /* Aérer toutes les sections sur mobile */
  .sim-hero { padding-left: 16px; padding-right: 16px; }
  .sim-hero-grid { padding-left: 0; padding-right: 0; }
  
  .sim-local { padding-left: 16px; padding-right: 16px; }
  
  .sim-cas { padding-left: 16px; padding-right: 16px; }
  
  .sim-zone { padding-left: 16px; padding-right: 16px; }
  
  .sim-faq { padding-left: 16px; padding-right: 16px; }
  
  /* Comparatif zones : limiter les chiffres qui débordent */
  .sim-zone-comparatif {
    padding: 20px;
  }
  .sim-zone-comparatif-row {
    grid-template-columns: 50px 1fr;
    gap: 12px;
  }
  .sim-zone-comparatif-bar {
    grid-column: 1 / -1;
    margin-bottom: 6px;
  }
  .sim-zone-comparatif-amount {
    grid-column: 1 / -1;
    text-align: left;
    font-size: 14px;
    word-break: break-word;
  }
}
