/* =====================================================================
   Étude de Marché Bassin Sud-Roussillon · Édition Mai 2026 · v2
   Microsite artefact dynamique · Charte GH 2026
   Couleurs : Iris #0f0a30 + Cyan #006fff · Aucun émoji
   ===================================================================== */

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

:root {
  /* Charte GH 2026 */
  --iris: #0f0a30;
  --iris-deep: #080520;
  --iris-soft: #1a1450;
  --iris-mid: #221952;
  --cyan: #006fff;
  --cyan-light: #3a8aff;
  --cyan-soft: rgba(0, 111, 255, 0.10);
  --cyan-line: rgba(0, 111, 255, 0.20);
  --cyan-deep: #003e8f;

  --white: #ffffff;
  --bg: #f7f8fc;
  --bg-mid: #eef0f7;
  --line: #d9dde9;
  --line-soft: #eef0f7;
  --gris-300: #b4bbcd;
  --gris-400: #8b94ad;
  --gris-500: #5e6783;
  --gris-700: #2e3552;
  --ink: #15192e;

  /* Palette sémantique sobre, cohérente avec Iris/Cyan. Inspirée des tons cabinet
     (ex. McKinsey, Bain). Évite les saturations Tailwind type "alerting". */
  --success: #137c54;       /* vert profond, lit comme un "valid" pas un confetti */
  --success-soft: #e6f4ec;
  --warn: #b86a06;          /* ambre cabinet, pas orange flash */
  --warn-soft: #fdf2e2;
  --danger: #a51919;        /* rouge bourgogne, pas tomate */
  --danger-soft: #fae9e9;

  /* Easing premium (entrée naturelle, type "out-expo doux") */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-soft: cubic-bezier(0.22, 0.61, 0.36, 1);

  --serif: 'Montserrat', system-ui, -apple-system, sans-serif;
  --display: 'Anton', 'Montserrat', sans-serif;
  --mono: 'Montserrat', sans-serif;

  --shadow-sm: 0 2px 6px rgba(15, 10, 48, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 10, 48, 0.08);
  --shadow-lg: 0 18px 48px rgba(15, 10, 48, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  font-feature-settings: 'ss01', 'ss02';
}

/* =====================================================================
   LAYOUT GLOBAL · Sidebar + content
   ===================================================================== */

.shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* SIDEBAR navigation */
.sidebar {
  position: sticky; top: 0;
  height: 100vh; overflow-y: auto;
  background: var(--iris);
  color: var(--white);
  padding: 28px 24px;
  border-right: 1px solid var(--iris-deep);
}

.sidebar-brand {
  display: flex; flex-direction: column;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.sidebar-brand .logo {
  font-family: var(--display);
  font-size: 22px; font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--white);
  line-height: 1.0;
}
.sidebar-brand .baseline {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-top: 5px;
}
.sidebar-brand .subline {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  margin-top: 10px;
  line-height: 1.5;
}

.sidebar-section-title {
  font-size: 9.5px; font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-top: 14px;
  margin-bottom: 8px;
}

.sidebar-nav { list-style: none; padding: 0; margin: 0 0 18px 0; }
.sidebar-nav li {
  margin: 0;
}
.sidebar-nav a {
  display: flex; align-items: baseline; gap: 8px;
  padding: 7px 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.20s var(--ease-out), color 0.20s var(--ease-out), box-shadow 0.20s var(--ease-out), padding-left 0.20s var(--ease-out);
  font-weight: 500;
  position: relative;
}
.sidebar-nav a::before {
  content: '';
  position: absolute;
  left: -24px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 0;
  background: var(--cyan);
  border-radius: 100px;
  transition: height 0.30s var(--ease-out);
}
.sidebar-nav a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
}
.sidebar-nav a:hover::before { height: 16px; }
.sidebar-nav a.active {
  background: var(--cyan);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,111,255,0.32);
  padding-left: 12px;
}
.sidebar-nav a.active::before { height: 24px; left: -8px; background: var(--white); }
.sidebar-nav a .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.sidebar-nav a.active .num { color: var(--white); }

.sidebar-cta {
  margin-top: 22px;
  padding: 16px;
  background: rgba(0,111,255,0.10);
  border: 1px solid var(--cyan);
  border-radius: 8px;
  text-align: center;
}
.sidebar-cta .label {
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.sidebar-cta .title {
  font-size: 13px; font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.35;
}
.sidebar-cta a {
  display: inline-block;
  background: var(--cyan);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.15s;
}
.sidebar-cta a:hover { background: var(--cyan-deep); }

.sidebar-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* CONTENT principal */
.content {
  padding: 56px 64px 80px;
  max-width: 980px;
}

/* =====================================================================
   HERO / COVER SECTION (top of page)
   ===================================================================== */

.hero {
  margin-bottom: 64px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero-sparkline-deco {
  position: absolute;
  bottom: 20px; left: -10%; right: -10%;
  height: 60px;
  pointer-events: none;
  opacity: 0;
  animation: spark-fade 1.8s var(--ease-out) 0.6s forwards;
}
.hero-sparkline-deco svg { width: 100%; height: 100%; }
@keyframes spark-fade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Animation H3 (titres de sections) */
.part h3.scroll-init {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.part h3.scroll-visible {
  opacity: 1;
  transform: translateX(0);
}

.hero-eyebrow {
  font-family: var(--serif);
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  color: var(--iris);
  letter-spacing: -2px;
  font-weight: 900;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--cyan); }
.hero-sub {
  font-size: 18px;
  color: var(--gris-500);
  line-height: 1.55;
  max-width: 720px;
  margin-bottom: 32px;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.hero-kpi {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--cyan);
  border-radius: 6px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.hero-kpi .label {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hero-kpi .value {
  font-family: var(--display);
  font-size: 30px; line-height: 1.0;
  color: var(--iris);
  font-weight: 900;
  letter-spacing: -0.5px;
}
.hero-kpi .sub {
  font-size: 11px;
  color: var(--gris-500);
  margin-top: 6px;
  line-height: 1.4;
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-meta .item .label {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gris-400);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hero-meta .item .value {
  font-size: 13px;
  color: var(--iris);
  font-weight: 700;
  line-height: 1.4;
}
.hero-meta .item .value small { color: var(--gris-500); font-weight: 500; }

/* =====================================================================
   SECTIONS (parties I à VIII)
   ===================================================================== */

section.part {
  margin: 0 0 88px 0;
  scroll-margin-top: 32px;
}

.part-header {
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--iris);
}
.part-header .tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.part-header .tag .dot {
  width: 8px; height: 8px; background: var(--cyan); border-radius: 100px;
  display: inline-block;
}
.part-header h2 {
  font-family: var(--display);
  font-size: 40px; line-height: 1.05;
  color: var(--iris);
  font-weight: 900;
  letter-spacing: -1px;
}
.part-header .lead {
  font-size: 16px;
  color: var(--gris-500);
  margin-top: 14px;
  max-width: 720px;
  line-height: 1.55;
}

/* h2 / h3 sub-sections — spacing standardisé pour rythme constant */
.part h3 {
  font-family: var(--display);
  font-size: 22px; line-height: 1.25;
  color: var(--iris);
  font-weight: 800;
  margin: 48px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--cyan);
  scroll-margin-top: 32px;
}
.part h3 + p,
.part h3 + .lead { margin-top: 4px; }
.part > .exhibit:first-of-type,
.part > .kpi-grid:first-of-type { margin-top: 24px; }
.part .exhibit + h3,
.part .kpi-grid + h3,
.part .callout + h3,
.part .callout-dark + h3,
.part .map-frame + h3 { margin-top: 56px; }
.part h4 {
  font-family: var(--serif);
  font-size: 15px; font-weight: 700;
  color: var(--iris);
  margin: 24px 0 8px;
}
.part h5 {
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin: 18px 0 6px;
}

.part p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 14px;
  max-width: 760px;
}
.part p strong { color: var(--iris); font-weight: 700; }
.part p em { color: var(--cyan-deep); font-style: normal; font-weight: 600; }

.part ul, .part ol { margin: 8px 0 16px 22px; max-width: 760px; }
.part li { font-size: 15.5px; line-height: 1.65; margin-bottom: 6px; color: var(--ink); }

/* =====================================================================
   EXHIBITS (tableaux + charts)
   ===================================================================== */

.exhibit {
  margin: 24px 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.exhibit-header {
  display: flex; align-items: baseline;
  gap: 12px;
  padding: 14px 18px;
  background: var(--iris);
  color: var(--white);
}
.exhibit-header .num {
  font-family: var(--mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-transform: uppercase;
}
.exhibit-header .title {
  font-size: 14px; font-weight: 700;
}
.exhibit-header .source {
  margin-left: auto;
  font-size: 10px;
  color: rgba(255,255,255,0.62);
  font-style: italic;
}

.exhibit-body { padding: 0; }

.exhibit-foot {
  padding: 10px 18px;
  font-size: 11px;
  color: var(--gris-500);
  background: var(--bg);
  border-top: 1px solid var(--line);
  line-height: 1.55;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table th {
  background: var(--white);
  color: var(--iris);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 2px solid var(--iris);
  white-space: nowrap;
}
table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  vertical-align: middle;
  font-size: 13.5px;
}
table tr:last-child td { border-bottom: none; }
table td.num, table th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }
table td.right, table th.right { text-align: right; }
table tr.highlight td { background: var(--cyan-soft); font-weight: 700; color: var(--iris); }
table tr.you td, table tr.reference td { background: rgba(0,111,255,0.16); font-weight: 800; color: var(--iris); }
table tr.total td { border-top: 2px solid var(--iris); background: var(--bg-mid); font-weight: 800; color: var(--iris); }
table tr { transition: background 0.18s var(--ease-out-soft); }
table tr:hover td { background: var(--cyan-soft); box-shadow: inset 3px 0 0 var(--cyan); }
table tr.you:hover td, table tr.reference:hover td { background: rgba(0,111,255,0.22); }

/* =====================================================================
   CALLOUTS
   ===================================================================== */

.callout {
  margin: 22px 0;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--cyan);
  border-radius: 0 6px 6px 0;
  box-shadow: var(--shadow-sm);
}
.callout .label {
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.10em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.callout p { font-size: 14.5px; color: var(--gris-700); line-height: 1.6; margin-bottom: 0; }
.callout.warn { border-left-color: var(--warn); }
.callout.warn .label { color: var(--warn); }
.callout.danger { border-left-color: var(--danger); }
.callout.danger .label { color: var(--danger); }
.callout.success { border-left-color: var(--success); }
.callout.success .label { color: var(--success); }

.callout-dark {
  margin: 28px 0;
  padding: 24px 28px;
  background: var(--iris);
  color: var(--white);
  border-radius: 8px;
  border-left: 4px solid var(--cyan);
}
.callout-dark .label {
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.10em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.callout-dark p {
  font-size: 16px;
  color: rgba(255,255,255,0.94);
  line-height: 1.6;
  margin-bottom: 0;
  max-width: none;
}
.callout-dark p strong { color: var(--white); font-weight: 800; }

blockquote, .quote {
  margin: 28px 0;
  padding: 0 22px;
  border-left: 4px solid var(--cyan);
  font-family: var(--display);
  font-size: 20px; font-weight: 500;
  font-style: italic;
  color: var(--iris);
  line-height: 1.45;
  max-width: 720px;
}
.quote-attrib, blockquote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* =====================================================================
   KPI GRIDS
   ===================================================================== */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 28px;
}
.kpi-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.kpi-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.kpi-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--cyan);
  border-radius: 6px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.kpi-card { transition: box-shadow 0.30s var(--ease-out), transform 0.30s var(--ease-out), border-color 0.30s var(--ease-out); }
.kpi-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--cyan-line);
}
.kpi-card .label {
  font-family: var(--mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cyan); text-transform: uppercase;
  margin-bottom: 6px;
}
.kpi-card .value {
  font-family: var(--display);
  font-size: 32px; line-height: 1.0;
  color: var(--iris);
  font-weight: 900;
  letter-spacing: -1px;
}
.kpi-card .sub {
  font-size: 11.5px; color: var(--gris-500);
  margin-top: 6px; line-height: 1.45;
}

/* =====================================================================
   CARTOGRAPHIE SVG
   ===================================================================== */

.map-frame {
  margin: 24px 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.map-frame .map-title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  color: var(--iris);
  margin-bottom: 4px;
}
.map-frame .map-sub {
  font-size: 12px;
  color: var(--gris-500);
  margin-bottom: 14px;
}
.map-frame svg {
  width: 100%; height: auto;
  display: block;
}
.map-legend {
  margin-top: 14px;
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  font-size: 11.5px;
  color: var(--gris-700);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.map-legend .item { display: inline-flex; align-items: center; gap: 6px; }
.map-legend .swatch {
  width: 12px; height: 12px; border-radius: 2px;
  display: inline-block;
}

.map-svg .commune-circle { transition: opacity 0.2s; cursor: default; }
.map-svg .commune-label {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 600;
  fill: var(--iris);
}
.map-svg .commune-label-elne { font-weight: 800; fill: var(--cyan); font-size: 12px; }
.map-svg .sea-label {
  font-family: var(--mono);
  font-size: 10px;
  fill: var(--cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}
.map-svg .mountain-label {
  font-family: var(--mono);
  font-size: 9px;
  fill: var(--gris-400);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.map-svg .compass {
  font-family: var(--mono);
  font-size: 9px;
  fill: var(--gris-400);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* =====================================================================
   DASHBOARD INTERACTIF v2 — story-scroll Cabinet
   ===================================================================== */

.dashboard {
  background: linear-gradient(160deg, #0f0a30 0%, #080520 50%, #0f0a30 100%);
  color: var(--white);
  border-radius: 14px;
  padding: 0;
  margin: 32px 0 40px;
  box-shadow: 0 24px 64px rgba(15,10,48,0.18);
  overflow: hidden;
  border: 1px solid rgba(0,111,255,0.16);
}

.dashboard-hero {
  padding: 36px 36px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.dashboard-hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(0,111,255,0.30) 0%, transparent 65%);
  pointer-events: none;
}
.dashboard-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--serif);
  font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
  padding: 6px 14px;
  background: rgba(0,111,255,0.14);
  border: 1px solid rgba(0,111,255,0.32);
  border-radius: 100px;
  margin-bottom: 18px;
  position: relative; z-index: 1;
}
.dashboard-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 100px;
  animation: pulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 8px var(--cyan);
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.5); }
}
.dashboard-title {
  font-family: var(--display);
  font-size: 36px; font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 10px;
  max-width: 600px;
  position: relative; z-index: 1;
}
.dashboard-title .accent { color: var(--cyan); }
.dashboard-sub {
  font-size: 13.5px;
  color: rgba(255,255,255,0.68);
  line-height: 1.55;
  max-width: 560px;
  position: relative; z-index: 1;
}

/* Quick stats row */
.dashboard-quickstats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: rgba(0,0,0,0.18);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.quickstat {
  padding: 22px 24px;
  border-right: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.quickstat:last-child { border-right: none; }
.quickstat .lbl {
  font-family: var(--serif);
  font-size: 9.5px; font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.50);
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: 1.4;
}
.quickstat .val {
  font-family: var(--display);
  font-size: 28px; font-weight: 900;
  color: var(--white);
  letter-spacing: -0.8px;
  line-height: 1.0;
}
.quickstat .val .suf {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  margin-left: 3px;
}
.quickstat .sub {
  font-size: 10.5px;
  color: rgba(255,255,255,0.48);
  margin-top: 6px;
  line-height: 1.45;
}

/* Story-scroll rows */
.dashboard-row {
  padding: 30px 36px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.dashboard-row:last-child { border-bottom: none; }
.dashboard-row-head {
  margin-bottom: 22px;
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 8px;
}
.dashboard-row-num {
  font-family: var(--display);
  font-size: 11px; font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.dashboard-row-title {
  font-family: var(--display);
  font-size: 22px; font-weight: 800;
  color: var(--white);
  letter-spacing: -0.4px;
  line-height: 1.15;
}
.dashboard-row-sub {
  font-family: var(--serif);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
  line-height: 1.5;
  max-width: 540px;
}
.dashboard-row-meta {
  font-family: var(--serif);
  font-size: 9.5px; font-weight: 700;
  color: rgba(255,255,255,0.48);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 5px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 100px;
  white-space: nowrap;
}

.dashboard-row .echart {
  width: 100%;
  margin-top: 4px;
}
#chart-map { height: 720px; }
#chart-ranking { height: 720px; }
#chart-evolution { height: 380px; }
#chart-treemap { height: 480px; }

.dashboard-tip {
  font-size: 11px;
  color: rgba(255,255,255,0.48);
  font-style: italic;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  line-height: 1.5;
}
.dashboard-tip::before {
  content: '◇ ';
  color: var(--cyan);
  font-style: normal;
}

/* Layout 2 colonnes carte+ranking */
.dashboard-row.split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: start;
}
.dashboard-row.split > * { min-width: 0; }

/* Mini légende prix */
.dashboard-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Légende enrichie : tranche prix → liste de communes par fourchette */
.map-legend-enriched {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.legend-bucket {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-left-width: 4px;
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.legend-bucket:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}
.legend-bucket-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.legend-bucket-range {
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.80);
  text-transform: uppercase;
}
.legend-bucket-count {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
}
.legend-bucket-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.legend-bucket-list .pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.06);
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.10);
  cursor: pointer;
  transition: all 0.15s var(--ease-out);
}
.legend-bucket-list .pill:hover {
  background: rgba(0,111,255,0.30);
  border-color: var(--cyan);
  color: var(--white);
}
.legend-bucket-list .pill.elne {
  background: rgba(0,111,255,0.20);
  border-color: var(--cyan);
  color: var(--white);
  font-weight: 800;
}
.dashboard-legend .item {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--serif);
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.72);
}
.dashboard-legend .swatch {
  width: 12px; height: 12px;
  border-radius: 3px;
}

/* Sélecteur communes (évolution) */
.evolution-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.evo-toggle {
  font-family: var(--serif);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.50);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.evo-toggle:hover {
  background: rgba(255,255,255,0.10);
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}
.evo-toggle.active {
  background: rgba(0,111,255,0.18);
  color: var(--white);
  border-color: var(--cyan);
  font-weight: 700;
}
.evo-toggle.cat-ref.active { background: var(--cyan); color: var(--white); }
.evo-toggle.cat-littoral.active { background: rgba(58,138,255,0.30); border-color: var(--cyan-light); }
.evo-toggle.cat-vermeille.active { background: rgba(0,80,184,0.40); border-color: var(--cyan-deep); }
.evo-toggle.cat-couronne.active { background: rgba(127,179,255,0.22); border-color: var(--cyan-pale); }

@media (max-width: 980px) {
  .dashboard-quickstats { grid-template-columns: repeat(2, 1fr); }
  .quickstat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .dashboard-row.split { grid-template-columns: 1fr; gap: 24px; }
  .dashboard-row { padding: 22px 22px; }
  .dashboard-hero { padding: 28px 22px 22px; }
  #chart-map, #chart-ranking { height: 440px; }
}

/* =====================================================================
   EXPLORATEUR RUES ELNE
   ===================================================================== */

.explorer {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0;
  margin: 32px 0 40px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.explorer-hero {
  background: linear-gradient(135deg, var(--iris) 0%, var(--iris-deep) 100%);
  padding: 28px 32px 24px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.explorer-hero::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(0,111,255,0.32) 0%, transparent 65%);
  pointer-events: none;
}
.explorer-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--serif);
  font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
  padding: 5px 12px;
  background: rgba(0,111,255,0.14);
  border: 1px solid rgba(0,111,255,0.30);
  border-radius: 100px;
  margin-bottom: 14px;
  position: relative; z-index: 1;
}
.explorer-title {
  font-family: var(--display);
  font-size: 30px; font-weight: 900;
  color: var(--white);
  letter-spacing: -0.8px;
  line-height: 1.1;
  margin-bottom: 6px;
  position: relative; z-index: 1;
}
.explorer-title .accent { color: var(--cyan); }
.explorer-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.70);
  line-height: 1.55;
  max-width: 620px;
  margin-bottom: 22px;
  position: relative; z-index: 1;
}

.rue-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: rgba(0,0,0,0.18);
  position: relative; z-index: 1;
}
.rue-stat {
  padding: 16px 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.rue-stat:last-child { border-right: none; }
.rue-stat .lbl {
  font-family: var(--serif);
  font-size: 9.5px; font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.50);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.rue-stat .val {
  font-family: var(--display);
  font-size: 22px; font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1.0;
}
.rue-stat .val .suf {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  margin-left: 3px;
}
.rue-stat .sub {
  font-size: 10.5px;
  color: rgba(255,255,255,0.48);
  margin-top: 5px;
  line-height: 1.45;
}

/* Sélecteur de commune multi-catégories */
.commune-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.commune-cat-group {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.commune-cat-label {
  font-family: var(--serif);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gris-500);
  text-transform: uppercase;
  flex: 0 0 130px;
  white-space: nowrap;
}
.commune-cat-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.commune-pill {
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  background: var(--white);
  color: var(--gris-700);
  border: 1.5px solid var(--line);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.18s var(--ease-out);
  white-space: nowrap;
}
.commune-pill:hover {
  border-color: var(--cyan);
  color: var(--cyan-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,111,255,0.10);
}
.commune-pill.active {
  background: var(--iris);
  color: var(--white);
  border-color: var(--iris);
  box-shadow: 0 4px 14px rgba(15,10,48,0.25);
}
.commune-pill .code {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.55;
  letter-spacing: 0.06em;
}

/* Champ de recherche */
.search-wrap {
  padding: 22px 32px 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.search-input-wrap {
  position: relative;
}
.search-input {
  width: 100%;
  font-family: var(--serif);
  font-size: 16px;
  padding: 14px 18px 14px 48px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.search-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0,111,255,0.10);
}
.search-input::placeholder { color: var(--gris-400); font-weight: 500; }
.search-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  pointer-events: none;
  color: var(--gris-400);
}
.search-hint {
  font-size: 11px;
  color: var(--gris-500);
  margin-top: 8px;
  display: flex; gap: 14px;
  flex-wrap: wrap;
}
.search-hint .examples { font-weight: 600; color: var(--iris); }
.search-hint .ex {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 600;
  color: var(--cyan-deep);
  cursor: pointer;
}
.search-hint .ex:hover { background: var(--cyan); color: var(--white); border-color: var(--cyan); }

/* Top rues */
.rue-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.rue-top-block {
  padding: 18px 32px;
  border-right: 1px solid var(--line);
}
.rue-top-block:last-child { border-right: none; }
.rue-top-title {
  font-family: var(--serif);
  font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.rue-top-list {
  list-style: none;
  padding: 0; margin: 0;
}
.rue-top-list li {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 5px 0;
  font-size: 12.5px;
  border-bottom: 1px dashed var(--line);
}
.rue-top-list li:last-child { border-bottom: none; }
.rue-top-list .rank {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 900;
  color: var(--cyan);
  text-align: center;
}
.rue-top-list .nom {
  font-weight: 600;
  color: var(--iris);
}
.rue-top-list .val {
  font-size: 11px;
  color: var(--gris-500);
  font-weight: 600;
  white-space: nowrap;
}

/* Table résultats */
.rue-results-wrap { padding: 0; max-height: 720px; overflow-y: auto; }
.rue-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.rue-table thead th {
  position: sticky; top: 0;
  background: var(--white);
  color: var(--iris);
  font-family: var(--serif);
  font-weight: 800;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 18px;
  text-align: left;
  border-bottom: 2px solid var(--iris);
  white-space: nowrap;
  z-index: 5;
}
.rue-table thead th.right { text-align: right; }
.rue-table tbody td {
  padding: 11px 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  vertical-align: middle;
}
.rue-table tbody td.right { text-align: right; }
.rue-table tbody td.num { font-family: var(--serif); font-variant-numeric: tabular-nums; }
.rue-table tbody tr.rue-row { cursor: pointer; transition: background 0.12s; }
.rue-table tbody tr.rue-row:hover { background: var(--cyan-soft); }
.rue-name { font-weight: 700; color: var(--iris); font-size: 13.5px; }
.rue-cat { font-size: 10.5px; color: var(--gris-500); margin-top: 2px; }
.rue-meta-line { font-size: 10px; color: var(--gris-400); margin-top: 2px; }
.rue-pct {
  font-family: var(--serif);
  font-size: 10.5px;
  font-weight: 700;
  margin-top: 4px;
}
.rue-pct.up { color: var(--success); }
.rue-pct.down { color: var(--danger); }
.rue-pct.mid { color: var(--gris-500); }

.price-bar { width: 100%; max-width: 180px; }
.price-bar-track {
  background: var(--bg);
  height: 8px;
  border-radius: 100px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
}
.price-bar-fill {
  background: var(--cyan);
  height: 100%;
  border-radius: 100px;
  transition: width 0.4s ease;
}
.price-bar-ref {
  position: absolute;
  top: -2px;
  left: calc((2255 - 800) / (4500 - 800) * 100%);
  width: 2px;
  height: 12px;
  background: var(--iris);
}

/* Empty state */
.rue-empty {
  padding: 64px 32px;
  text-align: center;
}
.rue-empty-icon {
  font-family: var(--display);
  font-size: 56px;
  color: var(--cyan);
  opacity: 0.3;
  margin-bottom: 10px;
}
.rue-empty-title {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--iris);
  font-size: 15px;
  margin-bottom: 4px;
}
.rue-empty-sub {
  font-size: 12.5px;
  color: var(--gris-500);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Détail rue (expanded row) */
.rue-detail-row td { padding: 0 !important; background: var(--bg); }
.rue-detail {
  padding: 18px 26px;
  border-left: 4px solid var(--cyan);
}
.rue-detail-head {
  margin-bottom: 12px;
}
.rue-detail-num {
  font-family: var(--serif);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-transform: uppercase;
  display: block;
}
.rue-detail-sub {
  font-size: 11.5px;
  color: var(--gris-500);
  margin-top: 3px;
  display: block;
}
.rue-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.rue-detail-table thead th {
  background: var(--iris);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 9px 12px;
  text-align: left;
  border-bottom: none;
}
.rue-detail-table thead th.right { text-align: right; }
.rue-detail-table tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.rue-detail-table tbody td.right { text-align: right; }
.rue-detail-table tbody td.num { font-family: var(--serif); font-variant-numeric: tabular-nums; }
.rue-detail-table tbody tr:last-child td { border-bottom: none; }
.cat-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}
.cat-pill.cat-maison { background: rgba(0,111,255,0.12); color: var(--cyan-deep); }
.cat-pill.cat-appartement { background: rgba(15,10,48,0.08); color: var(--iris); }
.rue-detail-table thead th.center,
.rue-detail-table tbody td.center { text-align: center; }
.rue-detail-table .muted { color: var(--gris-500); font-size: 11px; font-style: italic; }
.dpe-badge {
  display: inline-block;
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #fff;
  text-align: center;
  font-family: var(--sans);
}
.dpe-badge.dpe-A { background: #00a651; }
.dpe-badge.dpe-B { background: #4cb050; }
.dpe-badge.dpe-C { background: #c8d400; color: #1a1a1a; }
.dpe-badge.dpe-D { background: #ffd200; color: #1a1a1a; }
.dpe-badge.dpe-E { background: #f9a825; }
.dpe-badge.dpe-F { background: #ef6c00; }
.dpe-badge.dpe-G { background: #d32f2f; }
.rue-detail-foot {
  font-size: 10.5px;
  color: var(--gris-500);
  font-style: italic;
  margin-top: 10px;
  text-align: right;
}

@media print {
  .explorer { display: none !important; }
  .departement-view { display: none !important; }
}

/* =====================================================================
   VUE DÉPARTEMENTALE 66 (161 communes)
   ===================================================================== */
.departement-view {
  background: linear-gradient(160deg, #0f0a30 0%, #080520 50%, #0f0a30 100%);
  color: var(--white);
  border-radius: 14px;
  padding: 0;
  margin: 32px 0 40px;
  box-shadow: 0 24px 64px rgba(15,10,48,0.18);
  overflow: hidden;
  border: 1px solid rgba(0,111,255,0.16);
}
.departement-view .dashboard-hero { padding: 32px 36px 26px; }
#chart-dep-map { width: 100%; height: 640px; }
.dep-map-frame {
  padding: 24px 36px;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dep-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.dep-map-legend .item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: rgba(255,255,255,0.74); font-weight: 600;
}
.dep-map-legend .swatch { width: 14px; height: 14px; border-radius: 3px; }

.dep-search-wrap {
  padding: 22px 36px 18px;
  background: rgba(0,0,0,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dep-search-input {
  width: 100%;
  font-family: var(--serif);
  font-size: 15px;
  padding: 12px 16px 12px 44px;
  border: 1.5px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: var(--white);
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}
.dep-search-input::placeholder { color: rgba(255,255,255,0.42); font-weight: 500; }
.dep-search-input:focus { border-color: var(--cyan); background: rgba(0,111,255,0.06); }
.dep-search-wrap { position: relative; }
.dep-search-icon {
  position: absolute;
  left: 50px; top: 35px;
  width: 18px; height: 18px;
  color: rgba(255,255,255,0.55);
  pointer-events: none;
}

.dep-table-wrap {
  padding: 0;
  max-height: 720px;
  overflow-y: auto;
}
.dep-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.dep-table thead th {
  position: sticky; top: 0;
  background: var(--iris-deep);
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  z-index: 5;
}
.dep-table thead th.right { text-align: right; }
.dep-table tbody td {
  padding: 9px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.88);
  vertical-align: middle;
}
.dep-table tbody td.right { text-align: right; }
.dep-table tbody td.num { font-family: var(--serif); font-variant-numeric: tabular-nums; }
.dep-table tbody tr:hover td { background: rgba(255,255,255,0.04); }
.dep-table tbody tr.highlight-elne td { background: rgba(0,111,255,0.16); color: var(--white); font-weight: 700; }
.dep-table tbody tr.highlight-elne td strong { color: var(--cyan); }
.dep-cat {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  font-family: var(--serif);
  font-weight: 600;
  margin-left: 8px;
  letter-spacing: 0.06em;
}

/* Row focus dans la table dpt quand commune cliquée sur la carte */
.dep-table tbody tr.row-focus td {
  background: rgba(0,111,255,0.32) !important;
  box-shadow: inset 4px 0 0 var(--cyan);
  color: #fff !important;
  font-weight: 700;
}
.dep-table tbody tr.row-focus td strong { color: #fff !important; }

/* Bouton reset map dpt */
.dep-reset-btn:hover {
  background: var(--cyan) !important;
  border-color: var(--cyan) !important;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .rue-meta { grid-template-columns: repeat(2, 1fr); }
  .rue-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .rue-top { grid-template-columns: 1fr; }
  .rue-top-block { border-right: none; border-bottom: 1px solid var(--line); }
  .explorer-hero, .search-wrap, .rue-top-block { padding-left: 20px; padding-right: 20px; }
  .rue-table { font-size: 12px; }
  .rue-table thead th, .rue-table tbody td { padding: 9px 12px; }
}

/* =====================================================================
   SCROLL-IN ANIMATIONS · easing premium + stagger
   ===================================================================== */
.scroll-init {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  will-change: transform, opacity;
}
.scroll-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger : chaque enfant d'une grid hérite d'un délai progressif */
.scroll-visible.stagger-children > * { transition-delay: 0s; }
.kpi-grid.scroll-visible > .kpi-card:nth-child(1) { transition-delay: 0s; }
.kpi-grid.scroll-visible > .kpi-card:nth-child(2) { transition-delay: 0.08s; }
.kpi-grid.scroll-visible > .kpi-card:nth-child(3) { transition-delay: 0.16s; }
.kpi-grid.scroll-visible > .kpi-card:nth-child(4) { transition-delay: 0.24s; }
.hero-kpis.scroll-visible > .hero-kpi:nth-child(1) { transition-delay: 0s; }
.hero-kpis.scroll-visible > .hero-kpi:nth-child(2) { transition-delay: 0.10s; }
.hero-kpis.scroll-visible > .hero-kpi:nth-child(3) { transition-delay: 0.20s; }
.hero-kpis.scroll-visible > .hero-kpi:nth-child(4) { transition-delay: 0.30s; }

/* Compteur animé : la classe est ajoutée par JS au chiffre lui-même */
.kpi-counter {
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

/* =====================================================================
   KPI hover enrichment (tooltip)
   ===================================================================== */
.kpi-card[data-tip] { position: relative; cursor: help; }
.kpi-card[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%; bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: var(--iris);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.45;
  width: 240px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 100;
  border: 1px solid var(--cyan);
  box-shadow: 0 12px 28px rgba(15,10,48,0.25);
}
.kpi-card[data-tip]:hover::after { opacity: 1; }

@media print {
  .dashboard { display: none !important; }
  .scroll-init { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard { padding: 22px 18px; }
}

/* =====================================================================
   COMMUNE BLOCK (Partie III · 18 fiches)
   ===================================================================== */

.commune {
  margin: 28px 0 36px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 32px;
}

.commune-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  gap: 14px;
  flex-wrap: wrap;
}
.commune-name {
  font-family: var(--display);
  font-size: 26px; line-height: 1.0;
  color: var(--iris);
  font-weight: 900;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}
.commune-code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 0.1em;
}
.commune-cat {
  display: inline-block;
  background: var(--cyan-soft);
  color: var(--cyan-deep);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  padding: 5px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}

.commune-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.commune-stat {
  background: var(--bg);
  border-radius: 5px;
  padding: 10px 12px;
}
.commune-stat .label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.commune-stat .value {
  font-family: var(--display);
  font-size: 20px; font-weight: 800;
  color: var(--iris);
  letter-spacing: -0.5px;
  line-height: 1.0;
}
.commune-stat .sub {
  font-size: 10.5px;
  color: var(--gris-500);
  margin-top: 3px;
  line-height: 1.4;
}

.commune-analysis {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--gris-700);
}
.commune-analysis strong { color: var(--iris); }

/* =====================================================================
   BAR CHART INLINE
   ===================================================================== */

.bar-row {
  display: grid; grid-template-columns: 140px 1fr 88px;
  align-items: center; gap: 14px;
  padding: 7px 0;
  font-size: 13.5px;
}
.bar-row .label { color: var(--iris); font-weight: 600; }
.bar-row .label.reference { color: var(--cyan); font-weight: 800; }
.bar-row .bar-bg { background: var(--bg-mid); border-radius: 100px; height: 14px; overflow: hidden; }
.bar-row .bar { background: var(--cyan); height: 100%; border-radius: 100px; transition: width 0.6s ease; }
.bar-row .bar.iris { background: var(--iris); }
.bar-row .value {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-weight: 700;
  color: var(--iris);
  font-size: 13px;
}

/* =====================================================================
   SCENARIO BOXES
   ===================================================================== */

.scenarios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0;
}
.scenario {
  padding: 16px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.scenario { transition: transform 0.30s var(--ease-out), box-shadow 0.30s var(--ease-out); }
.scenario:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.scenario.low { border-top: 4px solid var(--danger); }
.scenario.mid { border-top: 4px solid var(--cyan); }
.scenario.high { border-top: 4px solid var(--success); }

/* Accessibilité : focus visible explicite */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}
.sidebar-nav a:focus-visible { outline-color: var(--cyan); outline-offset: -2px; }
.download-btn:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.scenario .label {
  font-family: var(--mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.scenario.low .label { color: var(--danger); }
.scenario.mid .label { color: var(--cyan); }
.scenario.high .label { color: var(--success); }
.scenario .title {
  font-size: 13px; font-weight: 700;
  color: var(--iris);
  margin-bottom: 8px;
}
.scenario .price {
  font-family: var(--display);
  font-size: 24px; font-weight: 900;
  color: var(--iris);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.scenario .detail {
  font-size: 12px;
  color: var(--gris-500);
  line-height: 1.5;
}

/* =====================================================================
   PROFILES (5 profils acquéreurs)
   ===================================================================== */

.profile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 24px;
  margin: 18px 0;
  box-shadow: var(--shadow-sm);
}
.profile-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 10px; margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.profile-name {
  font-family: var(--display);
  font-size: 20px; font-weight: 800;
  color: var(--iris);
}
.profile-segment {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}
.profile-grid .item {
  background: var(--bg);
  padding: 10px 12px;
  border-radius: 5px;
}
.profile-grid .item .lbl {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.10em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.profile-grid .item .val {
  font-size: 13px;
  color: var(--iris);
  font-weight: 600;
  line-height: 1.45;
}

/* =====================================================================
   FOOTER
   ===================================================================== */

.foot {
  margin-top: 80px;
  padding: 48px 0 0;
  border-top: 2px solid var(--iris);
  font-size: 12px;
  color: var(--gris-500);
  line-height: 1.6;
}
.foot strong { color: var(--iris); font-weight: 700; }
.foot a { color: var(--cyan); text-decoration: none; font-weight: 600; }
.foot a:hover { text-decoration: underline; }
.foot .grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.foot .col h6 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* =====================================================================
   DOWNLOAD CTA (sticky bottom-right)
   ===================================================================== */

.download-btn {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 1000;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--iris);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(15,10,48,0.32);
  transition: background 0.2s, transform 0.2s;
  border: 1px solid var(--cyan);
}
.download-btn:hover {
  background: var(--cyan);
  transform: translateY(-2px);
}
.download-btn .arrow { font-family: var(--mono); font-weight: 800; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; max-height: none; }
  .content { padding: 32px 24px 64px; }
  .hero h1 { font-size: 38px; }
  .hero-kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid, .kpi-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .commune-stats { grid-template-columns: repeat(2, 1fr); }
  .scenarios { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .foot .grid { grid-template-columns: 1fr; }
  .download-btn { bottom: 16px; right: 16px; padding: 12px 18px; font-size: 12px; }
}

/* =====================================================================
   MOBILE-FIRST · Header sticky + Drawer + Adaptations < 900px
   ===================================================================== */

/* Header mobile masqué par défaut (desktop) */
.mobile-header, .mobile-backdrop, .mobile-burger, .mobile-pdf-link, .mobile-brand { display: none; }

@media (max-width: 900px) {

  /* ANTI-DÉBORDEMENT HORIZONTAL : interdire le scroll-x global et confiner les enfants */
  html, body { overflow-x: hidden; max-width: 100vw; }
  body { width: 100%; }
  .shell {
    overflow-x: hidden;
    max-width: 100vw;
  }
  .content {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    box-sizing: border-box;
  }
  /* Conteneurs susceptibles de déborder : forcer max-width 100% */
  .hero, .part, .dashboard, .explorer, .departement-view, .commune,
  .map-frame, .callout, .callout-dark, .exhibit, .form-block,
  .scenarios, .profile, .kpi-grid, .commune-stats,
  .dashboard-quickstats, .dashboard-row, .dashboard-hero,
  .map-legend-enriched, .dep-table-wrap, .rue-results-wrap,
  .rue-meta, .rue-top, .search-wrap, .dep-search-wrap,
  .dep-map-frame, .hero-kpis, .hero-meta {
    max-width: 100%;
    box-sizing: border-box;
  }
  /* Toutes les images / SVG / iframe : limiter à 100% */
  img, svg, iframe, video, canvas, .echart {
    max-width: 100% !important;
    height: auto;
  }
  /* Les charts ECharts gardent leur hauteur définie */
  #chart-map, #chart-ranking, #chart-evolution, #chart-treemap, #chart-dep-map {
    max-width: 100% !important;
    width: 100% !important;
  }
  /* Tables : seul l'exhibit-body scroll, pas la page */
  .exhibit, .rue-results-wrap, .dep-table-wrap {
    overflow-x: hidden;
  }
  .exhibit-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  /* Le code <code> et <pre> : wrap au lieu de débordement */
  code, pre { word-break: break-word; white-space: pre-wrap; }

  /* Header mobile sticky : visible uniquement < 900px */
  .mobile-header {
    display: flex;
    align-items: center;
    gap: 8px;
    position: sticky;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--iris);
    color: var(--white);
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0,111,255,0.30);
    box-shadow: 0 2px 12px rgba(15,10,48,0.30);
  }

  .mobile-brand {
    display: flex;
    flex-direction: column;
    flex: 1 1 0; min-width: 0;
    text-decoration: none;
    color: var(--white);
    line-height: 1.0;
    overflow: hidden;
  }
  .mobile-brand .logo {
    font-family: var(--display);
    font-size: 17px; font-weight: 900;
    letter-spacing: -0.4px;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-brand .baseline {
    font-size: 9.5px; font-weight: 700;
    letter-spacing: 0.10em;
    color: var(--cyan);
    text-transform: uppercase;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Bouton PDF compact (icône seule, gain de place pour le burger) */
  .mobile-pdf-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,111,255,0.18);
    color: var(--white);
    border: 1px solid rgba(0,111,255,0.45);
    padding: 0;
    width: 40px; height: 40px;
    border-radius: 100px;
    text-decoration: none;
    flex: 0 0 40px;
    transition: all 0.18s var(--ease-out);
  }
  .mobile-pdf-link span { display: none; }
  .mobile-pdf-link:active { background: var(--cyan); transform: scale(0.96); }

  /* Bouton burger (touch target ≥ 44px) — TOUJOURS visible à droite */
  .mobile-burger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    cursor: pointer;
    padding: 11px 9px;
    flex: 0 0 40px;
    transition: background 0.18s var(--ease-out);
  }
  .mobile-burger span {
    display: block;
    width: 100%; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.25s var(--ease-out), opacity 0.2s var(--ease-out);
  }
  body.drawer-open .mobile-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  body.drawer-open .mobile-burger span:nth-child(2) {
    opacity: 0;
  }
  body.drawer-open .mobile-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Backdrop derrière le drawer */
  .mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15,10,48,0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease-out);
    z-index: 90;
  }
  body.drawer-open .mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  /* Sidebar transformée en drawer right (slide-in) */
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    top: 0; right: 0; left: auto;
    width: 320px; max-width: 88vw;
    height: 100vh;
    height: 100dvh;
    transform: translateX(100%);
    transition: transform 0.32s var(--ease-out);
    z-index: 95;
    box-shadow: -8px 0 28px rgba(0,0,0,0.40);
    border-right: none;
    border-left: 1px solid rgba(255,255,255,0.08);
    overflow-y: auto;
    padding: 24px 22px 32px;
  }
  body.drawer-open .sidebar { transform: translateX(0); }

  /* Content principal : reset padding & scroll naturel */
  .content {
    padding: 24px 18px 100px;
    max-width: 100%;
  }

  /* Body : pas de scroll quand drawer ouvert */
  body.drawer-open { overflow: hidden; }

  /* HERO : tailles adaptées */
  .hero { margin-bottom: 36px; padding-bottom: 24px; }
  .hero-eyebrow {
    font-size: 9.5px;
    letter-spacing: 0.10em;
    margin-bottom: 10px;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    line-height: 1.4;
  }
  .hero h1 {
    font-size: 28px !important;
    line-height: 1.10;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .hero h1 .accent {
    display: inline-block;
    overflow-wrap: anywhere;
  }
  .hero-sub { font-size: 15px; margin-bottom: 20px; }
  .hero-kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
  .hero-kpi {
    padding: 12px 14px;
    min-width: 0;
    overflow: hidden;
  }
  .hero-kpi .value {
    font-size: 22px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero-kpi .label { font-size: 9px; }
  .hero-kpi .sub { font-size: 10.5px; }
  .hero-meta { grid-template-columns: 1fr; gap: 12px; padding-top: 16px; margin-top: 20px; }
  .hero-sparkline-deco { display: none; }

  /* Toutes les .value (KPI, quickstat, etc.) : ne pas couper en milieu de nombre */
  .quickstat .val, .rue-stat .val, .kpi-card .value, .kpi-counter, .commune-stat .value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Part header */
  .part { margin-bottom: 56px; }
  .part-header { margin-bottom: 22px; padding-bottom: 16px; }
  .part-header h2 { font-size: 28px; letter-spacing: -0.5px; }
  .part-header .lead { font-size: 14.5px; margin-top: 10px; }
  .part h3 {
    font-size: 18px; line-height: 1.25;
    margin: 36px 0 10px;
    padding-left: 10px;
    border-left-width: 3px;
  }
  .part h4 { font-size: 14px; margin: 18px 0 6px; }
  .part p { font-size: 14.5px; max-width: 100%; }
  .part ul, .part ol { max-width: 100%; margin-left: 20px; }
  .part li { font-size: 14.5px; }

  /* KPI cards toutes en 2 colonnes max */
  .kpi-grid, .kpi-grid.cols-3, .kpi-grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .kpi-grid.cols-2 { grid-template-columns: 1fr; }
  .kpi-card { padding: 12px 14px; }
  .kpi-card .value { font-size: 24px; }
  .kpi-card .label { font-size: 9px; }
  .kpi-card .sub { font-size: 10.5px; }

  /* Exhibits : scroll-x sur les grosses tables */
  .exhibit { margin: 18px 0; border-radius: 6px; }
  .exhibit-header { padding: 10px 14px; flex-wrap: wrap; gap: 6px; }
  .exhibit-header .title { font-size: 12.5px; }
  .exhibit-header .source { font-size: 9px; margin-left: 0; flex-basis: 100%; }
  .exhibit-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .exhibit-body table { min-width: 520px; }
  .exhibit-foot { padding: 8px 14px; font-size: 10px; }
  table th, table td { padding: 8px 10px; font-size: 12px; }
  table th { font-size: 10px; }

  /* Callout */
  .callout, .callout-dark { padding: 14px 16px; margin: 14px 0; }
  .callout-dark p { font-size: 14px; }
  .callout .label, .callout-dark .label { font-size: 10px; }
  blockquote, .quote { font-size: 16px; padding: 0 14px; margin: 18px 0; }

  /* Dashboard story-scroll */
  .dashboard { margin: 22px 0 30px; border-radius: 10px; }
  .dashboard-hero { padding: 22px 18px 18px; }
  .dashboard-title { font-size: 24px; }
  .dashboard-sub { font-size: 12.5px; }
  .dashboard-quickstats { grid-template-columns: 1fr 1fr; }
  .quickstat { padding: 14px 16px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .quickstat:nth-child(2n) { border-right: none; }
  .quickstat:last-child { border-bottom: none; }
  .quickstat .val { font-size: 22px; }
  .dashboard-row { padding: 22px 18px; }
  .dashboard-row.split { grid-template-columns: 1fr; gap: 28px; }
  .dashboard-row-head { flex-direction: column; align-items: flex-start; }
  .dashboard-row-title { font-size: 18px; }
  .dashboard-row-sub { font-size: 12px; }
  .dashboard-row-meta { font-size: 9px; align-self: flex-start; }

  /* Charts ECharts mobile : hauteurs réduites */
  #chart-map { height: 520px; }
  #chart-ranking { height: 560px; }
  #chart-evolution { height: 320px; }
  #chart-treemap { height: 400px; }
  #chart-dep-map { height: 460px; }

  /* Légende dashboard */
  .map-legend-enriched { grid-template-columns: 1fr; gap: 8px; }
  .legend-bucket { padding: 10px 12px; }
  .legend-bucket-count { font-size: 16px; }
  .legend-bucket-list .pill { font-size: 10px; padding: 3px 8px; }

  /* Evolution selector buttons */
  .evolution-selector { gap: 5px; }
  .evo-toggle { font-size: 10.5px; padding: 5px 10px; }

  /* Carte ECharts hover badge custom : adapter taille mobile */
  .map-hover-badge { font-size: 12px !important; padding: 5px 10px !important; }

  /* Commune cards (Partie III) */
  .commune { padding: 18px 18px; margin: 22px 0 28px; }
  .commune-name { font-size: 22px; }
  .commune-head { gap: 8px; }
  .commune-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .commune-stat { padding: 10px 12px; }
  .commune-stat .value { font-size: 18px; }
  .commune-analysis { font-size: 13.5px; }

  /* Vue départementale */
  .departement-view { border-radius: 10px; }
  .dep-map-frame { padding: 18px; }
  .dep-search-wrap { padding: 16px 18px; }
  .dep-search-icon { left: 32px; top: 27px; }
  .dep-search-input { font-size: 14px; padding: 10px 14px 10px 38px; }
  .dep-table { font-size: 11.5px; }
  .dep-table thead th { padding: 9px 10px; font-size: 9.5px; }
  .dep-table tbody td { padding: 8px 10px; }
  .dep-table-wrap { max-height: 540px; }

  /* Explorateur rues Elne */
  .explorer { border-radius: 10px; }
  .explorer-hero { padding: 22px 18px 18px; }
  .explorer-title { font-size: 24px; }
  .explorer-sub { font-size: 13px; margin-bottom: 16px; }
  .rue-meta { grid-template-columns: 1fr 1fr; }
  .rue-stat { padding: 12px 14px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .rue-stat:nth-child(2n) { border-right: none; }
  .rue-stat .val { font-size: 19px; }
  .search-wrap { padding: 16px 18px; }
  .search-input { font-size: 14.5px; padding: 12px 14px 12px 40px; }
  .search-icon { left: 14px; }
  .search-hint { font-size: 10px; }
  .rue-top { grid-template-columns: 1fr; }
  .rue-top-block { padding: 14px 18px; border-right: none; border-bottom: 1px solid var(--line); }
  .rue-top-block:last-child { border-bottom: none; }
  .rue-top-list li { font-size: 11.5px; grid-template-columns: 22px 1fr auto; gap: 8px; }
  .rue-top-list .val { font-size: 10px; }
  .rue-results-wrap { max-height: 580px; }
  .rue-table { font-size: 11.5px; }
  .rue-table thead th, .rue-table tbody td { padding: 9px 10px; }
  .rue-table thead th { font-size: 9.5px; }
  .rue-name { font-size: 12.5px; }
  .price-bar { max-width: 100px; }
  .rue-detail { padding: 14px 16px; }
  .rue-detail-table { font-size: 11px; }

  /* Scenarios cards (Partie II.9) */
  .scenarios { grid-template-columns: 1fr; gap: 10px; }
  .scenario { padding: 14px 16px; }
  .scenario .price { font-size: 20px; }

  /* Profile cards (Partie IV) */
  .profile { padding: 18px 20px; margin: 14px 0; }
  .profile-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .profile-name { font-size: 18px; }
  .profile-grid { grid-template-columns: 1fr; gap: 10px; }

  /* Bar row */
  .bar-row { grid-template-columns: 110px 1fr 70px; gap: 10px; font-size: 12.5px; }

  /* Map frame statique */
  .map-frame { padding: 12px; margin: 18px 0; }
  .map-frame .map-title { font-size: 14.5px; }
  .map-frame .map-sub { font-size: 11px; margin-bottom: 10px; }

  /* Footer global */
  .foot { margin-top: 56px; padding-top: 36px; font-size: 11px; }
  .foot .grid { grid-template-columns: 1fr; gap: 24px; }
  .foot .col h6 { font-size: 9.5px; }

  /* Sticky download button mobile : plus discret car déjà bouton PDF dans header */
  .download-btn {
    bottom: 14px; right: 14px;
    padding: 10px 16px;
    font-size: 11.5px;
    box-shadow: 0 8px 20px rgba(15,10,48,0.40);
  }

  /* Reset bouton vue d'ensemble carte */
  .dep-reset-btn { font-size: 9.5px !important; padding: 6px 12px !important; top: 10px !important; right: 10px !important; }

  /* Toc list (sommaire) — surtout drawer mobile */
  .toc-list li { padding: 6px 0; }
  .toc-list .title { font-size: 10.5px; }
  .toc-list .desc { font-size: 8.5px; }
  .toc-list .page-ref { font-size: 14px; width: 26px; }
  .toc-list .num { font-size: 14px; width: 24px; }
}

/* Très petits écrans (< 380px) : ajustements supplémentaires */
@media (max-width: 380px) {
  .mobile-brand .logo { font-size: 16px; }
  .mobile-brand .baseline { font-size: 9px; }
  .mobile-pdf-link span { display: none; }
  .mobile-pdf-link { padding: 8px; min-width: 36px; }
  .hero h1 { font-size: 30px; }
  .hero-kpis { grid-template-columns: 1fr; }
  .part-header h2 { font-size: 24px; }
}

/* =====================================================================
   PRINT — version PDF
   ===================================================================== */

@media print {
  .mobile-header, .mobile-backdrop, .mobile-burger { display: none !important; }
  @page { size: A4 portrait; margin: 18mm 14mm; }
  body { background: var(--white); font-size: 10.5pt; }
  .sidebar, .download-btn { display: none !important; }
  .shell { grid-template-columns: 1fr; }
  .content { padding: 0; max-width: 100%; }
  section.part { margin-bottom: 0; page-break-before: always; }
  section.part:first-of-type, .hero { page-break-before: avoid; }
  .commune { page-break-inside: avoid; }
  .exhibit { page-break-inside: avoid; }
  .callout, .callout-dark { page-break-inside: avoid; }
  .map-frame { page-break-inside: avoid; }
  .hero h1 { font-size: 32pt; }
  .part-header h2 { font-size: 22pt; }
  .part h3 { font-size: 14pt; }
  .kpi-card .value, .hero-kpi .value, .commune-stat .value { font-size: 20pt; }
}

/* ============================================================
   LEAD GATE — modale de capture coordonnées (1re recherche)
   ============================================================ */
.lead-gate-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 10, 48, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 9999;
  padding: 24px 16px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 220ms ease;
}
.lead-gate-backdrop.is-open { display: flex; opacity: 1; }
body.lead-gate-locked { overflow: hidden; }
.lead-gate-modal {
  background: #fff;
  max-width: 520px;
  width: 100%;
  margin: auto;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 111, 255, 0.08);
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.lead-gate-backdrop.is-open .lead-gate-modal {
  transform: translateY(0) scale(1);
}
@keyframes leadGateShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.lead-gate-modal.shake { animation: leadGateShake 320ms ease; }

.lead-gate-head {
  background: linear-gradient(135deg, #0f0a30 0%, #1a1456 100%);
  color: #fff;
  padding: 28px 28px 24px;
  border-bottom: 4px solid #006fff;
}
.lead-gate-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.lead-gate-brand-name {
  font-family: 'Anton', 'Montserrat', sans-serif;
  font-size: 19px;
  letter-spacing: 0.03em;
  color: #fff;
}
.lead-gate-brand-tag {
  background: #006fff;
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
}
.lead-gate-kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5ca8ff;
  font-weight: 700;
  margin-bottom: 8px;
}
.lead-gate-head h2 {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 10px;
  color: #fff;
  letter-spacing: -0.01em;
}
.lead-gate-sub {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.lead-gate-form {
  padding: 22px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lead-gate-form label {
  display: flex;
  flex-direction: column;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5e6783;
  gap: 6px;
}
.lead-gate-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lead-gate-form input,
.lead-gate-form select {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #0f0a30;
  background: #f7f8fc;
  border: 1.5px solid transparent;
  border-radius: 9px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease;
  text-transform: none;
  letter-spacing: 0;
}
.lead-gate-form input:focus,
.lead-gate-form select:focus {
  border-color: #006fff;
  background: #fff;
}
.lead-gate-form select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, #5e6783 50%), linear-gradient(135deg, #5e6783 50%, transparent 50%); background-position: calc(100% - 18px) center, calc(100% - 13px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.lead-gate-rgpd { font-size: 12.5px; color: #5e6783; line-height: 1.5; }
.lead-gate-checkbox {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
}
.lead-gate-checkbox input { width: 18px; height: 18px; margin-top: 1px; cursor: pointer; flex-shrink: 0; accent-color: #006fff; }
.lead-gate-rgpd-link { color: #006fff; text-decoration: underline; }
.lead-gate-error {
  background: rgba(220, 38, 38, 0.08);
  border-left: 3px solid #dc2626;
  color: #dc2626;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.lead-gate-submit {
  background: #006fff;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: 'Montserrat', system-ui, sans-serif;
  transition: background 160ms ease, transform 120ms ease, box-shadow 160ms ease;
  box-shadow: 0 8px 20px rgba(0, 111, 255, 0.28);
  margin-top: 2px;
}
.lead-gate-submit:hover:not(:disabled) { background: #005ad6; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0, 111, 255, 0.36); }
.lead-gate-submit:active:not(:disabled) { transform: translateY(0); }
.lead-gate-submit:disabled { opacity: 0.7; cursor: progress; }

.lead-gate-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.lead-gate-trust-item {
  font-size: 11px;
  color: #8b94ad;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lead-gate-trust-dot { width: 3px; height: 3px; border-radius: 50%; background: #d9dde9; }

@media (max-width: 480px) {
  .lead-gate-modal { border-radius: 14px; }
  .lead-gate-head { padding: 22px 20px 20px; }
  .lead-gate-head h2 { font-size: 19px; }
  .lead-gate-form { padding: 18px 20px 22px; gap: 12px; }
  .lead-gate-row { grid-template-columns: 1fr; gap: 12px; }
  .lead-gate-backdrop { padding: 12px 8px; }
}

@media print {
  .lead-gate-backdrop { display: none !important; }
}

.lead-gate-revoked-notice {
  background: rgba(255,255,255,0.06);
  border-left: 3px solid #fca5a5;
  color: #fee2e2;
  padding: 11px 14px;
  border-radius: 0 6px 6px 0;
  font-size: 12.5px;
  line-height: 1.5;
  margin-top: 16px;
}
.lead-gate-revoked-notice strong { color: #fff; }

/* ============================================================
   ACQUÉREURS ACTIFS — section 4.5
   ============================================================ */
.acquereurs-block {
  margin: 28px 0 0;
}
.acq-explainer {
  background: linear-gradient(135deg, #f7f8fc 0%, #eef0f7 100%);
  border-radius: 14px;
  padding: 24px 26px;
  margin-bottom: 24px;
  border-left: 4px solid #006fff;
}
.acq-explainer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.acq-explainer-num {
  font-family: 'Anton', 'Montserrat', sans-serif;
  font-size: 28px;
  color: #006fff;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 6px;
}
.acq-explainer-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f0a30;
  line-height: 1.3;
  margin-bottom: 6px;
}
.acq-explainer-text {
  font-size: 13px;
  color: #5e6783;
  line-height: 1.55;
}

.acq-selector-wrap {
  background: #fff;
  border: 1px solid #d9dde9;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.acq-selector-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5e6783;
  margin-bottom: 12px;
}
.acq-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.acq-cat-group {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.acq-cat-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b94ad;
  min-width: 130px;
  padding-top: 9px;
}
.acq-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  flex: 1;
}
.acq-pill {
  background: #f7f8fc;
  border: 1.5px solid #d9dde9;
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #15192e;
  cursor: pointer;
  font-family: 'Montserrat', system-ui, sans-serif;
  transition: all 140ms ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.acq-pill:hover { background: #eef0f7; border-color: #b3bdd6; }
.acq-pill.active { background: #0f0a30; color: #fff; border-color: #0f0a30; }
.acq-pill-count {
  background: rgba(0, 111, 255, 0.15);
  color: #006fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 100px;
  min-width: 22px;
  text-align: center;
}
.acq-pill.active .acq-pill-count {
  background: #006fff;
  color: #fff;
}

.acq-meta {
  margin-bottom: 16px;
}
.acq-meta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f0a30;
  color: #fff;
  padding: 16px 22px;
  border-radius: 10px;
}
.acq-meta-num {
  font-family: 'Anton', 'Montserrat', sans-serif;
  font-size: 32px;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #5ca8ff;
}
.acq-meta-label {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
}
.acq-meta-label strong { color: #fff; font-weight: 700; }
.acq-meta-secondary {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  text-align: right;
}

.acq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.acq-loading, .acq-error {
  text-align: center;
  padding: 40px;
  color: #8b94ad;
  font-style: italic;
}
.acq-error { color: #dc2626; }

.acq-card {
  background: #fff;
  border: 1px solid #d9dde9;
  border-radius: 12px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.acq-card:hover {
  border-color: #006fff;
  box-shadow: 0 12px 28px rgba(15, 10, 48, 0.08);
  transform: translateY(-2px);
}

.acq-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.acq-name {
  font-size: 16px;
  font-weight: 800;
  color: #0f0a30;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.acq-meta-line {
  font-size: 12px;
  color: #5e6783;
  margin-top: 4px;
}

.acq-blur {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

.acq-statut {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.acq-statut-tres-actif { background: rgba(220, 38, 38, 0.10); color: #dc2626; }
.acq-statut-actif      { background: rgba(0, 111, 255, 0.12); color: #006fff; }
.acq-statut-recent     { background: rgba(31, 157, 85, 0.12); color: #15803d; }
.acq-statut-nouveau    { background: rgba(255, 159, 28, 0.15); color: #c2410c; }

.acq-budget {
  background: #f7f8fc;
  border-radius: 8px;
  padding: 10px 14px;
}
.acq-budget-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b94ad;
  margin-bottom: 2px;
}
.acq-budget-value {
  font-size: 18px;
  font-weight: 800;
  color: #0f0a30;
  font-family: var(--serif);
  font-variant-numeric: tabular-nums;
}
.acq-budget-sep { color: #b3bdd6; margin: 0 3px; font-weight: 400; }

.acq-row-delai {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.acq-delai {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.acq-delai-urgent  { background: #dc2626; color: #fff; }
.acq-delai-court   { background: rgba(0, 111, 255, 0.12); color: #006fff; }
.acq-delai-moyen   { background: rgba(15, 10, 48, 0.08); color: #0f0a30; }
.acq-delai-long    { background: rgba(139, 148, 173, 0.15); color: #5e6783; }
.acq-delai-veille  { background: rgba(139, 148, 173, 0.1); color: #8b94ad; }
.acq-financement {
  font-size: 11.5px;
  color: #15803d;
  font-weight: 600;
}

.acq-criteres {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.acq-chip {
  display: inline-block;
  background: #eef0f7;
  color: #15192e;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 5px;
  letter-spacing: 0.01em;
}
.acq-chip-type {
  background: rgba(0, 111, 255, 0.1);
  color: #006fff;
}
.acq-chip-premium {
  background: linear-gradient(135deg, #ffd700 0%, #ff9f1c 100%);
  color: #1a1456;
  font-weight: 800;
}

.acq-coords {
  background: rgba(15, 10, 48, 0.03);
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px dashed #d9dde9;
}
.acq-coord-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #15192e;
  margin-bottom: 4px;
}
.acq-coord-line:last-of-type { margin-bottom: 0; }
.acq-coord-icon {
  font-size: 13px;
  opacity: 0.6;
}
.acq-coord-value {
  font-family: monospace;
  font-size: 12.5px;
}
.acq-coord-rgpd {
  font-size: 10px;
  color: #8b94ad;
  font-style: italic;
  margin-top: 7px;
  text-align: center;
  letter-spacing: 0.02em;
}

.acq-cta {
  background: #006fff;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Montserrat', system-ui, sans-serif;
  letter-spacing: 0.02em;
  transition: background 140ms ease, transform 100ms ease, box-shadow 140ms ease;
  margin-top: 2px;
  box-shadow: 0 4px 12px rgba(0, 111, 255, 0.22);
}
.acq-cta:hover { background: #005ad6; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0, 111, 255, 0.32); }
.acq-cta:active { transform: translateY(0); }

/* Honoraires + mention légale */
.acq-honoraires {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(31, 157, 85, 0.08) 0%, rgba(31, 157, 85, 0.02) 100%);
  border: 1px solid rgba(31, 157, 85, 0.2);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 14px;
}
.acq-honoraires-icon {
  font-size: 26px;
  font-weight: 800;
  color: #15803d;
  font-family: var(--serif);
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #15803d;
}
.acq-honoraires-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f0a30;
  margin-bottom: 4px;
}
.acq-honoraires-text {
  font-size: 13px;
  color: #15192e;
  line-height: 1.55;
}

.acq-mention-legale {
  font-size: 11px;
  color: #8b94ad;
  font-style: italic;
  line-height: 1.55;
  padding: 12px 16px;
  background: #f7f8fc;
  border-radius: 8px;
  border-left: 3px solid #d9dde9;
}
.acq-mention-legale strong { color: #5e6783; font-style: normal; }

/* Modale demande de mise en relation */
.acq-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 10, 48, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 9998;
  padding: 24px 16px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 220ms ease;
}
.acq-modal-backdrop.is-open { display: flex; opacity: 1; }
body.acq-modal-locked { overflow: hidden; }
.acq-modal {
  background: #fff;
  max-width: 540px;
  width: 100%;
  margin: auto;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.acq-modal-backdrop.is-open .acq-modal { transform: translateY(0) scale(1); }
.acq-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 24px;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}
.acq-modal-close:hover { background: rgba(255,255,255,0.3); }
.acq-modal-head {
  background: linear-gradient(135deg, #0f0a30 0%, #1a1456 100%);
  color: #fff;
  padding: 24px 28px 22px;
  border-bottom: 4px solid #006fff;
}
.acq-modal-tag {
  display: inline-block;
  background: rgba(0, 111, 255, 0.3);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.acq-modal-head h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #fff;
  letter-spacing: -0.01em;
}
.acq-modal-sub {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}
.acq-modal-sub strong { color: #fff; font-weight: 700; }
.acq-modal-form {
  padding: 20px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.acq-modal-form label {
  display: flex;
  flex-direction: column;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5e6783;
  gap: 6px;
}
.acq-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.acq-modal-form input,
.acq-modal-form textarea {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #0f0a30;
  background: #f7f8fc;
  border: 1.5px solid transparent;
  border-radius: 9px;
  padding: 12px 14px;
  outline: none;
  text-transform: none;
  letter-spacing: 0;
}
.acq-modal-form textarea { resize: vertical; min-height: 80px; font-family: 'Montserrat', system-ui, sans-serif; }
.acq-modal-form input:focus, .acq-modal-form textarea:focus {
  border-color: #006fff;
  background: #fff;
}
.acq-form-rgpd { font-size: 12.5px; color: #5e6783; line-height: 1.5; }
.acq-form-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
}
.acq-form-check input { width: 18px; height: 18px; margin-top: 1px; cursor: pointer; flex-shrink: 0; accent-color: #006fff; }
.acq-form-rgpd-link { color: #006fff; text-decoration: underline; }
.acq-form-error {
  background: rgba(220, 38, 38, 0.08);
  border-left: 3px solid #dc2626;
  color: #dc2626;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.acq-form-submit {
  background: #006fff;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: 'Montserrat', system-ui, sans-serif;
  transition: background 160ms ease;
  box-shadow: 0 8px 20px rgba(0, 111, 255, 0.28);
}
.acq-form-submit:hover:not(:disabled) { background: #005ad6; }
.acq-form-submit:disabled { opacity: 0.7; cursor: progress; }
.acq-form-trust {
  text-align: center;
  font-size: 11px;
  color: #8b94ad;
  margin-top: 4px;
}
.acq-modal-success {
  padding: 40px 28px;
  text-align: center;
}
.acq-success-check {
  width: 60px; height: 60px;
  background: #15803d;
  color: #fff;
  border-radius: 50%;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-weight: 800;
}
.acq-modal-success h3 {
  font-size: 20px;
  color: #0f0a30;
  margin: 0 0 10px;
  font-weight: 800;
}
.acq-modal-success p {
  font-size: 14px;
  color: #5e6783;
  line-height: 1.6;
  margin: 0 0 18px;
}
.acq-modal-close-btn {
  background: #0f0a30;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Montserrat', system-ui, sans-serif;
}

@media (max-width: 700px) {
  .acq-explainer-grid { grid-template-columns: 1fr; gap: 16px; }
  .acq-grid { grid-template-columns: 1fr; }
  .acq-cat-group { flex-direction: column; align-items: stretch; gap: 6px; }
  .acq-cat-label { padding-top: 0; }
  .acq-meta-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .acq-meta-secondary { text-align: left; }
  .acq-form-row { grid-template-columns: 1fr; }
}

@media print {
  .acq-modal-backdrop { display: none !important; }
  .acq-pill, .acq-cta { display: none !important; }
}

.acq-meta-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}
.acq-meta-sub strong {
  color: #5ca8ff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.acq-load-more-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 14px;
}
.acq-load-more {
  background: #fff;
  color: #006fff;
  border: 2px solid #006fff;
  border-radius: 10px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Montserrat', system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: all 140ms ease;
  min-width: 280px;
}
.acq-load-more:hover {
  background: #006fff;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 111, 255, 0.25);
}
.acq-load-more-remaining {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.75;
  letter-spacing: 0.02em;
}
.acq-all-shown {
  grid-column: 1 / -1;
  text-align: center;
  padding: 18px;
  color: #15803d;
  font-size: 13.5px;
  font-weight: 600;
  background: rgba(31, 157, 85, 0.06);
  border-radius: 10px;
  border: 1px dashed rgba(31, 157, 85, 0.25);
}

/* État vide qualifié — rue existe dans BAN mais pas dans DVF */
.rue-empty-qualified {
  background: linear-gradient(135deg, rgba(0,111,255,0.05) 0%, rgba(15,10,48,0.02) 100%);
  border: 1px solid rgba(0,111,255,0.18);
  border-radius: 14px;
  padding: 32px 30px;
}
.rue-empty-qualified .rue-empty-icon {
  color: #15803d;
  background: rgba(31, 157, 85, 0.1);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 16px;
}
.rue-empty-qualified .rue-empty-title {
  color: #0f0a30;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}
.rue-empty-qualified .rue-empty-sub {
  color: #15192e;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  max-width: 580px;
  margin: 0 auto 18px;
}
.rue-empty-qualified .rue-empty-sub strong {
  color: #006fff;
  font-weight: 700;
}
.rue-empty-actions {
  text-align: center;
  margin-top: 18px;
}
.rue-empty-cta {
  display: inline-block;
  background: #006fff;
  color: #fff;
  padding: 13px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.015em;
  box-shadow: 0 8px 20px rgba(0,111,255,0.22);
  transition: background 140ms ease, transform 100ms ease;
}
.rue-empty-cta:hover { background: #005ad6; transform: translateY(-1px); }
.rue-empty-hint {
  font-size: 12px;
  color: #5e6783;
  font-style: italic;
  margin-top: 10px;
}
