/* ============================================
   DEVIS PLOMBIER FRANCE - styles.css
   Primary: #0077B6 | Secondary: #90E0EF
   ============================================ */

/* Fonts chargées de façon non-bloquante via <link> dans header.php */

/* ---- CSS Variables ---- */
:root {
  --primary: #0077B6;
  --primary-dark: #005A8E;
  --primary-light: #0096C7;
  --secondary: #90E0EF;
  --secondary-light: #CAF0F8;
  --accent: #FF6B35;
  --text-dark: #1A2332;
  --text-body: #374151;
  --text-muted: #6B7280;
  --bg: #FFFFFF;
  --bg-light: #F0F9FF;
  --bg-alt: #F0F9FF;
  --bg-gray: #F8FAFC;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --shadow-sm: 0 1px 3px rgba(0,119,182,0.08);
  --shadow-md: 0 4px 16px rgba(0,119,182,0.12);
  --shadow-lg: 0 8px 32px rgba(0,119,182,0.16);
  --shadow-xl: 0 20px 60px rgba(0,119,182,0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --container: 1200px;
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
button { font-family: var(--font-main); border: none; background: none; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; }

p { margin-bottom: var(--space-md); }

/* ---- Layout ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section { padding: var(--space-3xl) 0; }
.section-sm { padding: var(--space-2xl) 0; }

/* ---- Skip link (accessibilité) ---- */
.skip-link {
  position: absolute;
  top: 0;
  left: 8px;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 2000;
  text-decoration: none;
  font-weight: 600;
  transform: translateY(-110%);
  transition: transform 0.15s ease;
}
.skip-link:focus {
  transform: translateY(8px);
}

/* ---- Header / Nav ---- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1200;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
}

.logo svg { width: 32px; height: 32px; flex-shrink: 0; }
.logo span { color: var(--text-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-weight: 500;
  color: var(--text-body);
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: var(--radius-sm) !important;
  border-bottom: none !important;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: all 0.3s; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, #003566 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(144,224,239,0.1);
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  backdrop-filter: blur(10px);
}

.hero h1 { color: #fff; margin-bottom: var(--space-md); }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: var(--space-xl); }

.home-focus-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 var(--space-xl);
}
.home-focus-link {
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.home-focus-link:hover { color: #fff; background: rgba(255,255,255,0.14); }
.home-focus-link strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 2px;
}
.home-focus-link span {
  display: block;
  color: rgba(255,255,255,0.76);
  font-size: 0.78rem;
  line-height: 1.35;
}
.hero-ctas {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero .hero-cta-primary {
  background: #fff;
  border-color: #fff;
  color: var(--primary-dark);
  box-shadow: 0 14px 34px rgba(0,0,0,0.18);
}
.hero .hero-cta-primary:hover {
  background: var(--secondary-light);
  border-color: var(--secondary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0,0,0,0.22);
}
.hero .hero-cta-secondary {
  background: rgba(5,25,44,0.32);
  border-color: rgba(255,255,255,0.82);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}
.hero .hero-cta-secondary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--secondary); }
.hero-stat span { font-size: 0.8rem; color: rgba(255,255,255,0.75); }

.hero-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
}

.hero-img img { width: 100%; height: 100%; object-fit: cover; }

.hero-img-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }

.cta-banner .btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.cta-banner .btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: var(--radius-md); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  background: transparent;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-outline-sm:hover { background: var(--primary); color: #fff; }

/* ---- Section Headers ---- */
.section-header { text-align: center; margin-bottom: var(--space-2xl); }
.section-header .badge {
  display: inline-block;
  background: var(--bg-light);
  color: var(--primary);
  border: 1px solid var(--secondary);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ---- Form Widget ---- */
.devis-widget {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}

.devis-widget-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.devis-widget-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: var(--space-lg); }

.devis-widget-fallback {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg);
  background: var(--bg-light);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}
.devis-widget-fallback a { color: var(--primary); font-weight: 700; }

/* ---- Regions Grid ---- */
.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
}

.region-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.region-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.region-card-left { display: flex; align-items: center; gap: var(--space-md); }
.region-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.region-icon svg { width: 22px; height: 22px; color: var(--primary); }
.region-card-name { font-weight: 600; color: var(--text-dark); font-size: 0.95rem; line-height: 1.3; }
.region-card-count { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.region-arrow { color: var(--text-muted); transition: transform 0.2s, color 0.2s; }
.region-card:hover .region-arrow { color: var(--primary); transform: translateX(4px); }

/* ---- Departments Grid ---- */
.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
}

.dept-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.dept-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.dept-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
  min-width: 40px;
}
.dept-name { font-weight: 600; color: var(--text-dark); font-size: 0.9rem; }
.dept-cities { font-size: 0.78rem; color: var(--text-muted); }

/* ---- Cities Grid ---- */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-sm);
}

.city-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.2s;
}
.city-link:hover { background: var(--bg-light); border-color: var(--primary); color: var(--primary); }
.city-link svg { width: 14px; height: 14px; color: var(--text-muted); flex-shrink: 0; }
.city-link:hover svg { color: var(--primary); }
.city-zip { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }

/* ---- Services Cards ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  transition: all 0.25s;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--secondary); }
.service-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}
.service-icon svg { width: 28px; height: 28px; color: var(--primary); }
.service-card h3 { margin-bottom: var(--space-sm); font-size: 1.05rem; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 var(--space-md); }
.service-price {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(0, 119, 182, 0.08);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: var(--space-sm);
}
.service-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}
.service-card:hover .service-link svg { transform: translateX(3px); }
.service-link svg { transition: transform 0.2s; }

/* ---- How It Works ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  z-index: 0;
}
.step-card { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 72px;
  height: 72px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto var(--space-lg);
  box-shadow: 0 4px 16px rgba(0,119,182,0.3);
  border: 4px solid var(--bg);
}
.step-card h3 { font-size: 1rem; margin-bottom: var(--space-sm); }
.step-card p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

/* ---- Pourquoi choisir nos partenaires locaux (page ville) ---- */
.why-local-card {
  margin-top: 32px;
  padding: var(--space-lg);
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-lg);
}
.why-local-card h2 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}
.why-local-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.why-local-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.why-local-list svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Le saviez-vous (tip box) ---- */
.tip-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 32px 0;
  padding: var(--space-lg);
  background: rgba(0, 119, 182, 0.06);
  border: 1px solid rgba(0, 119, 182, 0.2);
  border-radius: var(--radius-lg);
}
.tip-box-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 119, 182, 0.12);
  border-radius: 50%;
  color: var(--primary);
}
.tip-box-content h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.tip-box-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ---- Pannes fréquentes / Causes possibles ---- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: 20px;
}
.problem-card {
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.problem-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-md);
}
.problem-card-header .problem-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.problem-card.is-symptoms .problem-icon { background: rgba(239, 35, 60, 0.1); color: #c1121f; }
.problem-card.is-causes .problem-icon { background: rgba(0, 119, 182, 0.1); color: var(--primary); }
.problem-card-header h3 { margin: 0; font-size: 1rem; }
.problem-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.problem-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.problem-card li svg { flex-shrink: 0; margin-top: 3px; color: inherit; }
.problem-card.is-symptoms li svg { color: #c1121f; }
.problem-card.is-causes li svg { color: var(--primary); }
@media (max-width: 720px) {
  .problem-grid { grid-template-columns: 1fr; }
}

/* ---- Conseil d'expert ---- */
.expert-tip {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 32px 0;
  padding: var(--space-lg);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-lg);
}
.expert-tip-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 163, 74, 0.12);
  border-radius: 50%;
  color: #16a34a;
}
.expert-tip-content h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.expert-tip-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ---- Estimation de prix (sidebar) ---- */
.price-estimate-card {
  text-align: center;
}
.price-estimate-card h3 {
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-md);
}
.price-estimate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.price-estimate-item {
  padding: 10px 4px;
  border-radius: var(--radius-md, 8px);
  background: var(--bg-alt, #f8f9fb);
}
.price-estimate-item.is-highlight {
  background: rgba(0, 119, 182, 0.08);
  border: 1px solid rgba(0, 119, 182, 0.25);
}
.price-estimate-value {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-dark);
}
.price-estimate-item.is-highlight .price-estimate-value {
  color: var(--primary);
}
.price-estimate-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 2px;
}
.price-estimate-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ---- Pourquoi nous choisir ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
.why-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.06));
}
.why-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-sm);
  border-radius: 50%;
  background: rgba(0, 119, 182, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-card h3 { font-size: 1rem; margin-bottom: var(--space-xs); }
.why-card p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }
@media (max-width: 768px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #003566 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(144,224,239,0.08);
  border-radius: 50%;
}
.cta-banner h2 { color: #fff; margin-bottom: var(--space-md); }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: var(--space-xl); }
.cta-buttons { display: flex; justify-content: center; gap: var(--space-md); flex-wrap: wrap; }

/* ---- FAQ ---- */
.faq-list { max-width: 100%; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--secondary); }
.faq-item.open { border-color: var(--primary); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg);
  transition: background 0.2s;
  gap: var(--space-md);
  text-align: left;
}
.faq-question:hover { background: var(--bg-light); }
.faq-item.open .faq-question { background: var(--bg-light); color: var(--primary); }
.faq-chevron { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  padding: 0 var(--space-lg);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
  border-top: 0px solid var(--border);
}
.faq-item.open .faq-answer {
  max-height: 600px;
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  border-top: 1px solid var(--border-light);
}
.faq-answer p { margin: 0; }

/* ---- FAQ Département Layout ---- */
.faq-dept-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: start;
}

.faq-toc {
  position: sticky;
  top: 88px;
}

.faq-toc-inner {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.faq-toc-inner h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--primary);
}

.faq-toc nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-toc nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-body);
  font-weight: 500;
  transition: all 0.2s;
  line-height: 1.4;
}

.faq-toc nav a:hover,
.faq-toc nav a.active {
  background: var(--bg-light);
  color: var(--primary);
}

.faq-dept-content {}

.faq-intro-block {
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-2xl);
}
.faq-intro-block p { margin: 0; font-size: 0.95rem; }
.faq-intro-block p + p { margin-top: var(--space-sm); }

.faq-category {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border);
}
.faq-category:last-of-type { border-bottom: none; }
.faq-category h2 {
  font-size: 1.3rem;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-dark);
}

/* ---- Geo Stats Grid ---- */
.geo-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.geo-stat-card {
  background: var(--bg-light);
  border: 1px solid var(--secondary);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: all 0.2s;
}
.geo-stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.geo-stat-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
}
.geo-stat-icon svg { width: 24px; height: 24px; color: #fff; }

.geo-stat-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.geo-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Département Info Banner ---- */
.dept-info-banner {
  background: var(--bg-light);
  border: 1px solid var(--secondary);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.dept-info-main {
  flex: 1;
  min-width: 200px;
}

.dept-info-stats {
  display: flex;
  gap: var(--space-xl);
  flex-shrink: 0;
}

.dept-stat {
  text-align: center;
}

.dept-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.dept-stat span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  background: transparent;
  padding: 10px 0;
  border-bottom: 0;
}
.breadcrumb-list {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid rgba(38,70,83,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 26px rgba(38,70,83,.08);
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.3;
}
.breadcrumb-list li { display: flex; align-items: center; gap: 8px; }
.breadcrumb-list li:not(:last-child)::after { content: '/'; color: var(--text-muted); }
.breadcrumb-list a { color: var(--primary); font-weight: 800; }
.breadcrumb-list li:last-child span { color: var(--text-muted); }

.page-hero .breadcrumb,
.hero .breadcrumb,
.fiche-hero .breadcrumb {
  padding: 0 0 22px;
}

.page-hero .breadcrumb-list,
.hero .breadcrumb-list,
.fiche-hero .breadcrumb-list {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.26);
  box-shadow: none;
  color: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
}

.page-hero .breadcrumb-list a,
.hero .breadcrumb-list a,
.fiche-hero .breadcrumb-list a {
  color: #fff;
}

.page-hero .breadcrumb-list li:last-child span,
.hero .breadcrumb-list li:last-child span,
.fiche-hero .breadcrumb-list li:last-child span {
  color: rgba(255,255,255,.82);
}

.page-hero .breadcrumb-list li:not(:last-child)::after,
.hero .breadcrumb-list li:not(:last-child)::after,
.fiche-hero .breadcrumb-list li:not(:last-child)::after {
  color: rgba(255,255,255,.50);
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, #003566 0%, var(--primary) 100%);
  color: #fff;
  padding: var(--space-2xl) 0;
}
.page-hero h1 { color: #fff; margin-bottom: var(--space-sm); }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin: 0; }
.page-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}
.page-hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
}
.page-hero-meta svg { width: 16px; height: 16px; }
.page-hero-meta a { color: rgba(255,255,255,0.9); text-decoration: underline; }

/* ---- Hero two-column with form ---- */
.hero-with-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  align-items: center;
  text-align: center;
}
.hero-text { width: 100%; }
.hero-form-card { width: 100%; max-width: 560px; }
.hero-form-card .form-container {
  /* Reset the white text inherited from .page-hero */
  color: var(--text-dark);
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 12px 48px rgba(0,0,0,0.3);
  margin-bottom: 0;
}
/* Ensure all text inside the form card is dark (widget buttons, labels…) */
.hero-form-card .form-container * {
  color: inherit;
}
.hero-form-card .form-container-header,
.hero-form-card .form-container-header *  {
  background: #003566;
  color: #fff;
}
.hero-form-card .trust-badge {
  background: var(--bg-light);
  color: var(--text-muted);
}

/* ---- Ville Page ---- */
.ville-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: var(--space-2xl);
  align-items: start;
}
.ville-content { min-width: 0; }
.ville-sidebar { position: sticky; top: 88px; }

.info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}
.info-card h3 { margin-bottom: var(--space-lg); font-size: 1rem; padding-bottom: var(--space-md); border-bottom: 1px solid var(--border); }
.info-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.info-list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-light);
}
.info-list-item:last-child { border-bottom: none; }
.info-list-item svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.info-list-item strong { color: var(--text-dark); }

/* ---- Form Container ---- */
.form-container {
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-xl);
  margin-bottom: var(--space-lg);
}
.form-container-header {
  background: var(--primary);
  margin: calc(-1 * var(--space-xl));
  margin-bottom: var(--space-xl);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  color: #fff;
}
.form-container-header h3 { color: #fff; font-size: 1.1rem; margin-bottom: 2px; }
.form-container-header p { color: rgba(255,255,255,0.8); font-size: 0.85rem; margin: 0; }

.trust-badges {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-light);
  border: 1px solid var(--secondary);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--primary);
}
.trust-badge svg { width: 14px; height: 14px; }

/* ---- Related Cities ---- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-sm);
}
.related-card {
  display: block;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.2s;
  text-align: center;
}
.related-card:hover { background: var(--bg-light); border-color: var(--primary); color: var(--primary); }

/* ---- Search ---- */
.search-bar {
  position: relative;
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
}
.search-bar input {
  width: 100%;
  padding: 14px 20px 14px 50px;
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: 1rem;
  font-family: var(--font-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--bg);
}
.search-bar input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0,119,182,0.1); }
.search-bar svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

/* ── City autocomplete dropdown ─────────────────────────────────────────── */
.city-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 999;
  max-height: 340px;
  overflow-y: auto;
}
.city-suggestions.open { display: block; }

.city-suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}
.city-suggestion-item:last-child { border-bottom: none; }
.city-suggestion-item:hover,
.city-suggestion-item.focused {
  background: rgba(0,119,182,0.07);
}
.city-suggestion-icon {
  flex-shrink: 0;
  color: var(--primary);
  display: flex;
  align-items: center;
}
.city-suggestion-text {
  flex: 1;
  min-width: 0;
}
.city-suggestion-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.city-suggestion-sub {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 1px;
}
.city-suggestion-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
}
.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-body);
  transition: all 0.2s;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-light); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }
.page-btn.prev, .page-btn.next { width: auto; padding: 0 16px; }

/* ============================================
   PLOMBIER CARDS — Bloc liste dans ville.php
   ============================================ */

.plombiers-section {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.plombiers-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--bg-gray);
  border-bottom: 1px solid var(--border);
}

.plombiers-section-header h2 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.plombiers-section-sub {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin: 0;
}

.plombiers-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ---- Carte individuelle plombier ---- */
.plombier-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
  position: relative;
}

.plombier-card:last-child {
  border-bottom: none;
}

.plombier-card:hover {
  background: var(--bg-light);
}

/* Colonne gauche — avatar + pastille */
.plombier-card-left {
  position: relative;
  flex-shrink: 0;
}

.plombier-avatar {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  letter-spacing: -0.5px;
  box-shadow: var(--shadow-sm);
}

.plombier-statut-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: #22c55e;
  border: 2px solid var(--bg);
  border-radius: 50%;
  display: block;
}

.plombier-card:hover .plombier-statut-dot {
  border-color: var(--bg-light);
}

/* Colonne centrale — infos entreprise */
.plombier-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.plombier-card-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plombier-card-adresse {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plombier-card-adresse svg {
  flex-shrink: 0;
  color: var(--primary);
}

.plombier-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

/* Badges qualité */
.plombier-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.plombier-badge.artisan-qualifie {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.plombier-badge.devis-rapide {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* NAF tags dans la liste */
.naf-tag {
  background: #dbeafe;
  color: #1d4ed8;
  border: none;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.68rem;
  font-family: var(--font-heading);
  flex-shrink: 0;
}
.naf-tag.naf-b { background: #fef3c7; color: #b45309; }
.naf-tag.naf-a { background: #dbeafe; color: #1d4ed8; }

/* Colonne droite — boutons d'action */
.plombier-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  align-items: stretch;
  min-width: 160px;
}

/* Bouton Demander un devis */
.plombier-btn-devis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.plombier-btn-devis:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.plombier-btn-devis svg { flex-shrink: 0; }

/* Bouton Voir la fiche */
.plombier-btn-fiche {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 16px;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.plombier-btn-fiche::after {
  content: ' →';
  font-size: 0.85rem;
}
.plombier-btn-fiche:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

/* Footer section sirene */
.plombiers-section-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xl);
  background: var(--bg-gray);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* ============================================
   SIRENE — Annuaire Entreprises
   ============================================ */

.entreprises-hero { padding-bottom: 0; }
.hero-content-slim { max-width: 720px; }

.badge-sirene {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: rgba(255,255,255,0.95);
}
.badge-sirene svg { width: 14px; height: 14px; }
.page-hero h1 span { color: var(--secondary); }

.hero-stats-row {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
}
.hero-stat span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
  display: block;
}

.search-section {
  background: var(--bg-light);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
}

.search-entreprises {
  display: flex;
  gap: var(--space-sm);
  max-width: 680px;
}

.search-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.search-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.search-group input {
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-main);
  outline: none;
  transition: border-color 0.2s;
  background: var(--bg);
}
.search-group input:focus { border-color: var(--primary); }

.btn-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  align-self: flex-end;
}
.btn-search:hover { background: var(--primary-dark); }
.btn-search svg { width: 18px; height: 18px; }

.entreprises-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: start;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-3xl);
}

.entreprises-sidebar {}

.sidebar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}
.sidebar-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--primary);
}

.geo-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 320px;
  overflow-y: auto;
}

.geo-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  color: var(--text-body);
  font-weight: 500;
  transition: all 0.15s;
}
.geo-nav-list a:hover, .geo-nav-list a.active {
  background: var(--bg-light);
  color: var(--primary);
}

.geo-nav-list .count {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-gray);
  padding: 2px 7px;
  border-radius: 100px;
}

.dept-code {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--primary);
  background: var(--bg-light);
  padding: 1px 6px;
  border-radius: 4px;
  min-width: 28px;
  text-align: center;
  margin-right: 6px;
}

.sidebar-info p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}
.sidebar-info ul {
  list-style: disc;
  padding-left: 18px;
  margin-bottom: var(--space-sm);
}
.sidebar-info ul li { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 4px; }

.api-error {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  color: var(--text-muted);
}
.api-error svg { margin: 0 auto var(--space-lg); color: #ef4444; }
.api-error h3 { color: var(--text-dark); margin-bottom: var(--space-sm); }
.api-error p { margin-bottom: var(--space-sm); }

.entreprises-welcome h2 { margin-bottom: var(--space-md); }
.entreprises-welcome > p { color: var(--text-muted); margin-bottom: var(--space-xl); }

.regions-grid-entreprises {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-sm);
}

.region-card-entreprise {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}
.region-card-entreprise:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--primary);
}

.rce-icon { font-size: 1.3rem; flex-shrink: 0; }
.rce-info { flex: 1; }
.rce-info strong { display: block; font-weight: 600; color: var(--text-dark); }
.rce-info span { font-size: 0.75rem; color: var(--text-muted); }
.region-card-entreprise svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }

.no-results {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}
.no-results-icon { font-size: 3rem; margin-bottom: var(--space-lg); }
.no-results h3 { color: var(--text-dark); margin-bottom: var(--space-sm); }
.no-results p { color: var(--text-muted); margin-bottom: var(--space-sm); }

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}
.results-count { font-size: 0.95rem; color: var(--text-muted); }
.results-count strong { color: var(--text-dark); font-size: 1.1rem; }
.results-meta { font-size: 0.82rem; color: var(--text-muted); }

.entreprises-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.entreprise-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.entreprise-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-3px); }

.ec-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-gray);
}

.ec-avatar {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.ec-identity { flex: 1; min-width: 0; }
.ec-identity h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ec-commercial { font-size: 0.78rem; color: var(--text-muted); font-style: italic; }

.ec-naf-badge {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-heading);
}
.ec-naf-badge.naf-A { background: #dbeafe; color: #1d4ed8; }
.ec-naf-badge.naf-B { background: #fef3c7; color: #b45309; }
.ec-naf-badge:not(.naf-A):not(.naf-B) { background: var(--bg-light); color: var(--primary); }

.ec-body {
  padding: var(--space-md) var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ec-info-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.ec-info-row svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--primary); margin-top: 1px; }

.ec-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  background: var(--bg-gray);
}
.ec-siren {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: monospace;
  letter-spacing: 0.05em;
}
.ec-actions { display: flex; gap: 8px; flex-shrink: 0; }

.btn-ec-detail {
  padding: 5px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-body);
  transition: all 0.2s;
  background: var(--bg);
}
.btn-ec-detail:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-light); }

.btn-ec-devis {
  padding: 5px 12px;
  background: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  transition: all 0.2s;
}
.btn-ec-devis:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }

.entreprises-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #003566 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin-top: var(--space-2xl);
  color: #fff;
}
.entreprises-cta h2 { color: #fff; margin-bottom: var(--space-sm); }
.entreprises-cta p { color: rgba(255,255,255,0.8); margin-bottom: var(--space-xl); }

.pagination-wrapper { margin-bottom: var(--space-2xl); }

/* ============================================
   SIRENE — Bloc mini dans ville.php
   ============================================ */

.sirene-bloc {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sirene-bloc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-gray);
  border-bottom: 1px solid var(--border);
}

.sirene-bloc-header h2 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.sirene-bloc-header h2 svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
.sirene-bloc-header p { font-size: 0.83rem; color: var(--text-muted); margin: 0; }

.sirene-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}

.sirene-mini-card {
  background: var(--bg);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  transition: background 0.2s;
}
.sirene-mini-card:hover { background: var(--bg-light); }

.smc-avatar {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.smc-info { flex: 1; min-width: 0; }
.smc-nom {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.smc-adresse {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.smc-naf {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.naf-tag {
  background: #dbeafe;
  color: #1d4ed8;
  border: none;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.68rem;
  font-family: var(--font-heading);
  flex-shrink: 0;
}
.naf-tag.naf-b { background: #fef3c7; color: #b45309; }
.naf-tag.naf-a { background: #dbeafe; color: #1d4ed8; }

.smc-effectif {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.69rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.smc-effectif svg { width: 10px; height: 10px; flex-shrink: 0; }

.smc-date {
  font-size: 0.69rem;
  color: var(--text-muted);
  font-style: italic;
}

.smc-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s;
  flex-shrink: 0;
  margin-top: 2px;
}
.smc-link:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-light); }

.sirene-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xl);
  background: var(--bg-gray);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.sirene-source-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.sirene-source-badge svg { width: 12px; height: 12px; color: #22c55e; flex-shrink: 0; }
.sirene-source-badge a { color: var(--primary); font-weight: 500; }

.sirene-more-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
}
.sirene-more-link:hover { color: var(--primary-dark); }

/* ============================================
   FICHE ENTREPRISE — entreprise-fiche.php
   ============================================ */

/* Hero split */
.fiche-hero {
  background: linear-gradient(135deg, #003566 0%, var(--primary) 60%, var(--primary-light) 100%);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}
.fiche-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: rgba(144,224,239,0.08);
  border-radius: 50%;
  pointer-events: none;
}

.fiche-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: var(--space-xl);
  align-items: start;
}

/* Colonne gauche hero */
.fiche-hero-left { color: #fff; }

.fiche-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.4);
  color: #86efac;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}
.fiche-verified-badge svg { width: 13px; height: 13px; }

.fiche-avatar-name {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.fiche-avatar {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  flex-shrink: 0;
  letter-spacing: -1px;
}

.fiche-avatar-name h1 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 4px;
  line-height: 1.2;
}

.fiche-subtitle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  margin: 0;
}
.fiche-subtitle svg { width: 14px; height: 14px; flex-shrink: 0; }

.fiche-naf-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  background: rgba(219,234,254,0.2);
  border: 1px solid rgba(219,234,254,0.4);
  color: #bfdbfe;
}
.fiche-naf-tag.naf-A {
  background: rgba(219,234,254,0.2);
  border-color: rgba(219,234,254,0.4);
  color: #bfdbfe;
}
.fiche-naf-tag.naf-B {
  background: rgba(254,243,199,0.2);
  border-color: rgba(254,243,199,0.4);
  color: #fde68a;
}
.fiche-naf-tag svg { width: 12px; height: 12px; }

.fiche-description {
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: var(--space-xl);
  max-width: 560px;
}

.fiche-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}
.fiche-actions .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.fiche-actions .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.fiche-trust-row {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.fiche-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.fiche-trust-item svg { width: 15px; height: 15px; color: #86efac; flex-shrink: 0; }

/* Colonne droite hero — widget devis */
.fiche-hero-right {}

.fiche-devis-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: visible;
  box-shadow: var(--shadow-xl);
}

.fiche-devis-header {
  background: var(--primary);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  color: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.fiche-devis-logo {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fiche-devis-logo svg { color: #fff; }
.fiche-devis-header h3 { color: #fff; font-size: 1rem; margin-bottom: 4px; }
.fiche-devis-header p { color: rgba(255,255,255,0.8); font-size: 0.8rem; margin: 0; line-height: 1.5; }

.fiche-devis-body {
  padding: var(--space-md) var(--space-sm);
  min-height: 180px;
}

/* Layout principal fiche */
.fiche-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-2xl);
  align-items: start;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-3xl);
}

.fiche-main {}

/* Sections de la fiche */
.fiche-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  position: relative;
}

.fiche-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-light);
  border: 1px solid var(--secondary);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.fiche-section h2 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--border);
}

/* À propos grid */
.fiche-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: var(--space-xl);
  align-items: start;
}

.fiche-about-text p {
  color: var(--text-body);
  font-size: 0.93rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
}
.fiche-about-text p:last-child { margin-bottom: 0; }

.fiche-adresse-block {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  background: var(--bg-light);
  border: 1px solid var(--secondary);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  margin-top: var(--space-md);
}
.fiche-adresse-block svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.fiche-adresse-block strong { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-dark); margin-bottom: 2px; }
.fiche-adresse-block span { font-size: 0.82rem; color: var(--text-muted); }

.fiche-need-devis-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  color: #fff;
  text-align: center;
  position: sticky;
  top: 88px;
}
.fiche-need-devis-card h3 { color: #fff; margin-bottom: var(--space-sm); font-size: 1.05rem; }
.fiche-need-devis-card p { color: rgba(255,255,255,0.8); font-size: 0.85rem; margin-bottom: var(--space-lg); }
.fiche-need-devis-card .btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.fiche-need-devis-card .btn-primary:hover { background: var(--bg-light); border-color: var(--bg-light); color: var(--primary-dark); }

.fiche-devis-reassurance {
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  margin-top: var(--space-sm);
  margin-bottom: 0;
}

/* Infos légales */
.fiche-legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.fiche-legal-item {
  background: var(--bg);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fiche-legal-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fiche-legal-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mono { font-family: 'Courier New', monospace; letter-spacing: 0.05em; font-size: 0.85rem; }

.badge-actif {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #dcfce7;
  color: #166534;
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-actif::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #16a34a;
  border-radius: 50%;
}

.fiche-source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  transition: color 0.2s;
}
.fiche-source-link:hover { color: var(--primary); }
.fiche-source-link svg { width: 13px; height: 13px; }

/* Carte */
.fiche-map {
  width: 100%;
  height: 340px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: var(--space-md);
}

.fiche-map-fallback { margin-bottom: var(--space-md); }
.fiche-map-fallback iframe { border-radius: var(--radius-md); border: 1px solid var(--border); }

.fiche-map-placeholder {
  width: 100%;
  height: 240px;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  color: var(--text-muted);
}

.fiche-map-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}
.fiche-map-caption svg { width: 13px; height: 13px; color: var(--primary); flex-shrink: 0; }

/* Services grid */
.fiche-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.fiche-service-card {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all 0.25s;
}
.fiche-service-card:hover {
  background: var(--bg-light);
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.fiche-service-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}
.fiche-service-icon svg { color: #fff; }

.fiche-service-card h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}
.fiche-service-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Artisans voisins */
.fiche-voisins-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.fiche-voisin-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg);
  color: var(--text-dark);
  transition: background 0.2s;
}
.fiche-voisin-item:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.fiche-voisin-avatar {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.fiche-voisin-info { flex: 1; }
.fiche-voisin-info strong { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-dark); margin-bottom: 2px; }
.fiche-voisin-info span { font-size: 0.78rem; color: var(--text-muted); }
.fiche-voisin-item:hover .fiche-voisin-info strong { color: var(--primary); }

.fiche-voisin-item svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.fiche-voisin-item:hover svg { color: var(--primary); }

.fiche-see-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s;
}
.fiche-see-more:hover { gap: 10px; color: var(--primary-dark); }
.fiche-see-more svg { width: 15px; height: 15px; }

/* Sidebar fiche */
.fiche-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.fiche-sidebar-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  color: #fff;
  text-align: center;
}
.fiche-sidebar-cta h3 { color: #fff; margin-bottom: 4px; font-size: 1.05rem; }
.fiche-sidebar-cta p { color: rgba(255,255,255,0.75); font-size: 0.82rem; margin: 0; }
.fiche-sidebar-cta .btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  margin-top: var(--space-md);
}
.fiche-sidebar-cta .btn-primary:hover { background: var(--bg-light); color: var(--primary-dark); }

.fiche-sidebar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}
.fiche-sidebar-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--primary);
}

.fiche-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-md);
}
.fiche-sidebar-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg);
  font-size: 0.83rem;
}
.fiche-sidebar-list li svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.fiche-sidebar-list li div { display: flex; flex-direction: column; gap: 1px; }
.fiche-sidebar-list li strong { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.fiche-sidebar-list li span { font-size: 0.85rem; color: var(--text-dark); font-weight: 500; }

.fiche-gouv-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
  font-style: italic;
}
.fiche-gouv-link:hover { color: var(--primary); }
.fiche-gouv-link svg { width: 12px; height: 12px; }

.fiche-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fiche-nav-links li a {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  color: var(--text-body);
  font-weight: 500;
  transition: all 0.15s;
}
.fiche-nav-links li a:hover {
  background: var(--bg-light);
  color: var(--primary);
}
.fiche-nav-links li a::before {
  content: '→';
  margin-right: 8px;
  color: var(--primary);
  font-size: 0.78rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.75);
  padding: var(--space-3xl) 0 var(--space-lg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.footer-brand { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: var(--space-md);
}
.footer-logo svg { width: 28px; height: 28px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: var(--space-lg); }
.footer-col h4 { font-family: var(--font-heading); font-size: 0.95rem; color: #fff; margin-bottom: var(--space-lg); font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--secondary); }
.footer-network {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-lg) 0;
  margin-bottom: var(--space-lg);
}
.footer-network-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}
.footer-network h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #fff;
  margin: 0;
  font-weight: 600;
}
.footer-network p {
  max-width: 520px;
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 0;
}
.footer-network-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 14px;
}
.footer-network-link {
  display: block;
  color: rgba(255,255,255,0.68);
  font-size: 0.86rem;
  line-height: 1.35;
  padding: 8px 0;
  transition: color 0.2s;
}
.footer-network-link:hover {
  color: var(--secondary);
}
.footer-network-related {
  padding-top: 0;
}
.footer-network-list-related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.footer-bottom p { color: rgba(255,255,255,0.45); margin: 0; }

/* ---- Scroll reveal ---- */
.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);
}

/* ---- 404 page ---- */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}
.error-code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: var(--space-md);
}

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-xl { margin-bottom: var(--space-xl); }
.bg-light { background: var(--bg-light); }
.bg-gray { background: var(--bg-gray); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .footer-network-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .ville-layout { grid-template-columns: 1fr; }
  .ville-sidebar { position: static; }
  .faq-dept-layout { grid-template-columns: 1fr; }
  .faq-toc { position: static; }
  .geo-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .dept-info-banner { flex-direction: column; align-items: flex-start; }
  .entreprises-layout { grid-template-columns: 1fr; }
  .sirene-bloc-header { flex-direction: column; }
  /* Fiche */
  .fiche-hero-grid { grid-template-columns: 1fr; }
  .fiche-hero-right { order: -1; }
  .fiche-layout { grid-template-columns: 1fr; }
  .fiche-sidebar { position: static; }
  .fiche-about-grid { grid-template-columns: 1fr; }
  .fiche-need-devis-card { position: static; }
  .fiche-services-grid { grid-template-columns: repeat(2, 1fr); }
  /* Plombier cards */
  .plombier-card { flex-wrap: wrap; gap: var(--space-sm); }
  .plombier-card-actions { min-width: 140px; }
}

@media (max-width: 768px) {
  :root { --space-3xl: 64px; --space-2xl: 40px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: var(--space-lg);
    gap: var(--space-md);
    z-index: 99;
    box-shadow: var(--shadow-md);
  }
  .hamburger { display: flex; }
  .regions-grid { grid-template-columns: 1fr; }
  .departments-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-network-header { display: block; }
  .footer-network h4 { margin-bottom: var(--space-xs); }
  .footer-network-list { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: var(--space-xl); }
  .cta-banner h2 { font-size: 1.6rem; }
  .geo-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dept-info-stats { gap: var(--space-lg); }
  .entreprises-grid { grid-template-columns: 1fr; }
  .sirene-mini-grid { grid-template-columns: 1fr; }
  .search-entreprises { flex-direction: column; }
  .regions-grid-entreprises { grid-template-columns: 1fr; }
  /* Fiche */
  .fiche-services-grid { grid-template-columns: 1fr; }
  .fiche-legal-grid { grid-template-columns: 1fr; }
  .fiche-avatar { width: 52px; height: 52px; font-size: 1.2rem; }
  .fiche-actions { flex-direction: column; }
  .fiche-actions .btn { width: 100%; justify-content: center; }
  .fiche-trust-row { gap: var(--space-md); }
  /* Plombier cards */
  .plombier-card { flex-direction: column; align-items: flex-start; padding: var(--space-md); }
  .plombier-card-left { display: flex; flex-direction: row; align-items: center; gap: var(--space-md); width: 100%; }
  .plombier-card-body { width: 100%; }
  .plombier-card-actions { flex-direction: row; width: 100%; min-width: 0; }
  .plombier-btn-devis, .plombier-btn-fiche { flex: 1; font-size: 0.78rem; padding: 9px 10px; }
  .plombiers-section-header { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
}

/* ---- Widget Devis section (pages régions / département) ---- */
.widget-devis-section { background: var(--bg-light); }
.widget-devis-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: var(--space-2xl);
  align-items: center;
}
.widget-devis-intro h2 { font-size: 1.7rem; margin-bottom: var(--space-sm); }
.widget-devis-intro p  { color: var(--text-muted); margin-bottom: var(--space-lg); }
.widget-devis-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.widget-devis-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.widget-devis-checklist svg { color: var(--primary); flex-shrink: 0; }
.widget-devis-form .form-container { margin-bottom: 0; }

@media (max-width: 900px) {
  .widget-devis-wrap { grid-template-columns: 1fr; }
  .widget-devis-intro { text-align: center; }
  .widget-devis-checklist { align-items: center; }
}

@media (max-width: 480px) {
  .logo { min-width: 0; }
  .logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.05rem; }
  .departments-grid { grid-template-columns: 1fr; }
  .cities-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: var(--space-lg); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .steps-grid { grid-template-columns: 1fr; }
  .geo-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dept-info-stats { flex-wrap: wrap; }
  .sirene-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ec-header { flex-wrap: wrap; }
  /* Fiche */
  .fiche-avatar-name { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
  .fiche-trust-row { flex-direction: column; gap: var(--space-sm); }
  .fiche-hero-grid { gap: var(--space-lg); }
  /* Plombier cards */
  .plombier-card-actions { flex-direction: column; }
  .plombier-btn-devis, .plombier-btn-fiche { width: 100%; }
}
/* ─── HEADER SEARCH GLOBAL ───────────────────────────────────────────────── */

.header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.header-search-btn:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.header-search-panel {
  display: none;
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 32px));
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  flex-direction: column;
  z-index: 1100;
  overflow: hidden;
}

.header-search-input {
  width: 100%;
  padding: 14px 44px 14px 16px;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
  color: var(--text-dark);
  box-sizing: border-box;
}
.header-search-input::placeholder { color: var(--text-muted); }

.header-search-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--bg-light);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.header-search-close:hover { background: #e8ecef; color: var(--text-dark); }

.header-search-suggestions {
  display: none;
  border-top: 1px solid var(--border);
  max-height: 320px;
  overflow-y: auto;
}

.hss-item {
  display: flex;
  flex-direction: column;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.1s;
  border-bottom: 1px solid #f3f4f6;
}
.hss-item:last-child { border-bottom: none; }
.hss-item:hover, .hss-item.focused { background: #f0f7ff; }

.hss-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}
.hss-secondary {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.hss-empty {
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}

/* Overlay backdrop */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 1090;
}
.search-overlay.active { display: block; }

@media (max-width: 768px) {
  .header-search-panel { top: 56px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SERVICE-INDEX — Sections riches (prix, étapes, FAQ)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Tableau de prix ─────────────────────────────────────────────────────── */
.si-prices { background: var(--bg-alt, #f8f9fb); }

.si-price-table {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.si-price-head,
.si-price-row {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 12px;
  padding: 14px 20px;
  align-items: center;
}

.si-price-head {
  background: var(--primary, #2563eb);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.si-price-row {
  border-bottom: 1px solid var(--border, #e2e8f0);
  background: #fff;
  transition: background 0.15s;
}
.si-price-row:last-child { border-bottom: none; }
.si-price-row:hover { background: #f0f6ff; }

.si-price-row strong {
  color: var(--primary, #2563eb);
  font-size: 1rem;
  white-space: nowrap;
}

.si-price-note {
  font-size: 0.875rem;
  color: var(--text-muted, #6b7280);
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 12px 16px;
}

@media (max-width: 640px) {
  .si-price-head,
  .si-price-row { grid-template-columns: 2fr 1fr; }
  .hide-mobile { display: none; }
}

/* ── Étapes ──────────────────────────────────────────────────────────────── */
.si-steps { background: #fff; }

.si-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.si-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--bg-alt, #f8f9fb);
  border-radius: 12px;
  border: 1px solid var(--border, #e2e8f0);
}

.si-step-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary, #2563eb);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.si-step-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text, #1e293b);
}

.si-step-body p {
  font-size: 0.9rem;
  color: var(--text-muted, #6b7280);
  margin: 0;
  line-height: 1.6;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.si-faq { background: var(--bg-alt, #f8f9fb); }

.si-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.si-faq-item {
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.si-faq-item[open] { box-shadow: 0 4px 16px rgba(37,99,235,0.08); }

.si-faq-q {
  list-style: none;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text, #1e293b);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}
.si-faq-q::-webkit-details-marker { display: none; }
.si-faq-q::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--primary, #2563eb);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.si-faq-item[open] .si-faq-q::after {
  transform: rotate(45deg);
}

.si-faq-a {
  padding: 0 20px 18px;
  font-size: 0.925rem;
  color: var(--text-muted, #6b7280);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════════════════
   SERVICE-REGION — Intro contextuelle + stats + maillage
   ══════════════════════════════════════════════════════════════════════════ */

.sr-intro-section { background: #fff; }

.sr-intro-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) { .sr-intro-grid { grid-template-columns: 1fr; } }

.sr-intro-text h2 {
  margin-bottom: 16px;
}
.sr-intro-text p {
  color: var(--text-muted, #6b7280);
  line-height: 1.7;
  margin-bottom: 12px;
}

.btn-outline-sm {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 16px;
  border: 1.5px solid var(--primary, #2563eb);
  border-radius: 6px;
  color: var(--primary, #2563eb);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn-outline-sm:hover { background: var(--primary, #2563eb); color: #fff; }

.sr-intro-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sr-stat {
  background: var(--bg-alt, #f8f9fb);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 18px 14px;
  text-align: center;
}
.sr-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary, #2563eb);
  line-height: 1;
  margin-bottom: 6px;
}
.sr-stat span {
  font-size: 0.78rem;
  color: var(--text-muted, #6b7280);
  line-height: 1.3;
}

.sr-autres-regions { background: var(--bg-alt, #f8f9fb); }

.sr-regions-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ══════════════════════════════════════════════════════════════════════════
   COMMENT ÇA MARCHE — Étapes, prudence, FAQ
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Étapes ──────────────────────────────────────────────────────────────── */
.ccm-steps { background: #fff; }

.ccm-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.ccm-step {
  display: grid;
  grid-template-columns: 72px 52px 1fr;
  gap: 20px;
  align-items: start;
  padding: 32px 0;
}
@media (max-width: 600px) {
  .ccm-step {
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto;
  }
  .ccm-step-icon { display: none; }
}

.ccm-step-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--primary-light, #eff6ff);
  color: var(--primary, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ccm-step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary, #2563eb);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 10px;
}

.ccm-step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text, #1e293b);
}
.ccm-step-content p {
  color: var(--text-muted, #6b7280);
  line-height: 1.7;
  margin: 0 0 10px;
}

.ccm-step-tip {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.85rem;
  color: #92400e;
  line-height: 1.5;
}
.ccm-step-tip svg { flex-shrink: 0; margin-top: 1px; }

.ccm-connector {
  width: 2px;
  height: 32px;
  background: var(--border, #e2e8f0);
  margin-left: calc(72px + 26px + 20px); /* icon + half of num */
}
@media (max-width: 600px) { .ccm-connector { margin-left: 26px; } }

/* ── Garanties ───────────────────────────────────────────────────────────── */
.ccm-guarantees { background: var(--bg-alt, #f8f9fb); }

.ccm-guarantees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.ccm-guarantee-card {
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 24px;
}

.ccm-guar-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-light, #eff6ff);
  color: var(--primary, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.ccm-guarantee-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text, #1e293b);
}
.ccm-guarantee-card p {
  font-size: 0.9rem;
  color: var(--text-muted, #6b7280);
  line-height: 1.6;
  margin: 0;
}

/* ── FAQ + services ──────────────────────────────────────────────────────── */
.ccm-faq     { background: #fff; }
.ccm-services { background: var(--bg-alt, #f8f9fb); }

/* ══════════════════════════════════════════════════════════════════════════
   TARIFS PLOMBIER — grille de prix
   ══════════════════════════════════════════════════════════════════════════ */

.tp-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-alt, #f8f9fb);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  font-size: 0.875rem;
}
.tp-toc strong { color: var(--text, #1e293b); margin-right: 4px; }
.tp-toc a {
  padding: 4px 10px;
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 20px;
  color: var(--primary, #2563eb);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.tp-toc a:hover { background: var(--primary, #2563eb); color: #fff; }

.tp-section   { background: #fff; scroll-margin-top: 80px; }
.tp-section-alt { background: var(--bg-alt, #f8f9fb); }

.tp-section-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.tp-section-header h2 { margin-bottom: 6px; }
.tp-section-header p  { color: var(--text-muted, #6b7280); margin: 0; }

.tp-service-icon {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
}

/* Tableau 4 colonnes pour tarifs */
.tp-price-row {
  grid-template-columns: 2fr 0.8fr 0.8fr 2fr !important;
}
@media (max-width: 640px) {
  .tp-price-row { grid-template-columns: 2fr 0.8fr 0.8fr !important; }
}

.tp-factors {
  background: #f0f6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 16px 20px;
}
.tp-factors h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--text, #1e293b);
}
.tp-factors ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 4px 20px;
}
.tp-factors li {
  font-size: 0.875rem;
  color: var(--text-muted, #6b7280);
  line-height: 1.5;
}

/* Floating sticky CTA */
.floating-devis-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary, #0077B6);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.floating-devis-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.floating-devis-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  color: #fff;
}
.floating-devis-cta svg {
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .floating-devis-cta {
    bottom: 12px;
    right: 12px;
    left: 12px;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.85rem;
  }
  .floating-devis-cta svg {
    display: none;
  }
}

.services-tarifs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
@media (max-width: 640px) {
  .home-focus-links {
    grid-template-columns: 1fr;
  }
  .hero-ctas {
    flex-direction: column;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
  .services-tarifs-grid {
    grid-template-columns: 1fr;
  }
}

/* Star rating badge */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text, #1e293b);
}
.rating-badge .rating-stars {
  color: #f5b301;
  letter-spacing: 1px;
  font-size: 0.95rem;
}
.rating-badge .rating-count {
  color: var(--text-muted, #6b7280);
  font-weight: 400;
}

/* ============================================
   Devis Toiture Local - overrides cluster Toiture
   Layouts conserves pour la thematique toiture uniquement.
   ============================================ */

:root {
  --primary: #264653;
  --primary-dark: #142c34;
  --primary-light: #3d6f7b;
  --secondary: #e5efe9;
  --secondary-light: #f3f7ef;
  --accent: #b8642f;
  --bg-light: #f4f7f2;
  --bg-alt: #edf3ef;
  --shadow-sm: 0 1px 3px rgba(38, 70, 83, 0.08);
  --shadow-md: 0 4px 16px rgba(38, 70, 83, 0.12);
  --shadow-lg: 0 8px 32px rgba(38, 70, 83, 0.16);
  --shadow-xl: 0 20px 60px rgba(38, 70, 83, 0.20);
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

.logo svg,
.footer-logo svg {
  color: var(--primary);
}

.hero {
  background:
    linear-gradient(120deg, rgba(20, 44, 52, .94) 0%, rgba(38, 70, 83, .88) 48%, rgba(134, 81, 40, .82) 100%),
    url("https://images.unsplash.com/photo-1681049400158-0ff6249ac315?ixlib=rb-4.1.0&q=82&fm=jpg&crop=entropy&cs=srgb&w=1600");
  background-size: cover;
  background-position: center;
  padding: clamp(56px, 7vw, 104px) 0;
}

.hero::before {
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: .22;
  right: auto;
  top: auto;
  pointer-events: none;
}

.hero .container,
.page-hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
  gap: clamp(28px, 4vw, 64px);
}

.hero-form-zone {
  min-width: 0;
  width: 100%;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-form-zone .hero-form-card {
  max-width: 560px;
}

.hero-form-zone .form-container {
  border: 1px solid rgba(255,255,255,.48);
  box-shadow: 0 28px 80px rgba(0,0,0,.32);
}

.hero-form-zone .form-container-header,
.hero-form-zone .form-container-header * {
  background: linear-gradient(135deg, #1d4f5a, #b8642f);
}

.hero-form-zone .trust-badge {
  background: #fff8ef;
  border-color: #f1c9a9;
  color: #865128;
}

@media (min-width: 981px) {
  .hero .hero-grid {
    align-items: flex-start;
  }

  .hero .hero-text {
    padding-top: 8px;
  }

  .hero-form-zone {
    align-items: flex-start;
    min-height: 0;
  }
}

.hero-img {
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}

.hero-img img {
  filter: brightness(1.12) saturate(1.08);
}

.hero-img::after {
  background: linear-gradient(135deg, rgba(38, 70, 83, 0.10), rgba(184, 100, 47, 0.06));
}

.hero-img-badge,
.badge,
.hero-badge,
.badge-sirene {
  letter-spacing: 0;
}

.hero-img-badge {
  color: #fff;
}

.hero-badge,
.badge {
  background: linear-gradient(135deg, #fff8e8, #e5efe9);
  border-color: rgba(255,255,255,.55);
  color: var(--primary);
  font-weight: 900;
}

.page-hero .hero-badge,
.hero .hero-badge {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.38);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

.rating-badge {
  width: fit-content;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 8px 12px;
  backdrop-filter: blur(10px);
}

.rating-badge .rating-count {
  color: rgba(255,255,255,.9);
  font-weight: 700;
}

.home-focus-link {
  border-color: rgba(255,255,255,.26);
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.home-focus-link strong {
  color: #fff;
}

.hero-stats {
  gap: 12px;
}

.hero-stat {
  min-width: 150px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.11);
  text-align: left;
  backdrop-filter: blur(10px);
}

.hero-stat strong {
  color: #fff0c9;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.hero-stat span {
  display: block;
  max-width: 190px;
  color: rgba(255,255,255,.82);
  line-height: 1.35;
}

.home-proof-section {
  background: linear-gradient(135deg, #fff8ef, #edf7f4);
}

.home-proof-section .stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-proof-section .stats-grid > div {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
  background: #fff;
  box-shadow: 0 14px 34px rgba(38,70,83,.10);
}

.home-proof-section .stats-grid strong {
  color: var(--accent);
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
}

.header-search.is-open .header-search-panel {
  display: flex;
}

.hero-text p a,
.ville-content p a {
  color: inherit;
  text-decoration: underline;
}

.button,
.btn {
  min-height: 42px;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.button {
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  text-decoration: none;
}

.button-primary {
  background: var(--primary);
  color: #fff;
}

.button-secondary {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
}

.section-heading {
  width: min(var(--container), 100%);
  margin: 0 0 var(--space-lg);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
}

.section > .section-heading,
.section > .cards-grid,
.section > .feature-grid,
.section > .steps-grid,
.section > .check-grid,
.section > .faq-list,
.section > .two-col,
.section-sm > .stats-grid,
.section-sm > .section-heading {
  width: min(var(--container), calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.section.alt,
.section.bg-light {
  background: var(--bg-light);
}

.container.narrow,
.narrow {
  max-width: 860px;
}

.lead {
  color: var(--text-muted);
  font-size: clamp(1.02rem, 1.2vw, 1.18rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.section-heading > div {
  max-width: 760px;
}

.section-heading p {
  color: var(--text-muted);
  margin: 8px 0 0;
}

.eyebrow {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.cards-grid,
.feature-grid,
.price-band-grid,
.local-info-grid,
.detail-grid,
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.cards-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.intent-card,
.business-card,
.city-card,
.feature-card,
.content-panel,
.check-card,
.guide-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--text-dark);
  padding: 20px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.intent-card:hover,
.business-card:hover,
.city-card:hover,
.guide-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 38%, var(--border));
  box-shadow: var(--shadow-md);
}

.intent-card h3,
.business-card h3,
.city-card h3,
.feature-card h3,
.content-panel h2,
.content-panel h3,
.check-card p {
  margin-bottom: 8px;
}

.intent-card p,
.business-card p,
.city-card p,
.feature-card p,
.content-panel p,
.guide-card p,
.muted {
  color: var(--text-muted);
  font-size: 0.93rem;
}

.card-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 14%, #fff), color-mix(in srgb, var(--accent) 14%, #fff));
  position: relative;
}

.card-icon::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 17px;
  width: 20px;
  height: 12px;
  border-left: 3px solid var(--primary);
  border-top: 3px solid var(--primary);
  transform: rotate(45deg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stats-grid > div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.stats-grid strong {
  display: block;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  line-height: 1.1;
}

.stats-grid span {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 6px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.badge-row span,
.naf-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  background: var(--bg-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 9px;
}

.notice {
  border-left: 4px solid var(--primary);
  background: var(--bg-light);
  color: var(--text-body);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
}

.legal-page .breadcrumb {
  padding-top: 0;
  margin-bottom: 18px;
}

.legal-content {
  margin-top: 24px;
}

.legal-content section + section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.legal-content h2 {
  font-size: clamp(1.12rem, 1.5vw, 1.35rem);
}

.legal-content p {
  font-size: 0.96rem;
  line-height: 1.7;
}

.legal-notice {
  margin-top: 18px;
}

.hero-badge,
.badge,
.trust-badge,
.naf-tag {
  box-shadow: 0 8px 24px rgba(38, 70, 83, 0.08);
}

.button-primary,
.btn-primary,
.hero-cta-primary,
.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 12px 28px rgba(38, 70, 83, 0.22);
}

.button-secondary,
.hero-cta-secondary {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
}

.card-kicker,
.guide-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f4dfcf, #e5efe9);
  box-shadow: inset 0 0 0 1px rgba(38,70,83,.08);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
}

.guides-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.guide-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.guide-card::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
}

.guide-card h3,
.guide-card p,
.guide-card .eyebrow,
.guide-card .guide-card-link,
.guide-card .guide-icon {
  position: relative;
  z-index: 1;
}

.guide-card-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--primary);
  font-weight: 800;
}

.guide-key-grid {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.guide-key-card {
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--border));
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.guide-key-card span {
  display: block;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.guide-key-card strong {
  display: block;
  color: var(--text-dark);
  line-height: 1.35;
}

.guide-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.guide-article-card {
  padding: clamp(22px, 3vw, 32px);
}

.guide-article-card h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.guide-article-card p {
  font-size: 1rem;
  line-height: 1.8;
}

.guide-table-wrap {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.guide-comparison-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.guide-comparison-table th,
.guide-comparison-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.guide-comparison-table th {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: .84rem;
  text-transform: uppercase;
}

.guide-comparison-table tr:last-child td {
  border-bottom: 0;
}

.guide-comparison-table td:first-child {
  color: var(--primary);
  font-weight: 900;
}

.region-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.department-city-tools {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto 28px;
  display: grid;
  gap: 14px;
}

.department-city-search {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fff, var(--secondary-light));
  box-shadow: var(--shadow-sm);
}

.department-city-search span {
  color: var(--text-dark);
  font-weight: 800;
}

.department-city-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font: inherit;
}

.department-alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.department-alpha-nav a,
.department-alpha-nav span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .84rem;
}

.department-alpha-nav a {
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border));
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.department-alpha-nav span {
  background: var(--bg-light);
  color: var(--text-muted);
  opacity: .55;
}

.department-city-count {
  color: var(--text-muted);
  font-weight: 700;
  margin: 0;
}

.department-city-groups {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.department-city-group {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.department-city-group h3 {
  position: sticky;
  top: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: var(--shadow-md);
}

.department-city-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.department-city-link {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-dark);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.department-city-link:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.department-city-link span {
  color: var(--text-muted);
  font-size: .84rem;
}

.department-city-empty {
  width: min(var(--container), calc(100% - 48px));
  margin: 18px auto 0;
}

.guide-answer {
  border-left: 5px solid var(--accent);
  background: linear-gradient(135deg, #fff, #fff8f2);
}

.guide-section-grid .content-panel {
  min-height: 100%;
}

.guide-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--text-body);
}

.footer-grid {
  grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.local-info-grid article,
.price-band-grid article,
.check-card,
.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.price-band-grid {
  width: min(1040px, calc(100% - 48px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.price-band-grid article {
  position: relative;
  min-height: 190px;
  padding: 24px;
  overflow: hidden;
}

.price-band-grid article::before {
  content: "💶";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff2d6, #e5efe9);
}

.price-band-grid article:nth-child(2)::before {
  content: "🪜";
}

.price-band-grid article:nth-child(3)::before {
  content: "🔨";
}

.price-band-grid article::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.roof-price-factors-section {
  padding-top: clamp(58px, 7vw, 84px);
  padding-bottom: clamp(58px, 7vw, 84px);
}

.roof-price-factors-section .section-heading {
  width: min(980px, calc(100% - 48px));
  margin-bottom: 20px;
}

.roof-price-factors-section .section-heading > div {
  max-width: 720px;
}

.roof-price-factors-section .price-band-grid {
  width: min(980px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
  gap: 14px;
}

.roof-price-factors-section .price-band-grid article {
  min-height: 162px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.roof-price-factors-section .price-band-grid article::before {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border-radius: 12px;
}

.roof-price-factors-section .price-band-grid span {
  margin-bottom: 5px;
}

.roof-price-factors-section .price-band-grid strong {
  font-size: 1.05rem;
  line-height: 1.28;
}

.roof-price-factors-section .price-band-grid p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.55;
  margin: 8px 0 0;
}

.local-info-grid strong,
.price-band-grid span {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.local-info-grid span,
.price-band-grid strong {
  display: block;
  color: var(--text-dark);
  font-weight: 800;
}

.check-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.check-card span {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--primary);
  position: relative;
}

.check-card span::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 7px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.directory-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
}

.directory-sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.directory-main {
  min-width: 0;
}

.directory-section {
  margin-bottom: 40px;
}

.directory-main .section-heading,
.directory-main .cards-grid {
  width: 100%;
}

.sidebar-card ul {
  list-style: none;
  padding: 0;
}

.sidebar-card li + li {
  margin-top: 6px;
}

.sidebar-card a.active {
  color: var(--primary);
  font-weight: 800;
}

.cta-band {
  background: transparent;
}

.cta-inner,
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 34px;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-inner h2,
.cta-inner p,
.cta-inner .eyebrow,
.cta-banner h2,
.cta-banner p {
  color: #fff;
}

.cta-inner .button-primary {
  background: #fff;
  color: var(--primary);
}

.fiche-prudence {
  background: color-mix(in srgb, var(--secondary-light) 70%, #fff);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  color: var(--text-body);
  font-size: 0.92rem;
  padding: 14px 16px;
}

.fiche-verified-badge {
  background: rgba(255,255,255,.14);
  color: #fff;
}

.fiche-hero {
  background: linear-gradient(135deg, #203f3b 0%, var(--primary) 55%, #6b4b35 100%);
}

.fiche-hero::before {
  background: rgba(255,255,255,.08);
}

.fiche-hero-left {
  order: 1;
}

.fiche-hero-right {
  order: 2;
}

.fiche-description,
.fiche-trust-item {
  color: rgba(255,255,255,.88);
}

.fiche-devis-logo {
  background: var(--primary);
}

.fiche-map-placeholder {
  min-height: 220px;
}

.fiche-section,
.fiche-sidebar-card,
.fiche-sidebar-cta {
  border-radius: var(--radius-md);
}

.fiche-section h2 {
  margin-bottom: 18px;
}

.faq-list details,
.faq-item {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-list details + details,
.faq-item + .faq-item {
  margin-top: 12px;
}

.faq-list summary,
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--text-dark);
  font-weight: 800;
  text-align: left;
}

.faq-list details p,
.faq-answer {
  color: var(--text-muted);
  padding: 0 20px 18px;
}

.faq-answer {
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.plombier-badge.artisan-qualifie {
  color: var(--primary);
  background: var(--bg-light);
}

.plombier-badge.devis-rapide {
  color: #865128;
  background: #fff3e8;
}

.roof-price-table .si-price-head,
.roof-price-table .si-price-row {
  grid-template-columns: 1.2fr .8fr .8fr 1.3fr;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-form-zone {
    min-height: 0;
  }

  .home-proof-section .stats-grid,
  .guide-key-grid,
  .price-band-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .directory-layout {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .directory-sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .breadcrumb {
    padding: 8px 0;
  }

  .breadcrumb-list {
    gap: 6px;
    padding: 6px 10px;
    border-radius: 14px;
    font-size: 0.76rem;
  }

  .breadcrumb-list li {
    gap: 6px;
    min-width: 0;
  }

  .breadcrumb-list li:last-child span {
    overflow-wrap: anywhere;
  }

  .page-hero .breadcrumb,
  .hero .breadcrumb,
  .fiche-hero .breadcrumb {
    padding-bottom: 16px;
  }

  .hero {
    padding: 42px 0;
  }

  .hero-grid {
    gap: 26px;
  }

  .hero-stat {
    width: 100%;
  }

  .home-proof-section .stats-grid,
  .guide-key-grid,
  .price-band-grid {
    grid-template-columns: 1fr;
  }

  .guide-key-grid,
  .guide-table-wrap,
  .price-band-grid {
    width: min(100% - 32px, var(--container));
  }

  .guide-comparison-table {
    min-width: 640px;
  }

  .section-heading,
  .cards-grid,
  .stats-grid {
    width: 100%;
  }

  .hero-ctas,
  .hero-actions,
  .cta-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .btn,
  .nav-cta {
    justify-content: center;
    width: 100%;
  }

  .cta-inner,
  .cta-banner {
    padding: 24px 18px;
  }

  .department-city-group {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .department-city-group h3 {
    position: static;
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .department-alpha-nav a,
  .department-alpha-nav span {
    min-width: 30px;
    height: 30px;
    font-size: .78rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
