/* =============================================
   DEVIS-DPE.FR — Annuaire DPE France
   ============================================= */

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

/* ---- Variables ---- */
:root {
  --primary: #1B4F72;
  --primary-dark: #154060;
  --primary-light: #2E86C1;
  --secondary: #2ECC71;
  --secondary-dark: #27AE60;
  --accent: #F39C12;
  --text: #1a2332;
  --text-light: #5a6a7a;
  --bg: #f5f7fa;
  --bg-card: #ffffff;
  --border: #e1e8ef;
  --shadow: 0 2px 12px rgba(27,79,114,0.08);
  --shadow-hover: 0 8px 32px rgba(27,79,114,0.18);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--primary); }

/* ---- Widget ViteUnDevis — bande dédiée (toutes les pages) ---- */
.widget-band {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 24px var(--space-md) 20px;
}
.widget-band-inner {
  max-width: 960px;
  margin: 0 auto;
}
.widget-band-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.widget-band-header h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  white-space: nowrap;
}
.widget-band-checks {
  list-style: none;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.widget-band-checks li {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
}
.widget-band-form {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  padding: 12px 16px 8px;
  border-top: 4px solid var(--secondary);
}
.widget-band-form-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ---- Header ---- */
.site-header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo span { color: var(--secondary); }
.logo-icon {
  background: var(--secondary);
  color: var(--primary);
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
}
.site-nav { display: flex; align-items: center; gap: var(--space-lg); }
.site-nav a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--secondary); }
.nav-cta {
  background: var(--secondary);
  color: var(--primary) !important;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--secondary-dark); transform: translateY(-1px); }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: var(--space-2xl) var(--space-md);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60%; right: -20%;
  width: 600px; height: 600px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}
.hero-content h1 .highlight { color: var(--secondary); }
.hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: var(--space-xl);
  max-width: 480px;
}
.hero-stats {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-lg);
  backdrop-filter: blur(10px);
}
.stat-item .num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary);
}
.stat-item .label { font-size: 0.75rem; opacity: 0.8; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px var(--space-md);
}
.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary-light); }
.breadcrumb span { color: var(--text-light); }
.breadcrumb .sep { color: var(--border); }

/* ---- Layout 2 colonnes (main + sidebar widget) ---- */
.page-layout {
  max-width: 1340px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: var(--space-xl);
  align-items: start;
}
.page-main {}
.page-sidebar {
  position: sticky;
  top: 24px;
}
.page-sidebar-widget {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  border-top: 5px solid var(--secondary);
  padding: 24px 28px 20px;
}
.page-sidebar-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}
.page-sidebar-label small {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-light);
}
.page-sidebar-checks {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.page-sidebar-checks li {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ---- Main (hors layout sidebar) ---- */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
}

/* ---- Section titles ---- */
.section-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}
.section-subtitle {
  color: var(--text-light);
  margin-bottom: var(--space-xl);
  font-size: 1rem;
}
.section-header {
  margin-bottom: var(--space-xl);
}
.section-header .badge {
  display: inline-block;
  background: rgba(46,204,113,0.12);
  color: var(--secondary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 8px;
}

/* ---- Grid de cartes régions ---- */
.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
}
.region-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: var(--space-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.region-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}
.region-card .region-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}
.region-card .region-meta {
  font-size: 0.82rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.region-card .region-meta svg { color: var(--secondary); }
.region-card .arrow {
  margin-top: auto;
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---- Grid départements ---- */
.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
}
.dept-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.dept-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--secondary);
}
.dept-code {
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dept-info .dept-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.dept-info .dept-count {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ---- Liste communes ---- */
.search-bar {
  margin-bottom: var(--space-xl);
}
.search-bar input {
  width: 100%;
  max-width: 480px;
  padding: 12px 20px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 1rem;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.search-bar input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(46,134,193,0.12);
}
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-sm);
}
.city-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 12px var(--space-md);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.city-card:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.city-card .zip {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 400;
}
.city-card:hover .zip { color: rgba(255,255,255,0.7); }

/* Pagination */
.pagination {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  transition: all 0.2s;
}
.pagination a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pagination span.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---- Hero index : colonne droite = image ---- */
.hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.hero-img img { width: 100%; height: 380px; object-fit: cover; }

/* ---- Page Ville / Région / Département ---- */
.ville-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
}
.ville-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.ville-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.ville-hero .ville-sub {
  opacity: 0.85;
  font-size: 1rem;
}

.ville-layout {
  max-width: 1200px;
  margin: -32px auto 0;
  padding: 0 var(--space-md) var(--space-2xl);
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-xl);
  align-items: start;
}
.ville-main {}
.ville-sidebar {
}
.sidebar-widget--sticky {
  box-shadow: var(--shadow-hover);
}

/* DPE card */
.dpe-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.dpe-card h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* DPE Etiquettes */
.dpe-scale {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-lg);
}
.dpe-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dpe-bar-label {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  width: 24px;
  text-align: center;
  color: #fff;
  background: #333;
  border-radius: 4px;
  padding: 2px;
}
.dpe-bar-bg {
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}
.dpe-A { background: #009900; width: 40%; }
.dpe-B { background: #33cc00; width: 55%; }
.dpe-C { background: #99cc00; width: 65%; }
.dpe-D { background: #ffcc00; width: 75%; color: #333; }
.dpe-E { background: #ff9900; width: 85%; }
.dpe-F { background: #ff3300; width: 92%; }
.dpe-G { background: #cc0000; width: 100%; }
.dpe-bar-label-A { background: #009900; }
.dpe-bar-label-B { background: #33cc00; }
.dpe-bar-label-C { background: #99cc00; }
.dpe-bar-label-D { background: #ffcc00; color: #333 !important; }
.dpe-bar-label-E { background: #ff9900; }
.dpe-bar-label-F { background: #ff3300; }
.dpe-bar-label-G { background: #cc0000; }

/* Info cards */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.info-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-md) var(--space-lg);
  border-left: 4px solid var(--primary-light);
}
.info-card .info-title {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.info-card .info-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

/* Content sections */
.content-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}
.content-card h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border);
}
.content-card p {
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: var(--space-md);
}
.content-card p:last-child { margin-bottom: 0; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.faq-a {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Sidebar */
.sidebar-widget {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.sidebar-widget h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nearby-list { list-style: none; }
.nearby-list li { border-bottom: 1px solid var(--border); }
.nearby-list li:last-child { border-bottom: none; }
.nearby-list a {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  color: var(--text);
  font-size: 0.9rem;
  transition: color 0.15s;
}
.nearby-list a:hover { color: var(--primary); }
.nearby-list .zip { color: var(--text-light); font-size: 0.8rem; }

/* Steps obligatoire */
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.step {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}
.step-num {
  background: var(--primary);
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-text .step-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  font-size: 0.95rem;
}
.step-text .step-desc {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, #1abc9c 100%);
  border-radius: var(--radius);
  padding: var(--space-xl) var(--space-2xl);
  text-align: center;
  color: #fff;
  margin: var(--space-2xl) 0;
}
.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}
.cta-banner p { opacity: 0.9; margin-bottom: var(--space-lg); }
.btn-cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(27,79,114,0.3);
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,79,114,0.4);
  color: #fff;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: var(--space-2xl) var(--space-md) var(--space-lg);
  margin-top: var(--space-2xl);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.footer-brand .logo {
  margin-bottom: var(--space-md);
}
.footer-brand p { font-size: 0.875rem; line-height: 1.7; }
.footer-col h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--secondary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ---- Reveal on scroll ---- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Alertes ---- */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
}
.alert-info {
  background: rgba(46,134,193,0.1);
  border-left: 4px solid var(--primary-light);
  color: var(--primary);
}
.alert-warning {
  background: rgba(243,156,18,0.1);
  border-left: 4px solid var(--accent);
  color: #b7770d;
}

/* ---- 404 ---- */
.error-page {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
}
.error-page .error-code {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.12;
  line-height: 1;
}
.error-page h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: var(--space-md);
}
.error-page p { color: var(--text-light); margin-bottom: var(--space-xl); }
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-layout { grid-template-columns: 1fr; }
  .page-sidebar { display: none; }
}
/* Bouton flottant mobile — page ville */
.ville-mobile-cta-btn {
  display: none;
}
@media (max-width: 900px) {
  .ville-layout { grid-template-columns: 1fr; }
  .ville-sidebar { display: none; }
  .ville-mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: var(--secondary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 50px;
    box-shadow: 0 6px 24px rgba(46,204,113,0.55);
    white-space: nowrap;
    text-decoration: none;
  }
  .ville-mobile-cta-btn:hover { color: #fff; background: var(--secondary-dark); }
  /* Éviter que le bouton flottant masque le bas du contenu */
  .site-footer { padding-bottom: 80px; }
}
@media (max-width: 768px) {
  .hero-content h1 { font-size: 1.9rem; }
  .regions-grid { grid-template-columns: 1fr 1fr; }
  .departments-grid { grid-template-columns: 1fr 1fr; }
  .cities-grid { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}
@media (max-width: 480px) {
  .regions-grid { grid-template-columns: 1fr; }
  .departments-grid { grid-template-columns: 1fr; }
  .cities-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: var(--space-sm); }
  .hero-widget { margin-top: 0; }
}

/* ---- Cartes entreprises RGE ---- */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.companies-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.company-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  animation: cardIn 0.35s ease both;
}
.company-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}
/* Carte "Recommandée" — légère mise en avant */
.company-card--top {
  border-color: #2E86C1;
  background: linear-gradient(to right, #f0f7ff 0%, #fff 60%);
}

/* Avatar initiales */
.company-avatar {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  user-select: none;
}

/* Infos entreprise */
.company-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

/* Badges en haut */
.company-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 2px;
}
.badge-top {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #F39C12, #E67E22);
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-local {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--primary);
  background: #e8f4fd;
  border: 1px solid #b3d4f0;
  padding: 2px 8px;
  border-radius: 20px;
}

/* Nom */
.company-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Étoiles */
.company-stars {
  display: flex;
  align-items: center;
  gap: 1px;
  line-height: 1;
}
.star { font-size: 0.82rem; }
.star-full  { color: #F39C12; }
.star-half  { color: #F39C12; opacity: 0.6; }
.star-empty { color: #ddd; }
.company-rating-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: #5a6a7a;
  margin-left: 4px;
}

/* Adresse */
.company-address {
  font-size: 0.8rem;
  color: #5a6a7a;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Meta : badge RGE + domaine */
.company-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.badge-rge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--secondary-dark);
  background: #eafaf1;
  border: 1px solid #a9dfbf;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.company-domain {
  font-size: 0.7rem;
  color: #5a6a7a;
  background: #f0f2f5;
  border: 1px solid #e1e8ef;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.company-domain:empty { display: none; }

/* Bouton Devis */
.btn-devis {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 3px;
  width: 72px;
  padding: 10px 0;
  background: linear-gradient(160deg, #2ECC71 0%, #27AE60 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 3px 10px rgba(46,204,113,0.3);
  transition: box-shadow 0.2s, transform 0.15s;
}
.btn-devis:hover {
  box-shadow: 0 6px 18px rgba(46,204,113,0.5);
  transform: scale(1.06) translateY(-1px);
  color: #fff;
}
.btn-devis-icon {
  font-size: 1.15rem;
  line-height: 1;
}

@media (max-width: 600px) {
  .company-card { padding: 12px 14px; gap: 10px; }
  .company-avatar { width: 38px; height: 38px; font-size: 0.85rem; }
  .company-name { white-space: normal; font-size: 0.88rem; }
  .company-address { white-space: normal; }
  .btn-devis { width: 64px; font-size: 0.7rem; }
}