/* ───────────────────────────────
   PAGES DE TERRITOIRE (zones)
─────────────────────────────── */
.zone-hero { padding: 40px 0 26px; }
.zone-hero-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #EA6A0A; margin-bottom: 12px;
}
.zone-hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.zone-hero-intro { margin-top: 16px; color: #4B5563; font-size: 1.05rem; line-height: 1.65; }

.zone-stats { padding: 8px 0 20px; }
.zone-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.zone-stat {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px;
  padding: 22px 24px;
}
.zone-stat-label { font-size: 0.82rem; color: var(--text-light); font-weight: 600; }
.zone-stat-val { font-size: 2rem; font-weight: 800; color: var(--primary); margin-top: 6px; letter-spacing: -0.02em; }
.zone-stat-val small { font-size: 0.9rem; font-weight: 600; color: var(--text-light); }
.zone-stat-range { font-size: 0.8rem; color: var(--text-light); margin-top: 6px; }
.zone-note { font-size: 0.78rem; color: var(--text-light); margin-top: 14px; line-height: 1.5; }

.zone-liens { padding: 20px 0 56px; }
.zone-liens-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.zone-lien-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 22px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.zone-lien-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.zone-lien-nom { font-weight: 700; color: var(--primary); }
.zone-lien-desc { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; }
.zone-lien-card--all { background: var(--bg-alt); }

@media (max-width: 860px) {
  .zone-stats-grid { grid-template-columns: 1fr; }
  .zone-liens-grid { grid-template-columns: 1fr; }
}

/* ───────────────────────────────
   VARIABLES
─────────────────────────────── */
:root {
  --primary:       #1C1C1E;
  --accent:        #F97316;
  --accent-dark:   #EA6A0A;
  --bg:            #FFFFFF;
  --bg-alt:        #F5F7FA;
  --bg-dark:       #1C1C1E;
  --text:          #1C1C1E;
  --text-light:    #6B7280;
  --text-inverse:  #FFFFFF;
  --border:        rgba(28, 28, 30, 0.1);
  --shadow-sm:     0 1px 3px rgba(28, 28, 30, 0.08);
  --shadow-md:     0 4px 16px rgba(28, 28, 30, 0.1);
  --radius:        8px;
  --max-width:     1200px;
  --font:          'Plus Jakarta Sans', system-ui, sans-serif;
}

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

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ───────────────────────────────
   HEADER
─────────────────────────────── */
.site-header {
  background: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 40px;
}

.site-logo {
  display: flex;
  align-items: baseline;
  gap: 1px;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.logo-m2   { color: var(--accent); }
.logo-drome { color: #FFFFFF; }
.logo-tld  { color: rgba(255,255,255,0.4); font-size: 0.85rem; font-weight: 500; }

.site-logo img { height: 42px; width: auto; display: block; }
.site-logo-footer img { height: 50px; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav > ul > li > a {
  display: block;
  padding: 7px 16px;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0.01em;
}

.site-nav > ul > li > a:hover {
  color: #FFFFFF;
  background: rgba(255,255,255,0.07);
}

.site-nav > ul > li > a.active {
  color: #FFFFFF;
  font-weight: 600;
  background: rgba(255,255,255,0.1);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ───────────────────────────────
   FIL D'ARIANE
─────────────────────────────── */
.fil-ariane {
  padding: 9px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.fil-ariane ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-light);
}
.fil-ariane li { display: flex; align-items: center; }
.fil-ariane li + li::before {
  content: '›';
  margin: 0 8px;
  color: #D1D5DB;
  font-size: 1rem;
  line-height: 1;
}
.fil-ariane a { color: var(--text-light); transition: color 0.15s; }
.fil-ariane a:hover { color: var(--accent); }
.fil-ariane li:last-child { color: var(--primary); font-weight: 600; font-size: 0.78rem; }

/* ───────────────────────────────
   BANDEAU PAGE
─────────────────────────────── */
.bandeau-page {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: 48px 0 40px;
}
.bandeau-page h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.bandeau-page .bandeau-intro {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.6;
}
.bandeau-page .bandeau-source {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ───────────────────────────────
   STATS CLÉS
─────────────────────────────── */
.stats-principales {
  padding: 48px 0;
  background: var(--bg);
}
.stats-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.stat-bloc {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  transition: box-shadow 0.15s;
}
.stat-bloc:hover { box-shadow: var(--shadow-md); }
.stat-bloc::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: var(--radius) var(--radius) 0 0;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 10px;
}
.stat-valeur {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-valeur span { font-size: 1rem; font-weight: 600; color: var(--text-light); }
.stat-evolution {
  font-size: 0.82rem;
  font-weight: 600;
}
.stat-evolution.hausse { color: #16A34A; }
.stat-evolution.baisse { color: #DC2626; }
.stat-evolution.stable { color: var(--text-light); }
.stat-detail {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ───────────────────────────────
   TABLEAU DONNÉES
─────────────────────────────── */
.section-tableau {
  padding: 48px 0;
  background: var(--bg-alt);
}
.section-titre {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.section-sous-titre {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

.tableau-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
thead th {
  background: var(--primary);
  color: var(--text-inverse);
  padding: 13px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
thead th:first-child { border-radius: 0; }
tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-alt); }
tbody td {
  padding: 13px 16px;
  color: var(--text);
  white-space: nowrap;
}
tbody td:first-child { font-weight: 600; }
.td-ville a { color: var(--accent); font-weight: 700; }
.td-ville a:hover { text-decoration: underline; }
.td-evolution { font-weight: 600; }
.td-evolution.hausse { color: #16A34A; }
.td-evolution.baisse { color: #DC2626; }
.td-evolution.stable { color: var(--text-light); }

/* ───────────────────────────────
   CARTE LEAFLET
─────────────────────────────── */
.section-carte {
  padding: 48px 0;
  background: var(--bg);
}
#carte-drome {
  height: 500px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

/* ───────────────────────────────
   GRILLE VILLES
─────────────────────────────── */
.section-villes {
  padding: 48px 0;
  background: var(--bg-alt);
}
.grille-villes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.carte-ville {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow 0.15s, border-color 0.15s;
  display: block;
}
.carte-ville:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.carte-ville-nom {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.carte-ville-prix {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.carte-ville-prix span { font-size: 0.78rem; font-weight: 500; color: var(--text-light); }
.carte-ville-type {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ───────────────────────────────
   GRAPHIQUE
─────────────────────────────── */
.section-graphique {
  padding: 48px 0;
  background: var(--bg);
}
.graphique-wrapper {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.graphique-wrapper canvas { max-height: 320px; }

/* ───────────────────────────────
   BLOCS GUIDE / ENCADRÉ
─────────────────────────────── */
.bloc-info {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px;
  margin: 28px 0;
  font-size: 0.9rem;
}
.bloc-info strong { display: block; margin-bottom: 4px; }

/* ───────────────────────────────
   CONTENU ARTICLE
─────────────────────────────── */
.contenu-page {
  padding: 48px 0;
}
.contenu-page h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 40px;
  margin-bottom: 14px;
}
.contenu-page h2:first-child { margin-top: 0; }
.contenu-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 10px;
}
.contenu-page p { margin-bottom: 16px; }
.contenu-page ul, .contenu-page ol {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
}
.contenu-page ul li, .contenu-page ol li { margin-bottom: 6px; }

/* ───────────────────────────────
   FOOTER
─────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.65);
  padding: 0 0 0;
  border-top: 3px solid var(--accent);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 3fr;
  gap: 56px;
  padding: 56px 0 44px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .site-logo-footer img { height: 46px; }
.footer-brand p {
  margin-top: 16px;
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
}
.footer-brand-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; padding: 7px 14px;
  background: rgba(249,115,22,0.12); border: 1px solid rgba(249,115,22,0.3);
  border-radius: 999px; font-size: 0.76rem; font-weight: 600; color: #FDBA74;
}
.footer-brand-badge svg { width: 15px; height: 15px; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px 20px;
}
@media (max-width: 1180px) {
  .footer-nav { grid-template-columns: repeat(3, 1fr); }
}
.footer-nav-col h3 {
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.footer-nav-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-col a {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s, padding-left 0.15s;
}
.footer-nav-col a:hover { color: #FFFFFF; padding-left: 3px; }
.footer-lien-tout { color: var(--accent) !important; font-weight: 600; }
.footer-lien-tout:hover { color: #FDBA74 !important; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-source {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.footer-legal a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.15s;
}
.footer-legal a:hover { color: #FFFFFF; }
.footer-credit { font-size: 0.78rem; color: rgba(255,255,255,0.4); border-left: 1px solid rgba(255,255,255,0.15); padding-left: 20px; }
.footer-credit a { color: rgba(255,255,255,0.6); }
.footer-credit a:hover { color: #FFFFFF; }

/* ── Menu déroulant de navigation (Outils) ── */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop-tete {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 0; cursor: pointer; font-family: var(--font);
  padding: 7px 16px; border-radius: 6px;
  color: rgba(255,255,255,0.7); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.01em;
  transition: color 0.15s, background 0.15s;
}
.nav-drop-tete:hover { color: #FFFFFF; background: rgba(255,255,255,0.07); }
.nav-drop-caret { font-size: 0.6rem; transition: transform 0.2s; }
.nav-drop:hover .nav-drop-caret, .nav-drop:focus-within .nav-drop-caret { transform: rotate(180deg); }
.nav-drop-panneau {
  position: absolute; top: 100%; left: 50%;
  min-width: 210px; display: flex; flex-direction: column;
  background: #26262A; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 7px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(8px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.nav-drop-panneau::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-drop:hover .nav-drop-panneau, .nav-drop:focus-within .nav-drop-panneau {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-drop-panneau a {
  padding: 9px 14px; border-radius: 6px; white-space: nowrap;
  color: rgba(255,255,255,0.72); font-size: 0.85rem; font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.nav-drop-panneau a:hover { background: rgba(249,115,22,0.14); color: #FFFFFF; }

/* ───────────────────────────────
   ACCROCHE HOMEPAGE
─────────────────────────────── */
.accroche-drome {
  padding: 60px 0 48px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.accroche-grille {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.accroche-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}
.accroche-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.accroche-texte h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text);
}
.accroche-texte p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}
.accroche-texte .lien-carte {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 1px;
}
.accroche-stats-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.accroche-stat {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.accroche-stat::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
}
.accroche-stat .stat-label  { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); margin-bottom: 8px; }
.accroche-stat .stat-valeur { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 4px; }
.accroche-stat .stat-valeur span { font-size: 0.85rem; font-weight: 500; color: var(--text-light); }
.accroche-stat .stat-evolution { font-size: 0.78rem; font-weight: 600; }

/* ───────────────────────────────
   CARTE HOMEPAGE
─────────────────────────────── */
.section-carte-principale {
  padding: 56px 0;
  background: var(--bg-alt);
}
.carte-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}
#carte-drome-principale {
  height: 560px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 1;
}
.carte-legende {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.carte-legende-titre {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.carte-legende-barre {
  display: flex;
  align-items: center;
  gap: 8px;
}
.carte-legende-gradient {
  width: 120px;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(to right, #22C55E, #EAB308, #DC2626);
}
.carte-legende-labels {
  display: flex;
  justify-content: space-between;
  width: 120px;
  font-size: 0.72rem;
  color: var(--text-light);
}
.carte-note {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 10px;
}
.carte-note a { color: var(--text-light); text-decoration: underline; }

/* ───────────────────────────────
   GRILLE GUIDES
─────────────────────────────── */
.section-guides {
  padding: 56px 0;
  background: var(--bg);
}
.grille-guides {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.bloc-guide {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.bloc-guide:hover { box-shadow: var(--shadow-md); border-color: var(--accent); }
.bloc-guide-icone {
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  background: var(--bg-alt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bloc-guide h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.bloc-guide p  { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; flex: 1; }
.bloc-guide a  { font-size: 0.85rem; font-weight: 600; color: var(--accent); }

/* ───────────────────────────────
   SECTION CONFIANCE / DVF
─────────────────────────────── */
.section-dvf {
  padding: 56px 0;
  background: var(--bg-dark);
  color: var(--text-inverse);
}
.section-dvf h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.section-dvf p {
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
  line-height: 1.7;
}
.dvf-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.dvf-bloc {
  padding: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
}
.dvf-bloc strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.dvf-bloc span {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}
.contenu-page .dvf-bloc {
  background: #ffffff;
  border: 1px solid var(--border);
}
.contenu-page .dvf-bloc span {
  color: var(--text-light);
}

/* ───────────────────────────────
   PAGE CONTENU (guides, analyses)
─────────────────────────────── */
.page-contenu-grille {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.sidebar-contenu {
  position: sticky;
  top: 88px;
}
.sidebar-bloc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.sidebar-bloc h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  margin-bottom: 12px;
}
.sidebar-liens { display: flex; flex-direction: column; gap: 6px; }
.sidebar-liens a {
  font-size: 0.85rem;
  color: var(--text);
  padding: 6px 8px;
  border-radius: 5px;
  transition: background 0.12s;
}
.sidebar-liens a:hover { background: var(--border); }

/* Responsive homepage */
@media (max-width: 900px) {
  .accroche-grille { grid-template-columns: 1fr; gap: 32px; }
  .grille-guides   { grid-template-columns: repeat(2, 1fr); }
  .dvf-grille      { grid-template-columns: 1fr 1fr; }
  .page-contenu-grille { grid-template-columns: 1fr; }
  .sidebar-contenu { position: static; }
}
@media (max-width: 640px) {
  .grille-guides { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .accroche-stats-grille { grid-template-columns: 1fr; }
  .dvf-grille { grid-template-columns: 1fr; }
  #carte-drome-principale { height: 380px; }
}

/* ───────────────────────────────
   404
─────────────────────────────── */
.erreur-404 {
  padding: 80px 20px;
  text-align: center;
}
.erreur-404-inner { max-width: 520px; margin: 0 auto; }
.erreur-code {
  display: block;
  font-size: 6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 16px;
}
.erreur-404 h1 { font-size: 1.6rem; margin-bottom: 12px; }
.erreur-404 p { color: var(--text-light); margin-bottom: 32px; }
.btn-retour {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.15s;
  margin-bottom: 48px;
}
.btn-retour:hover { background: var(--accent-dark); }
.erreur-suggestions h2 { font-size: 1rem; color: var(--text-light); margin-bottom: 12px; }
.erreur-suggestions ul { display: flex; flex-direction: column; gap: 8px; }
.erreur-suggestions a { color: var(--accent); text-decoration: underline; font-size: 0.9rem; }

/* ───────────────────────────────
   UTILITAIRES COULEURS
─────────────────────────────── */
strong.hausse { color: #16A34A; }
strong.baisse { color: #DC2626; }
strong.neutre { color: var(--text-light); }

/* Liens dans les sections de contenu éditorial */
.contenu-page a,
.faq-r a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.contenu-page a:hover,
.faq-r a:hover { color: var(--accent-dark); }

/* ───────────────────────────────
   CONTEXTE VILLE
─────────────────────────────── */
.section-contexte { padding: 48px 0; background: var(--bg); }
.contexte-grille {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.contexte-titre {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--primary);
}
.contexte-texte p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 10px;
}
.contexte-chiffres {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 22px;
  border-left: 3px solid var(--accent);
}
.contexte-chiffre-titre {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 12px;
}
.contexte-chiffre-item {
  display: flex;
  flex-direction: column;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.contexte-chiffre-item:last-child { border-bottom: none; }
.contexte-chiffre-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.contexte-chiffre-label {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* ───────────────────────────────
   BUDGET CONCRET
─────────────────────────────── */
.section-budget { padding: 56px 0; background: var(--bg); }
.budget-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.budget-item {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 18px 20px;
  border: 1.5px solid var(--border);
  border-top: 3px solid var(--border);
  transition: border-color 0.15s;
}
.budget-item.accent-item {
  border-top-color: var(--accent);
  background: #FFF7ED;
}
.budget-item-type {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  margin-bottom: 8px;
}
.budget-item-montant {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  margin-bottom: 5px;
}
.budget-item.accent-item .budget-item-montant { color: var(--accent); }
.budget-item-fourchette {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.5;
}
.budget-note {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ───────────────────────────────
   FAQ
─────────────────────────────── */
.section-faq { padding: 56px 0; background: var(--bg-alt); }
.faq-liste {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}
.faq-item {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 17px 20px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  line-height: 1.4;
}
.faq-q::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item.open .faq-q { background: #FFF7ED; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-r {
  display: none;
  padding: 14px 20px 18px;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-light);
  border-top: 1px solid var(--border);
}
.faq-item.open .faq-r { display: block; }
.faq-r a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ───────────────────────────────
   LIENS VILLES (tags)
─────────────────────────────── */
.lien-ville-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.lien-ville-tag:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ───────────────────────────────
   CARTE TRANSACTIONS (page ville)
─────────────────────────────── */
.section-carte-transactions {
  padding: 56px 0;
  background: var(--bg-alt);
}
.carte-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.carte-filtres {
  display: flex;
  gap: 8px;
}
.filtre-btn {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-light);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filtre-btn.active,
.filtre-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.carte-legende {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.legende-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
}
.legende-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.12);
  display: inline-block;
  flex-shrink: 0;
}
.legende-note {
  font-size: 0.72rem;
  color: #9CA3AF;
  font-style: italic;
}
#carte-tx-map {
  height: 520px;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.carte-source {
  font-size: 0.74rem;
  color: #9CA3AF;
  margin-top: 8px;
  text-align: right;
}
.popup-tx { font-family: var(--font); min-width: 190px; }
.popup-tx-type { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #6B7280; margin-bottom: 4px; }
.popup-tx-prix { font-size: 1.25rem; font-weight: 800; color: var(--accent); margin-bottom: 3px; }
.popup-tx-detail { font-size: 0.82rem; color: var(--text); margin-bottom: 3px; }
.popup-tx-date { font-size: 0.75rem; color: #9CA3AF; }

/* ───────────────────────────────
   RESPONSIVE
─────────────────────────────── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .stats-grille { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  html { font-size: 16px; }

  .site-nav {
    display: none;
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--bg-dark);
    padding: 20px;
    overflow-y: auto;
    z-index: 99;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav > ul > li > a { color: rgba(255,255,255,0.85); padding: 14px 16px; width: 100%; font-size: 1rem; }

  /* Menu Outils : aplati dans le menu mobile */
  .nav-drop { display: block; }
  .nav-drop-tete { display: none; }
  .nav-drop-panneau {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: flex; min-width: 0; background: none; border: 0; border-radius: 0;
    padding: 0; box-shadow: none;
  }
  .nav-drop-panneau::before { display: none; }
  .nav-drop-panneau a { color: rgba(255,255,255,0.85); padding: 14px 16px; font-size: 1rem; }

  .burger { display: flex; }
  .grille-villes { grid-template-columns: repeat(2, 1fr); }
  .footer-nav { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
  #carte-drome { height: 360px; }
  #carte-tx-map { height: 380px; }
  .carte-controls { flex-direction: column; align-items: flex-start; }
  .contexte-grille { grid-template-columns: 1fr; }
  .budget-grille { grid-template-columns: repeat(2, 1fr); }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-credit { border-left: none; padding-left: 0; }
}

@media (max-width: 420px) {
  .stats-grille { grid-template-columns: 1fr; }
  .grille-villes { grid-template-columns: 1fr; }
  .budget-grille { grid-template-columns: 1fr; }
}

/* ───────────────────────────────
   PAGES VILLE — NOUVELLE GÉNÉRATION
─────────────────────────────── */

.container-narrow {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Bandeau top ── */
.page-top {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: 40px 0 36px;
}
.page-top h1 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 8px 0 12px;
}

/* ── Breadcrumb (dark context) ── */
.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before {
  content: '›';
  margin: 0 8px;
  color: rgba(255,255,255,0.2);
  font-size: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color 0.15s; }
.breadcrumb a:hover { color: rgba(255,255,255,0.85); }
.breadcrumb li:last-child { color: rgba(255,255,255,0.65); }

.intro-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.58);
  line-height: 1.75;
  margin-bottom: 28px;
}

/* ── KPI row ── */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.kpi-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.kpi-card.kpi-main {
  background: rgba(249,115,22,0.14);
  border-color: rgba(249,115,22,0.38);
}
.kpi-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.42);
}
.kpi-value {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
}
.kpi-value small { font-size: 0.8rem; font-weight: 500; color: rgba(255,255,255,0.5); }
.kpi-value em { font-style: italic; font-size: 0.85rem; font-weight: 400; color: rgba(255,255,255,0.38); }
.kpi-evol { font-size: 0.76rem; font-weight: 600; }
.kpi-evol.hausse { color: #4ADE80; }
.kpi-evol.baisse { color: #F87171; }
.kpi-evol.stable { color: rgba(255,255,255,0.38); }
.kpi-sub { font-size: 0.7rem; color: rgba(255,255,255,0.32); }
.kpi-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 3px;
  width: fit-content;
}
.badge-faible  { background: rgba(220,38,38,0.2);  color: #FCA5A5; }
.badge-moyen   { background: rgba(234,179,8,0.18); color: #FDE047; }
.badge-eleve   { background: rgba(34,197,94,0.18); color: #86EFAC; }
.badge-liquide { background: rgba(34,197,94,0.18); color: #86EFAC; }

/* ── Section éditoriale ── */
.section-edito { padding: 48px 0; background: var(--bg); }
.section-edito h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 36px;
  margin-bottom: 12px;
}
.section-edito h2:first-child { margin-top: 0; }
.section-edito p { font-size: 0.92rem; line-height: 1.85; color: var(--text); margin-bottom: 14px; }
.section-edito ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.section-edito ul li { font-size: 0.9rem; line-height: 1.7; margin-bottom: 8px; }
.section-edito strong { font-weight: 700; }
.section-edito a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.section-intro {
  font-size: 0.87rem;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.65;
}

/* ── Section carte transactions ── */
.section-map { padding: 48px 0; background: var(--bg-alt); }
.section-map h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }

/* ── Section graphiques ── */
.section-charts { padding: 56px 0; background: var(--bg); }
.section-charts h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 24px; }
.charts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.chart-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.chart-card h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 14px;
}

/* ── Section budgets ── */
.section-budgets { padding: 56px 0; background: var(--bg-alt); }
.section-budgets h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.budgets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.budget-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-top: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.15s;
}
.budget-card.budget-accent {
  border-top-color: var(--accent);
  background: #FFF7ED;
}
.budget-type {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.budget-type span { font-weight: 400; color: var(--text-light); font-size: 0.73rem; margin-left: 4px; }
.budget-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.budget-card.budget-accent .budget-price { color: var(--accent); }
.budget-range { font-size: 0.73rem; color: var(--text-light); }
.budget-nd { font-size: 0.83rem; color: var(--text-light); font-style: italic; }
.budgets-note { margin-top: 16px; font-size: 0.78rem; color: var(--text-light); line-height: 1.6; }

/* ── Section comparatif ── */
.section-comparatif { padding: 56px 0; background: var(--bg); }
.section-comparatif h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 20px; }
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.comparatif-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.comparatif-table thead th {
  background: var(--primary);
  color: var(--text-inverse);
  padding: 11px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.comparatif-table tbody tr { border-bottom: 1px solid var(--border); }
.comparatif-table tbody tr:last-child { border-bottom: none; }
.comparatif-table tbody tr:hover { background: var(--bg-alt); }
.comparatif-table tbody td { padding: 11px 16px; color: var(--text); white-space: nowrap; }
.comparatif-table tbody td:first-child { font-weight: 600; }
.comparatif-table tbody td a { color: var(--accent); }
.comparatif-table tbody td a:hover { text-decoration: underline; }
.row-self td { background: #FFF7ED; }
.comparatif-note { margin-top: 10px; font-size: 0.75rem; color: var(--text-light); }

/* ── Section fiches ── */
.section-fiches { padding: 48px 0; background: var(--bg-alt); }
.section-fiches h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 20px; }
.fiches-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fiche-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.fiche-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent); }
.fiche-icon { font-size: 1.4rem; }
.fiche-card h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.fiche-card p { font-size: 0.83rem; color: var(--text-light); line-height: 1.6; }

/* ── Section maillage ── */
.section-maillage { padding: 48px 0; background: var(--bg); }
.section-maillage h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 20px; }
.maillage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.maillage-card {
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.maillage-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent); }
.maillage-nom { font-size: 0.93rem; font-weight: 700; color: var(--accent); }
.maillage-desc { font-size: 0.76rem; color: var(--text-light); line-height: 1.5; }

/* ── FAQ (details/summary natif) ── */
.faq-list { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
details.faq-item {
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
}
details.faq-item summary {
  padding: 16px 20px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  line-height: 1.4;
  list-style: none;
  user-select: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}
details.faq-item[open] summary { background: #FFF7ED; }
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item > p {
  padding: 14px 20px 18px;
  font-size: 0.87rem;
  line-height: 1.8;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── Section méthodologie ── */
.section-data { padding: 48px 0; background: var(--bg-alt); }
.section-data h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.section-data p { font-size: 0.87rem; color: var(--text-light); line-height: 1.75; }
.section-data a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ── Responsive pages ville ── */
@media (max-width: 960px) {
  .charts-grid { grid-template-columns: 1fr 1fr; }
  .budgets-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .charts-grid { grid-template-columns: 1fr; }
  .budgets-grid { grid-template-columns: 1fr 1fr; }
  .fiches-grid { grid-template-columns: 1fr; }
  .maillage-grid { grid-template-columns: 1fr 1fr; }
  #map-transactions { height: 320px !important; }
}
@media (max-width: 480px) {
  .kpi-row { grid-template-columns: 1fr; }
  .budgets-grid { grid-template-columns: 1fr; }
  .maillage-grid { grid-template-columns: 1fr; }
  #map-transactions { height: 280px !important; }
}

.courriel-protege { unicode-bidi: bidi-override; direction: rtl; white-space: nowrap; }

/* ───────────────────────────────
   IMAGE À LA UNE (pages article)
─────────────────────────────── */
.image-a-la-une {
  max-width: var(--max-width);
  margin: -24px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.image-a-la-une img {
  width: 100%;
  height: clamp(200px, 32vw, 380px);
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(28, 28, 30, 0.2);
  display: block;
}
.image-a-la-une figcaption {
  font-size: 0.76rem;
  color: var(--text-light);
  text-align: right;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .image-a-la-une { margin-top: -20px; padding: 0 16px; }
}

/* ───────────────────────────────
   GRILLE ACTUALITÉS (hub blog)
─────────────────────────────── */
.grille-actus {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.carte-actu {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.carte-actu:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  transform: translateY(-4px);
}
.carte-actu-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}
.carte-actu-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}
.carte-actu:hover .carte-actu-image img { transform: scale(1.07); }
.carte-actu-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(28, 28, 30, 0.72);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 20px;
}
.carte-actu-corps {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.carte-actu-date {
  font-size: 0.76rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.carte-actu-titre {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--primary);
  margin-bottom: 10px;
  transition: color 0.15s;
}
.carte-actu:hover .carte-actu-titre { color: var(--accent); }
.carte-actu-extrait {
  font-size: 0.89rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}
.carte-actu-lien {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.15s;
}
.carte-actu:hover .carte-actu-lien { gap: 10px; }
.carte-actu-lien svg { width: 14px; height: 14px; }

@media (max-width: 560px) {
  .grille-actus { grid-template-columns: 1fr; }
}

/* Photo de la commune (pages villes) */
.photo-commune { margin: 4px 0 22px; }
.photo-commune img { display: block; width: 100%; height: auto; border-radius: 10px; }
.photo-commune figcaption { font-size: 0.75rem; line-height: 1.5; color: var(--text-light, #6b7280); margin-top: 6px; }
.photo-commune figcaption a { color: inherit; }
