:root {
  /* === COULEURS === */
  --wv2-ink: #222222;
  --wv2-accent: #1e73be;          /* bleu CTA / liens / h1 */
  --wv2-accent-dark: #155a99;
  --wv2-teal: #4C767A;            /* footer + brand secondaire */
  --wv2-teal-soft: #5e9094;
  --wv2-pink: #c2126a;            /* legacy data highlight */
  --wv2-h1-color: #1e73be;        /* h1 */
  --wv2-h2-color: #1d7481;        /* h2 */
  --wv2-h3-color: #20668e;        /* h3 */
  --wv2-h2: #1d7481;              /* alias retro-compat */
  --wv2-h3: #20668e;              /* alias retro-compat */
  --wv2-text: #222222;            /* texte body */
  --wv2-text-soft: #4a5860;       /* texte secondaire */
  --wv2-muted: #6d6363;
  --wv2-success: #16a34a;
  --wv2-danger: #dc2626;
  --wv2-warning: #ea580c;
  --wv2-border: #e4edf0;          /* border standard cards */
  --wv2-border-soft: #eef2f5;
  --wv2-bg: #f7f8f9;              /* page bg */
  --wv2-bg-soft: #f4f9fc;         /* tile / stat bg */
  --wv2-card: #ffffff;            /* card bg */

  /* === TYPOGRAPHIE === */
  --wv2-font: Raleway, Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wv2-fs-base: 1rem;            /* 16px */
  --wv2-fs-sm: 0.88rem;           /* 14px */
  --wv2-fs-xs: 0.78rem;           /* 12.5px */
  --wv2-fs-h1: 2.2rem;            /* 35px */
  --wv2-fs-h2: 1.4rem;            /* 22px */
  --wv2-fs-h3: 1.1rem;            /* 17.6px */
  --wv2-fs-h4: 0.96rem;
  --wv2-fw-h1: 700;
  --wv2-fw-h2: 700;
  --wv2-fw-h3: 700;
  --wv2-fw-body: 400;
  --wv2-fw-strong: 600;
  --wv2-lh-base: 1.55;
  --wv2-lh-heading: 1.2;

  /* === ESPACEMENTS === */
  --wv2-sp-1: 4px;
  --wv2-sp-2: 8px;
  --wv2-sp-3: 12px;
  --wv2-sp-4: 16px;
  --wv2-sp-5: 24px;
  --wv2-sp-6: 32px;
  --wv2-sp-7: 48px;

  /* === CARD ET RADIUS === */
  --wv2-radius-sm: 6px;
  --wv2-radius: 10px;
  --wv2-radius-lg: 14px;
  --wv2-card-padding: 20px 24px;
  --wv2-card-padding-sm: 14px 16px;
  --wv2-shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08);
  --wv2-shadow-sm: 0 1px 2px rgba(0,0,0,.04);

  /* === LAYOUT === */
  --wv2-container: 1200px;
  --wv2-page-padding: 40px 80px;
  --wv2-page-padding-md: 32px 40px;
  --wv2-page-padding-sm: 24px 18px;
}

body.wv2-root {
  margin: 0;
  color: var(--wv2-ink);
  font-family: var(--wv2-font);
  font-size: 16px;
  line-height: 1.55;
  background: var(--wv2-bg) url('/city.jpg') center center / cover fixed no-repeat;
}

.wv2-root *, .wv2-root *::before, .wv2-root *::after { box-sizing: border-box; }
.wv2-root a { color: var(--wv2-accent); text-decoration: none; }
.wv2-root a:hover { color: var(--wv2-accent-dark); text-decoration: underline; }
.wv2-root img { max-width: 100%; height: auto; vertical-align: middle; }

.wv2-site {
  max-width: var(--wv2-container);
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 30px rgba(0,0,0,.16);
}

.wv2-header-wrap {
  background: #4c767a;
  padding: 15px 0;
}

.wv2-header {
  position: relative;
  z-index: 100;
  background: var(--wv2-teal-soft);
  border-top: 8px solid #cc6600;
  border-bottom: 8px solid #cc6600;
  box-shadow: inset 0 1px 0 #ffeb3b, inset 0 -1px 0 #ffeb3b, 0 2px 6px rgba(0,0,0,.25);
}

.wv2-header__inside {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 15px;
}

.wv2-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none !important;
}

.wv2-logo img {
  width: 62px;
  height: auto;
  display: block;
}

.wv2-logo span {
  display: block;
  line-height: 1.05;
  font-size: 1.12rem;
}

.wv2-logo small {
  display: block;
  font-size: .72rem;
  color: rgba(255,255,255,.82);
  font-weight: 600;
}

.wv2-menu {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wv2-menu > li {
  position: relative;
  display: flex;
  align-items: center;
}

.wv2-menu > li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  width: 1px;
  height: 80%;
  background: linear-gradient(to bottom, rgba(255,255,255,.28), rgba(0,0,0,.25));
}

.wv2-menu > li > a {
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 0 15px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none !important;
  white-space: nowrap;
}

.wv2-menu > li > a:hover,
.wv2-menu > li.is-current > a { color: #ffd580 !important; }

.wv2-submenu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  margin: 0;
  padding: 7px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--wv2-border);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.2);
  z-index: 9999;
}

.wv2-menu > li:hover > .wv2-submenu,
.wv2-menu > li:focus-within > .wv2-submenu { display: block; }

.wv2-submenu a {
  display: block;
  padding: 9px 14px;
  color: #0a2430;
  font-weight: 650;
  text-decoration: none !important;
}

.wv2-submenu a:hover {
  background: #f3f8fb;
  color: #0a5c75;
}

.wv2-menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--wv2-teal);
  cursor: pointer;
  font-weight: 800;
}

.wv2-breadcrumb {
  background: #f8fafc;
  border-bottom: 1px solid var(--wv2-border);
  padding: 8px 24px;
  font-size: 13px;
}

.wv2-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wv2-breadcrumb li:not(:last-child)::after {
  content: "›";
  color: #9ca3af;
  margin-left: 6px;
}

.wv2-main {
  padding: 38px 40px 44px 52px;
}

.wv2-hero {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--wv2-border);
}

.wv2-eyebrow {
  margin: 0 0 5px;
  color: var(--wv2-pink);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.wv2-hero h1 {
  margin: 0 0 10px;
  color: var(--wv2-accent);
  font-size: 2.2rem;
  line-height: 1.15;
  font-weight: 700;
}

.wv2-hero__subtitle {
  max-width: 780px;
  margin: 0 0 18px;
  color: var(--wv2-muted);
  font-size: 1.05rem;
}

.wv2-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wv2-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--wv2-border);
  border-radius: 8px;
  box-shadow: var(--wv2-shadow);
}

.wv2-stat strong {
  color: var(--wv2-h2);
  font-size: 1.16rem;
  line-height: 1.15;
}

.wv2-stat span {
  color: var(--wv2-muted);
  font-size: .82rem;
}

.wv2-tabs {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0 -40px 26px -52px;
  padding: 8px 40px 8px 52px;
  background: #f1f5f9;
  border-top: 1px solid var(--wv2-border);
  border-bottom: 2px solid var(--wv2-accent);
  overflow-x: auto;
}

.wv2-tabs__inner {
  display: flex;
  gap: 6px;
  min-width: max-content;
}

.wv2-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #1f2937;
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none !important;
}

.wv2-tab:hover,
.wv2-tab.is-active {
  background: var(--wv2-accent);
  color: #fff;
}

.wv2-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 24px;
  align-items: start;
}

.wv2-section {
  margin: 0 0 34px;
  scroll-margin-top: 76px;
}

.wv2-section h2 {
  margin: 0 0 14px;
  padding-bottom: 7px;
  border-bottom: 2px solid #f1f5f9;
  color: var(--wv2-h2);
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 700;
  font-style: normal;
}

.wv2-section h3 {
  margin: 18px 0 10px;
  color: var(--wv2-h3);
  font-size: 1.1rem;
  font-style: normal;
}

.wv2-map-shell {
  overflow: hidden;
  border: 1px solid var(--wv2-border);
  border-radius: 10px;
  background: #0a1a2e;
  box-shadow: var(--wv2-shadow);
}

.wv2-map-shell .carte_map,
.wv2-map-shell .carte_sat {
  width: 100% !important;
  height: 520px;
  margin: 0;
  border: 0;
}

.wv2-quarter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin: 14px 0 0;
}

.wv2-quarter-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 98px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--wv2-border);
  border-radius: 10px;
  box-shadow: var(--wv2-shadow);
  text-decoration: none !important;
}

.wv2-quarter-card:hover {
  border-color: var(--wv2-accent);
  transform: translateY(-1px);
}

.wv2-quarter-card strong {
  color: var(--wv2-h3);
  font-size: .98rem;
  line-height: 1.25;
}

.wv2-quarter-card span,
.wv2-quarter-card small {
  color: var(--wv2-muted);
  font-size: .82rem;
}

.wv2-sidebar {
  position: sticky;
  top: 74px;
}

.wv2-sidebox {
  margin: 0 0 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--wv2-border);
  border-radius: 10px;
  box-shadow: var(--wv2-shadow);
}

.wv2-sidebox h2,
.wv2-sidebox h3 {
  margin: 0 0 10px;
  color: var(--wv2-h3);
  font-size: 1rem;
  font-style: normal;
}

.wv2-sidebox .boxshadow,
.wv2-sidebox .gridheaderleft {
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

/* === WV2 Footer canonique (pattern WordPress home) === */
.wv2-footer {
  max-width: var(--wv2-container, 1200px);
  margin: 0 auto;
  padding: 0;
  background: transparent;
  color: #fff;
  text-align: center;
  font-size: .9rem;
  box-sizing: border-box;
}
.wv2-footer .site-info {
  margin: 0;
  padding: 0;
  background: #4C767A;
  color: #fff;
  box-sizing: border-box;
}
.wv2-footer .inside-site-info {
  margin: 0;
  padding: 22px 24px;
  background: transparent;
  box-sizing: border-box;
}
.wv2-footer .copyright-bar {
  text-align: center;
  font-size: 0.92rem;
  margin: 0;
  color: #fff;
}
.wv2-footer-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}
.wv2-footer a,
.wv2-footer-menu a { color: #fff; text-decoration: underline; }
.wv2-footer a:hover,
.wv2-footer-menu a:hover { color: #ffd580; }

@media (max-width: 992px) {
  .wv2-menu { display: none; position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; flex-direction: column; background: #fff; border-radius: 12px; box-shadow: 0 14px 30px rgba(0,0,0,.25); }
  .wv2-header.is-open .wv2-menu { display: flex; }
  .wv2-menu > li { display: block; }
  .wv2-menu > li + li::before { display: none; }
  .wv2-menu > li > a { min-height: auto; padding: 12px 14px; color: #0a2430 !important; }
  .wv2-submenu { position: static; display: block; min-width: 0; border: 0; box-shadow: none; padding: 0 0 8px 16px; }
  .wv2-menu-toggle { display: inline-flex; }
  .wv2-layout { grid-template-columns: 1fr; }
  .wv2-sidebar { position: static; }
}

@media (max-width: 767px) {
  .wv2-main { padding: 28px 22px; }
  .wv2-tabs { margin: 0 -22px 22px; padding: 8px 22px; }
  .wv2-hero h1 { font-size: 1.65rem; }
  .wv2-map-shell .carte_map,
  .wv2-map-shell .carte_sat { height: 380px; }
}

/* WV2 shell hardening against legacy style.css */
body.wv2-root .wv2-hero h1 {
  padding: 0 !important;
  margin-left: 0 !important;
  background: none !important;
  filter: none !important;
  color: var(--wv2-accent) !important;
}

body.wv2-root .wv2-main p,
body.wv2-root .wv2-main ul,
body.wv2-root .wv2-main li {
  margin-left: 0;
}

body.wv2-root .wv2-section h2,
body.wv2-root .wv2-sidebox h2 {
  background: none !important;
  filter: none !important;
  margin-left: 0 !important;
}

body.wv2-root .wv2-sidebox select {
  width: 100%;
  max-width: 100%;
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
}

body.wv2-root .wv2-sidebox a.myButton2,
body.wv2-root .wv2-sidebox .myButton2,
body.wv2-root .wv2-sidebox a {
  max-width: 100%;
}

/* WV2 WordPress alignment: GeneratePress/Webvilles, not C2F */
body.wv2-root {
  --wv2-container: 1200px;
  background-color: var(--wv2-bg) !important;
  background-image: url('/wp-content/uploads/2025/09/xcity.webp') !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  font-family: var(--wv2-font);
  font-size: var(--wv2-fs-base);
  line-height: var(--wv2-lh-base);
  color: var(--wv2-text);
}


/* === WV2 Typographie canonique (villes + quartiers + futures sections) === */
body.wv2-root .wv2-page h1,
body.wv2-root .wv2-page .wv2-c-hero h1 {
  font-family: var(--wv2-font);
  font-size: var(--wv2-fs-h1);
  font-weight: var(--wv2-fw-h1);
  line-height: var(--wv2-lh-heading);
  color: var(--wv2-h1-color);
  margin: 0 0 var(--wv2-sp-3);
}
body.wv2-root .wv2-page h2,
body.wv2-root .wv2-page .wv2-c-card h2,
body.wv2-root .wv2-page .wv2-quarter-card h2 {
  font-family: var(--wv2-font);
  font-size: var(--wv2-fs-h2);
  font-weight: var(--wv2-fw-h2);
  line-height: var(--wv2-lh-heading);
  color: var(--wv2-h2-color);
  margin: 0 0 var(--wv2-sp-3);
}
body.wv2-root .wv2-page h3 {
  font-family: var(--wv2-font);
  font-size: var(--wv2-fs-h3);
  font-weight: var(--wv2-fw-h3);
  line-height: var(--wv2-lh-heading);
  color: var(--wv2-h3-color);
  margin: var(--wv2-sp-4) 0 var(--wv2-sp-2);
}
body.wv2-root .wv2-page p {
  font-family: var(--wv2-font);
  font-size: var(--wv2-fs-base);
  font-weight: var(--wv2-fw-body);
  line-height: var(--wv2-lh-base);
  color: var(--wv2-text);
  margin: 0 0 var(--wv2-sp-3);
}
body.wv2-root .wv2-page p strong { font-weight: var(--wv2-fw-strong); color: var(--wv2-text); }
body.wv2-root .wv2-page ul,
body.wv2-root .wv2-page ol { font-family: var(--wv2-font); font-size: var(--wv2-fs-base); line-height: var(--wv2-lh-base); color: var(--wv2-text); }
body.wv2-root .wv2-page a { color: var(--wv2-accent); }
body.wv2-root .wv2-page a:hover { color: var(--wv2-accent-dark); }
@media (max-width: 800px) {
  body.wv2-root .wv2-page h1 { font-size: 1.7rem; }
  body.wv2-root .wv2-page h2 { font-size: 1.2rem; }
  body.wv2-root .wv2-page h3 { font-size: 1rem; }
}

/* === WV2 Card canonique === */
body.wv2-root .wv2-page .wv2-c-card,
body.wv2-root .wv2-page .wv2-quarter-card,
body.wv2-root .wv2-page .wv2-insight-card {
  background: var(--wv2-card);
  border: 1px solid var(--wv2-border);
  border-radius: var(--wv2-radius);
  padding: var(--wv2-card-padding);
  box-shadow: var(--wv2-shadow-sm);
  box-sizing: border-box;
}

body.wv2-root .wv2-site {
  max-width: 1200px;
  background: #ffffff;
  box-shadow: none;
}

body.wv2-root .wv2-header {
  background-color: #4C767A;
  background-image: url('/wp-content/uploads/2025/09/xhorizon_10a.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: local;
  border: 0;
  box-shadow: none;
}

body.wv2-root .wv2-header__inside {
  min-height: 80px;
  max-width: 1240px;
  padding: 0 40px 0 0;
  justify-content: flex-start;
}

body.wv2-root .wv2-logo img,
body.wv2-root .wv2-logo .header-image {
  width: 227px;
  height: auto;
  margin: 0;
}

body.wv2-root .wv2-logo span {
  display: none;
}

body.wv2-root .wv2-nav {
  background: #dceffe;
  border: 0;
  box-shadow: none;
}

body.wv2-root .wv2-nav__inside {
  max-width: 1200px;
  min-height: 60px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
}

body.wv2-root .wv2-menu > li + li::before {
  display: none;
}

body.wv2-root .wv2-menu > li > a {
  min-height: 60px;
  padding: 0 20px;
  color: #222222 !important;
  font-size: 15px;
  font-weight: 400;
}

body.wv2-root .wv2-menu > li > a:hover,
body.wv2-root .wv2-menu > li.is-current > a {
  color: #1e73be !important;
  background: transparent;
}

body.wv2-root .wv2-submenu {
  top: 100%;
  border-radius: 0;
  background: #f0f0f0;
  border: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,.12);
}

body.wv2-root .wv2-submenu a {
  color: var(--wv2-text);
  font-weight: 400;
}

body.wv2-root .wv2-submenu a:hover {
  color: #1e73be;
  background: #f7f8f9;
}

body.wv2-root .wv2-menu-toggle {
  background: transparent;
  color: var(--wv2-text);
  border-radius: 0;
  box-shadow: none;
}

body.wv2-root .wv2-breadcrumb {
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  padding: 12px 80px;
}

body.wv2-root .wv2-main {
  padding: 40px 80px;
  color: #6d6363;
  background: #ffffff;
}

body.wv2-root .wv2-hero {
  border-bottom: 0;
  padding-bottom: 30px;
}

body.wv2-root .wv2-eyebrow {
  color: #c2126a;
  font-size: .78rem;
}

body.wv2-root .wv2-hero h1 {
  color: #1e73be !important;
  text-align: left !important;
  font-size: 2.5em;
  font-weight: 600;
  margin: 0 0 14px !important;
}

body.wv2-root .wv2-hero__subtitle {
  color: #6d6363;
}

body.wv2-root .wv2-stat {
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 3px;
  box-shadow: none;
}

body.wv2-root .wv2-tabs {
  position: static;
  margin: 0 -80px 32px;
  padding: 0 80px;
  background: #dceffe;
  border-top: 0;
  border-bottom: 0;
}

body.wv2-root .wv2-tabs__inner {
  min-height: 54px;
  align-items: center;
}

body.wv2-root .wv2-tab {
  border-radius: 0;
  color: var(--wv2-text);
  font-weight: 400;
  padding: 17px 18px;
}

body.wv2-root .wv2-tab:hover,
body.wv2-root .wv2-tab.is-active {
  color: #1e73be;
  background: transparent;
}

body.wv2-root .wv2-section h2 {
  color: #1d7481;
  border-bottom: 3px solid #3498db;
  padding-bottom: 10px;
}

body.wv2-root .wv2-section h3,
body.wv2-root .wv2-sidebox h2 {
  color: #20668e;
}

body.wv2-root .wv2-quarter-card,
body.wv2-root .wv2-sidebox,
body.wv2-root .wv2-map-shell {
  border-radius: 3px;
  box-shadow: none;
  border-color: #f0f0f0;
}

body.wv2-root .wv2-quarter-card strong {
  color: #c2126a;
}

@media (max-width: 768px) {
  body.wv2-root .wv2-header__inside {
    padding: 0 30px;
  }
  body.wv2-root .wv2-nav__inside {
    justify-content: flex-start;
    padding: 0 30px;
  }
  body.wv2-root .wv2-header.is-open .wv2-menu,
  body.wv2-root .wv2-nav.is-open .wv2-menu {
    display: flex;
  }
  body.wv2-root .wv2-menu {
    top: 100%;
    left: 0;
    right: 0;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,.14);
  }
  body.wv2-root .wv2-main {
    padding: 30px;
  }
  body.wv2-root .wv2-breadcrumb {
    padding: 12px 30px;
  }
  body.wv2-root .wv2-tabs {
    margin: 0 -30px 28px;
    padding: 0 30px;
  }
}

/* WV2 dynamic WP header/menu/footer/share */
body.wv2-root .wv2-header {
  height: 80px;
  overflow: hidden;
}

body.wv2-root .wv2-header__inside {
  height: 80px;
  min-height: 80px;
}

body.wv2-root .wv2-logo,
body.wv2-root .custom-logo-link {
  display: inline-flex;
  align-items: center;
  height: 80px;
}

body.wv2-root .wv2-logo img,
body.wv2-root .custom-logo,
body.wv2-root .header-image {
  width: 227px !important;
  height: 80px !important;
  object-fit: contain;
  object-position: left center;
  display: block;
}

body.wv2-root .wv2-nav .menu {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.wv2-root .wv2-nav .menu > li {
  position: relative;
}

body.wv2-root .wv2-nav .menu > li > a {
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 0 20px;
  color: var(--wv2-text);
  font-size: 15px;
  text-decoration: none;
}

body.wv2-root .wv2-nav .menu > li.current-menu-item > a,
body.wv2-root .wv2-nav .menu > li.current-menu-ancestor > a,
body.wv2-root .wv2-nav .menu > li > a:hover {
  color: #1e73be;
}

body.wv2-root .wv2-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  z-index: 9999;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #f0f0f0;
  box-shadow: 0 2px 4px rgba(0,0,0,.12);
}

body.wv2-root .wv2-nav .menu > li:hover > .sub-menu,
body.wv2-root .wv2-nav .menu > li:focus-within > .sub-menu {
  display: block;
}

body.wv2-root .wv2-nav .sub-menu a {
  display: block;
  padding: 10px 14px;
  color: var(--wv2-text);
  text-decoration: none;
}

body.wv2-root .wv2-nav .sub-menu a:hover {
  color: #1e73be;
  background: #f7f8f9;
}

body.wv2-root .wv2-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 28px;
}

body.wv2-root .wv2-share .shared-counts-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 2px;
  padding: 5px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

body.wv2-root .wv2-share .facebook { background: #3b5998; }
body.wv2-root .wv2-share .x { background: #00aced; }
body.wv2-root .wv2-share .linkedin { background: #0077b5; }
body.wv2-root .wv2-share .pin { background: #bd081c; }
body.wv2-root .wv2-share .email,
body.wv2-root .wv2-share .print { background: #444444; }

body.wv2-root .wv2-share .shared-counts-icon-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 768px) {
  body.wv2-root .wv2-nav .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #dceffe;
    z-index: 1000;
  }

  body.wv2-root .wv2-nav.is-open .menu {
    display: flex;
  }

  body.wv2-root .wv2-nav .menu > li > a {
    min-height: 44px;
  }

  body.wv2-root .wv2-nav .sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    padding-left: 16px;
  }
}

/* WV2 WP menu refinements: dropdown chevrons + search icon */
body.wv2-root .wv2-nav .menu > li.menu-item-has-children > a::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 12px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

body.wv2-root .wv2-search {
  display: flex;
  align-items: center;
  min-height: 60px;
  margin-left: 14px;
  position: relative;
}

body.wv2-root .wv2-search__field {
  position: absolute;
  right: 42px;
  width: 0;
  opacity: 0;
  pointer-events: none;
  transition: width .18s ease, opacity .18s ease;
}

body.wv2-root .wv2-search:focus-within .wv2-search__field {
  width: 220px;
  opacity: 1;
  pointer-events: auto;
  padding: 8px 10px;
  border: 1px solid #b2b2be;
  background: #f7f8f9;
}

body.wv2-root .wv2-search__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 60px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--wv2-text);
  cursor: pointer;
}

body.wv2-root .wv2-search__button:hover,
body.wv2-root .wv2-search__button:focus {
  color: #1e73be;
  background: transparent;
}

@media (max-width: 768px) {
  body.wv2-root .wv2-search {
    margin-left: auto;
  }
  body.wv2-root .wv2-search:focus-within .wv2-search__field {
    width: 180px;
  }
}

body.wv2-root .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* WV2 dynamic WordPress submenus */
body.wv2-root .wv2-site,
body.wv2-root .wv2-nav,
body.wv2-root .wv2-nav__inside,
body.wv2-root .wv2-nav .menu,
body.wv2-root .wv2-nav .menu-item {
  overflow: visible;
}

body.wv2-root .wv2-nav {
  position: relative;
  z-index: 3000;
}

body.wv2-root .wv2-nav .menu-item {
  position: relative;
}

body.wv2-root .wv2-nav .menu-item > .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 235px;
  z-index: 4000;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #f0f0f0;
  box-shadow: 0 2px 4px rgba(0,0,0,.16);
}

body.wv2-root .wv2-nav .menu-item:hover > .sub-menu,
body.wv2-root .wv2-nav .menu-item:focus-within > .sub-menu,
body.wv2-root .wv2-nav .menu-item.sfHover > .sub-menu {
  display: block;
}

body.wv2-root .wv2-nav .sub-menu .sub-menu {
  top: 0;
  left: 100%;
}

body.wv2-root .wv2-nav .sub-menu li a {
  display: block;
  min-height: 0;
  padding: 10px 14px;
  color: var(--wv2-text);
  white-space: nowrap;
}

body.wv2-root .wv2-nav .sub-menu li a:hover,
body.wv2-root .wv2-nav .sub-menu li a:focus {
  color: #1e73be;
  background: #f7f8f9;
}

body.wv2-root .wv2-nav .sub-menu .menu-item-has-children > a::after {
  content: "";
  float: right;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  margin-left: 14px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  body.wv2-root .wv2-nav .menu-item > .sub-menu,
  body.wv2-root .wv2-nav .sub-menu .sub-menu {
    position: static;
    display: block;
    min-width: 0;
    box-shadow: none;
    background: rgba(255,255,255,.38);
  }
}

/* WV2 WP menu dropdown indicator */
body.wv2-root .wv2-nav .menu > li.menu-item-has-children > a::after {
  content: "⌄";
  display: inline-block;
  width: auto;
  height: auto;
  margin-left: 10px;
  border: 0;
  transform: none;
  color: currentColor;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
}

body.wv2-root .wv2-nav .sub-menu .menu-item-has-children > a::after {
  content: "›";
  display: inline-block;
  float: right;
  width: auto;
  height: auto;
  margin-top: 0;
  margin-left: 12px;
  border: 0;
  transform: none;
  color: currentColor;
  font-size: 17px;
  line-height: 1;
}

/* WV2 caret final: match GeneratePress small down indicator */
body.wv2-root .wv2-nav .menu > li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 11px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  vertical-align: middle;
}

body.wv2-root .wv2-nav .sub-menu .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  float: right;
  width: 7px;
  height: 7px;
  margin-top: 5px;
  margin-left: 12px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}

/* WV2 caret selector fix: wp_nav_menu uses .wv2-menu.main-nav, not .menu */
body.wv2-root .wv2-nav .wv2-menu > li.menu-item-has-children > a::after,
body.wv2-root .wv2-nav ul.wv2-menu > li.menu-item-has-children > a::after {
  content: "" !important;
  display: inline-block !important;
  width: 7px !important;
  height: 7px !important;
  margin-left: 11px !important;
  border: 0 !important;
  border-right: 1.5px solid currentColor !important;
  border-bottom: 1.5px solid currentColor !important;
  transform: rotate(45deg) translateY(-3px) !important;
  vertical-align: middle !important;
}

body.wv2-root .wv2-nav .wv2-menu .sub-menu li.menu-item-has-children > a::after,
body.wv2-root .wv2-nav ul.wv2-menu .sub-menu li.menu-item-has-children > a::after {
  content: "" !important;
  display: inline-block !important;
  float: right !important;
  width: 7px !important;
  height: 7px !important;
  margin-top: 5px !important;
  margin-left: 12px !important;
  border: 0 !important;
  border-right: 1.5px solid currentColor !important;
  border-bottom: 1.5px solid currentColor !important;
  transform: rotate(-45deg) !important;
}


/* WV2 page shell must match the WordPress content width. */
body.wv2-root .wv2-page {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  min-height: 100vh;
}

body.wv2-root .wv2-page > .wv2-header,
body.wv2-root .wv2-page > .wv2-nav,
body.wv2-root .wv2-page > .wv2-footer,
body.wv2-root .wv2-page > .site-main {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

body.wv2-root .wv2-page .grid-container {
  max-width: 1200px;
}

/* SP-01 quartier premium tabs */
body.wv2-qdetail .wv2-population-panel {
    padding-top: 22px;
}
body.wv2-qdetail .wv2-pop-kpis .wv2-insight-card strong {
    color: #0b6f83;
}
body.wv2-qdetail .wv2-iris-grid,
body.wv2-qdetail .wv2-neighbor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}
body.wv2-qdetail .wv2-iris-card,
body.wv2-qdetail .wv2-neighbor-grid a {
    border: 1px solid #d7e7ed;
    border-radius: 8px;
    background: #fff;
    padding: 12px;
    text-decoration: none;
    color: #12343c;
}
body.wv2-qdetail .wv2-iris-card strong,
body.wv2-qdetail .wv2-neighbor-grid strong {
    display: block;
    color: #005eb8;
    font-size: 0.95rem;
}
body.wv2-qdetail .wv2-iris-card span,
body.wv2-qdetail .wv2-neighbor-grid span {
    display: block;
    margin-top: 4px;
    color: #3f5962;
    font-size: 0.85rem;
}
body.wv2-qdetail .wv2-iris-card em {
    display: block;
    margin: 6px 0;
    color: #c01772;
    font-size: 0.78rem;
    font-style: normal;
}
body.wv2-qdetail .wv2-neighbor-panel {
    margin-bottom: 18px;
}
body.wv2-qdetail .wv2-neighbor-grid a:hover,
body.wv2-qdetail .wv2-quicklinks a:hover {
    border-color: #64bdd6;
    background: #f4fbfd;
}

/* SP-01 INSEE 2021 enrichment */
body.wv2-qdetail .wv2-life-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}
body.wv2-qdetail .wv2-life-grid article {
    background: linear-gradient(180deg, #f9fdff, #eef8fb);
    border: 1px solid #d8eaf0;
    border-radius: 8px;
    padding: 14px;
}
body.wv2-qdetail .wv2-life-grid span,
body.wv2-qdetail .wv2-life-grid em {
    display: block;
    color: #46636b;
    font-size: 0.82rem;
    font-style: normal;
}
body.wv2-qdetail .wv2-life-grid strong {
    color: #0a6f83;
    display: block;
    font-size: 1.35rem;
    margin: 6px 0 3px;
}
body.wv2-qdetail .wv2-source-note {
    background: #fff8e9;
    border-left: 4px solid #d59a24;
    color: #594617;
    font-size: 0.86rem;
    margin: 14px 0 20px;
    padding: 10px 12px;
}
@media all and (max-width: 900px) {
    body.wv2-qdetail .wv2-life-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media all and (max-width: 620px) {
    body.wv2-qdetail .wv2-life-grid {
        grid-template-columns: 1fr;
    }
}

/* SP-01 work and education enrichment */
body.wv2-qdetail .wv2-life-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
body.wv2-qdetail .wv2-work-panels {
    margin-top: 14px;
}

/* SP-01 family profile and editorial brief */
body.wv2-qdetail .wv2-profile-brief {
    background: #f8fcfb;
    border: 1px solid #cfe7e3;
    border-left: 5px solid #0a7b83;
    border-radius: 8px;
    margin: 18px 0;
    padding: 14px 16px;
}
body.wv2-qdetail .wv2-profile-brief span {
    color: #0a6570;
    display: block;
    font-weight: 800;
    margin-bottom: 5px;
}
body.wv2-qdetail .wv2-profile-brief p {
    margin: 0;
}
body.wv2-qdetail .wv2-family-panels {
    margin-top: 14px;
}

/* SP-01 satellite map overlays */
body.wv2-qdetail .wv2-iris-marker {
    background: transparent;
    border: 0;
}
body.wv2-qdetail .wv2-iris-marker span {
    background: #ff2f92;
    border: 3px solid #ffe36a;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.28), 0 0 18px rgba(255, 47, 146, 0.75);
    display: block;
    height: 16px;
    width: 16px;
}
body.wv2-qdetail .wv2-iris-label {
    background: transparent;
    border: 0;
}
body.wv2-qdetail .wv2-iris-label span {
    background: rgba(10, 18, 24, 0.82);
    border: 1px solid rgba(255, 224, 81, 0.92);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.45);
    color: #ffe36a;
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
    max-width: 170px;
    padding: 5px 8px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.9);
    transform: translate(-50%, -130%);
    white-space: normal;
}

/* SP-01 plan map IRIS overlays */
body.wv2-qdetail .wv2-plan-iris-marker {
    background: transparent;
    border: 0;
}
body.wv2-qdetail .wv2-plan-iris-marker span {
    background: #ffb000;
    border: 3px solid #d41478;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.78), 0 2px 10px rgba(70,20,45,0.38);
    display: block;
    height: 14px;
    width: 14px;
}
body.wv2-qdetail .wv2-plan-iris-label {
    background: transparent;
    border: 0;
}
body.wv2-qdetail .wv2-plan-iris-label span {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(212,20,120,0.86);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(20,40,50,0.22);
    color: #a3005f;
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
    max-width: 170px;
    padding: 5px 8px;
    text-align: center;
    transform: translate(-50%, -130%);
    white-space: normal;
}

/* SP-01 final polish */
body.wv2-qdetail .wv2-tab-panel[hidden] {
    display: none !important;
}
body.wv2-qdetail .wv2-life-grid {
    align-items: stretch;
}
body.wv2-qdetail .wv2-life-grid article {
    min-height: 104px;
}
body.wv2-qdetail .wv2-section-head p {
    max-width: 920px;
}
body.wv2-qdetail .wv2-map-shell {
    background: #eef7f8;
}
body.wv2-qdetail .wv2-tab-button:focus-visible,
body.wv2-qdetail .wv2-quicklinks a:focus-visible {
    outline: 3px solid #ffb000;
    outline-offset: 2px;
}

/* SP-02 city unified template */
body.wv2-city .wv2-city-hero {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
    padding: 38px 0 24px;
}
body.wv2-city .wv2-kicker {
    color: #d41478;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 8px;
    text-transform: uppercase;
}
body.wv2-city h1 {
    color: #1e73be;
    font-size: 38px;
    line-height: 1.12;
    margin: 0 0 12px;
}
body.wv2-city .wv2-city-hero p {
    color: #48545c;
    font-size: 17px;
    line-height: 1.65;
    margin: 0;
}
body.wv2-city .wv2-city-stats {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}
body.wv2-city .wv2-city-stats li {
    background: #f2f9fc;
    border: 1px solid #cce6f3;
    border-radius: 8px;
    padding: 16px;
}
body.wv2-city .wv2-city-stats strong {
    color: #075b69;
    display: block;
    font-size: 24px;
}
body.wv2-city .wv2-city-stats span {
    color: #49616b;
    font-size: 13px;
}
body.wv2-city .wv2-tabs {
    background: #eef7fb;
    border: 1px solid #c9e2ec;
    border-radius: 8px;
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 18px 0 26px;
    padding: 6px;
}
body.wv2-city .wv2-tab-button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #102b38;
    cursor: pointer;
    font-weight: 800;
    min-height: 42px;
}
body.wv2-city .wv2-tab-button.is-active {
    background: #fff;
    box-shadow: 0 2px 8px rgba(20, 60, 80, .12);
    color: #d41478;
}
body.wv2-city .wv2-tab-panel[hidden] {
    display: none !important;
}
body.wv2-city .wv2-panel {
    background: #fff;
    border: 1px solid #d7e6eb;
    border-radius: 8px;
    margin: 0 0 22px;
    padding: 22px;
}
body.wv2-city .wv2-panel h2 {
    color: #0a7180;
    font-size: 24px;
    font-style: italic;
    margin: 0 0 14px;
}
body.wv2-city .wv2-panel h3 {
    color: #123846;
    font-size: 18px;
    margin: 0 0 10px;
}
body.wv2-city .wv2-city-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
body.wv2-city .wv2-facts {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}
body.wv2-city .wv2-facts div {
    background: #f7fbfc;
    border: 1px solid #e0eef2;
    border-radius: 8px;
    padding: 10px 12px;
}
body.wv2-city .wv2-facts dt {
    color: #58707a;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
body.wv2-city .wv2-facts dd {
    color: #102b38;
    font-weight: 800;
    margin: 3px 0 0;
}
body.wv2-city .wv2-mini-bars {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}
body.wv2-city .wv2-mini-bars span {
    display: grid;
    gap: 6px;
}
body.wv2-city .wv2-mini-bars span::after {
    background: linear-gradient(90deg, #d41478 var(--v), #e8f1f4 var(--v));
    border-radius: 999px;
    content: "";
    display: block;
    height: 8px;
}
body.wv2-city .wv2-mini-bars b,
body.wv2-city .wv2-mini-bars i {
    font-style: normal;
}
body.wv2-city .wv2-link-grid,
body.wv2-city .wv2-quarter-grid,
body.wv2-city .wv2-tourism-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
body.wv2-city .wv2-link-grid a,
body.wv2-city .wv2-quarter-card,
body.wv2-city .wv2-tourism-grid article {
    background: #f9fcfd;
    border: 1px solid #d7e6eb;
    border-radius: 8px;
    color: #123846;
    padding: 13px 14px;
    text-decoration: none;
}
body.wv2-city .wv2-link-grid strong,
body.wv2-city .wv2-quarter-card strong {
    color: #005eb8;
    display: block;
}
body.wv2-city .wv2-link-grid span,
body.wv2-city .wv2-quarter-card span,
body.wv2-city .wv2-tourism-grid span {
    color: #5c6f77;
    display: block;
    font-size: 13px;
    margin-top: 4px;
}
body.wv2-city .map-container {
    border: 1px solid #c9e2ec;
    border-radius: 8px;
    min-height: 560px;
    overflow: hidden;
}
body.wv2-city #EmplacementDeMaCarte {
    min-height: 560px;
}
body.wv2-city details {
    border-top: 1px solid #e0eef2;
    padding: 14px 0;
}
body.wv2-city summary {
    color: #123846;
    cursor: pointer;
    font-weight: 800;
}
@media (max-width: 900px) {
    body.wv2-city .wv2-city-hero,
    body.wv2-city .wv2-city-grid {
        grid-template-columns: 1fr;
    }
    body.wv2-city .wv2-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    body.wv2-city h1 {
        font-size: 30px;
    }
    body.wv2-city .wv2-city-stats,
    body.wv2-city .wv2-facts,
    body.wv2-city .wv2-tabs {
        grid-template-columns: 1fr;
    }
}

/* SP-02 city enrichment */
body.wv2-city .wv2-city-service-overview {
    border-left: 5px solid #ffb000;
}
body.wv2-city .wv2-service-metrics {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
body.wv2-city .wv2-service-metrics article {
    background: linear-gradient(180deg, #f9fdff 0%, #f1f8fb 100%);
    border: 1px solid #cfe5ed;
    border-radius: 8px;
    min-height: 118px;
    padding: 14px;
}
body.wv2-city .wv2-service-metrics span {
    color: #0a7180;
    display: block;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}
body.wv2-city .wv2-service-metrics strong {
    color: #d41478;
    display: block;
    font-size: 30px;
    line-height: 1.1;
    margin: 8px 0 4px;
}
body.wv2-city .wv2-service-metrics em {
    color: #526a73;
    display: block;
    font-size: 13px;
    font-style: normal;
    line-height: 1.35;
}
body.wv2-city .wv2-sport-highlights {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 16px;
}
body.wv2-city .wv2-sport-highlights span {
    align-items: center;
    background: #fff7df;
    border: 1px solid #f2d17a;
    border-radius: 999px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    min-height: 40px;
    padding: 8px 12px;
}
body.wv2-city .wv2-sport-highlights b {
    color: #31444c;
    font-size: 13px;
    font-weight: 800;
}
body.wv2-city .wv2-sport-highlights i {
    background: #d41478;
    border-radius: 999px;
    color: #fff;
    font-style: normal;
    font-weight: 900;
    min-width: 34px;
    padding: 4px 8px;
    text-align: center;
}
body.wv2-city .wv2-mini-bars b {
    color: #123846;
    display: flex;
    justify-content: space-between;
}
body.wv2-city .wv2-mini-bars i {
    color: #5d7078;
    font-size: 13px;
}
@media (max-width: 900px) {
    body.wv2-city .wv2-service-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    body.wv2-city .wv2-service-metrics {
        grid-template-columns: 1fr;
    }
}

/* WV2 shell width fix: header & nav alignes container (footer = bloc canonique) */
body.wv2-root .wv2-header,
body.wv2-root .wv2-nav {
    max-width: var(--wv2-container);
    margin-left: auto;
    margin-right: auto;
}
body.wv2-root .wv2-header__inside,
body.wv2-root .wv2-nav__inside {
    max-width: var(--wv2-container);
}
body.wv2-root .wv2-header__inside {
    padding-left: 0;
}

/* === WV2 Content Components (sections refonte villes/organismes/sport/etc.) ===
   Scope d'application : body.wv2-c-root (a poser sur les pages utilisant ces composants)
   Convention : prefixe .wv2-c-* pour tous les composants de section refonte
   Source historique : wv2-city.css (SP-02 villes) consolide ici 2026-05-16 */

/* ============ Container et layout ============ */
/* Aligner wv2-page sur quartiers : main = 1200px white card, padding 40px 80px */
body.wv2-c-root .wv2-page,
body.wv2-c-root main.wv2-page {
  max-width: var(--wv2-container) !important;
  margin: 0 auto;
  background: var(--wv2-card);
  padding: var(--wv2-page-padding);
  box-sizing: border-box;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.04);
}
body.wv2-c-root .wv2-page__inside {
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body.wv2-c-root .wv2-page > .wv2-page__inside.grid-container {
  padding: 0;
}
@media (max-width: 992px) {
  body.wv2-c-root .wv2-page,
  body.wv2-c-root main.wv2-page { padding: var(--wv2-page-padding-md); }
}
@media (max-width: 600px) {
  body.wv2-c-root .wv2-page,
  body.wv2-c-root main.wv2-page { padding: var(--wv2-page-padding-sm); }
}

/* ============ Hero ============ */
.wv2-c-hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 8px 0 28px;
  border-bottom: 1px solid #e4edf0;
  margin-bottom: 28px;
}
.wv2-c-kicker {
  color: #1d7481;
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 6px;
}
/* h1 villes -> regle canonique body.wv2-root .wv2-page h1 */
.wv2-c-lead {
  color: var(--wv2-text-soft);
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0 0 8px;
}
.wv2-c-eyebrow {
  color: #5f6970;
  font-size: 0.88rem;
  margin: 8px 0 0;
}
.wv2-c-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wv2-c-stats li {
  background: #f4f9fc;
  border: 1px solid #d5e7f0;
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
}
.wv2-c-stats strong {
  display: block;
  color: #1e73be;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
}
.wv2-c-stats span {
  display: block;
  color: #5f6970;
  font-size: 0.78rem;
  margin-top: 6px;
}
@media (max-width: 800px) {
  .wv2-c-hero { grid-template-columns: 1fr; gap: 16px; }
  .wv2-c-root h1 { font-size: 1.8rem; }
}

/* ============ Tabs ============ */
.wv2-c-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 2px solid #e4edf0;
  margin: 32px 0 28px;
  scrollbar-width: thin;
}
.wv2-c-tab {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #5f6970;
  font-size: 0.96rem;
  font-weight: 600;
  padding: 12px 18px;
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
  font-family: inherit;
}
.wv2-c-tab:hover { color: #1e73be; }
.wv2-c-tab.is-active {
  color: #1e73be;
  border-bottom-color: #1e73be;
}

/* ============ Cards ============ */
.wv2-c-panel { display: block; }
.wv2-c-panel[hidden] { display: none; }
.wv2-c-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
@media (max-width: 800px) { .wv2-c-grid-2 { grid-template-columns: 1fr; } }
.wv2-c-card {
  background: #fff;
  border: 1px solid #e4edf0;
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.wv2-c-card--wide { width: 100%; }
.wv2-c-card h2 {
  color: #1d7481;
  font-size: 1.25rem;
  margin: 0 0 14px;
  font-weight: 700;
  border-bottom: 1px solid #f0f4f6;
  padding-bottom: 8px;
}
.wv2-c-text {
  color: var(--wv2-text-soft);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 10px;
}
.wv2-c-up { color: #16a34a; font-weight: 700; }
.wv2-c-down { color: #dc2626; font-weight: 700; }

/* ============ Definitions list ============ */
.wv2-c-dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  margin: 0;
}
.wv2-c-dl > div {
  padding: 6px 0;
  border-bottom: 1px dashed #eef3f5;
}
.wv2-c-dl dt {
  color: #5f6970;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}
.wv2-c-dl dd {
  color: #1d7481;
  font-size: 1rem;
  font-weight: 600;
  margin: 2px 0 0;
}
@media (max-width: 600px) { .wv2-c-dl { grid-template-columns: 1fr; } }

/* Pop chart : refactor dans bloc SP-02 k4 ci-dessous */

/* ============ Pills (KPI rapides) ============ */
.wv2-c-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 10px 0 4px;
}
.wv2-c-pills span {
  background: #f7fafd;
  border: 1px solid #d5e7f0;
  border-left: 3px solid #1e73be;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  font-size: 0.84rem;
  color: #5f6970;
}
.wv2-c-pills b {
  color: #1e73be;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.wv2-c-pills b.wv2-c-down { color: #dc2626; }

/* ============ Grid 4 stats services ============ */
.wv2-c-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.wv2-c-stat {
  background: linear-gradient(135deg, #f4f9fc, #fff);
  border: 1px solid #d5e7f0;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.wv2-c-stat strong {
  display: block;
  color: #1e73be;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.wv2-c-stat span {
  display: block;
  color: #5f6970;
  font-size: 0.84rem;
  margin-top: 6px;
}
@media (max-width: 600px) { .wv2-c-grid-4 { grid-template-columns: 1fr 1fr; } }

/* ============ Carte ============ */
.wv2-c-map {
  width: 100%;
  height: 480px;
  border-radius: 10px;
  border: 1px solid #d5e7f0;
  overflow: hidden;
  z-index: 1;
}
.wv2-c-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--wv2-text-soft);
}
.wv2-c-map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wv2-c-map-legend i {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}

/* ============ Communes proches ============ */
.wv2-c-near-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.wv2-c-near {
  display: block;
  background: #fff;
  border: 1px solid #d5e7f0;
  border-radius: 8px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.wv2-c-near:hover {
  border-color: #1e73be;
  transform: translateY(-1px);
}
.wv2-c-near strong {
  display: block;
  color: #1e73be;
  font-size: 0.96rem;
}
.wv2-c-near span {
  display: block;
  color: #5f6970;
  font-size: 0.82rem;
  margin-top: 4px;
}

/* ============ Schools ============ */
.wv2-c-schools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.wv2-c-school {
  background: #fafdff;
  border: 1px solid #d5e7f0;
  border-radius: 8px;
  padding: 12px 14px;
}
.wv2-c-school header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.wv2-c-school strong { color: #1d7481; font-size: 0.96rem; }
.wv2-c-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.wv2-c-tag--public { background: rgba(22,163,74,0.12); color: #15803d; }
.wv2-c-tag--prive { background: rgba(168,85,247,0.12); color: #7e22ce; }
.wv2-c-school-addr,
.wv2-c-school-meta {
  color: #5f6970;
  font-size: 0.82rem;
  margin: 4px 0 0;
}
.wv2-c-school-meta a { color: #1e73be; text-decoration: none; }
.wv2-c-school-meta a:hover { text-decoration: underline; }

/* ============ Mairie ============ */
.wv2-c-mairie {
  background: linear-gradient(135deg, #fff8e6, #fff);
  border: 1px solid #f3d97e;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 16px 20px;
  font-style: normal;
  color: var(--wv2-text-soft);
  line-height: 1.6;
}

/* ============ Organismes ============ */
.wv2-c-orgs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.wv2-c-org {
  background: #fafdff;
  border: 1px solid #d5e7f0;
  border-left: 3px solid #7c3aed;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wv2-c-org-type {
  font-size: 0.78rem;
  color: #7c3aed;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.wv2-c-org strong { color: #1d7481; font-size: 0.94rem; }
.wv2-c-org-addr,
.wv2-c-org-tel { color: #5f6970; font-size: 0.82rem; }

/* ============ Tourism ============ */
.wv2-c-tourism-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.wv2-c-tourism {
  background: #fafdff;
  border: 1px solid #d5e7f0;
  border-left: 3px solid #16a34a;
  border-radius: 8px;
  padding: 14px;
}
.wv2-c-tourism strong { color: #15803d; font-size: 0.96rem; }
.wv2-c-tourism p { color: var(--wv2-text-soft); font-size: 0.88rem; margin: 6px 0; line-height: 1.5; }
.wv2-c-tourism-addr { color: #5f6970; font-size: 0.8rem; }

/* ============ Sport ============ */
.wv2-c-sport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.wv2-c-sport {
  background: linear-gradient(135deg, #fff3d6, #fff);
  border: 1px solid #f3d97e;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}
.wv2-c-sport b {
  display: block;
  color: #d97706;
  font-size: 1.6rem;
  font-weight: 700;
}
.wv2-c-sport span {
  display: block;
  color: #5f6970;
  font-size: 0.82rem;
  margin-top: 4px;
  text-transform: capitalize;
}
.wv2-c-equip-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.wv2-c-equip {
  background: #fafdff;
  border: 1px solid #d5e7f0;
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  padding: 10px 12px;
}
.wv2-c-equip strong { color: #1d7481; font-size: 0.88rem; }
.wv2-c-equip span { display: block; color: #5f6970; font-size: 0.76rem; margin-top: 4px; }

/* ============ Quartiers ============ */
.wv2-c-quarter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.wv2-c-quarter {
  display: block;
  background: #fafdff;
  border: 1px solid #d5e7f0;
  border-left: 3px solid #c2126a;
  border-radius: 8px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, border-color 0.15s;
}
.wv2-c-quarter:hover { transform: translateY(-1px); border-left-color: #1e73be; }
.wv2-c-quarter strong { display: block; color: #c2126a; font-size: 0.95rem; }
.wv2-c-quarter span { display: block; color: #5f6970; font-size: 0.82rem; margin-top: 4px; }

/* ============ CTA ============ */
.wv2-c-cta {
  display: inline-block;
  color: #1e73be;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.wv2-c-cta:hover { text-decoration: underline; }

/* ============ FAQ ============ */
.wv2-c-faq details {
  background: #fafdff;
  border: 1px solid #d5e7f0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
}
.wv2-c-faq summary {
  color: #1d7481;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.96rem;
}
.wv2-c-faq p {
  color: var(--wv2-text-soft);
  margin: 8px 0 0;
  line-height: 1.6;
  font-size: 0.94rem;
}

/* ============ Empty ============ */
.wv2-c-empty {
  color: #5f6970;
  font-style: italic;
  text-align: center;
  padding: 24px;
  background: #fafdff;
  border: 1px dashed #d5e7f0;
  border-radius: 8px;
}


/* ============ Hero search box ============ */
.wv2-c-search {
  margin: 14px 0 0;
}
.wv2-c-search form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.wv2-c-search input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #d5e7f0;
  border-radius: 8px;
  font-size: 0.96rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.wv2-c-search input:focus { border-color: #1e73be; box-shadow: 0 0 0 3px rgba(30,115,190,0.1); }
.wv2-c-search button {
  padding: 10px 20px;
  background: #1e73be;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.wv2-c-search button:hover { background: #155a99; }

/* ============ Benchmark gauges (vs moyenne dpt/France) ============ */
.wv2-c-gauges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 12px 0 4px;
}
.wv2-c-gauge {
  background: #fff;
  border: 1px solid #d5e7f0;
  border-radius: 8px;
  padding: 14px;
}
.wv2-c-gauge-label {
  color: #5f6970;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.wv2-c-gauge-values {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.wv2-c-gauge-values strong {
  color: #1e73be;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.wv2-c-gauge-values em {
  font-style: normal;
  color: #5f6970;
  font-size: 0.84rem;
}
.wv2-c-gauge-bar {
  height: 6px;
  background: #e4edf0;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.wv2-c-gauge-fill {
  height: 100%;
  background: linear-gradient(to right, #1e73be, #4a9ad8);
  border-radius: 3px;
  transition: width 0.4s ease;
}
.wv2-c-gauge-ref {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: #dc2626;
}
.wv2-c-gauge-comparison {
  font-size: 0.82rem;
  margin-top: 6px;
  color: #5f6970;
}
.wv2-c-gauge-comparison b { color: #1e73be; }

/* ============ Internal linking dense ============ */
.wv2-c-cross-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.wv2-c-cross-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fafdff;
  border: 1px solid #d5e7f0;
  border-left: 3px solid #1e73be;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.wv2-c-cross-link:hover { border-left-color: #c2126a; transform: translateX(2px); }
.wv2-c-cross-link__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.wv2-c-cross-link__body strong { color: #1d7481; font-size: 0.94rem; display: block; }
.wv2-c-cross-link__body span { color: #5f6970; font-size: 0.82rem; display: block; margin-top: 2px; }

/* ============ Ratios per 1000 hab ============ */
.wv2-c-ratios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.wv2-c-ratio {
  background: linear-gradient(135deg, #f4f9fc, #fff);
  border: 1px solid #d5e7f0;
  border-top: 3px solid #1e73be;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.wv2-c-ratio b {
  display: block;
  color: #1e73be;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}
.wv2-c-ratio i {
  font-style: normal;
  display: block;
  color: #5f6970;
  font-size: 0.78rem;
  margin-top: 4px;
}
.wv2-c-ratio em {
  font-style: normal;
  display: block;
  color: #1d7481;
  font-size: 0.78rem;
  margin-top: 6px;
  font-weight: 600;
}

/* ============ Equivalent population cities ============ */
.wv2-c-similar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.wv2-c-similar a {
  display: block;
  padding: 10px 12px;
  background: #fafdff;
  border: 1px solid #d5e7f0;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  font-size: 0.88rem;
}
.wv2-c-similar a:hover { border-color: #1e73be; }
.wv2-c-similar strong { color: #1e73be; display: block; }
.wv2-c-similar span { color: #5f6970; font-size: 0.8rem; }

/* ============ Print stylesheet ============ */
@media print {
  body.wv2-root { background: #fff !important; }
  .wv2-header, .wv2-nav, .wv2-footer, .wv2-c-tabs, .wv2-share { display: none !important; }
  .wv2-c-panel { display: block !important; }
  .wv2-c-panel[hidden] { display: block !important; }
  .wv2-c-root h1 { font-size: 1.6rem; }
  .wv2-c-card { box-shadow: none; border: 1px solid #ddd; page-break-inside: avoid; }
  .wv2-c-map { display: none; }
  .wv2-c-root a { color: #000; text-decoration: none; }
}

/* === WV2 Hardening typo : vaincre style.css legacy + inline overrides === */
/* Specificite forte (.wv2-root x .wv2-page x element) + !important uniquement sur font props */
body.wv2-root.wv2-c-root .wv2-page h1,
body.wv2-root.wv2-qdetail .wv2-page h1,
body.wv2-root .wv2-page .wv2-c-hero h1,
body.wv2-root .wv2-page .wv2-hero h1 {
  font-family: var(--wv2-font) !important;
  font-size: var(--wv2-fs-h1) !important;
  font-weight: var(--wv2-fw-h1) !important;
  line-height: var(--wv2-lh-heading) !important;
  color: var(--wv2-h1-color) !important;
}
body.wv2-root.wv2-c-root .wv2-page h2,
body.wv2-root.wv2-qdetail .wv2-page h2,
body.wv2-root .wv2-page .wv2-c-card h2,
body.wv2-root .wv2-page .wv2-quarter-card h2,
body.wv2-root .wv2-page .wv2-section h2 {
  font-family: var(--wv2-font) !important;
  font-size: var(--wv2-fs-h2) !important;
  font-weight: var(--wv2-fw-h2) !important;
  line-height: var(--wv2-lh-heading) !important;
  color: var(--wv2-h2-color) !important;
}
body.wv2-root.wv2-c-root .wv2-page h3,
body.wv2-root.wv2-qdetail .wv2-page h3,
body.wv2-root .wv2-page .wv2-c-card h3,
body.wv2-root .wv2-page .wv2-quarter-card h3,
body.wv2-root .wv2-page .wv2-section h3 {
  font-family: var(--wv2-font) !important;
  font-size: var(--wv2-fs-h3) !important;
  font-weight: var(--wv2-fw-h3) !important;
  line-height: var(--wv2-lh-heading) !important;
  color: var(--wv2-h3-color) !important;
}
body.wv2-root .wv2-page,
body.wv2-root .wv2-page p,
body.wv2-root .wv2-page li,
body.wv2-root .wv2-page td {
  font-family: var(--wv2-font) !important;
  font-size: var(--wv2-fs-base) !important;
  line-height: var(--wv2-lh-base) !important;
  color: var(--wv2-text);
}
body.wv2-root .wv2-page p strong,
body.wv2-root .wv2-page li strong { font-weight: var(--wv2-fw-strong); }
@media (max-width: 800px) {
  body.wv2-root .wv2-page h1 { font-size: 1.7rem !important; }
  body.wv2-root .wv2-page h2 { font-size: 1.2rem !important; }
  body.wv2-root .wv2-page h3 { font-size: 1rem !important; }
}

/* Card canonique hardening */
body.wv2-root .wv2-page .wv2-c-card,
body.wv2-root .wv2-page .wv2-quarter-card,
body.wv2-root .wv2-page .wv2-insight-card {
  background: var(--wv2-card) !important;
  border: 1px solid var(--wv2-border) !important;
  border-radius: var(--wv2-radius) !important;
  padding: var(--wv2-card-padding) !important;
  box-sizing: border-box;
}

/* === Fix html font-size : style.css legacy + index.css imposent 11pt (14.67px) sur quartier === */
html { font-size: 16px !important; }

/* === WV2 SP-02 k1 : Composants ajoutés (weather, pyramid, csp, table, map-fs, cross-link--big, popchart--big, stat-block, faq-toggle) === */

/* Météo hero widget */
.wv2-c-weather {
  margin-top: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  border: 1px solid #bae6fd;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #0c4a6e;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.wv2-c-weather__loading { color: #64748b; font-style: italic; }
.wv2-c-weather__now { display: flex; align-items: center; gap: 10px; }
.wv2-c-weather__icon { font-size: 1.8rem; }
.wv2-c-weather__now strong { font-size: 1.6rem; color: #0c4a6e; font-weight: 700; }
.wv2-c-weather__meta { color: #475569; font-size: 0.82rem; }
.wv2-c-weather__forecast { display: flex; gap: 10px; margin-left: auto; }
.wv2-c-weather__forecast > div { display: flex; flex-direction: column; align-items: center; padding: 4px 8px; background: rgba(255,255,255,.6); border-radius: 6px; font-size: 0.78rem; min-width: 50px; }
.wv2-c-weather__forecast b { font-size: 1rem; }
.wv2-c-weather__forecast em { font-style: normal; color: #475569; font-size: 0.72rem; }
.wv2-c-weather__source { display: block; flex-basis: 100%; font-size: 0.72rem; color: #64748b; margin-top: 6px; }
.wv2-c-weather__source a { color: #0369a1; }

/* Tables démographiques */
.wv2-c-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.92rem;
}
.wv2-c-table th, .wv2-c-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--wv2-border);
}
.wv2-c-table thead th {
  background: var(--wv2-bg-soft);
  color: var(--wv2-h2-color);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.wv2-c-table tbody tr:hover { background: rgba(30,115,190,0.03); }
.wv2-c-table .wv2-c-up { color: var(--wv2-success); font-weight: 700; }
.wv2-c-table .wv2-c-down { color: var(--wv2-danger); font-weight: 700; }

/* Pyramide âge */
.wv2-c-pyramid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
}
.wv2-c-pyramid-row {
  display: grid;
  grid-template-columns: 110px 1fr 130px;
  gap: 12px;
  align-items: center;
}
.wv2-c-pyramid-label {
  font-weight: 700;
  color: var(--wv2-h2-color);
  font-size: 0.88rem;
}
.wv2-c-pyramid-bar-track {
  height: 22px;
  background: var(--wv2-bg-soft);
  border-radius: 11px;
  overflow: hidden;
  position: relative;
}
.wv2-c-pyramid-bar {
  height: 100%;
  background: linear-gradient(90deg, #1e73be 0%, #4dabe8 100%);
  border-radius: 11px;
  transition: width 0.6s ease-out;
}
.wv2-c-pyramid-value {
  text-align: right;
  font-size: 0.88rem;
  font-weight: 600;
}
.wv2-c-pyramid-value em { font-style: normal; color: var(--wv2-muted); font-size: 0.78rem; font-weight: 400; }

/* CSP grid */
.wv2-c-csp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.wv2-c-csp {
  padding: 14px 16px;
  background: var(--wv2-bg-soft);
  border: 1px solid var(--wv2-border);
  border-radius: var(--wv2-radius);
  text-align: center;
}
.wv2-c-csp strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--wv2-accent);
  margin-bottom: 4px;
}
.wv2-c-csp span { display: block; color: var(--wv2-text); font-size: 0.84rem; line-height: 1.3; font-weight: 600; }
.wv2-c-csp em { display: block; color: var(--wv2-muted); font-size: 0.72rem; margin-top: 4px; font-style: normal; }

/* Map shell + fullscreen + map-fs button */
.wv2-c-map-shell {
  position: relative;
  margin-top: 14px;
}
.wv2-c-map {
  width: 100%;
  height: 480px;
  border-radius: var(--wv2-radius);
  border: 1px solid var(--wv2-border);
  background: #f0f9ff;
}
.wv2-c-map-shell.is-fullscreen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  margin: 0;
  background: #fff;
  padding: 12px;
}
.wv2-c-map-shell.is-fullscreen .wv2-c-map {
  height: calc(100vh - 24px);
}
.wv2-c-map-fs {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 401;
  background: #fff;
  border: 2px solid rgba(0,0,0,.2);
  border-radius: 4px;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
}
.wv2-c-map-fs:hover { background: var(--wv2-bg-soft); }

/* Big popchart for demographie tab */
/* popchart--big : redefini dans bloc SP-02 k4 ci-dessous */

/* Cross-link big variant for tab Immo */
.wv2-c-cross-link--big {
  padding: 22px 24px;
}
.wv2-c-cross-link--big .wv2-c-cross-link__icon { font-size: 2rem; }
.wv2-c-cross-link--big .wv2-c-cross-link__body strong { font-size: 1.05rem; }

/* Stat block (immo info cards) */
.wv2-c-stat-block {
  padding: 18px 20px;
  background: linear-gradient(180deg, #f7fbfc 0%, #ffffff 100%);
  border: 1px solid var(--wv2-border-soft);
  border-radius: var(--wv2-radius);
}
.wv2-c-stat-block h3 {
  margin: 0 0 10px !important;
  color: var(--wv2-h2-color) !important;
  font-size: 1rem !important;
}
.wv2-c-stat-block p {
  margin: 0;
  color: var(--wv2-text-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* FAQ toggle all button */
.wv2-c-faq-toggle {
  padding: 8px 14px;
  background: var(--wv2-bg-soft);
  border: 1px solid var(--wv2-border);
  border-radius: 6px;
  color: var(--wv2-h2-color);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}
.wv2-c-faq-toggle:hover {
  background: var(--wv2-accent);
  color: #fff;
  border-color: var(--wv2-accent);
}

/* Tabs as <a> anchors (server-side fallback) */
a.wv2-c-tab { text-decoration: none; }
a.wv2-c-tab:hover { text-decoration: none; }

/* Tab scroll fade indicator mobile */
@media (max-width: 768px) {
  .wv2-c-tabs {
    position: relative;
    scroll-snap-type: x mandatory;
  }
  .wv2-c-tab { scroll-snap-align: start; }
  .wv2-c-pyramid-row {
    grid-template-columns: 90px 1fr 100px;
    gap: 8px;
  }
  .wv2-c-pyramid-label, .wv2-c-pyramid-value { font-size: 0.78rem; }
  .wv2-c-weather__forecast { margin-left: 0; flex-basis: 100%; }
}

/* === SP-02 k4 : Popchart fix + couleurs gradient + animations === */
.wv2-c-popchart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 220px;
  margin: 22px 0 8px;
  padding: 12px 8px 80px;
  background: linear-gradient(180deg, transparent 0%, rgba(30,115,190,0.03) 100%);
  border-bottom: 2px solid var(--wv2-border);
  border-radius: 8px 8px 0 0;
  position: relative;
}
.wv2-c-popbar {
  flex: 1;
  min-width: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}
.wv2-c-popbar b {
  display: block;
  width: 100%;
  min-height: 8px;
  background: linear-gradient(180deg, #4a9ad8 0%, #1e73be 100%);
  border-radius: 6px 6px 0 0;
  box-shadow: 0 -2px 6px rgba(30,115,190,0.25);
  transition: all 0.3s ease;
  position: relative;
}
.wv2-c-popbar:hover b {
  background: linear-gradient(180deg, #ffd580 0%, #f59e0b 100%);
  transform: scaleY(1.02);
  box-shadow: 0 -3px 10px rgba(245,158,11,0.35);
}
/* Colorisation par decennie */
.wv2-c-popbar:nth-child(1) b { background: linear-gradient(180deg, #fda4af 0%, #f43f5e 100%); box-shadow: 0 -2px 6px rgba(244,63,94,0.25); }
.wv2-c-popbar:nth-child(2) b { background: linear-gradient(180deg, #fcd34d 0%, #f59e0b 100%); box-shadow: 0 -2px 6px rgba(245,158,11,0.25); }
.wv2-c-popbar:nth-child(3) b { background: linear-gradient(180deg, #86efac 0%, #16a34a 100%); box-shadow: 0 -2px 6px rgba(22,163,74,0.25); }
.wv2-c-popbar:nth-child(4) b { background: linear-gradient(180deg, #5eead4 0%, #0d9488 100%); box-shadow: 0 -2px 6px rgba(13,148,136,0.25); }
.wv2-c-popbar:nth-child(5) b { background: linear-gradient(180deg, #93c5fd 0%, #2563eb 100%); box-shadow: 0 -2px 6px rgba(37,99,235,0.25); }
.wv2-c-popbar:nth-child(6) b { background: linear-gradient(180deg, #a5b4fc 0%, #4f46e5 100%); box-shadow: 0 -2px 6px rgba(79,70,229,0.25); }
.wv2-c-popbar:nth-child(7) b { background: linear-gradient(180deg, #c4b5fd 0%, #7c3aed 100%); box-shadow: 0 -2px 6px rgba(124,58,237,0.25); }
.wv2-c-popbar:nth-child(8) b { background: linear-gradient(180deg, #d8b4fe 0%, #9333ea 100%); box-shadow: 0 -2px 6px rgba(147,51,234,0.25); }
.wv2-c-popbar:nth-child(9) b { background: linear-gradient(180deg, #f0abfc 0%, #c026d3 100%); box-shadow: 0 -2px 6px rgba(192,38,211,0.25); }
.wv2-c-popbar:nth-child(10) b { background: linear-gradient(180deg, #f9a8d4 0%, #db2777 100%); box-shadow: 0 -2px 6px rgba(219,39,119,0.25); }
.wv2-c-popbar:nth-child(11) b { background: linear-gradient(180deg, #fda4af 0%, #be123c 100%); box-shadow: 0 -2px 6px rgba(190,18,60,0.25); }
.wv2-c-popbar:nth-child(12) b { background: linear-gradient(180deg, #ffd580 0%, #ea580c 100%); box-shadow: 0 -2px 6px rgba(234,88,12,0.25); }
.wv2-c-popbar span {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  color: var(--wv2-text);
  font-weight: 700;
  white-space: nowrap;
}
.wv2-c-popbar i {
  position: absolute;
  bottom: -54px;
  left: 50%;
  transform: translateX(-50%) rotate(-35deg);
  transform-origin: top center;
  font-style: normal;
  font-size: 0.7rem;
  color: var(--wv2-muted);
  font-weight: 600;
  white-space: nowrap;
}
.wv2-c-popbar:hover span { color: var(--wv2-accent); }
.wv2-c-popbar:hover i { color: var(--wv2-accent-dark); font-weight: 700; }

/* Big variant for demographie tab */
.wv2-c-popchart--big {
  height: 320px !important;
  padding: 16px 12px 90px !important;
}

/* Pyramid bars : couleurs par tranche age */
.wv2-c-pyramid-row:nth-child(1) .wv2-c-pyramid-bar { background: linear-gradient(90deg, #fda4af 0%, #f43f5e 100%); } /* 0-14 enfants : rose */
.wv2-c-pyramid-row:nth-child(2) .wv2-c-pyramid-bar { background: linear-gradient(90deg, #fcd34d 0%, #f59e0b 100%); } /* 15-29 jeunes : orange */
.wv2-c-pyramid-row:nth-child(3) .wv2-c-pyramid-bar { background: linear-gradient(90deg, #86efac 0%, #16a34a 100%); } /* 30-44 actifs : vert */
.wv2-c-pyramid-row:nth-child(4) .wv2-c-pyramid-bar { background: linear-gradient(90deg, #93c5fd 0%, #2563eb 100%); } /* 45-59 actifs : bleu */
.wv2-c-pyramid-row:nth-child(5) .wv2-c-pyramid-bar { background: linear-gradient(90deg, #c4b5fd 0%, #7c3aed 100%); } /* 60-74 seniors : violet */
.wv2-c-pyramid-row:nth-child(6) .wv2-c-pyramid-bar { background: linear-gradient(90deg, #f9a8d4 0%, #db2777 100%); } /* 75+ : magenta */

/* CSP grid : couleurs par categorie */
.wv2-c-csp:nth-child(1) strong { color: #16a34a; } /* Agri vert */
.wv2-c-csp:nth-child(2) strong { color: #f59e0b; } /* Artisans orange */
.wv2-c-csp:nth-child(3) strong { color: #2563eb; } /* Cadres bleu */
.wv2-c-csp:nth-child(4) strong { color: #0d9488; } /* Inter teal */
.wv2-c-csp:nth-child(5) strong { color: #7c3aed; } /* Employes violet */
.wv2-c-csp:nth-child(6) strong { color: #db2777; } /* Ouvriers magenta */
.wv2-c-csp:nth-child(7) strong { color: #ea580c; } /* Retraites orange */
.wv2-c-csp:nth-child(8) strong { color: #64748b; } /* Autres gris */

/* Stat cards en vedette */
.wv2-c-stat strong { background: linear-gradient(135deg, var(--wv2-accent) 0%, var(--wv2-accent-dark) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-size: 2.1rem; }

/* Hero stats colorees */
.wv2-c-stats li {
  background: linear-gradient(135deg, var(--wv2-bg-soft) 0%, #ffffff 100%);
  border: 1px solid var(--wv2-border);
  border-radius: var(--wv2-radius);
  padding: 14px 16px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wv2-c-stats li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30,115,190,0.15);
}
.wv2-c-stats li:nth-child(1) strong { color: #16a34a; }
.wv2-c-stats li:nth-child(2) strong { color: #f59e0b; }
.wv2-c-stats li:nth-child(3) strong { color: #7c3aed; }
.wv2-c-stats li:nth-child(4) strong { color: #1e73be; }

/* Pills colorees */
.wv2-c-pills span { transition: transform 0.15s; }
.wv2-c-pills span:hover { transform: scale(1.03); }

/* Cards icones */
.wv2-c-card h2::first-letter { /* fallback */ }

/* Card border accent gradient on hover */
.wv2-c-card { transition: border-color 0.2s, box-shadow 0.2s; }
.wv2-c-card:hover { border-color: #bae6fd; box-shadow: 0 4px 16px rgba(30,115,190,0.08); }

/* Tabs : gradient bottom border on active */
.wv2-c-tab.is-active {
  background: linear-gradient(180deg, transparent 0%, rgba(30,115,190,0.05) 100%);
}

/* Cross-link big : gradient hover */
.wv2-c-cross-link--big {
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.wv2-c-cross-link--big::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #1e73be 0%, #16a34a 100%);
  transition: width 0.25s;
}
.wv2-c-cross-link--big:hover::before { width: 6px; }
.wv2-c-cross-link--big:hover {
  border-color: var(--wv2-accent);
  box-shadow: 0 6px 20px rgba(30,115,190,0.15);
  transform: translateY(-2px);
}

/* Ratios cards : gradient */
.wv2-c-ratio {
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
  border: 1px solid #bae6fd;
}
.wv2-c-ratio b { background: linear-gradient(135deg, var(--wv2-accent) 0%, #0d9488 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* === SP-02 k5 : DVF iframe + price stats === */
.wv2-c-dvf-frame {
  position: relative;
  width: 100%;
  height: 560px;
  margin-top: 12px;
  border-radius: var(--wv2-radius);
  overflow: hidden;
  border: 1px solid var(--wv2-border);
  background: #f0f9ff;
  box-shadow: 0 2px 8px rgba(30,115,190,0.08);
}
.wv2-c-dvf-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 768px) {
  .wv2-c-dvf-frame { height: 460px; }
}

/* Stat cards prix immo - couleurs differenciees */
.wv2-c-stat--price {
  padding: 18px 14px;
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  border: 1px solid #fcd34d;
  border-radius: var(--wv2-radius);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wv2-c-stat--price:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(245,158,11,0.2);
}
.wv2-c-stat__emoji {
  font-size: 1.8rem;
  margin-bottom: 2px;
}
.wv2-c-stat--price strong {
  font-size: 1.6rem !important;
  font-weight: 800;
  color: #92400e !important;
  background: none !important;
  -webkit-text-fill-color: #92400e !important;
}
.wv2-c-stat--price span {
  font-size: 0.82rem;
  color: #78716c;
  font-weight: 600;
}
.wv2-c-stat--price em {
  font-size: 0.74rem;
  font-style: normal;
  color: var(--wv2-muted);
  margin-top: 2px;
}
.wv2-c-stat--price:nth-child(3),
.wv2-c-stat--price:nth-child(4) {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  border-color: #93c5fd;
}
.wv2-c-stat--price:nth-child(3) strong,
.wv2-c-stat--price:nth-child(4) strong {
  color: #1e40af !important;
  -webkit-text-fill-color: #1e40af !important;
}

/* Search form button fix - bigger touch target */
.wv2-c-search { display: flex; gap: 8px; margin-top: 12px; }
.wv2-c-search form { display: flex; flex: 1; gap: 8px; }
.wv2-c-search input[type=search] { flex: 1; min-width: 0; }

/* === SP-02 k6 : Conseil municipal block === */
.wv2-c-mayor {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 22px;
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  border: 2px solid #fcd34d;
  border-radius: var(--wv2-radius);
}
.wv2-c-mayor__icon {
  font-size: 3rem;
  line-height: 1;
}
.wv2-c-mayor__body { flex: 1; }
.wv2-c-mayor__body strong {
  display: block;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #92400e;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.wv2-c-mayor__body h3 {
  margin: 4px 0 !important;
  font-size: 1.5rem !important;
  color: var(--wv2-h1-color) !important;
}
.wv2-c-mayor__body em {
  display: block;
  color: var(--wv2-text-soft);
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 2px;
}

/* Shared map slots : ensure correct dimensions */
.wv2-c-map-slot {
  position: relative;
  min-height: 480px;
  margin-top: 14px;
  border-radius: var(--wv2-radius);
  overflow: hidden;
  border: 1px solid var(--wv2-border);
  background: #f0f9ff;
}
.wv2-c-map-slot #wv2-shared-map {
  width: 100% !important;
  height: 480px !important;
}
.wv2-c-map-slot.is-fullscreen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  margin: 0;
  background: #fff;
  padding: 12px;
  min-height: 100vh;
}
.wv2-c-map-slot.is-fullscreen #wv2-shared-map {
  height: calc(100vh - 24px) !important;
}

/* === SP-02 k9 : Map controls + hidden state === */
.wv2-c-map-controls {
  position: absolute;
  top: 88px;
  left: 10px;
  z-index: 401;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wv2-c-map-btn {
  background: #fff;
  border: 2px solid rgba(0,0,0,.2);
  border-radius: 6px;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  transition: background 0.15s, transform 0.15s;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
}
.wv2-c-map-btn:hover {
  background: var(--wv2-accent);
  color: #fff;
  transform: scale(1.08);
}
.wv2-c-map-shell.is-hidden { min-height: 0 !important; }
.wv2-c-map-shell.is-hidden #wv2-shared-map { display: none; }
.wv2-c-map-shell.is-hidden { padding: 8px; background: transparent; border: 1px dashed var(--wv2-border); text-align: center; }
.wv2-c-map-shell.is-hidden::before {
  content: '🗺️ Carte masquée — cliquez sur le bouton pour la réafficher';
  display: block;
  color: var(--wv2-muted);
  font-size: 0.85rem;
  padding: 12px;
}

/* Choropleth quartier labels : contour blanc autour du texte (no background) */
.wv2-c-quartier-label {
  pointer-events: none;
  background: transparent !important;
  border: none !important;
  text-align: center;
}
.wv2-c-quartier-label > span {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  text-shadow:
    -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff,
    -2px 0 0 #fff, 2px 0 0 #fff, 0 -2px 0 #fff, 0 2px 0 #fff,
    0 0 4px rgba(255,255,255,.85);
  /* Bonus chrome : stroke pour navigateurs modernes */
  -webkit-text-stroke: 0.5px rgba(255,255,255,0.7);
  paint-order: stroke fill;
  letter-spacing: -0.01em;
}

/* === SP-Q : Alignement UX quartier sur villes (hero stats colorisees + commentaires + TOC) === */

/* Hero quartier : gradient kicker + stats colorisees */
body.wv2-qdetail .wv2-hero {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border-radius: var(--wv2-radius);
  padding: 24px 28px !important;
  border: 1px solid var(--wv2-border-soft);
  margin-bottom: var(--wv2-sp-5);
}
body.wv2-qdetail .wv2-eyebrow {
  color: var(--wv2-pink) !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin: 0 0 8px !important;
}
body.wv2-qdetail .wv2-eyebrow a {
  color: var(--wv2-pink);
  text-decoration: none;
  border-bottom: 1.5px dashed rgba(194,18,106,0.3);
  transition: border-color 0.2s, color 0.2s;
}
body.wv2-qdetail .wv2-eyebrow a:hover {
  color: var(--wv2-accent);
  border-bottom-color: var(--wv2-accent);
}

/* Stats hero colorisees par tier (comme villes) */
body.wv2-qdetail .wv2-stats {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
  margin-top: 18px !important;
}
body.wv2-qdetail .wv2-stat {
  background: linear-gradient(135deg, var(--wv2-bg-soft) 0%, #ffffff 100%) !important;
  border: 1px solid var(--wv2-border) !important;
  border-radius: var(--wv2-radius) !important;
  padding: 14px 16px !important;
  text-align: center !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
body.wv2-qdetail .wv2-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30,115,190,0.15);
}
body.wv2-qdetail .wv2-stats .wv2-stat:nth-child(1) strong { color: #c2126a !important; }
body.wv2-qdetail .wv2-stats .wv2-stat:nth-child(2) strong { color: #16a34a !important; }
body.wv2-qdetail .wv2-stats .wv2-stat:nth-child(3) strong { color: #f59e0b !important; }
body.wv2-qdetail .wv2-stats .wv2-stat:nth-child(4) strong { color: #1e73be !important; }
body.wv2-qdetail .wv2-stat strong {
  display: block !important;
  font-size: 1.7rem !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}
body.wv2-qdetail .wv2-stat span {
  display: block !important;
  color: var(--wv2-muted) !important;
  font-size: 0.78rem !important;
  margin-top: 4px !important;
}

/* Commentary callout (cf villes wv2-c-text avec border-left coloree) */
.wv2-q-comment {
  margin: 16px 0 !important;
  padding: 12px 16px !important;
  border-radius: 6px !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}
.wv2-q-comment--blue {
  background: linear-gradient(135deg, #f0f9ff 0%, #fff 100%) !important;
  border-left: 3px solid var(--wv2-accent) !important;
}
.wv2-q-comment--orange {
  background: linear-gradient(135deg, #fef3c7 0%, #fff 100%) !important;
  border-left: 3px solid #f59e0b !important;
}
.wv2-q-comment--green {
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%) !important;
  border-left: 3px solid var(--wv2-success) !important;
}
.wv2-q-comment--pink {
  background: linear-gradient(135deg, #fdf2f8 0%, #fff 100%) !important;
  border-left: 3px solid var(--wv2-pink) !important;
}
.wv2-q-comment--purple {
  background: linear-gradient(135deg, #f5f3ff 0%, #fff 100%) !important;
  border-left: 3px solid #7c3aed !important;
}

/* TOC sticky sidebar */
.wv2-q-toc {
  position: sticky;
  top: 16px;
  background: #fff;
  border: 1px solid var(--wv2-border);
  border-radius: var(--wv2-radius);
  padding: 12px 14px;
  font-size: 0.84rem;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-shadow: var(--wv2-shadow-sm);
}
.wv2-q-toc__title {
  font-size: 0.74rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--wv2-h3-color);
  margin: 0 0 8px;
}
.wv2-q-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.wv2-q-toc li {
  margin: 0;
  padding: 4px 0;
  border-bottom: 1px solid var(--wv2-border-soft);
}
.wv2-q-toc li:last-child { border-bottom: 0; }
.wv2-q-toc a {
  color: var(--wv2-text);
  text-decoration: none;
  display: block;
  transition: color 0.15s, padding-left 0.15s;
}
.wv2-q-toc a:hover {
  color: var(--wv2-accent);
  padding-left: 4px;
}
.wv2-q-toc a.is-active {
  color: var(--wv2-accent);
  font-weight: 700;
}

/* Back to top button */
.wv2-q-back-top {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  background: var(--wv2-accent);
  color: #fff;
  border: 0;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30,115,190,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
.wv2-q-back-top.is-visible { display: flex; }
.wv2-q-back-top:hover { background: var(--wv2-accent-dark); transform: translateY(-2px); }

/* Quartier insight cards : gradient hover (cf villes) */
body.wv2-qdetail .wv2-insight-card,
body.wv2-qdetail .wv2-data-panel {
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
body.wv2-qdetail .wv2-insight-card:hover,
body.wv2-qdetail .wv2-data-panel:hover {
  border-color: #bae6fd;
  box-shadow: 0 4px 16px rgba(30,115,190,0.08);
  transform: translateY(-2px);
}

/* Hero h1 : adopter style commune (gradient + couleurs) */
body.wv2-qdetail h1 {
  color: var(--wv2-h1-color) !important;
  font-size: var(--wv2-fs-h1) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  margin: 0 0 12px !important;
}
@media (max-width: 800px) {
  body.wv2-qdetail .wv2-stats { grid-template-columns: repeat(2, 1fr) !important; }
  body.wv2-qdetail h1 { font-size: 1.7rem !important; }
}

/* === Tooltip courbe quartier === */
.wv2-curve-hit { cursor: pointer; pointer-events: all; fill: transparent !important; stroke: none !important; }
.wv2-curve-hit:hover { fill: rgba(194,18,106,0.12) !important; stroke: none !important; }
.wv2-curve-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 50;
  padding: 8px 12px;
  background: #fff;
  border: 2px solid var(--wv2-pink);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  font-size: 0.84rem;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s;
  max-width: 220px;
}
.wv2-curve-tooltip strong {
  color: var(--wv2-pink);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}
.wv2-curve-tooltip em {
  color: var(--wv2-muted);
  font-style: normal;
  font-size: 0.78rem;
}
.wv2-curve-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.wv2-qdetail .wv2-city-curve circle.wv2-curve-hit { fill: transparent !important; stroke: none !important; }
body.wv2-qdetail .wv2-city-curve circle.wv2-curve-hit:hover { fill: rgba(194,18,106,0.12) !important; stroke: none !important; }


/* === Footer hubs (SP sitemaps 2026-05-16 v2 - high specificity) === */
body .wv2-footer .wv2-footer-hubs,
.wv2-footer .wv2-footer-hubs {
    margin: 22px 0 14px !important;
    padding: 18px 0 16px !important;
    border-top: 1px solid rgba(255,255,255,.18) !important;
    border-bottom: 1px solid rgba(255,255,255,.18) !important;
    text-align: center !important;
}
body .wv2-footer .wv2-footer-hubs__title,
.wv2-footer .wv2-footer-hubs__title {
    color: #ffd580 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .12em !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    text-align: center !important;
    background: none !important;
    border: none !important;
}
body .wv2-footer .wv2-footer-hubs__list,
.wv2-footer .wv2-footer-hubs__list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: center !important;
    align-items: center !important;
}
body .wv2-footer .wv2-footer-hubs__list li,
.wv2-footer .wv2-footer-hubs__list li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: inline-block !important;
}
body .wv2-footer .wv2-footer-hubs__list li::before,
.wv2-footer .wv2-footer-hubs__list li::before {
    content: none !important;
    display: none !important;
}
body .wv2-footer .wv2-footer-hubs__list a,
.wv2-footer .wv2-footer-hubs__list a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 7px 14px !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.10) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: background .15s ease, color .15s ease, border-color .15s ease !important;
    line-height: 1.2 !important;
    text-shadow: none !important;
}
body .wv2-footer .wv2-footer-hubs__list a:hover,
.wv2-footer .wv2-footer-hubs__list a:hover,
.wv2-footer .wv2-footer-hubs__list a:focus {
    background: #ffd580 !important;
    color: #2b4a4e !important;
    border-color: #ffd580 !important;
    text-decoration: none !important;
}
@media (max-width: 600px) {
    body .wv2-footer .wv2-footer-hubs__list,
    .wv2-footer .wv2-footer-hubs__list { gap: 6px !important; }
    body .wv2-footer .wv2-footer-hubs__list a,
    .wv2-footer .wv2-footer-hubs__list a { font-size: 13px !important; padding: 5px 10px !important; }
}

/* === P2-2 polish (2026-05-17) : content-visibility pour tabs hors-ecran === */
/* Gain LCP/CLS : browser skip layout/paint pour panels caches jusqu'au scroll */
.wv2-c-panel:not(.is-active) {
    content-visibility: auto;
    contain-intrinsic-size: 1px 800px;
}
/* Si user JS pas charge, fallback : tous visibles (deja gere par is-active class only) */
