/* ─── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 16px; line-height: 1.6; color: #222; background: #fff; }
a { color: #2d6a4f; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.section-title { font-size: 1.6rem; font-weight: 700; color: #1b4332; text-align: center; margin-bottom: 10px; }
.section-subtitle { text-align: center; color: #666; font-size: .97rem; margin-bottom: 36px; font-style: italic; }
.section-title::after { content: ''; display: block; width: 48px; height: 3px; background: #f4a623; margin: 10px auto 0; border-radius: 2px; }

/* ─── Top bar ───────────────────────────────────────────────────────── */
.top-bar { background: #122b20; color: #e0eaff; font-size: .8rem; padding: 6px 0; }
.top-bar .container { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.top-bar-label { opacity: .7; }
.top-bar-email { color: #a8e6cf; font-weight: 600; }
.top-bar-email:hover { color: #ffe080; text-decoration: none; }

/* ─── Navbar ─────────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #c1d9c8;
  box-shadow: 0 1px 8px rgba(0,0,0,.07);
}
.navbar-inner {
  max-width: 1060px; margin: 0 auto; padding: 0 20px;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
}

/* Logo */
.navbar-logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.navbar-logo img { height: 52px; width: auto; display: block; aspect-ratio: auto; }

/* Liens desktop */
.navbar-menu {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
.navbar-menu li a {
  display: block; padding: 8px 12px; border-radius: 6px;
  font-size: .875rem; font-weight: 500; color: #444;
  white-space: nowrap; transition: background .15s, color .15s;
  text-decoration: none;
}
.navbar-menu li a:hover { background: #edf5f0; color: #2d6a4f; }
.navbar-menu li a.active { color: #2d6a4f; font-weight: 600; }
.navbar-menu li.nav-cta a {
  background: #f4a623; color: #fff; font-weight: 700;
  padding: 9px 18px; border-radius: 7px; margin-left: 8px;
  box-shadow: 0 2px 8px rgba(245,158,11,.3);
}
.navbar-menu li.nav-cta a:hover { background: #d9911a; box-shadow: 0 2px 8px rgba(0,0,0,.15); }

/* Burger — 3 barres animées */
.navbar-burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; padding: 4px;
  background: none; border: none; cursor: pointer;
  flex-shrink: 0;
}
.navbar-burger span {
  display: block; height: 2px; background: #333; border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease, width .25s ease;
  transform-origin: center;
}
.navbar-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile */
@media (max-width: 860px) {
  .navbar-burger { display: flex; }
  .navbar-menu {
    display: none;
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 12px 16px 16px;
    border-top: 1px solid #c1d9c8;
    box-shadow: 0 6px 16px rgba(0,0,0,.1);
  }
  .navbar-menu.open { display: flex; }
  .navbar-menu li a { padding: 11px 14px; font-size: .95rem; border-radius: 7px; }
  .navbar-menu li.nav-cta a { margin-left: 0; text-align: center; margin-top: 4px; }
}

/* ─── Hero ───────────────────────────────────────────────────────────── */
.site-header {
  position: relative; color: #fff; padding: 72px 0 64px; text-align: center;
  background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
  overflow: hidden;
}
.site-header::before {
  content: ''; position: absolute; inset: 0;
  background: url('/img/hero-bg.jpg') center/cover no-repeat;
  opacity: .22;
}
.site-header .container { position: relative; z-index: 1; }
.site-header h1 { font-size: 2.3rem; font-weight: 800; margin-bottom: 18px; line-height: 1.2; max-width: 800px; margin-left: auto; margin-right: auto; }
.site-header .intro { font-size: 1.1rem; opacity: .93; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.65; }
.breadcrumb { font-size: .82rem; opacity: .7; margin-bottom: 18px; }
.breadcrumb a { color: #fff; opacity: .85; }
.breadcrumb a:hover { opacity: 1; text-decoration: none; }
.hero-badges { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-badge { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: .82rem; padding: 5px 14px; border-radius: 20px; }

/* ─── CTA Button ────────────────────────────────────────────────────── */
.btn-cta {
  display: inline-block; background: #f4a623; color: #fff !important;
  font-weight: 700; font-size: 1.05rem; padding: 15px 34px;
  border-radius: 8px; transition: background .2s;
  box-shadow: 0 2px 6px rgba(0,0,0,.15); white-space: nowrap;
}
.btn-cta:hover { background: #d9911a; text-decoration: none; }

/* ─── Arguments / Badges confiance ──────────────────────────────────── */
.arguments-section { background: #edf5f0; padding: 18px 0; border-bottom: 1px solid #c1d9c8; }
.arguments { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.argument {
  background: #fff; border: 1px solid #a0c8a8; border-radius: 8px;
  padding: 10px 18px; font-size: .88rem; color: #1a5a3a; font-weight: 500;
  flex: 1 1 180px; max-width: 260px; text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

/* ─── Stats ─────────────────────────────────────────────────────────── */
.stats-section { background: #fff; padding: 48px 0; }
.stats-section h2.section-title { margin-bottom: 32px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
  text-align: center; padding: 28px 16px;
  border: 1px solid #c1d9c8; border-radius: 14px;
  background: #fff; box-shadow: 0 2px 10px rgba(45,106,79,.07);
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(45,106,79,.12); }
.stat-chiffre { font-size: 2.6rem; font-weight: 800; color: #2d6a4f; line-height: 1; }
.stat-label { font-size: .75rem; color: #777; margin-top: 8px; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
@media (max-width: 600px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ─── Avantages (texte + image) ─────────────────────────────────────── */
.avantages-section { padding: 64px 0; background: #fff; }
.avantages-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.avantages-grid h2 { font-size: 1.5rem; font-weight: 700; color: #1b4332; margin-bottom: 10px; }
.avantages-grid h2::after { content: ''; display: block; width: 40px; height: 3px; background: #f4a623; margin-top: 10px; border-radius: 2px; }
.avantages-list { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.avantages-list li { display: flex; align-items: flex-start; gap: 12px; font-size: .95rem; color: #333; line-height: 1.55; }
.avantages-list li::before { content: ''; display: block; width: 22px; height: 22px; min-width: 22px; background: #2d6a4f; border-radius: 50%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E"); background-size: 14px; background-position: center; background-repeat: no-repeat; margin-top: 1px; }
.avantages-img { border-radius: 12px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.15); }
.avantages-img img { width: 100%; height: 380px; object-fit: cover; display: block; }
@media (max-width: 768px) { .avantages-grid { grid-template-columns: 1fr; gap: 28px; } .avantages-img { order: -1; } .avantages-img img { height: 240px; } }

/* ─── Formulaire devis ──────────────────────────────────────────────── */
.devis-section { padding: 56px 0; background: #e5f0e8; border-top: 1px solid #c1d9c8; }
.devis-section h2 { margin-bottom: 6px; }
.devis-section .devis-sub { text-align: center; color: #666; margin-bottom: 32px; font-size: .97rem; }
.devis-form-wrap { max-width: 640px; margin: 0 auto; }
.honeypot { display: none; }
.buyers-badge { display: none; background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46;
  border-radius: 8px; padding: 10px 16px; margin-bottom: 18px; font-size: .93rem; font-weight: 600; }
.buyers-badge.show { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-row.full { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: .88rem; font-weight: 600; color: #374151; }
.form-group input, .form-group select, .form-group textarea {
  padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px;
  font-size: .97rem; font-family: inherit; transition: border-color .2s; background: #fff; color: #111; }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.form-group input.error, .form-group select.error, .form-group textarea.error { border-color: #ef4444; }
.field-error { font-size: .82rem; color: #ef4444; display: none; }
.form-group input.error ~ .field-error,
.form-group select.error ~ .field-error,
.form-group textarea.error ~ .field-error { display: block; }
.form-status { display: none; border-radius: 8px; padding: 14px 18px; margin-top: 16px; font-size: .97rem; }
.form-status.error { display: block; background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.btn-submit { width: 100%; margin-top: 18px; padding: 14px 20px; background: #245a3f; color: #fff;
  font-size: 1.05rem; font-weight: 700; border: none; border-radius: 8px;
  cursor: pointer; transition: background .2s, transform .15s; }
.btn-submit:hover:not(:disabled) { background: #1d3a9e; transform: translateY(-1px); }
.btn-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.btn-submit .spinner-icon { display: none; }
.btn-submit.loading .btn-label { display: none; }
.btn-submit.loading .spinner-icon { display: inline; }
.form-rgpd { font-size: .8rem; color: #6b7280; margin-top: 10px; text-align: center; }
.devis-step-title { font-size: 1.1rem; font-weight: 700; color: #1b4332; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid #f4a623; }
.devis-actions { display: flex; gap: 12px; margin-top: 18px; }
.devis-back { padding: 14px 24px; background: #fff; color: #2d6a4f; font-size: 1rem; font-weight: 600;
  border: 2px solid #2d6a4f; border-radius: 8px; cursor: pointer; transition: background .2s, color .2s; flex-shrink: 0; }
.devis-back:hover { background: #2d6a4f; color: #fff; }
.spinner-zone { display: none; text-align: center; padding: 32px 0; }
.spinner-zone.show { display: block; }
.spinner-zone .check-icon { font-size: 3rem; margin-bottom: 12px; }
.trust-badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.trust-badge { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: #374151; }
@media (max-width: 580px) { .form-row { grid-template-columns: 1fr; } .devis-actions { flex-direction: column; } }

/* ─── Services ──────────────────────────────────────────────────────── */
.services-section { padding: 64px 0; background: #f0f5f0; border-top: 1px solid #c1d9c8; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { background: #fff; border-radius: 12px; padding: 26px 22px; border-top: 3px solid #2d6a4f; box-shadow: 0 2px 10px rgba(0,0,0,.07); transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.service-card h3 { font-size: 1rem; color: #1b4332; margin-bottom: 8px; font-weight: 700; }
.service-card .service-desc { font-size: .87rem; color: #666; margin-bottom: 14px; line-height: 1.55; }
.service-card ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.service-card ul li { font-size: .86rem; color: #444; padding-left: 20px; position: relative; line-height: 1.5; }
.service-card ul li::before { content: "✓"; position: absolute; left: 0; color: #2d6a4f; font-weight: 700; }
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .services-grid { grid-template-columns: 1fr; } }

/* ─── CTA Banner intermédiaire ──────────────────────────────────────── */
.cta-center { text-align: center; margin-top: 32px; }
.cta-banner { background: linear-gradient(135deg, #2d6a4f, #1b4332); padding: 48px 24px; text-align: center; }
.cta-banner h2 { color: #fff; font-size: 1.5rem; margin-bottom: 10px; }
.cta-banner h2::after { display: none; }
.cta-banner p { color: rgba(255,255,255,.85); font-size: 1rem; margin-bottom: 24px; }

/* ─── Témoignages ───────────────────────────────────────────────────── */
.temoignages-section { padding: 64px 0; background: #fff; border-top: 1px solid #eee; }
.temoignages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.temoignage-card { background: #f2f7f2; border-radius: 12px; padding: 26px 20px; box-shadow: 0 2px 10px rgba(0,0,0,.07); border: 1px solid #c1d9c8; }
.temoignage-avatar { width: 44px; height: 44px; border-radius: 50%; background: #2d6a4f; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.temoignage-avatar span { color: #fff; font-weight: 700; font-size: 1rem; }
.temoignage-stars { color: #f4a623; font-size: 1rem; letter-spacing: 2px; margin-bottom: 10px; }
.temoignage-texte { font-size: .91rem; color: #444; line-height: 1.7; font-style: italic; margin-bottom: 12px; }
.temoignage-auteur { font-size: .83rem; font-weight: 700; color: #1b4332; }
@media (max-width: 768px) { .temoignages-grid { grid-template-columns: 1fr; } }

/* ─── Données locales (Wikipedia) ──────────────────────────────────── */
.local-data-section { background: #e2f0e5; padding: 24px 0; border-bottom: 1px solid #a0c8a8; }
.local-data-section .local-data-title { text-align: center; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #7a93b8; font-weight: 600; margin-bottom: 14px; }
.local-data-grid { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.local-data-card {
  background: #fff; border-radius: 12px; padding: 16px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 130px; box-shadow: 0 2px 8px rgba(45,106,79,.08);
  border: 1px solid #c1d9c8;
}
.local-data-chiffre { font-size: 1.35rem; font-weight: 700; color: #2d6a4f; }
.local-data-label { font-size: .73rem; color: #888; text-align: center; text-transform: uppercase; letter-spacing: .04em; }

/* ─── Contenu ───────────────────────────────────────────────────────── */
.content-section { padding: 40px 0; background: #fafafa; border-top: 1px solid #eee; }
.content-section p { max-width: 760px; color: #444; line-height: 1.78; }

/* ─── Prix ──────────────────────────────────────────────────────────── */
.prix-section { padding: 56px 0; background: #f8f9fa; border-top: 1px solid #e0e0e0; }
.prix-table { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; }
.prix-row { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 12px; align-items: center; background: #fff; padding: 16px 20px; border-radius: 10px; border-left: 4px solid #2d6a4f; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.prix-label { font-weight: 600; color: #1b4332; font-size: .95rem; }
.prix-fourchette { font-weight: 700; color: #2d6a4f; font-size: 1.05rem; white-space: nowrap; }
.prix-detail { font-size: .85rem; color: #666; }
.prix-note { text-align: center; font-size: .88rem; color: #555; margin-top: 16px; }
@media (max-width: 600px) { .prix-row { grid-template-columns: 1fr; gap: 4px; } }

/* ─── FAQ ───────────────────────────────────────────────────────────── */
.faq-section { padding: 56px 0; background: #fff; border-top: 1px solid #e0e0e0; }
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid #b0cfb8; border-radius: 10px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: .95rem; color: #1b4332; background: #f0f5f0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: #2d6a4f; font-weight: 300; }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { background: #e2f0e5; color: #2d6a4f; }
.faq-item p { padding: 16px 22px; margin: 0; font-size: .93rem; line-height: 1.75; color: #444; }

/* ─── Maillage interne ──────────────────────────────────────────────── */
.maillage-section { padding: 40px 0; background: #f0f5f0; border-top: 1px solid #c1d9c8; }
.maillage-top { border-top: none; border-bottom: 1px solid #c1d9c8; margin-top: 0; }
.maillage-section h2 { font-size: 1.2rem; color: #1b4332; margin: 0 0 16px; font-weight: 700; }
.maillage-section h3 { font-size: .95rem; color: #444; margin: 22px 0 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.maillage-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.maillage-list li a { font-size: .87rem; color: #2d6a4f; padding: 4px 0; display: inline-block; }
.maillage-list li a:hover { color: #1b4332; }
.maillage-small li a { font-size: .82rem; color: #666; }
.dist-badge { display: inline-block; background: #e8edf5; color: #555; font-size: .74rem; border-radius: 10px; padding: 1px 7px; margin-left: 4px; vertical-align: middle; }
.back-link { margin-top: 20px; font-size: .88rem; }

/* ─── Climat ────────────────────────────────────────────────────────── */
.climat-section { padding: 32px 0; background: #edf5f0; border-top: 1px solid #a0c8a8; }
.climat-data-grid { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.climat-data-card { flex: 1 1 120px; background: #fff; border-radius: 8px; padding: 14px 10px; text-align: center; border: 1px solid #a0c8a8; }
.climat-chiffre { display: block; font-size: 1.4rem; font-weight: 700; color: var(--color-primary, #2d6a4f); }
.climat-label { display: block; font-size: .8rem; color: #666; margin-top: 4px; }
.climat-texte { font-size: .95rem; line-height: 1.6; color: #333; }

/* ─── Article ───────────────────────────────────────────────────────── */
/* ─── Images featured (articles & villes) ──────────────────────────── */
.article-cover, .city-cover { margin: 0; padding: 0; line-height: 0; }
.article-cover img, .city-cover img { width: 100%; height: auto; max-height: 420px; object-fit: cover; display: block; }

.article-section { padding: 40px 0; background: #fff; }
.article-section h2 { font-size: 1.35rem; color: #1b4332; margin: 28px 0 12px; }
.article-section h3 { font-size: 1.1rem; color: #1a5a3a; margin: 22px 0 8px; }
.article-section p  { color: #444; line-height: 1.75; margin-bottom: 14px; max-width: 760px; }
.article-section ul, .article-section ol { padding-left: 22px; margin-bottom: 14px; }
.article-section li { color: #444; line-height: 1.7; margin-bottom: 4px; }
.article-section a { color: #2d6a4f; text-decoration: underline; }
.article-section a:hover { opacity: .8; text-decoration: none; }
.article-section img { max-width: 100%; height: auto; display: block; border-radius: 8px; margin: 20px auto; }
.article-section table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .9rem; }
.article-section th { background: #1b4332; color: #fff; padding: 10px 12px; text-align: left; }
.article-section td { padding: 9px 12px; border-bottom: 1px solid #e0e0e0; }
.article-section tr:nth-child(even) td { background: #f8f9fa; }

/* ─── Blog ──────────────────────────────────────────────────────────── */
.blog-section { padding: 40px 0; background: #f0f5f0; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.blog-card { background: #fff; border-radius: 10px; padding: 22px 20px; border-top: 3px solid #2d6a4f; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.blog-card-title { font-size: 1rem; margin-bottom: 8px; }
.blog-card-title a { color: #1b4332; }
.blog-card-date { display: block; font-size: .78rem; color: #999; margin-bottom: 6px; }
.blog-card-excerpt { font-size: .87rem; color: #666; line-height: 1.6; margin-bottom: 12px; }
.blog-card-link { font-size: .85rem; font-weight: 600; color: #2d6a4f; }
.article-date { display: block; font-size: .85rem; color: #999; margin: 6px 0 14px; }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* ─── Popup devis ────────────────────────────────────────────────────── */
.popup-overlay { display: none; position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,.55); align-items: center; justify-content: center; }
.popup-overlay.open { display: flex; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.popup-box {
  background: #fff; border-radius: 14px; padding: 36px 32px 32px;
  max-width: 460px; width: 92%; text-align: center; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: slideUp .3s ease;
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.popup-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; font-size: 1.4rem; line-height: 1;
  color: #999; cursor: pointer; padding: 4px 8px; border-radius: 4px;
}
.popup-close:hover { background: #f3f4f6; color: #333; }
.popup-icon { font-size: 2.4rem; margin-bottom: 10px; }
.popup-box h3 { font-size: 1.3rem; color: #1b4332; font-weight: 700; margin-bottom: 10px; }
.popup-box p { color: #555; font-size: .95rem; line-height: 1.55; margin-bottom: 22px; }
.popup-box .btn-cta { width: 100%; display: block; font-size: 1rem; padding: 14px; }
.popup-box .popup-skip { display: block; margin-top: 12px; font-size: .8rem; color: #aaa; cursor: pointer; }
.popup-box .popup-skip:hover { color: #666; }

/* ─── Footer ────────────────────────────────────────────────────────── */
.site-footer { background: #0e2318; color: #888; padding: 28px 0; text-align: center; font-size: .82rem; }
.site-footer a { color: #aaa; }
.site-footer a:hover { color: #fff; }
.navbar-search-form { display:flex; align-items:center; margin-left:16px; }
.navbar-search-form input[type="search"] {
  width:170px; padding:7px 14px 7px 34px;
  border:1px solid #d0d7e3; border-radius:20px;
  font-size:.82rem;
  background: #f0f4f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.4)' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 10px center;
  color:#333; outline:none;
  transition:width .3s, background-color .3s, border-color .3s;
  -webkit-appearance:none;
}
.navbar-search-form input[type="search"]::placeholder { color:#888; }
.navbar-search-form input[type="search"]:focus { width:230px; background-color:#e8edf5; border-color:#a0b4d0; }
.navbar-search-form input[type="search"]::-webkit-search-cancel-button { -webkit-appearance:none; }
@media(max-width:900px){ .navbar-search-form { display:none; } }
.search-form-page { display:flex; gap:0; max-width:540px; margin:20px auto 0; }
.search-form-page input { flex:1; padding:12px 16px; border:none; border-radius:4px 0 0 4px; font-size:1rem; }
.search-form-page button { padding:12px 20px; background:var(--color-cta,#e85d26); color:#fff; border:none; border-radius:0 4px 4px 0; cursor:pointer; font-size:1rem; }

/* ─── Blog homepage section ─────────────────────────────────────────── */
.blog-home-section { padding: 48px 0; background: #e5f0e8; }

/* ─── Bouton secondaire ─────────────────────────────────────────────── */
.btn-secondary { display: inline-block; padding: 12px 28px; background: #fff; color: #2d6a4f; border: 2px solid #2d6a4f; border-radius: 6px; font-weight: 600; font-size: .97rem; text-decoration: none; transition: background .2s, color .2s; }
.btn-secondary:hover { background: #2d6a4f; color: #fff; }

/* ─── Bloc CTA article local ────────────────────────────────────────── */
.local-cta-box { background: #e2f0e5; border-left: 4px solid #2d6a4f; border-radius: 8px; padding: 20px 24px; margin-bottom: 24px; }
.local-cta-box p { margin-bottom: 14px; color: #333; }

/* ─── Breadcrumb amélioré ───────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .88rem; margin-bottom: 16px; color: rgba(255,255,255,.75); }
.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.bc-sep { color: rgba(255,255,255,.5); font-size: 1rem; }
.bc-current { color: #fff; font-weight: 500; }

/* ─── Sélecteur département (index.php) ─────────────────────────────── */
.dept-selector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 32px; }
.dept-selector-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1.5px solid #b0cfb8; border-radius: 12px; padding: 16px 18px; text-decoration: none; color: #0e3a20; transition: border-color .2s, box-shadow .2s; }
.dept-selector-card:hover { border-color: #2d6a4f; box-shadow: 0 4px 16px rgba(45,106,79,.12); text-decoration: none; }
.dept-badge { flex-shrink: 0; width: 42px; height: 42px; background: #c1e0ca; color: #2d6a4f; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700; }
.dept-selector-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.dept-selector-nom { font-weight: 600; font-size: .97rem; color: #0e3a20; }
.dept-selector-sub { font-size: .82rem; color: #6b7fa3; }
.dept-selector-arrow { font-size: 1.3rem; color: #b0c0d8; }
.dept-selector-card:hover .dept-selector-arrow { color: #2d6a4f; }

/* ─── Sélecteur villes (departement.php) ────────────────────────────── */
.city-selector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 32px; }
.city-selector-card { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 8px; text-decoration: none; color: #0e3a20; transition: background .15s; }
.city-selector-card:hover { background: #edf5f0; text-decoration: none; }
.city-dot { flex-shrink: 0; width: 10px; height: 10px; background: #6bb89a; border-radius: 50%; margin-top: 4px; }
.city-selector-info { display: flex; flex-direction: column; gap: 2px; }
.city-selector-nom { font-size: .9rem; font-weight: 500; color: #0e3a20; line-height: 1.3; }
.city-selector-dept { font-size: .8rem; color: #8a9ab8; }

/* ─── Section artisans (liste sur page ville) ───────────────────────── */
.artisans-section { padding: 48px 0; background: #f2f7f2; }
.artisans-section h2 { font-size: 1.4rem; margin-bottom: 24px; color: #0e3a20; }
.artisans-list { display: flex; flex-direction: column; gap: 14px; }
.artisan-list-card { background: #fff; border: 1px solid #b0cfb8; border-radius: 12px; padding: 20px 24px; }
.artisan-list-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.artisan-list-dot { flex-shrink: 0; width: 10px; height: 10px; background: #6bb89a; border-radius: 50%; }
.artisan-list-nom { font-size: 1.05rem; color: #0e3a20; }
.artisan-list-desc { font-size: .88rem; color: #666; margin-bottom: 10px; line-height: 1.5; }
.artisan-list-badges { display: flex; gap: 12px; margin-bottom: 14px; }
.artisan-badge { font-size: .78rem; color: #4a7a9b; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.artisan-list-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-devis-artisan { display: inline-block; padding: 10px 20px; background: #1a7a9b; color: #fff; border-radius: 8px; font-weight: 600; font-size: .9rem; text-decoration: none; transition: background .2s; }
.btn-devis-artisan:hover { background: #145f7a; text-decoration: none; }
.btn-fiche-artisan { display: inline-block; padding: 10px 20px; background: #fff; color: #0e3a20; border: 1.5px solid #c8d8ec; border-radius: 8px; font-weight: 600; font-size: .9rem; text-decoration: none; transition: border-color .2s; }
.btn-fiche-artisan:hover { border-color: #2d6a4f; text-decoration: none; }

/* ─── Fiche artisan (page artisan) ─────────────────────────────────── */
.artisan-fiche-section { padding: 48px 0; }
.artisan-fiche-card { background: #fff; border: 1px solid #b0cfb8; border-radius: 12px; padding: 32px; max-width: 700px; }
.artisan-fiche-header { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.artisan-fiche-initiales { width: 64px; height: 64px; background: #2d6a4f; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 700; flex-shrink: 0; }
.artisan-fiche-nom { font-size: 1.4rem; font-weight: 700; color: #0e3a20; margin-bottom: 4px; }
.artisan-fiche-activite { color: #555; font-size: .95rem; }
.artisan-fiche-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.artisan-badge-rge { background: #e8f5e9; color: #1b5e20; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 12px; border: 1px solid #a5d6a7; }
.artisan-rge-qual { display: inline-block; background: #f1f8e9; color: #33691e; font-size: .82rem; padding: 2px 8px; border-radius: 6px; margin: 2px 4px 2px 0; }
.artisan-badge-senior { background: #e8f5e9; color: #2e7d32; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 12px; }
.artisan-badge-exp { color: #2e7d32; font-weight: 600; font-size: .88rem; }
.artisan-fiche-details { display: flex; flex-direction: column; gap: 14px; }
.artisan-detail-item { display: flex; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid #f0f4fc; }
.artisan-detail-item:last-child { border-bottom: none; }
.artisan-detail-label { min-width: 160px; font-weight: 600; color: #555; font-size: .9rem; }
.artisan-detail-valeur { color: #222; font-size: .9rem; }

/* ─── Bloc "Ville en bref" + Leaflet ────────────────────────────────── */
.ville-bref-section { padding: 56px 0; background: #fff; }
.ville-bref-section h2 { font-size: 1.8rem; font-weight: 700; text-align: center; color: #0e3a20; margin-bottom: 6px; }
.ville-bref-subtitle { text-align: center; color: #6b7fa3; margin-bottom: 32px; }
.ville-bref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.ville-map { height: 340px; border-radius: 12px; overflow: hidden; border: 1px solid #b0cfb8; }
.ville-bref-infos { display: flex; flex-direction: column; gap: 0; border: 1px solid #b0cfb8; border-radius: 12px; overflow: hidden; }
.ville-info-row { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #f0f4fc; }
.ville-info-row:last-child { border-bottom: none; }
.ville-info-icon { font-size: 1.1rem; width: 24px; text-align: center; }
.ville-info-label { flex: 1; color: #555; font-size: .92rem; }
.ville-info-val { color: #0e3a20; font-size: .95rem; }
.ville-proches { padding: 16px 18px; background: #f2f7f2; }
.ville-proches-label { font-size: .88rem; font-weight: 600; color: #555; display: block; margin-bottom: 10px; }
.ville-proches-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ville-chip { background: #c1e0ca; color: #2d6a4f; padding: 5px 12px; border-radius: 20px; font-size: .82rem; text-decoration: none; transition: background .15s; }
.ville-chip:hover { background: #d0e2f9; text-decoration: none; }
@media (max-width: 768px) {
  .ville-bref-grid { grid-template-columns: 1fr; }
  .ville-map { height: 220px; }
}

/* ─── Responsive sélecteurs dept/ville ──────────────────────────────── */
@media (max-width: 600px) {
  .dept-selector-grid { grid-template-columns: 1fr; }
  .dept-selector-card { flex-direction: row; } /* forcer horizontal même sur mobile */
  .city-selector-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .artisan-list-actions { flex-direction: column; }
  .btn-devis-artisan, .btn-fiche-artisan { text-align: center; }
}

/* ─── Responsive global ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .site-header { padding: 40px 0 32px; }
  .site-header h1 { font-size: 1.6rem; }
  .site-header .intro { font-size: .97rem; }
  .arguments { flex-direction: column; }
  .arguments .argument { max-width: 100%; }
}

/* ─── SEO DOM ordering (texte haut dans le source, bas visuellement) ── */
body { display: flex; flex-direction: column; }
body > * { order: 2; }
body > .top-bar { order: 0; }
body > .navbar { order: 0; }
body > main { order: 2; display: flex; flex-direction: column; }
main > * { order: 2; }
main > .site-header { order: 1; }
main > .devis-section { order: 1; }
body > .site-header { order: 2; }
body > .devis-section { order: 2; }
body > .seo-intro-block { order: 90; }
main > .seo-intro-block { order: 90; }
body > .popup-overlay { order: 99; }
body > .site-footer { order: 95; }
.seo-intro-block { padding: 48px 0; background: #e8f2ea; border-top: 1px solid #dbeafe; }
.seo-intro-block .seo-answer { font-size: 1rem; line-height: 1.75; color: #333; max-width: 800px; }
.seo-intro-block .seo-answer strong { color: var(--color-primary-dk, #245a3f); }
.seo-intro-block .seo-title { font-size: 1.4rem; font-weight: 700; color: var(--color-dark, #1a1a2e); margin-bottom: 16px; }
.seo-intro-block .seo-nearby { margin-top: 16px; font-size: .95rem; color: #555; }
.seo-intro-block .seo-nearby a { color: var(--color-primary-dk); text-decoration: underline; font-weight: 500; }
.seo-intro-block .seo-nearby a:hover { color: var(--color-cta); }

/* ─── Mobile : formulaire above the fold ──────────────────────────── */
@media (max-width: 768px) {
  .site-header { padding: 36px 0 24px; }
  .site-header h1 { font-size: 1.5rem; margin-bottom: 10px; }
  .site-header .intro { display: none; }
  .devis-section { padding: 28px 0; }
}
