/* PHP Launcher — Annuaire template */
/* --primary / --secondary / --primary-dark sont injectés dans header.php (PHP) */
:root {
  --text: #0f172a;
  --text-muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ───── Header ───── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--primary); color: #fff;
  font-weight: 800; font-size: 18px;
}
.brand-logo { display: block; border-radius: 8px; }
.brand-name { font-size: 17px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text); font-weight: 500; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-links a.nav-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: transform 0.15s, box-shadow 0.2s;
}
.nav-links a.nav-cta:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}
.nav-links a.nav-cta .arrow { transition: transform 0.2s; }
.nav-links a.nav-cta:hover .arrow { transform: translateX(3px); }
/* ───── Hamburger button ───── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ───── Mobile nav drawer (inside sticky header) ───── */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 8px 24px 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--text);
  font-weight: 500;
  font-size: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--primary); }
.nav-mobile .nav-cta-mobile {
  margin-top: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff !important;
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.nav-mobile .nav-cta-mobile:hover { text-decoration: none; opacity: 0.92; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .brand-name {
    font-size: 12px;
    max-width: calc(100vw - 158px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

/* ───── Item listing mobile ───── */
@media (max-width: 600px) {
  .item { flex-wrap: wrap; gap: 12px; }
  .item-content { min-width: 0; flex: 1 1 calc(100% - 64px); }
  .item-cta { flex: 0 0 100%; }
  .item-cta .btn-cta { display: block; text-align: center; }
}

/* ───── Breadcrumb ───── */
.breadcrumb-bar { background: #fff; border-bottom: 1px solid var(--border); padding: 12px 0; font-size: 14px; }
.breadcrumb { color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; color: #cbd5e1; }
.breadcrumb span:last-child { color: var(--text); font-weight: 500; }

/* ───── Main ───── */
.site-main { padding: 32px 0 64px; min-height: 60vh; }

/* ───── Hero homepage (centré, avec image de fond IA) ───── */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.45) 100%),
    url('/assets/hero-bg.jpg') center / cover no-repeat,
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
  border-radius: 16px;
  margin-bottom: 32px;
  overflow: hidden;
}
/* Variant full-width sans border-radius ni marge — déborde du container parent */
.hero.hero-full {
  margin: -32px calc(50% - 50vw) 32px;
  border-radius: 0;
  padding: 96px 24px;
}
.hero.hero-full .hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--primary) 30%, transparent), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero .hero-inner { position: relative; }
.hero h1 { font-size: 42px; margin: 0 0 12px; line-height: 1.2; font-weight: 800; }
.hero .lede { font-size: 18px; opacity: 0.95; max-width: 700px; margin: 0 auto 24px; }
.hero-stats { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 32px; font-weight: 800; }
.hero-stat-label { font-size: 13px; opacity: 0.85; }

/* ───── Search Bar ───── */
.search-bar {
  display: flex; gap: 8px; max-width: 600px; margin: 0 auto;
  background: #fff; border-radius: 12px; padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.search-bar input {
  flex: 1; border: none; padding: 12px 16px; font-size: 16px; border-radius: 8px;
  outline: none; color: var(--text);
}
.search-bar button {
  background: var(--primary); color: #fff; border: none; padding: 12px 24px;
  border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 16px;
}
.search-bar button:hover { background: var(--primary-dark); }
.hero-search { margin: 0 0 24px; max-width: 100%; }
@media (max-width: 600px) {
  .search-bar { overflow: hidden; }
  .search-bar button { padding: 12px 14px; font-size: 14px; white-space: nowrap; flex-shrink: 0; }
  .search-bar input { min-width: 0; font-size: 15px; }
}

/* ───── Cards & Grids ───── */
.enriched-intro {
  background: #fff;
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  box-shadow: var(--shadow);
}

.section { margin: 48px 0; }
.section h2 { font-size: 28px; margin: 0 0 8px; font-weight: 800; }
.section .subtitle { color: var(--text-muted); margin: 0 0 24px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; transition: all .2s; box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); }
.card-empty { opacity: 0.65; background: #fafafa; }
.card-empty:hover { opacity: 1; }
.card-empty .card-meta { color: #94a3b8; font-style: italic; }
.card a { color: inherit; text-decoration: none; display: block; }
.card-title { font-size: 18px; font-weight: 700; margin: 0 0 4px; color: var(--text); }
.card-meta { color: var(--text-muted); font-size: 14px; }
.card-count { display: inline-block; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-top: 8px; }

/* ───── Listing items ───── */
.item-list { display: flex; flex-direction: column; gap: 12px; }
.item {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; display: flex; gap: 16px; align-items: flex-start;
}
.item:hover { border-color: var(--primary); }
.item-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 12%, white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--primary); font-weight: 800;
}
.item-content { flex: 1; }
.item-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.item-subtitle { color: var(--text-muted); font-size: 14px; }
.item-cta { flex-shrink: 0; }

/* ───── Affiliation block ───── */
.affiliate-block {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, white) 0%, color-mix(in srgb, var(--secondary) 8%, white) 100%);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, white);
  border-radius: 16px; padding: 28px; margin: 32px 0; text-align: center;
}
.affiliate-block h3 { font-size: 22px; margin: 0 0 8px; font-weight: 700; }
.affiliate-block p { color: var(--text-muted); margin: 0 0 16px; }
.btn-cta {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 14px 32px; border-radius: 10px; font-weight: 700; font-size: 16px;
  text-decoration: none; transition: all .2s;
}
.btn-cta:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); }

/* ─── Hero CTA row (fiche) ─────────────────────────────────────────── */
.hero-cta-row {
  display: flex;
  margin-top: 16px;
  max-width: 540px;
}
.btn-hero-full { width: 100%; justify-content: center; }
.btn-hero-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  border: 2px solid var(--primary);
  padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: 15px;
  text-decoration: none; transition: all .2s; white-space: nowrap;
}
.btn-hero-outline:hover {
  background: var(--primary-dark); border-color: var(--primary-dark);
  text-decoration: none; transform: translateY(-1px);
}
.btn-hero-filled {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: 15px;
  text-decoration: none; transition: all .2s; white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0,0,0,.20);
}
.btn-hero-filled:hover {
  background: var(--primary-dark); text-decoration: none;
  transform: translateY(-1px); box-shadow: 0 5px 16px rgba(0,0,0,.25);
}
@media (max-width: 480px) {
  .hero-cta-row { flex-direction: column; }
  .btn-hero-outline, .btn-hero-filled { justify-content: center; }
}

/* ───── Fiche page ───── */
.fiche-header {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 32px; margin-bottom: 24px;
}
.fiche-header h1 { font-size: 32px; margin: 0 0 8px; }
.fiche-meta { color: var(--text-muted); font-size: 15px; }
.fiche-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 768px) { .fiche-grid { grid-template-columns: 1fr; } }
.info-box { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.info-box h3 { font-size: 14px; text-transform: uppercase; color: var(--text-muted); margin: 0 0 12px; letter-spacing: 0.5px; }

/* ───── Tags / Badges ───── */
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f1f5f9; color: var(--text); }

/* ───── Footer ───── */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 48px 0 24px; margin-top: 64px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-mark { background: var(--primary); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-tagline { color: #94a3b8; font-size: 14px; margin: 12px 0 0; }
.footer-title { font-weight: 700; color: #fff; margin-bottom: 12px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #94a3b8; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #64748b; font-size: 12px; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 24px; text-align: center; color: #64748b; font-size: 13px; }

/* ───── Widget ViteUnDevis (mode Clone) ───── */
.vud-widget-wrapper {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  margin: 24px auto 0;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.20);
  color: var(--text);
}
/* Forcer la couleur du texte interne (le hero a color:#fff qui ferait du blanc-sur-blanc) */
.vud-widget-wrapper, .vud-widget-wrapper * { color: var(--text); }
.vud-widget-wrapper a { color: var(--primary); }
.vud-widget-wrapper iframe { border: none; width: 100%; }
.vud-widget-wrapper input,
.vud-widget-wrapper select,
.vud-widget-wrapper button {
  font-family: inherit;
  font-size: 14px;
}

/* ───── HERO 2 colonnes (style annuaire-jardinier) ─────
 * Fond sombre dégradé, info riche à gauche (badge note + H1 + intro + cards stats),
 * widget VUD à droite. Sortie pleine largeur (déborde du .container parent). */
.hero-2-cols {
  position: relative;
  margin: -32px calc(50% - 50vw) 32px;
  padding: 56px calc(50vw - 600px);
  /* Image de fond générée par IA + fallback gradient si l'image manque */
  background:
    linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.55) 100%),
    url('/assets/hero-bg.jpg') center / cover no-repeat,
    linear-gradient(135deg,
      color-mix(in srgb, var(--primary) 60%, #000) 0%,
      color-mix(in srgb, var(--primary) 20%, #000) 100%);
  color: #fff;
  overflow: hidden;
}
/* Halo coloré subtil par-dessus l'image (cohérence avec couleur primary) */
.hero-2-cols::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 25% 30%, color-mix(in srgb, var(--primary) 40%, transparent), transparent 60%),
    linear-gradient(135deg, transparent 0%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}
.hero-2-cols-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-2-cols .hero-info { min-width: 0; }
.hero-2-cols .hero-info h1 {
  font-size: 44px;
  margin: 16px 0 16px;
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
}
.hero-2-cols .hero-info h1 .accent { color: var(--primary); }
.hero-2-cols .hero-info .hero-intro {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 560px;
}
.hero-2-cols .hero-info .hero-intro strong { color: #fff; font-weight: 600; }
.hero-2-cols .hero-aside { width: 100%; max-width: 540px; justify-self: end; }

/* Badge note (étoiles + 4.9/5 + Recommandé à X) */
.hero-badge-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 6px 16px 6px 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.95);
}
.hero-badge-note .stars {
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hero-badge-note .stars-icon { color: #fbbf24; }

/* Cards stats (Expertise locale, Rapidité…) */
.hero-stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
  max-width: 540px;
}
.hero-stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-stat-card .stat-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.hero-stat-card .stat-text { line-height: 1.3; }
.hero-stat-card .stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.65);
  font-weight: 700;
  margin-bottom: 2px;
}
.hero-stat-card .stat-value {
  font-size: 15px;
  color: #fff;
  font-weight: 600;
}

@media (max-width: 960px) {
  .hero-2-cols { padding: 40px 0; margin: 0 calc(50% - 50vw) 24px; }
  .hero-2-cols-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-2-cols .hero-aside { width: 100%; justify-self: stretch; }
  .hero-2-cols .hero-info h1 { font-size: 32px; }
}

/* CTA sticky : juste un bouton compact (style annuaire-jardinier / pisciniste) */
.vud-cta-sticky {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 999px;
  padding: 14px 22px 14px 24px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(150%);
  transition: transform 0.3s ease-out, box-shadow 0.2s;
  white-space: nowrap;
}
.vud-cta-sticky:hover {
  text-decoration: none;
  color: #fff;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.30);
}
.vud-cta-sticky.visible { transform: translateY(0); }
@keyframes sticky-shimmer {
  0%, 78%, 100% { filter: brightness(1);    transform: translateY(0) scale(1); }
  84%            { filter: brightness(1.12); transform: translateY(0) scale(1.03); }
  90%            { filter: brightness(1);    transform: translateY(0) scale(1); }
}
.vud-cta-sticky.visible {
  animation: sticky-shimmer 15s ease infinite;
}
.vud-cta-sticky .arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.vud-cta-sticky:hover .arrow { transform: translateX(4px); }
.sticky-lbl-mobile { display: none; }
@media (max-width: 600px) {
  .vud-cta-sticky {
    left: 0; right: 0; bottom: 0;
    width: 100%;
    border-radius: 0;
    justify-content: center;
    padding: 16px 20px;
    font-size: 15px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
  }
  .sticky-lbl-desktop { display: none; }
  .sticky-lbl-mobile { display: inline; }
}

/* Carte du widget en sidebar : header avec titre + intro avant le formulaire JS */
.vud-card {
  background: #fff;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
  border: 1px solid var(--border);
  overflow: hidden;
}
.vud-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 20px 24px;
}
.vud-card-header h3 { font-size: 18px; margin: 0 0 4px; font-weight: 700; }
.vud-card-header p  { font-size: 13px; opacity: 0.9; margin: 0; line-height: 1.5; }
.vud-card-body { padding: 16px; }
.vud-card-body .vud-widget-wrapper {
  margin: 0; max-width: none; box-shadow: none; padding: 0;
}

/* ───── Section "Réponse directe" (post-it style — EEAT) ───── */
.direct-answer {
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border-left: 5px solid var(--primary);
  border-radius: 0 14px 14px 0;
  padding: 24px 32px;
  margin: 32px 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.direct-answer p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
  font-weight: 500;
}
.direct-answer .answer-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  margin-bottom: 8px;
}

/* ───── Section "Comment ça marche" (3 étapes) ───── */
.how-it-works {
  margin: 56px 0;
}
.how-it-works h2 { text-align: center; margin-bottom: 8px; }
.how-it-works .subtitle { text-align: center; margin-bottom: 32px; }
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  position: relative;
}
.how-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px 24px;
  text-align: center;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.how-step:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); border-color: var(--primary); }
.how-step .step-num {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.how-step h3 { font-size: 18px; margin: 8px 0 10px; font-weight: 700; }
.how-step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ───── Section "Pourquoi nous choisir" (avantages) ───── */
.why-us {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 20px;
  padding: 48px 32px;
  margin: 56px 0;
}
.why-us h2 { text-align: center; margin-bottom: 8px; }
.why-us .subtitle { text-align: center; margin-bottom: 32px; }
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.why-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
}
.why-card .why-icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--primary) 12%, white);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.why-card h3 { font-size: 16px; margin: 0 0 8px; font-weight: 700; }
.why-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* ───── Stats card (données INSEE par lieu — modèle annuaire-jardinier) ───── */
.stats-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  margin: 32px 0;
  box-shadow: var(--shadow);
}
.stats-card-title {
  font-size: 22px;
  margin: 0 0 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.stats-card-title .stats-icon {
  display: inline-flex;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 12%, white);
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.stats-card .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}
.stats-card .stat-bigfig {
  text-align: left;
}
.stats-card .stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -1px;
}
.stats-card .stat-lbl {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 4px;
}
.stats-topcities {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  background: #fafbfc;
}
.stats-topcities-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 12px;
}
.stats-topcities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.stats-citychip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: color-mix(in srgb, var(--primary) 10%, white);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text);
}
.stats-citychip .muted { color: var(--text-muted); font-size: 13px; }
.stats-source {
  font-size: 12px;
  color: var(--text-muted);
  margin: 16px 0 0;
  text-align: right;
}
.stats-source a { color: var(--text-muted); text-decoration: underline; }

/* ───── Source des données (badge trust) ───── */
.data-source {
  text-align: center;
  margin: 32px 0;
  padding: 20px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.data-source strong { color: var(--text); }

/* ───── Intro section (homepage) ───── */
.intro-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin: 32px 0;
  box-shadow: var(--shadow);
}
.intro-section h2 { font-size: 24px; margin: 0 0 16px; font-weight: 700; }
.intro-section p { font-size: 16px; line-height: 1.75; color: var(--text); margin: 0; }

/* ───── Services grid (homepage) ───── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: all .2s;
  box-shadow: var(--shadow);
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
.service-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: inline-flex;
  width: 56px; height: 56px; border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 10%, white);
  align-items: center; justify-content: center;
}
.service-title { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--text); }
.service-desc { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin: 0; }

/* ───── FAQ accordion ───── */
.faq-section { background: #fff; border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafafa;
  transition: all .2s;
}
.faq-item[open] {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.faq-question {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: var(--primary);
  line-height: 1;
}
.faq-item[open] .faq-question::after { content: '−'; }
.faq-answer {
  padding: 0 20px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ───── Pagination ───── */
.pagination { display: flex; gap: 4px; justify-content: center; margin: 32px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--border); color: var(--text); font-weight: 500; min-width: 40px; text-align: center; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination a:hover { border-color: var(--primary); text-decoration: none; }

/* ───── Niche context card (DPE / OpenData ADEME — anti-Spam Update EEAT) ───── */
.niche-context-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  margin: 32px 0;
  box-shadow: var(--shadow);
}
.niche-context-title {
  font-size: 22px;
  margin: 0 0 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.niche-context-title .niche-context-icon {
  display: inline-flex;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 12%, white);
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.niche-context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}
.ncc-stat { text-align: left; }
.ncc-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -1px;
}
.ncc-stat-warning .ncc-num { color: #dd241c; }
.ncc-stat-success .ncc-num { color: #00a857; }
.ncc-lbl {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 4px;
}
.ncc-classes {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  background: #fafbfc;
  margin-bottom: 20px;
}
.ncc-classes-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 12px;
}
.ncc-classes-bar {
  display: flex;
  width: 100%;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.ncc-class-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  transition: filter 0.15s;
  min-width: 0;
  overflow: hidden;
}
.ncc-class-segment:hover { filter: brightness(1.08); }
.ncc-context-text {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}
.ncc-note {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin: 0 0 8px;
}
.ncc-source {
  font-size: 12px;
  color: var(--text-muted);
  margin: 16px 0 0;
  text-align: right;
}
.ncc-source a { color: var(--text-muted); text-decoration: underline; }

/* ───── RGE certifications card (fiche pro enrichie via match ADEME RGE) ───── */
.rge-card {
  background: linear-gradient(135deg, #fff 0%, #f0fdf4 100%);
  border: 2px solid #86efac;
  border-radius: 18px;
  padding: 32px;
  margin: 32px 0;
  box-shadow: var(--shadow);
}
.rge-card-title {
  font-size: 22px;
  margin: 0 0 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #14532d;
}
.rge-card-title .rge-icon {
  display: inline-flex;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #dcfce7;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.rge-card-intro p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}
.rge-quals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.rge-qual {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}
.rge-qual-active { border-left: 4px solid #16a34a; }
.rge-qual-expired {
  border-left: 4px solid #f59e0b;
  opacity: 0.75;
}
.rge-qual-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.rge-qual-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #dcfce7;
  color: #14532d;
}
.rge-qual-expired .rge-qual-badge {
  background: #fef3c7;
  color: #78350f;
}
.rge-qual-label {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.rge-qual-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.rge-qual-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.rge-qual-link:hover { text-decoration: underline; }
.rge-source {
  font-size: 12px;
  color: var(--text-muted);
  margin: 16px 0 0;
  text-align: right;
}
.rge-source a { color: var(--text-muted); text-decoration: underline; }

/* ───── Plan du site (sitemap HTML) — maillage interne SEO ───── */
.sitemap-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.sitemap-section h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.sitemap-section h2 .sitemap-count {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}
.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sitemap-list-cols {
  columns: 3;
  column-gap: 32px;
}
@media (max-width: 900px) {
  .sitemap-list-cols { columns: 2; }
}
@media (max-width: 600px) {
  .sitemap-list-cols { columns: 1; }
}
.sitemap-list li {
  break-inside: avoid;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 15px;
}
.sitemap-list li a {
  color: var(--primary);
  text-decoration: none;
  flex: 1;
  min-width: 0;
}
.sitemap-list li a:hover { text-decoration: underline; }
.sitemap-list .sitemap-count {
  font-size: 12px;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--primary) 8%, white);
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.sitemap-more {
  margin-top: 18px;
  font-size: 14px;
}
.sitemap-more a {
  color: var(--primary);
  font-weight: 600;
}
.sitemap-source {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.sitemap-source a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* ───── Page /devis ───── */
.btn-cta-lg { padding: 16px 36px; font-size: 18px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.step-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--border);
}
.step-num {
  width: 48px; height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.step-card p  { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.5; }

.devis-cta-card {
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
}
.devis-cta-icon { font-size: 44px; margin-bottom: 12px; }
.devis-cta-card h2 { font-size: 22px; font-weight: 700; margin: 0 0 12px; }
.devis-cta-card p  { color: var(--text-muted); margin: 0 0 20px; line-height: 1.6; }
.devis-cta-reassurance {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ───── Exit intent popup ───── */
#exit-intent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#exit-intent-box {
  background: #fff;
  border-radius: 20px;
  padding: 40px 32px 32px;
  max-width: 440px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
  animation: ei-in .25s ease;
}
@keyframes ei-in {
  from { opacity: 0; transform: translateY(-20px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
#exit-intent-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
}
#exit-intent-close:hover { background: #f3f4f6; }
.ei-icon { font-size: 44px; margin-bottom: 12px; }
#exit-intent-box h2 { font-size: 22px; font-weight: 700; margin: 0 0 10px; }
#exit-intent-box > p { color: var(--text-muted); margin: 0 0 20px; line-height: 1.6; }
.ei-cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 16px;
  transition: background .15s;
}
.ei-cta:hover { background: var(--primary-dark); color: #fff; }
.ei-skip { margin: 14px 0 0; }
#exit-intent-dismiss {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 13px;
  text-decoration: underline; padding: 0;
}

/* ─── Energy Aids Card ─────────────────────────────────────────────── */
.energy-aids-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #f7fef9 100%);
  border: 1.5px solid #bbf7d0;
  border-radius: 16px;
  padding: 28px 32px;
  margin-top: 32px;
  box-shadow: 0 2px 12px rgba(34,197,94,.10);
}

.aids-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.aids-header-icon {
  font-size: 36px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.aids-header-text h2 { margin: 0 0 6px; }
.aids-header-text p { margin: 0; color: var(--text-muted); line-height: 1.6; font-size: 15px; }

.aids-group { margin-bottom: 24px; }
.aids-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.aids-group-flag { font-size: 18px; line-height: 1; }
.aids-group-title {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text);
}
.aids-group-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.aids-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #d1fae5;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.aids-row {
  padding: 16px 20px;
  border-left: 4px solid #22c55e;
  background: #fff;
  border-bottom: 1px solid #e9faf0;
}
.aids-row:last-child { border-bottom: none; }
.aids-row--regional { border-left-color: var(--primary); }

.aids-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.aid-name { font-weight: 700; font-size: 15px; color: var(--text); }
.aid-amount {
  font-size: 13px;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.aid-amount--regional { color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, white); }
.aid-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; }

.aids-footer {
  margin-top: 24px;
  text-align: center;
}
.aids-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #16a34a;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  transition: background .18s, transform .12s, box-shadow .18s;
  box-shadow: 0 3px 10px rgba(22,163,74,.30);
}
.aids-footer a::after { content: ' →'; }
.aids-footer a:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(22,163,74,.38);
  text-decoration: none;
}

@media (max-width: 600px) {
  .energy-aids-card { padding: 20px 16px; }
  .aids-header { flex-direction: column; gap: 10px; }
  .aids-row { padding: 14px 16px; }
  .aids-group-sub { display: none; }
  .aids-footer a { width: 100%; justify-content: center; }
}
