html, body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }
/* ==========================================================================
   primechauffage.fr — Site Prime Chauffage 2026
   Palette : Violet (#6b21a8) + Mauve (#a855f7)
   Font : Poppins (Google Fonts)
   Breakpoints : 768px, 480px
   Version : 3.0 (Palette violet + corrections)
   ========================================================================== */

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

:root {
  --brand: #6b21a8;
  --brand-dark: #4c1d95;
  --brand-light: #7c3aed;
  --highlight: #a855f7;
  --highlight-light: #c084fc;
  --highlight-dark: #7e22ce;
  --text: #1A1A2E;
  --text-light: #4A4A5A;
  --text-muted: #6B7280;
  --bg: #FAFAFC;
  --bg-alt: #F3F0F7;
  --bg-surface: #FFFFFF;
  --success: #16A34A;
  --info: #7c3aed;
  --warning: #F59E0B;
  --danger: #DC2626;
  --border: #D4D0DC;
  --elevation-sm: 0 2px 12px rgba(107,33,168,0.08);
  --elevation-lg: 0 8px 32px rgba(107,33,168,0.12);
  --round: 12px;
  --round-sm: 8px;
  --round-lg: 20px;
  --motion: 0.3s cubic-bezier(0.4,0,0.2,1);
  --content-width: 1200px;
  --typeface: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--typeface);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

img { max-width: 100%; height: auto; display: block; content-visibility: auto; }
a { color: var(--brand); text-decoration: none; transition: color var(--motion); }
a:hover { color: var(--highlight-dark); }

/* CWV: reduce CLS by reserving hero space */
.hero { contain: layout style; }
.region-banner { contain: layout style; }

/* CWV: GPU layers for animated elements */
.comeback-overlay { will-change: opacity; }
.wizard-panel { will-change: opacity, transform; }

/* Smooth scrolling only when user prefers */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.wrapper { max-width: var(--content-width); margin: 0 auto; padding: 0 24px; }
@media (max-width: 768px) {
  .wrapper { padding: 0 16px; }
}
@media (max-width: 480px) {
  .wrapper { padding: 0 14px; }
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--text); }
h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.875rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.375rem; margin-bottom: 0.625rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }

/* ---------- ALERT BANNER ---------- */
.alert-banner {
  background: linear-gradient(135deg, var(--highlight-dark), var(--highlight));
  color: #FFFFFF;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 100;
}
.alert-banner span { font-weight: 800; }

/* ---------- HEADER / NAV ---------- */
.main-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
}
.logo {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 24px;
  margin-right: 16px;
  flex-shrink: 0;
}
.logo svg { width: 36px; height: 36px; }
.logo-accent { color: var(--highlight); }

.header-menu { display: flex; gap: 26px; list-style: none; align-items: center; flex-wrap: nowrap; margin-left: auto; }
.header-row .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: linear-gradient(135deg, #6b21a8, #a855f7);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  margin-left: 18px;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.header-row .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(107, 33, 168, 0.35);
}
@media (max-width: 768px) {
  .header-row .btn-primary { display: none; }
}
.header-menu li { white-space: nowrap; }
.header-menu a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color var(--motion);
  position: relative;
  white-space: nowrap;
}
.header-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--highlight);
  transition: width var(--motion);
}
.header-menu a:hover { color: var(--brand); }
.header-menu a:hover::after { width: 100%; }

.header-action {
  background: var(--highlight);
  color: #FFFFFF !important;
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: background var(--motion), transform var(--motion);
}
.header-action:hover { background: var(--highlight-dark); transform: translateY(-1px); color: #FFFFFF !important; }
.header-action::after { display: none !important; }

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-btn span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--motion);
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(160deg, var(--brand-dark) 0%, var(--brand) 50%, var(--brand-light) 100%);
  color: #FFFFFF;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }

/* Hero with embedded form (split layout) */
.hero-with-form { padding: 56px 0 48px; text-align: left; }
.hero-with-form::before { top: -30%; right: -15%; }
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 40px;
  align-items: start;
  position: relative;
  z-index: 2;
}
.hero-split > * { min-width: 0; }
.hero-with-form .hero-content { max-width: none; margin: 0; }
.hero-with-form h1 { font-size: 2.375rem; }
.hero-with-form .intro-text { font-size: 1.0625rem; margin-bottom: 20px; }
.hero-with-form .price-highlight { margin-bottom: 20px; }
.hero-with-form .badges-row { justify-content: flex-start; margin-bottom: 24px; }
.hero-social-proof {
  display: flex;
  gap: 24px;
  font-size: 0.8125rem;
  opacity: 0.85;
  margin-top: 8px;
}
.hero-social-proof strong { color: var(--highlight-light); }

.hero-form-wrapper { position: relative; z-index: 3; min-width: 0; }
.hero-form-wrapper .eligibility-checker {
  background: #FFFFFF;
  border: none;
  border-radius: var(--round-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
  padding: 32px 28px;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
}
.hero-form-wrapper .wizard-panel { min-width: 0; }
.hero-form-wrapper .wizard-steps { margin-bottom: 24px; }
.hero-form-wrapper .step-title { color: var(--text); }
.hero-form-wrapper .option-tile { color: var(--text); }
.hero-form-wrapper .tile-desc { color: var(--text-light); }
.hero-form-wrapper .consent-text { color: var(--text-muted); }

.top-label {
  display: inline-block;
  background: rgba(168,85,247,0.2);
  border: 1px solid rgba(168,85,247,0.4);
  color: var(--highlight-light);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #FFFFFF;
}
.hero h1 .highlight {
  color: var(--highlight-light);
  position: relative;
}
.intro-text {
  font-size: 1.1875rem;
  opacity: 0.92;
  line-height: 1.6;
  margin-bottom: 28px;
}
.price-highlight {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.price-highlight .strike-price {
  text-decoration: line-through;
  opacity: 0.6;
  font-weight: 400;
  margin-right: 8px;
}
.price-highlight .final-price { color: var(--highlight-light); }

/* Trust badges */
.badges-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  justify-content: center;
}
.badge-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  color: #1F1F2E;
  box-shadow: 0 2px 8px rgba(15,23,42,0.12);
  letter-spacing: 0.01em;
}
.badge-trust svg { width: 16px; height: 16px; fill: #10B981; flex-shrink: 0; }

.main-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--highlight);
  color: #FFFFFF;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 1.0625rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--motion), transform var(--motion), box-shadow var(--motion);
  box-shadow: 0 4px 16px rgba(168,85,247,0.3);
}
.main-action:hover {
  background: var(--highlight-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(168,85,247,0.4);
  color: #FFFFFF;
}

/* ---------- CREDIBILITY STRIP ---------- */
.credibility-strip {
  background: var(--bg-alt);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.credibility-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
}
.credibility-row strong { color: var(--brand); font-weight: 700; }

/* ---------- FORM SECTION ---------- */
.checker-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(107,33,168,0.02), rgba(168,85,247,0.02));
}
.checker-section h2 { text-align: center; margin-bottom: 8px; }
.checker-section .section-intro { text-align: center; color: var(--text-muted); margin-bottom: 40px; font-size: 1.0625rem; }

.eligibility-checker {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--round-lg);
  padding: 36px 36px;
  box-shadow: 0 12px 40px rgba(107,33,168,0.1);
  position: relative;
}

/* Progress bar */
.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  position: relative;
}
.wizard-steps::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 15%;
  right: 15%;
  height: 3px;
  background: var(--border);
  z-index: 0;
}
.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
  position: relative;
}
.step-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: background var(--motion), color var(--motion);
}
.step-caption { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.step-marker.active .step-dot { background: var(--brand); color: #FFFFFF; }
.step-marker.completed .step-dot { background: var(--success); color: #FFFFFF; }
.step-marker.active .step-caption { color: var(--brand); font-weight: 600; }

/* Form steps */
.wizard-panel { display: none; animation: fadeIn 0.35s ease; }
.wizard-panel.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: var(--text);
}

/* Clickable cards (step 1 & 2) */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.option-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 16px;
  border: 2px solid var(--border);
  border-radius: var(--round);
  cursor: pointer;
  transition: border-color var(--motion), background var(--motion), transform var(--motion);
  text-align: center;
  font-weight: 600;
  font-size: 0.9375rem;
  background: #FFFFFF;
  user-select: none;
}
.option-tile:hover {
  border-color: var(--brand-light);
  background: rgba(107,33,168,0.03);
  transform: translateY(-2px);
}
.option-tile.selected {
  border-color: var(--brand);
  background: rgba(107,33,168,0.06);
  box-shadow: 0 0 0 3px rgba(107,33,168,0.12);
}
.option-tile .tile-icon { font-size: 1.75rem; margin-bottom: 2px; }
.option-tile .tile-desc { font-size: 0.875rem; color: var(--text-light); font-weight: 500; }

.options-grid.three-col { grid-template-columns: repeat(3, 1fr); }
.options-grid.single-col { grid-template-columns: 1fr; }

/* Revenue cards */
.income-options { grid-template-columns: 1fr; gap: 10px; }
.income-options .option-tile {
  flex-direction: row;
  padding: 14px 18px;
  gap: 12px;
  justify-content: flex-start;
}
.income-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  line-height: 1.5;
}

/* ---------- STEP 2 COMPACT LAYOUT ---------- */
/* Chauffage: 4 items in 1 row on desktop */
.wizard-panel[data-panel="2"] .chauffage-cards {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.wizard-panel[data-panel="2"] .chauffage-cards .option-tile {
  padding: 10px 6px;
  gap: 2px;
  font-size: 0.8125rem;
  min-height: auto;
}
.wizard-panel[data-panel="2"] .chauffage-cards .tile-icon {
  font-size: 1.25rem;
  margin-bottom: 0;
}

/* Logement: 2-col, compact */
.wizard-panel[data-panel="2"] .logement-cards {
  gap: 8px;
  margin-bottom: 10px;
}
.wizard-panel[data-panel="2"] .logement-cards .option-tile {
  padding: 10px 10px;
  gap: 2px;
  font-size: 0.8125rem;
  min-height: auto;
}
.wizard-panel[data-panel="2"] .logement-cards .tile-icon {
  font-size: 1.25rem;
  margin-bottom: 0;
}

/* Revenue: 3 columns on desktop for compact display */
.wizard-panel[data-panel="2"] .revenue-cards {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}
.wizard-panel[data-panel="2"] .revenue-cards .option-tile {
  padding: 8px 6px;
  gap: 2px;
  font-size: 0.75rem;
  min-height: auto;
}
.wizard-panel[data-panel="2"] .revenue-cards .tile-icon {
  font-size: 1rem;
  margin-bottom: 0;
}
.wizard-panel[data-panel="2"] .revenue-cards .option-tile small {
  font-size: 0.6875rem;
}

/* Reduce step-title + labels spacing in panel 2 */
.wizard-panel[data-panel="2"] .step-title {
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.wizard-panel[data-panel="2"] p[style*="font-weight:600"] {
  margin-bottom: 4px !important;
  font-size: 0.8125rem !important;
}
.wizard-panel[data-panel="2"] .btn-continue {
  margin-top: 10px !important;
}
.wizard-panel[data-panel="2"] .income-hint {
  margin-top: 4px;
  font-size: 0.75rem;
}

/* Standalone checker (non-hero): wider max-width */
.checker-section .eligibility-checker {
  max-width: 780px;
}

/* ---------- BACK BUTTON ---------- */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 0;
  margin-bottom: 8px;
  font-family: var(--typeface);
  transition: color var(--motion);
}
.btn-back:hover {
  color: var(--brand);
}

/* ---------- NEUTRALIZE :invalid on inputs ---------- */
.input-block input:invalid,
.input-block select:invalid {
  box-shadow: none;
  border-color: var(--border);
}
.input-block input:invalid:focus,
.input-block select:invalid:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(107,33,168,0.1);
}

/* Eligibility gauge */
.score-indicator {
  display: none;
  background: linear-gradient(135deg, rgba(107,33,168,0.05), rgba(168,85,247,0.05));
  border: 1px solid var(--border);
  border-radius: var(--round);
  padding: 12px 16px;
  margin-bottom: 16px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}
.score-indicator.visible { display: block; }
.progress-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin: 8px 0 6px;
}
.progress-level {
  height: 100%;
  border-radius: 3px;
  transition: width 1.2s ease;
}
.progress-level.high { background: linear-gradient(90deg, var(--success), #22c55e); width: 85%; }
.progress-level.medium { background: linear-gradient(90deg, var(--info), #60a5fa); width: 65%; }
.score-icon { font-size: 1.25rem; margin-bottom: 2px; }
.score-heading { font-size: 0.875rem; font-weight: 700; color: var(--brand-dark); margin-bottom: 2px; }
.score-detail { font-size: 0.75rem; color: var(--text-light); }

/* Form inputs (step 3) */
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.input-block { margin-bottom: 14px; }
.input-block label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
}
.input-block input,
.input-block select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--round-sm);
  font-size: 1rem;
  font-family: var(--typeface);
  color: var(--text);
  background: #FFFFFF;
  transition: border-color var(--motion), box-shadow var(--motion);
  outline: none;
}
.input-block input:focus,
.input-block select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(107,33,168,0.1);
}
.input-block input::placeholder { color: #B0B0B0; }
.input-block .field-error { font-size: 0.75rem; color: var(--danger); margin-top: 4px; display: none; }

.location-detected { font-size: 0.8125rem; color: var(--brand); margin-top: 4px; display: none; font-weight: 500; }

/* Submit button */
.btn-action {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--highlight), var(--highlight-dark));
  color: #FFFFFF;
  font-size: 1.0625rem;
  font-weight: 700;
  font-family: var(--typeface);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--motion), transform var(--motion), box-shadow var(--motion);
  box-shadow: 0 4px 16px rgba(168,85,247,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(168,85,247,0.35);
}
.btn-action:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.consent-text {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}
.consent-text a { color: var(--brand); text-decoration: underline; }

/* Dead-end locataire */
.tenant-notice {
  display: none;
  text-align: center;
  padding: 32px 20px;
  animation: fadeIn 0.4s ease;
}
.tenant-notice .block-icon { font-size: 3rem; margin-bottom: 12px; }
.tenant-notice h3 { color: var(--text); margin-bottom: 8px; }
.tenant-notice p { color: var(--text-light); font-size: 0.9375rem; }

/* Form confirmation */
.success-screen {
  display: none;
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.5s ease;
}
.success-screen .done-icon { font-size: 3.5rem; margin-bottom: 16px; }
.success-screen h3 { color: var(--brand); margin-bottom: 8px; font-size: 1.375rem; }
.success-screen p { color: var(--text-light); font-size: 1rem; }

/* ---------- BENEFITS SECTION ---------- */
.benefits-section {
  padding: 80px 0;
  background: var(--bg);
}
.benefits-section h2 { text-align: center; margin-bottom: 12px; }
.benefits-section .section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 48px; font-size: 1.0625rem; max-width: 640px; margin-left: auto; margin-right: auto; }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.benefit-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--round-lg);
  padding: 36px 28px 32px;
  transition: transform var(--motion), box-shadow var(--motion);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--elevation-lg); }
.benefit-card .benefit-symbol {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
}
.benefit-card .benefit-symbol.green { background: rgba(22,163,74,0.1); }
.benefit-card .benefit-symbol.violet { background: rgba(107,33,168,0.1); }
.benefit-card .benefit-symbol.gold { background: rgba(168,85,247,0.12); }
.benefit-card .benefit-symbol.blue { background: rgba(37,99,235,0.08); }
.benefit-card h3 { margin-bottom: 6px; font-size: 1.25rem; }
.benefit-card .benefit-value {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 14px;
  line-height: 1.2;
}
.benefit-card p { color: var(--text-light); font-size: 0.9375rem; line-height: 1.65; margin-bottom: 0; flex-grow: 1; }
.benefit-card .benefit-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: 20px;
  padding: 8px 20px;
  border: 1.5px solid var(--brand);
  border-radius: 50px;
  transition: background var(--motion), color var(--motion);
}
.benefit-card .benefit-more:hover { background: var(--brand); color: #FFFFFF; }

/* ---------- ELIGIBILITY TABLE ---------- */
.baremes-section {
  padding: 80px 0;
  background: #FFFFFF;
}
.baremes-section h2 { text-align: center; margin-bottom: 12px; }
.baremes-section .section-intro { text-align: center; color: var(--text-muted); margin-bottom: 40px; }

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--round-lg);
  border: 1px solid var(--border);
  box-shadow: var(--elevation-sm);
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
}
.baremes-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
}
.baremes-table thead th {
  background: linear-gradient(135deg, #4c1d95, #6b21a8);
  color: #FFFFFF;
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.18);
}
.baremes-table thead th:last-child { border-right: 0; }
.baremes-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid #E5E7EB;
  border-right: 1px solid #F3F4F6;
  color: #1F1F2E;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.baremes-table tbody td:last-child { border-right: 0; }
.baremes-table tbody tr:last-child td { border-bottom: 0; }
.baremes-table tbody tr:nth-child(even) td { background: #FAFAFA; }
.baremes-table tbody tr:hover td { background: #F5F0FA; }
.baremes-table tbody td:first-child { font-weight: 500; }
.baremes-table tbody td strong { color: #4c1d95; font-weight: 700; }
.baremes-table .color-bleu { color: #2563EB; font-weight: 700; }
.baremes-table .color-jaune { color: #D97706; font-weight: 700; }
.baremes-table .color-violet { color: #7C3AED; font-weight: 700; }
.baremes-table .color-rose { color: #EC4899; font-weight: 700; }
@media (max-width: 768px) {
  .baremes-table thead th { padding: 12px 12px; font-size: 0.78rem; }
  .baremes-table tbody td { padding: 11px 12px; font-size: 0.85rem; }
}

/* ---------- REVIEWS ---------- */
.reviews-section {
  padding: 80px 0;
  background: var(--bg);
}
.reviews-section h2 { text-align: center; margin-bottom: 12px; }
.reviews-section .section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 48px; font-size: 1.0625rem; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--round-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.review-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 3rem;
  color: var(--highlight-light);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}
.review-rating { color: var(--highlight); font-size: 1rem; margin-bottom: 14px; letter-spacing: 2px; }
.review-quote {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
  flex-grow: 1;
}
.review-name { font-weight: 700; font-size: 0.9375rem; color: var(--text); }
.review-info { font-size: 0.8125rem; color: var(--text-muted); margin-top: 2px; }

/* ---------- FAQ ---------- */
.questions-section {
  padding: 80px 0;
  background: #FFFFFF;
}
.questions-section h2 { text-align: center; margin-bottom: 12px; }
.questions-section .section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 48px; font-size: 1.0625rem; }
.questions-list { max-width: 920px; margin: 0 auto; }
.qa-block {
  border: 1px solid var(--border);
  border-radius: var(--round);
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--bg-surface);
  transition: border-color var(--motion), box-shadow var(--motion);
}
.qa-block:hover { border-color: var(--highlight-light); }
.qa-block.open { border-color: var(--brand); box-shadow: 0 2px 12px rgba(107,33,168,0.08); }
.qa-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--typeface);
  transition: background var(--motion);
}
.qa-trigger:hover { background: rgba(107,33,168,0.02); }
.qa-trigger .qa-icon {
  font-size: 1.25rem;
  color: var(--brand);
  transition: transform var(--motion);
  flex-shrink: 0;
  margin-left: 16px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(107,33,168,0.06);
  border-radius: 50%;
}
.qa-block.open .qa-icon { transform: rotate(45deg); background: var(--brand); color: #FFFFFF; }
.qa-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-light);
}
.qa-block.open .qa-content {
  max-height: 600px;
  padding: 0 24px 20px;
}

/* ---------- CTA SECTION (mid-page) ---------- */
.promo-section {
  padding: 64px 0;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 60%, var(--highlight-dark) 100%);
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.promo-section::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.promo-section h2 { color: #FFFFFF; margin-bottom: 12px; position: relative; }
.promo-section p { opacity: 0.92; margin-bottom: 28px; font-size: 1.0625rem; position: relative; }
.promo-section .main-action { font-size: 1rem; background: #FFFFFF; color: var(--brand); position: relative; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.promo-section .main-action:hover { background: var(--bg-alt); transform: translateY(-2px); box-shadow: 0 6px 28px rgba(0,0,0,0.2); color: var(--brand-dark); }

/* ---------- FOOTER ---------- */
.main-footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 24px;
}
.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-about { font-size: 0.9375rem; line-height: 1.6; }
.footer-about .logo { margin-bottom: 12px; color: #FFFFFF; }
.footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-list { list-style: none; }
.footer-list li { margin-bottom: 8px; }
.footer-list a { color: rgba(255,255,255,0.7); font-size: 0.875rem; }
.footer-list a:hover { color: var(--highlight-light); }

.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.55);
}
.footer-legal span:first-child { font-weight: 500; color: rgba(255,255,255,0.7); }
.footer-legal span:last-child { max-width: 760px; }

/* ---------- BREADCRUMB ---------- */
.path-nav {
  padding: 12px 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.path-nav a { color: var(--brand); }
.path-nav span { margin: 0 6px; }

/* ---------- ARTICLE / PILLAR PAGE ---------- */
.article-page { background: var(--bg); }

.page-banner {
  background: linear-gradient(160deg, var(--brand-dark) 0%, var(--brand) 60%, var(--brand-light) 100%);
  color: #FFFFFF;
  padding: 64px 24px 52px;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168,85,247,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.page-banner .wrapper { position: relative; z-index: 2; max-width: 800px; }
.page-banner h1 { color: #FFFFFF; font-size: 2.25rem; line-height: 1.2; margin-bottom: 16px; }
.page-info {
  display: flex;
  gap: 24px;
  font-size: 0.8125rem;
  opacity: 0.8;
  margin-top: 0;
  flex-wrap: wrap;
}

/* Article TOC */
.article-toc {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--round-lg);
  padding: 28px 32px;
  margin: -28px auto 40px;
  max-width: 960px;
  position: relative;
  z-index: 3;
  box-shadow: var(--elevation-sm);
}
.article-toc .summary-heading {
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 1.125rem;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-toc .summary-heading::before {
  content: '📑';
  font-size: 1.25rem;
}
.article-toc ul,
.article-toc ol {
  list-style: none;
  padding-left: 0;
  margin: 0;
  columns: 2;
  column-gap: 24px;
}
.article-toc li {
  margin-bottom: 10px;
  break-inside: avoid;
  padding-left: 20px;
  position: relative;
}
.article-toc li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--highlight-light);
}
.article-toc a {
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--motion);
}
.article-toc a:hover { color: var(--brand); }

/* Article content area */
.content-area {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 40px;
}
.content-area h2 {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: clamp(1.45rem, 2vw + 0.6rem, 1.75rem);
  line-height: 1.3;
}
.content-area h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.content-area h3 { margin-top: 32px; font-size: clamp(1.15rem, 1vw + 0.7rem, 1.3rem); line-height: 1.35; }
.content-area p {
  margin-bottom: 16px;
  color: var(--text-light);
  line-height: 1.75;
  font-size: clamp(1rem, 0.5vw + 0.95rem, 1.0625rem);
}
.content-area ul, .content-area ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
.content-area li {
  margin-bottom: 8px;
  line-height: 1.65;
  color: var(--text-light);
  font-size: clamp(1rem, 0.5vw + 0.95rem, 1.0625rem);
}
.content-area strong { color: var(--text); }
/* Tables et figures peuvent dépasser légèrement la colonne texte pour casser le vide */
.content-area .table-wrapper,
.content-area .baremes-table,
.content-area figure,
.content-area blockquote {
  max-width: none;
}
@media (min-width: 1280px) {
  .content-area {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 768px) {
  .content-area {
    padding: 32px 16px 32px;
  }
  .content-area h2 { margin-top: 32px; padding-top: 18px; }
  .content-area h3 { margin-top: 24px; }
}

/* Article tables */
.content-area table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin: 20px 0 28px;
  border-radius: var(--round);
  overflow: hidden;
  border: 1px solid var(--border);
}
.content-area thead th {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #FFFFFF;
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
}
.content-area tbody td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}
.content-area tbody tr:nth-child(even) { background: rgba(107,33,168,0.02); }
.content-area tbody tr:hover { background: rgba(168,85,247,0.05); }

/* Article CTA breakout */
.content-area .promo-section {
  margin: 48px -24px 40px;
  border-radius: var(--round-lg);
  overflow: hidden;
}

/* Article FAQ within content */
.content-area .questions-section {
  margin-top: 48px;
  padding: 0;
  background: none;
}
.content-area .questions-section h2 {
  text-align: left;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.content-area .questions-list { max-width: none; }

/* Article form inputs (standalone forms without .input-block wrapper) */
.content-area label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9375rem;
  color: var(--text);
}
.content-area input[type="text"],
.content-area input[type="tel"],
.content-area input[type="email"],
.content-area select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--round-sm);
  font-size: 1rem;
  font-family: var(--typeface);
  color: var(--text);
  background: #FFFFFF;
  transition: border-color var(--motion), box-shadow var(--motion);
  outline: none;
}
.content-area input:focus,
.content-area select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(107,33,168,0.1);
}

/* TOC (department pages use this) */
.summary-nav {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--round);
  padding: 24px 28px;
  margin-bottom: 40px;
}
.summary-nav .summary-heading { font-weight: 700; margin-bottom: 12px; font-size: 1rem; }
.summary-nav ol { padding-left: 20px; }
.summary-nav li { margin-bottom: 6px; }
.summary-nav a { color: var(--brand); font-size: 0.9375rem; font-weight: 500; }
.summary-nav a:hover { color: var(--highlight-dark); }

/* Info box / callout */
.callout {
  background: rgba(107,33,168,0.05);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--round-sm) var(--round-sm) 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.callout.warning {
  background: rgba(245,158,11,0.08);
  border-left-color: var(--warning);
}
.callout.gold {
  background: rgba(168,85,247,0.06);
  border-left-color: var(--highlight);
}
.callout p { margin-bottom: 0; }
.callout strong { color: var(--text); }

/* ---------- DEPARTMENT PAGE ---------- */
.region-banner {
  background: linear-gradient(160deg, var(--brand-dark), var(--brand-light));
  color: #FFFFFF;
  padding: 60px 0 48px;
}
.region-banner h1 { color: #FFFFFF; }
.region-figures {
  display: flex;
  gap: 32px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.figure-item {
  text-align: center;
}
.figure-item .figure-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--highlight-light);
}
.figure-item .figure-caption {
  font-size: 0.8125rem;
  opacity: 0.8;
}

/* ---------- DEPARTMENT LISTING PAGE ---------- */
.dept-listing-section { padding: 48px 0 64px; }
.dept-listing-intro { font-size: 1rem; color: var(--text-light); max-width: 720px; margin: 0 auto 40px; text-align: center; line-height: 1.7; }
.dept-regions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.dept-region-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--round-lg);
  padding: 24px 28px;
  box-shadow: var(--elevation-sm);
}
.dept-region-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--highlight-light);
}
.dept-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 16px;
}
.dept-list li { break-inside: avoid; margin-bottom: 6px; }
.dept-list a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--round-sm);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}
.dept-list a:hover {
  background: var(--bg-alt);
  color: var(--brand);
}

/* ---------- DEPARTMENT DETAIL PAGE ---------- */
.department-main { padding: 0 0 48px; }
.department-main .wrapper { max-width: 960px; }
@media (min-width: 1280px) {
  .department-main .wrapper { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 768px) {
  .department-main .wrapper { padding: 0 16px; }
}
.department-main p,
.department-main li {
  font-size: clamp(1rem, 0.5vw + 0.95rem, 1.0625rem);
  line-height: 1.7;
}
.department-main h2 { font-size: clamp(1.45rem, 2vw + 0.6rem, 1.75rem); line-height: 1.3; }
.department-main h3 { font-size: clamp(1.15rem, 1vw + 0.7rem, 1.3rem); line-height: 1.35; }
.department-main h1 {
  font-size: 1.6rem;
  line-height: 1.3;
  margin-bottom: 24px;
  color: var(--text);
}
.department-main h2 {
  font-size: 1.25rem;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--brand);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-alt);
}
.department-main p { margin-bottom: 16px; line-height: 1.8; }
.department-main .article-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.department-main .summary-nav {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--round-lg);
  padding: 24px 28px;
  margin-bottom: 36px;
  box-shadow: var(--elevation-sm);
}
.department-main .summary-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
}
.department-main .summary-nav ul {
  columns: 2;
  column-gap: 24px;
  list-style: none;
  padding: 0;
}
.department-main .summary-nav li {
  break-inside: avoid;
  margin-bottom: 6px;
}
.department-main .summary-nav a {
  font-size: 0.875rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.15s;
}
.department-main .summary-nav a:hover { color: var(--brand); }
.department-main .department-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--round-lg);
  overflow: hidden;
  box-shadow: var(--elevation-sm);
  margin: 24px 0 28px;
  font-size: 0.9rem;
}
.department-main .department-table thead th {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
}
.department-main .department-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.department-main .department-table tbody tr:last-child td { border-bottom: none; }
.department-main .department-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.department-main .cross-links-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.department-main .cross-links-group h3 {
  font-size: 0.95rem;
  color: var(--brand);
  margin-bottom: 12px;
}
.department-main .cross-links-group ul { list-style: none; padding: 0; }
.department-main .cross-links-group li { margin-bottom: 8px; }
.department-main .cross-links-group a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.department-main .cross-links-group a:hover { color: var(--brand); }
.department-main .cta-final {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  padding: 40px 32px;
  border-radius: var(--round-lg);
  text-align: center;
  margin-top: 48px;
}
.department-main .cta-final h2 {
  color: #fff;
  border: none;
  margin-top: 0;
  font-size: 1.3rem;
}
.department-main .cta-final p { color: rgba(255,255,255,0.9); }

@media (max-width: 768px) {
  .dept-regions-grid { grid-template-columns: 1fr; gap: 16px; }
  .dept-region-card { padding: 20px; }
  .dept-list { columns: 1; }
  .department-main h1 { font-size: 1.3rem; }
  .department-main h2 { font-size: 1.1rem; }
  .department-main .summary-nav ul { columns: 1; }
  .department-main .cross-links-section { grid-template-columns: 1fr; gap: 20px; }
  .department-main .department-table { font-size: 0.8125rem; display: block; overflow-x: auto; }
}

/* ---------- CROSS-LINKS (generic section for articles & departments) ---------- */
aside.cross-links-section,
.cross-links-section.cross-links-standalone {
  background: var(--bg-alt);
  padding: 48px 0;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
aside.cross-links-section .cross-links-grid,
.cross-links-section.cross-links-standalone .cross-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
aside.cross-links-section .cross-links-group h3,
.cross-links-section.cross-links-standalone .cross-links-group h3 {
  font-size: 1rem;
  color: var(--brand);
  margin-bottom: 14px;
  font-weight: 700;
}
aside.cross-links-section .cross-links-group ul,
.cross-links-section.cross-links-standalone .cross-links-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
aside.cross-links-section .cross-links-group li,
.cross-links-section.cross-links-standalone .cross-links-group li {
  margin-bottom: 8px;
  min-width: 0;
}
aside.cross-links-section .cross-links-group a,
.cross-links-section.cross-links-standalone .cross-links-group a {
  color: var(--text-light);
  font-size: 0.9125rem;
  line-height: 1.5;
  text-decoration: none;
  word-break: break-word;
  overflow-wrap: anywhere;
}
aside.cross-links-section .cross-links-group a:hover,
.cross-links-section.cross-links-standalone .cross-links-group a:hover {
  color: var(--brand);
}
@media (max-width: 768px) {
  aside.cross-links-section,
  .cross-links-section.cross-links-standalone { padding: 36px 0; margin-top: 32px; }
  aside.cross-links-section .cross-links-grid,
  .cross-links-section.cross-links-standalone .cross-links-grid {
    grid-template-columns: 1fr; gap: 24px;
  }
}

/* ---------- CROSS-LINKS HOME (Articles populaires) ---------- */
.cross-links-home {
  background: var(--bg-alt, #f7f5fb);
  padding: 56px 0;
  border-top: 1px solid var(--border, #eee);
  margin-top: 40px;
}
.cross-links-home h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--text);
}
.cross-links-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
}
.cross-links-home-grid p {
  margin: 0;
  min-width: 0;
}
.cross-links-home-grid a {
  color: var(--brand, #6b21a8);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.5;
  display: inline-block;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.cross-links-home-grid a:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .cross-links-home { padding: 40px 0; }
  .cross-links-home-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- LANDING PAGE (Ads) ---------- */
.conversion-page { background: var(--bg); min-height: 100vh; }
.conversion-banner {
  background: linear-gradient(160deg, var(--brand-dark), var(--brand));
  color: #FFFFFF;
  padding: 48px 0 32px;
  text-align: center;
}
.conversion-banner h1 { color: #FFFFFF; font-size: 2rem; max-width: 600px; margin: 0 auto 16px; }
.conversion-content { padding: 40px 0; }
.conversion-content .eligibility-checker { max-width: 540px; }

/* ---------- EXIT INTENT POPUP ---------- */
.comeback-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}
.comeback-overlay.visible { display: flex; }
.comeback-modal {
  background: #FFFFFF;
  border-radius: var(--round-lg);
  max-width: 480px;
  width: 90%;
  padding: 40px 32px;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: popIn 0.4s ease;
}
@keyframes popIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.comeback-dismiss {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}
.comeback-modal h3 { font-size: 1.375rem; margin-bottom: 8px; }
.comeback-modal p { color: var(--text-light); margin-bottom: 24px; }
.comeback-modal .main-action { width: 100%; justify-content: center; }

/* ---------- LEGAL PAGES ---------- */
.static-page { padding: 60px 0; }
.static-page h1 { margin-bottom: 32px; }
.static-page h2 { margin-top: 40px; font-size: 1.5rem; }
.static-page p { margin-bottom: 12px; color: var(--text-light); }

/* ---------- 404 PAGE ---------- */
.notfound-page { text-align: center; padding: 120px 24px; }
.notfound-page h1 { font-size: 6rem; color: var(--brand); margin-bottom: 0; }
.notfound-page p { font-size: 1.125rem; color: var(--text-light); margin-bottom: 28px; }

/* ---------- DEPARTMENT SECTIONS (dept-specific, dept-extra, dept-*, etc.) ---------- */
/* These sections don't have a <div class="wrapper"> inside them, so we apply
   wrapper-like constraints directly to match the rest of the page layout. */
section[class*="dept-"],
section.dept-specific,
section.dept-section {
  max-width: var(--content-width);
  margin: 32px auto;
  padding: 24px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
section[class*="dept-"] h2,
section.dept-specific h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.5rem;
  color: var(--text);
}
section[class*="dept-"] h3,
section.dept-specific h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 1.15rem;
  color: var(--text);
}
section[class*="dept-"] p,
section.dept-specific p {
  color: #2C2C3A;
  line-height: 1.75;
  margin: 0 0 16px 0;
  font-size: 1.0rem;
  margin-bottom: 12px;
}

/* ---------- RESPONSIVE 1150px (medium desktop) — hide secondary nav items ---------- */
@media (max-width: 1150px) {
  .header-menu { gap: 18px; }
  .header-menu a { font-size: 0.875rem; }
  .header-menu .nav-secondary { display: none; }
}

/* ---------- RESPONSIVE 1024px (tablet landscape) ---------- */
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr 440px; gap: 28px; }
  .hero-with-form h1 { font-size: 2rem; }
  .hero-form-wrapper .eligibility-checker { padding: 28px 24px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid .benefit-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-columns { grid-template-columns: 2fr 1fr 1fr; }
}

/* ---------- RESPONSIVE 768px ---------- */
@media (max-width: 768px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }

  .header-menu { display: none; }
  .header-action.desktop-only { display: none; }
  .menu-btn { display: block; }

  .header-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    gap: 16px;
    z-index: 95;
  }
  .header-menu.mobile-open a {
    padding: 12px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .header-menu.mobile-open .header-action {
    display: inline-block;
    text-align: center;
    min-height: 44px;
    line-height: 44px;
  }

  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 2rem; }
  .hero-with-form { padding: 36px 0 32px; text-align: center; }
  .hero-split { grid-template-columns: 1fr; gap: 28px; }
  .hero-with-form .badges-row { justify-content: center; }
  .hero-social-proof { justify-content: center; }
  .hero-form-wrapper .eligibility-checker { padding: 28px 20px; }
  .intro-text { font-size: 1rem; }
  .price-highlight { font-size: 1.125rem; }
  .badges-row { gap: 8px; }

  .benefits-grid { grid-template-columns: 1fr; gap: 16px; }
  .benefit-card { padding: 28px 22px 24px; }
  .reviews-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-columns { grid-template-columns: 1fr 1fr; gap: 24px; }

  .eligibility-checker { padding: 28px 20px; }
  .options-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .options-grid.three-col { grid-template-columns: repeat(2, 1fr); }
  .field-pair { grid-template-columns: 1fr; }

  /* Step 2 compact: chauffage 2x2, revenue 2-col + 1 */
  .wizard-panel[data-panel="2"] .chauffage-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .wizard-panel[data-panel="2"] .chauffage-cards .option-tile {
    padding: 10px 8px;
  }
  .wizard-panel[data-panel="2"] .revenue-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .wizard-panel[data-panel="2"] .revenue-cards .option-tile {
    padding: 8px 10px;
    min-height: auto;
  }
  .checker-section .eligibility-checker { max-width: 100%; }

  /* Touch-friendly: min 44px targets */
  .option-tile { min-height: 44px; padding: 18px 14px; }
  .qa-trigger { min-height: 48px; padding: 16px 18px; }
  .main-action { min-height: 48px; }
  .btn-action { min-height: 48px; }
  .btn-continue { min-height: 48px; }
  .header-action { min-height: 44px; }
  a, button { -webkit-tap-highlight-color: transparent; }

  .region-figures { gap: 20px; }
  .credibility-row { gap: 20px; font-size: 0.8125rem; }

  .footer-legal { flex-direction: column; gap: 8px; text-align: center; }

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

  /* Article pages mobile */
  .page-banner { padding: 44px 16px 40px; }
  .page-banner h1 { font-size: 1.625rem; }
  .page-info { gap: 12px; }
  .article-toc { padding: 20px 22px; margin: -20px 16px 28px; }
  .article-toc ul, .article-toc ol { columns: 1; }
  .content-area table { font-size: 0.875rem; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .content-area .promo-section { margin-left: -16px; margin-right: -16px; border-radius: 0; }

  /* Department page mobile */
  .region-banner { padding: 40px 0 32px; }
  .region-banner h1 { font-size: 1.75rem; line-height: 1.2; }
  .page-banner { padding: 40px 0 32px; }
  .page-banner h1 { font-size: 1.75rem; }
  .page-info { flex-wrap: wrap; gap: 10px; }

  .content-area { padding: 32px 16px 60px; }
  .content-area h2 { margin-top: 36px; font-size: 1.375rem; }
  .content-area h3 { margin-top: 24px; font-size: 1.125rem; }

  .summary-nav { padding: 18px 20px; margin-bottom: 28px; }
  .summary-nav a { font-size: 0.875rem; min-height: 44px; display: inline-flex; align-items: center; }

  .callout { padding: 16px 18px; margin: 20px 0; }

  /* Department tables — horizontal scroll */
  .department-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px -16px; padding: 0 16px; }
  .department-table table { min-width: 500px; font-size: 0.875rem; }
  .department-table th,
  .department-table td { padding: 10px 12px; }

  /* Lead capture form on department pages */
  .lead-capture-section { padding: 40px 0; }
  .lead-capture-form { padding: 24px 18px; }
  .form-card { padding: 20px 16px; }

  /* CTA final department */
  .cta-final { padding: 40px 16px; }
  .cta-final h2 { font-size: 1.375rem; }
  .cta-final .main-action { width: 100%; justify-content: center; }

  /* Cross-links */
  .cross-links-section { padding: 40px 0; }
  .cross-links-group { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cross-links-group a { font-size: 0.8125rem; min-height: 44px; display: inline-flex; align-items: center; }

  /* Article meta */
  .article-meta { flex-wrap: wrap; gap: 8px; font-size: 0.8125rem; }

  /* Exit-intent popup mobile */
  .comeback-modal { width: 94%; max-width: 400px; padding: 32px 24px; }
  .comeback-dismiss { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; top: 4px; right: 4px; }

  /* Legal & static pages */
  .static-page { padding: 40px 0; }
  .notfound-page { padding: 80px 16px; }
  .notfound-page h1 { font-size: 4rem; }

  /* Blockquote mobile */
  blockquote { margin: 16px 0; padding: 14px 18px; font-size: 0.9375rem; }

  /* Department sections mobile (768px) */
  section[class*="dept-"],
  section.dept-specific,
  section.dept-section {
    margin: 20px 16px;
    padding: 20px 18px;
    border-radius: 10px;
  }
  section[class*="dept-"] h2,
  section.dept-specific h2 { font-size: 1.25rem; }
  section[class*="dept-"] h3,
  section.dept-specific h3 { font-size: 1.0625rem; margin-top: 18px; }
}

/* ---------- RESPONSIVE 480px ---------- */
@media (max-width: 480px) {
  html { font-size: 15px; }
  h1 { font-size: 1.625rem; }
  .hero { padding: 36px 0 32px; }
  .hero h1 { font-size: 1.625rem; }
  .top-label { font-size: 0.75rem; }
  .main-action { padding: 14px 24px; font-size: 0.9375rem; width: 100%; justify-content: center; }
  .badges-row { flex-direction: column; gap: 8px; }

  .options-grid { grid-template-columns: 1fr; }
  .options-grid.three-col { grid-template-columns: 1fr; }
  .option-tile { padding: 16px 14px; min-height: 48px; }

  /* Step 2: compact on small mobile */
  .wizard-panel[data-panel="2"] .chauffage-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .wizard-panel[data-panel="2"] .chauffage-cards .option-tile {
    padding: 8px 6px;
    font-size: 0.75rem;
  }
  .wizard-panel[data-panel="2"] .logement-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .wizard-panel[data-panel="2"] .revenue-cards {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .wizard-panel[data-panel="2"] .revenue-cards .option-tile {
    flex-direction: row;
    padding: 7px 10px;
    gap: 8px;
    justify-content: flex-start;
    text-align: left;
    min-height: auto;
    font-size: 0.75rem;
  }

  .footer-columns { grid-template-columns: 1fr; }
  .alert-banner { font-size: 0.8125rem; padding: 8px 12px; }

  .comeback-modal { padding: 28px 20px; width: 96%; }
  .comeback-modal h3 { font-size: 1.125rem; }

  .benefits-section, .baremes-section, .reviews-section, .questions-section, .checker-section {
    padding: 48px 0;
  }

  /* Department 480px specifics */
  .region-banner { padding: 32px 0 24px; }
  .region-banner h1 { font-size: 1.5rem; }
  .region-figures { gap: 14px; flex-direction: column; align-items: flex-start; }
  .figure-item { display: flex; gap: 8px; align-items: baseline; }
  .figure-item .figure-number { font-size: 1.375rem; }

  .content-area { padding: 24px 14px 48px; }
  .content-area h2 { font-size: 1.25rem; }

  .cross-links-group { grid-template-columns: 1fr; }

  .summary-nav { padding: 14px 16px; }
  .summary-nav ol { padding-left: 16px; }

  /* Barème table mobile: stack on very small */
  .baremes-table { font-size: 0.8125rem; }
  .baremes-table thead th { padding: 10px 12px; font-size: 0.75rem; }
  .baremes-table tbody td { padding: 10px 12px; }

  .qa-trigger { font-size: 0.9375rem; }
  .qa-content { font-size: 0.875rem; }

  /* Department sections small mobile (480px) */
  section[class*="dept-"],
  section.dept-specific,
  section.dept-section {
    margin: 16px 12px;
    padding: 16px 14px;
  }
  section[class*="dept-"] h2,
  section.dept-specific h2 { font-size: 1.125rem; }
  section[class*="dept-"] h3,
  section.dept-specific h3 { font-size: 1rem; margin-top: 16px; }
  section[class*="dept-"] p,
  section.dept-specific p { font-size: 0.9375rem; }
}

/* ---------- UTILITY CLASSES ---------- */
.text-center { text-align: center; }
.text-primary { color: var(--brand); }
.text-accent { color: var(--highlight); }
.text-muted { color: var(--text-muted); }
.fw-bold { font-weight: 700; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Cookie Consent Banner */
.cookie-notice-prime{position:fixed;bottom:0;left:0;right:0;background:rgba(30,30,30,0.95);color:#fff;padding:10px 20px;z-index:9999;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:0.8125rem;line-height:1.4;box-shadow:0 -2px 12px rgba(0,0,0,0.25);transform:translateY(0);transition:transform 0.3s ease}
.cookie-notice-prime.hidden{transform:translateY(100%);pointer-events:none}
.cookie-notice-message-pc{flex:1;min-width:0;max-width:none;padding-right:8px}
.cookie-notice-message-pc a{color:#a855f7;text-decoration:underline}
.cookie-notice-controls-pc{display:flex;gap:10px;flex-shrink:0}
.cookie-btn-accept-pc{background:#6b21a8;color:#fff;border:none;padding:7px 18px;border-radius:6px;cursor:pointer;font-weight:600;font-size:0.8125rem;transition:background 0.2s}
.cookie-btn-accept-pc:hover{background:#7c3aed}
.cookie-btn-reject-pc{background:transparent;color:#fff;border:1px solid rgba(255,255,255,0.4);padding:7px 18px;border-radius:6px;cursor:pointer;font-size:0.8125rem;transition:border-color 0.2s}
.cookie-btn-reject-pc:hover{border-color:#fff}
@media(max-width:480px){.cookie-notice-prime{flex-direction:column;text-align:center;padding:14px 16px}.cookie-notice-controls-pc{width:100%;justify-content:center}}

/* CTA-final cliquable (toutes pages) */
.cta-final[role="link"] {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.cta-final[role="link"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(107, 33, 168, 0.25);
  filter: brightness(1.03);
}
.cta-final[role="link"]:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Mots-clés mis en gras dans sections département */
section[class*="dept-"] p strong,
section.dept-specific p strong {
  color: #1F1F2E;
  font-weight: 700;
}
section[class*="dept-"] p:last-child,
section.dept-specific p:last-child { margin-bottom: 0; }
section.dept-specific { padding: 28px 28px; margin: 32px auto; }
@media (max-width: 768px) {
  section.dept-specific { padding: 20px 18px; margin: 20px 12px; }
  section.dept-specific p { font-size: 0.96rem; line-height: 1.7; }
}

/* === COMPACTAGE FORMULAIRE ÉTAPE 2 (panel 2) === */
.wizard-panel[data-panel="2"] .step-title {
  margin-bottom: 8px !important;
  font-size: 1.05rem !important;
}
.wizard-panel[data-panel="2"] p[style*="font-weight:600"] {
  margin-bottom: 4px !important;
  font-size: 0.8125rem !important;
}
.wizard-panel[data-panel="2"] .options-grid {
  margin-bottom: 8px !important;
  gap: 6px !important;
}
/* Chauffage: 4 colonnes très compactes */
.wizard-panel[data-panel="2"] .chauffage-cards {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 6px !important;
  margin-bottom: 8px !important;
}
.wizard-panel[data-panel="2"] .chauffage-cards .option-tile {
  padding: 8px 4px !important;
  gap: 1px !important;
  font-size: 0.78rem !important;
  min-height: auto !important;
}
.wizard-panel[data-panel="2"] .chauffage-cards .tile-icon {
  font-size: 1.05rem !important;
  margin-bottom: 0 !important;
}
/* Logement: 2 colonnes compactes */
.wizard-panel[data-panel="2"] .logement-cards {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 6px !important;
  margin-bottom: 8px !important;
}
.wizard-panel[data-panel="2"] .logement-cards .option-tile {
  padding: 8px 8px !important;
  gap: 2px !important;
  font-size: 0.85rem !important;
  min-height: auto !important;
}
.wizard-panel[data-panel="2"] .logement-cards .tile-icon {
  font-size: 1.15rem !important;
  margin-bottom: 0 !important;
}
/* Revenus: 5 colonnes compactes desktop, 3 mobile */
.wizard-panel[data-panel="2"] .revenue-cards {
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 6px !important;
  margin-bottom: 4px !important;
}
.wizard-panel[data-panel="2"] .revenue-cards .option-tile {
  padding: 6px 4px !important;
  gap: 1px !important;
  font-size: 0.7rem !important;
  min-height: auto !important;
  line-height: 1.2 !important;
}
.wizard-panel[data-panel="2"] .revenue-cards .tile-icon {
  font-size: 0.9rem !important;
  margin-bottom: 0 !important;
}
.wizard-panel[data-panel="2"] .revenue-cards .option-tile small {
  font-size: 0.65rem !important;
  line-height: 1.1 !important;
}
/* Note "Nécessaire pour..." */
.wizard-panel[data-panel="2"] .field-note,
.wizard-panel[data-panel="2"] p.field-note {
  font-size: 0.75rem !important;
  margin: 4px 0 8px 0 !important;
}
/* Bouton Retour plus discret */
.wizard-panel[data-panel="2"] .btn-back {
  font-size: 0.85rem !important;
  padding: 4px 8px !important;
  margin-bottom: 4px !important;
}
/* Bouton Continuer plus court */
.wizard-panel[data-panel="2"] .btn-continue {
  padding: 12px 24px !important;
  margin-top: 8px !important;
  font-size: 0.95rem !important;
}
/* Mobile : revenue-cards en 2 colonnes au lieu de 5 */
@media (max-width: 640px) {
  .wizard-panel[data-panel="2"] .revenue-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .wizard-panel[data-panel="2"] .chauffage-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* === Scroll margin pour formulaire (offset header fixe) === */
#formulaire,
section.checker-section,
#eligChecker {
  scroll-margin-top: 90px;
}

/* === FIX UX FORMULAIRE ÉTAPE 2 (avril 2026) === */
/* Revenus : éviter overflow horizontal sur tablettes/grands mobiles */
.wizard-panel[data-panel="2"] .revenue-cards {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)) !important;
  gap: 8px !important;
}
.wizard-panel[data-panel="2"] .revenue-cards .option-tile {
  padding: 10px 8px !important;
  min-height: 70px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  word-break: keep-all !important;
  hyphens: auto !important;
  font-size: 0.78rem !important;
  line-height: 1.25 !important;
}
.wizard-panel[data-panel="2"] .revenue-cards .option-tile small {
  white-space: normal !important;
  display: block !important;
  margin-top: 3px !important;
  font-size: 0.68rem !important;
  line-height: 1.2 !important;
  color: #6B7280 !important;
}
.wizard-panel[data-panel="2"] .revenue-cards .tile-icon {
  font-size: 1.05rem !important;
  margin-bottom: 4px !important;
}
/* La carte "Je préfère ne pas répondre" prend la largeur restante naturellement */
.wizard-panel[data-panel="2"] .revenue-cards .option-tile:last-child {
  font-style: italic;
  color: #6B7280;
}

/* Tablette 600-900px : 3 colonnes propres */
@media (min-width: 600px) and (max-width: 900px) {
  .wizard-panel[data-panel="2"] .revenue-cards {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Mobile <600px : 2 colonnes (le 5e prend la largeur full) */
@media (max-width: 599px) {
  .wizard-panel[data-panel="2"] .revenue-cards {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
  .wizard-panel[data-panel="2"] .revenue-cards .option-tile:last-child {
    grid-column: span 2;
  }
  .wizard-panel[data-panel="2"] .revenue-cards .option-tile {
    min-height: 60px !important;
    font-size: 0.8rem !important;
  }
}

/* Hiérarchie labels améliorée */
.wizard-panel[data-panel="2"] p[style*="font-weight:600"] {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #1F1F2E !important;
  margin-bottom: 10px !important;
  margin-top: 4px !important;
}

/* Selected state plus visible */
.wizard-panel[data-panel="2"] .option-tile.selected {
  border: 2px solid #6b21a8 !important;
  background: rgba(107, 33, 168, 0.06) !important;
  box-shadow: 0 0 0 1px rgba(107, 33, 168, 0.2) !important;
}

/* Hover state plus net */
.wizard-panel[data-panel="2"] .option-tile:hover:not(.selected) {
  border-color: #a855f7 !important;
  background: rgba(168, 85, 247, 0.04) !important;
}

/* Note "Nécessaire pour estimer..." */
.wizard-panel[data-panel="2"] .income-hint {
  font-size: 0.78rem !important;
  color: #6B7280 !important;
  text-align: center !important;
  margin: 8px 0 12px !important;
  font-style: italic !important;
}

/* Bouton Continuer plus visible */
.wizard-panel[data-panel="2"] .btn-continue {
  width: 100% !important;
  padding: 14px 24px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  background: linear-gradient(135deg, #6b21a8, #a855f7) !important;
  color: white !important;
  border: none !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  margin-top: 16px !important;
}
.wizard-panel[data-panel="2"] .btn-continue:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(107, 33, 168, 0.3) !important;
}
.wizard-panel[data-panel="2"] .btn-continue:active {
  transform: translateY(0) !important;
}

/* Bouton Retour discret mais visible */
.wizard-panel[data-panel="2"] .btn-back {
  background: transparent !important;
  border: none !important;
  color: #6B7280 !important;
  font-size: 0.875rem !important;
  cursor: pointer !important;
  padding: 6px 0 !important;
  margin-bottom: 8px !important;
}
.wizard-panel[data-panel="2"] .btn-back:hover {
  color: #6b21a8 !important;
}

/* Step title amélioré */
.wizard-panel[data-panel="2"] .step-title {
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  color: #1F1F2E !important;
  margin-bottom: 18px !important;
  text-align: center !important;
}

/* Chauffage cards : 4 cols stables, fitting OK */
.wizard-panel[data-panel="2"] .chauffage-cards .option-tile {
  min-height: 64px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Logement cards : pas trop large sur desktop */
.wizard-panel[data-panel="2"] .logement-cards .option-tile {
  min-height: 64px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

/* === COMPACTAGE FORMULAIRE ÉTAPE 3 (panel 3) — version compacte v2 === */
.wizard-panel[data-panel="3"] .score-indicator {
  padding: 8px 12px !important;
  margin-bottom: 8px !important;
}
.wizard-panel[data-panel="3"] .score-icon {
  font-size: 1.1rem !important;
  margin-bottom: 2px !important;
}
.wizard-panel[data-panel="3"] .score-heading {
  font-size: 0.85rem !important;
  margin-bottom: 4px !important;
}
.wizard-panel[data-panel="3"] .progress-track {
  height: 4px !important;
  margin-bottom: 4px !important;
}
.wizard-panel[data-panel="3"] .score-detail {
  font-size: 0.72rem !important;
  line-height: 1.35 !important;
}
.wizard-panel[data-panel="3"] .step-title {
  margin-bottom: 6px !important;
  font-size: 0.95rem !important;
}
.wizard-panel[data-panel="3"] .input-block {
  margin-bottom: 6px !important;
}
.wizard-panel[data-panel="3"] .input-block label {
  font-size: 0.72rem !important;
  margin-bottom: 1px !important;
}
.wizard-panel[data-panel="3"] .input-block input {
  padding: 7px 9px !important;
  font-size: 0.85rem !important;
}
.wizard-panel[data-panel="3"] .field-pair {
  gap: 6px !important;
  margin-bottom: 0 !important;
}
.wizard-panel[data-panel="3"] .btn-submit {
  padding: 10px 18px !important;
  font-size: 0.9rem !important;
  margin-top: 4px !important;
}
.wizard-panel[data-panel="3"] .consent-text {
  font-size: 0.68rem !important;
  margin-top: 6px !important;
  line-height: 1.35 !important;
}
.wizard-panel[data-panel="3"] .btn-back {
  padding: 3px 6px !important;
  font-size: 0.78rem !important;
  margin-bottom: 4px !important;
}

/* === STICKY CTA MOBILE === */
.sticky-cta-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9990;
  padding: 10px 16px 14px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.98) 30%);
  pointer-events: none;
  transform: translateY(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.sticky-cta-bar.hidden-on-form,
.sticky-cta-bar.hidden-pre-hero {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.sticky-cta-btn {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  background: linear-gradient(135deg, #6b21a8, #a855f7);
  color: #fff;
  border-radius: 28px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(107,33,168,0.4), 0 2px 8px rgba(107,33,168,0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: stickyPulse 2.5s ease-in-out 0.5s infinite;
}
.sticky-cta-btn:active {
  transform: scale(0.97);
  box-shadow: 0 3px 10px rgba(107,33,168,0.4);
}
.sticky-cta-icon { font-size: 1.1rem; }
.sticky-cta-arrow { font-size: 1rem; opacity: 0.85; margin-left: 4px; }
@keyframes stickyPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(107,33,168,0.4), 0 2px 8px rgba(107,33,168,0.3); }
  50% { box-shadow: 0 8px 28px rgba(168,85,247,0.55), 0 2px 8px rgba(107,33,168,0.3); }
}
@media (min-width: 769px) {
  .sticky-cta-bar { display: none; }
}

/* === FACTUAL TOAST (rappel claims véridiques — remplace l'ancien social proof) === */
.factual-toast {
  position: fixed;
  bottom: 20px; left: 20px;
  z-index: 9985;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 12px 14px;
  max-width: 340px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.18), 0 2px 8px rgba(15,23,42,0.08);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
  line-height: 1.35;
}
.factual-toast.visible { transform: translateY(0); opacity: 1; }
.factual-toast .ft-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #ECFDF5;
  color: #047857;
  display: flex;
  align-items: center;
  justify-content: center;
}
.factual-toast .ft-content { flex: 1; min-width: 0; }
.factual-toast .ft-title {
  color: #1F1F2E;
  font-weight: 700;
  font-size: 0.92rem;
}
.factual-toast .ft-sub {
  color: #6B7280;
  font-size: 0.78rem;
  margin-top: 2px;
}
.factual-toast .ft-close {
  background: transparent;
  border: 0;
  color: #9CA3AF;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
}
.factual-toast .ft-close:hover { color: #4B5563; }
@media (max-width: 768px) {
  .factual-toast {
    bottom: 76px;
    left: 12px; right: 12px;
    max-width: none;
  }
}

/* === Mention sources officielles (citation descriptive licite) === */
.sources-mention {
  margin: 14px 0 4px;
  padding: 10px 14px;
  background: #F9FAFB;
  border-left: 3px solid #6b21a8;
  border-radius: 6px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #4B5563;
}
@media (max-width: 600px) {
  .sources-mention {
    font-size: 0.72rem;
    padding: 8px 10px;
  }
}

/* ============================================================
   RGPD CHECKBOX DANS LE FORMULAIRE
   ============================================================ */
.rgpd-consent {
  margin: 16px 0 18px;
  padding: 12px 14px;
  background: #FAFAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
}
.rgpd-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #4B5563;
}
.rgpd-checkbox-label .rgpd-checkbox {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: #6b21a8;
  cursor: pointer;
}
.rgpd-checkbox-label .rgpd-text { color: #4B5563; }
.rgpd-checkbox-label a {
  color: #6b21a8;
  text-decoration: underline;
  font-weight: 500;
}
.rgpd-checkbox-label a:hover { color: #4c1d95; }
.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
   BANDEAU COOKIE v2 — RGPD/CNIL conforme (compact)
   ============================================================ */
.cookie-notice-prime {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 99999;
  background: #ffffff;
  border-top: 2px solid #6b21a8;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.10);
  padding: 10px 16px;
  transform: translateY(0);
  transition: transform 0.3s ease;
}
.cookie-notice-prime.hidden {
  transform: translateY(110%);
  display: none;
}
.cookie-notice-inner-pc {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-notice-message-pc {
  flex: 1 1 50%;
  min-width: 240px;
}
.cookie-notice-message-pc p {
  font-size: 0.82rem;
  color: #4B5563;
  margin: 0;
  line-height: 1.4;
}
.cookie-notice-message-pc strong {
  color: #1F1F2E;
  font-weight: 700;
  margin-right: 4px;
}
.cookie-notice-message-pc a {
  color: #6b21a8;
  text-decoration: underline;
}
.cookie-notice-controls-pc {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.cookie-btn-reject-pc, .cookie-btn-accept-pc {
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 0;
  white-space: nowrap;
}
.cookie-btn-reject-pc {
  background: #F3F4F6;
  color: #4B5563;
  border: 1px solid #E5E7EB;
}
.cookie-btn-reject-pc:hover { background: #E5E7EB; }
.cookie-btn-accept-pc {
  background: #6b21a8;
  color: #ffffff;
}
.cookie-btn-accept-pc:hover {
  background: #4c1d95;
}
@media (max-width: 600px) {
  .cookie-notice-prime { padding: 8px 12px; }
  .cookie-notice-message-pc p { font-size: 0.75rem; }
  .cookie-btn-reject-pc, .cookie-btn-accept-pc {
    flex: 1 1 0;
    padding: 8px 10px;
    font-size: 0.78rem;
  }
}

/* Modal préférences cookies */
.cookie-prefs-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(15,23,42,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cookie-prefs-modal.hidden { display: none; }
.cookie-prefs-inner {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 480px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.cookie-prefs-close {
  position: absolute;
  top: 12px; right: 14px;
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  color: #9CA3AF;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.cookie-prefs-close:hover { color: #4B5563; }
.cookie-prefs-inner h3 {
  margin: 0 0 20px;
  color: #1F1F2E;
}
.cookie-pref-row {
  padding: 14px 0;
  border-top: 1px solid #E5E7EB;
}
.cookie-pref-row:first-of-type { border-top: 0; }
.cookie-pref-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.875rem;
  color: #1F1F2E;
}
.cookie-pref-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: #6b21a8;
}
.cookie-pref-label small {
  color: #6B7280;
  font-size: 0.78rem;
}
.cookie-prefs-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 768px) {
  .cookie-notice-prime { padding: 14px 12px; }
  .cookie-notice-inner-pc { gap: 12px; }
  .cookie-btn-reject-pc, .cookie-btn-customize, .cookie-btn-accept-pc {
    flex: 1 1 30%;
    min-width: 0;
    padding: 10px 12px;
    font-size: 0.8rem;
  }
}


/* === HEADER RESPONSIVE — burger menu mobile === */
@media (max-width: 768px) {
  .header-menu { display: none !important; }
  .menu-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 4px;
  }
  .menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .menu-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  /* Menu mobile ouvert */
  .header-menu.mobile-open {
    display: flex !important;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    gap: 0;
    z-index: 100;
  }
  .header-menu.mobile-open li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .header-menu.mobile-open li:last-child {
    border-bottom: none;
  }
  .header-menu.mobile-open a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
  }
  .logo {
    padding-right: 0;
    margin-right: 0;
  }
}

/* Très petit mobile : compresser logo */
@media (max-width: 380px) {
  .logo {
    font-size: 1.1rem;
    gap: 6px;
  }
  .logo svg {
    width: 30px !important;
    height: 30px !important;
  }
}

/* === TABLES RESPONSIVE === */
.content-area table,
article table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  -webkit-overflow-scrolling: touch;
}
.content-area table th,
article table th {
  background: linear-gradient(135deg, #6b21a8, #a855f7);
  color: #fff;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}
.content-area table td,
article table td {
  padding: 12px 14px;
  border-bottom: 1px solid #E5E7EB;
  font-size: 0.95rem;
}
.content-area table tr:last-child td,
article table tr:last-child td {
  border-bottom: none;
}
.content-area table tr:nth-child(even) td,
article table tr:nth-child(even) td {
  background: #F9FAFB;
}
@media (max-width: 768px) {
  .content-area table,
  article table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 0.85rem;
  }
  .content-area table th,
  article table th,
  .content-area table td,
  article table td {
    padding: 10px 12px;
    white-space: normal;
  }
}
