/*
Theme Name: Ecobilan
Theme URI: https://www.ecobilan.be
Author: Geoffrey Van Nuffelen (HikeIT)
Author URI: https://www.hikeit.be
Description: Thème vitrine pour Ecobilan SRL — Conseil en optimisation énergétique
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: Proprietary
Text Domain: ecobilantheme
*/

/* ============================================================
   Design tokens
============================================================ */
:root {
  /* Couleurs Ecobilan */
  --color-green:        #3F8E1F;   /* Vert "ecobilan" officiel */
  --color-green-light:  #6BB347;
  --color-green-dark:   #2D6814;
  --color-anthracite:   #525252;
  --color-anthracite-d: #3A3A3A;
  --color-bg:           #FFFFFF;
  --color-bg-soft:      #F8FAF5;
  --color-bg-alt:       #F1F5EC;
  --color-text:         #2C2C2C;
  --color-text-muted:   #6E6E6E;
  --color-border:       #E5E5E5;

  /* Typographie */
  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-head:   'Outfit', 'Inter', sans-serif;

  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* Espacements */
  --header-h: 80px;
  --section-py: clamp(3rem, 8vw, 6rem);

  /* Animations */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   Reset
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-weight: var(--weight-regular);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ============================================================
   Layout
============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow { max-width: 800px; }

section { padding: var(--section-py) 0; }
.section-bg-soft { background: var(--color-bg-soft); }
.section-bg-alt  { background: var(--color-bg-alt); }
.section-dark    { background: var(--color-anthracite); color: #fff; }

/* ============================================================
   Typography
============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
  color: var(--color-anthracite-d);
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.01em; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: var(--weight-semibold); }
h4 { font-size: 1.05rem; font-weight: var(--weight-medium); }

p { margin-bottom: 1rem; color: var(--color-text); }
.section-dark p { color: rgba(255,255,255,0.85); }

.lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  font-weight: var(--weight-regular);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 0.75rem;
}

/* ============================================================
   Header
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
}
.site-logo__img {
  height: 48px;
  width: auto;
  display: block;
}
@media (max-width: 600px) {
  .site-logo__img { height: 38px; }
}

.site-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.site-nav a {
  font-size: 0.92rem;
  font-weight: var(--weight-medium);
  color: var(--color-anthracite);
  position: relative;
  padding: 0.5rem 0;
}
.site-nav a:hover,
.site-nav a.current-menu-item,
.site-nav a.current_page_item { color: var(--color-green); }
.site-nav a.current-menu-item::after,
.site-nav a.current_page_item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-green);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 28px; height: 22px;
  position: relative;
}
.nav-toggle span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--color-anthracite);
  left: 0;
  transition: all 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 1.5rem;
    transform: translateY(-150%);
    transition: transform 0.3s var(--ease);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav a {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
  }
}

/* ============================================================
   Hero
============================================================ */
.hero {
  position: relative;
  padding: clamp(4rem, 12vh, 8rem) 0 clamp(3rem, 8vh, 6rem);
  background: linear-gradient(135deg, #F8FAF5 0%, #EBF3DC 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,179,66,0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero__layout { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
}
.hero__inner { position: relative; z-index: 1; max-width: 720px; }
.hero__visual { position: relative; }
.hero__visual svg { width: 100%; max-width: 420px; height: auto; display: block; margin-left: auto; }
.hero__visual-img { width: 100%; max-width: 480px; height: auto; display: block; margin-left: auto; }
.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  margin-bottom: 1.25rem;
}
.hero__title .highlight {
  color: var(--color-green);
  position: relative;
}
.hero__lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
}
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__signature {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.hero__signature strong {
  color: var(--color-anthracite);
  font-weight: var(--weight-semibold);
}

/* ============================================================
   Buttons
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: all 0.25s var(--ease);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn--filled {
  background: var(--color-green);
  color: #fff;
}
.btn--filled:hover {
  background: var(--color-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124,179,66,0.3);
}
.btn--outline {
  border-color: var(--color-anthracite);
  color: var(--color-anthracite);
}
.btn--outline:hover {
  background: var(--color-anthracite);
  color: #fff;
}
.btn--ghost {
  color: var(--color-green);
  padding: 0.85rem 0;
}
.btn--ghost::after {
  content: '→';
  transition: transform 0.25s var(--ease);
}
.btn--ghost:hover::after { transform: translateX(4px); }

/* ============================================================
   Services grid
============================================================ */
.services-section { padding: var(--section-py) 0; }
.services-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}
.services-header__note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: -1.5rem;
  margin-bottom: 2rem;
}
.services-header__note a {
  color: var(--color-green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.services-header__note a:hover { text-decoration-thickness: 2px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-green);
  box-shadow: 0 12px 30px rgba(124,179,66,0.12);
}
/* Global SVG safety — empêche les icônes sans width/height de remplir leur conteneur */
main svg { max-width: 100%; height: auto; }

.service-card__icon {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  background: var(--color-bg-alt);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green);
}
.service-card__icon svg { width: 22px; height: 22px; display: block; }
.service-card h3 {
  font-size: 1.05rem;
  font-weight: var(--weight-semibold);
  color: var(--color-anthracite-d);
}
.service-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   Method (steps)
============================================================ */
.method-section { background: var(--color-bg-soft); }
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}
.method-step {
  text-align: center;
  position: relative;
  padding: 1rem;
}
.method-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: var(--color-green);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: var(--weight-bold);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.method-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.method-step p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ============================================================
   Why Ecobilan (atouts)
============================================================ */
.atouts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.atout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}
.atout__icon {
  width: 36px; height: 36px;
  flex: 0 0 36px;
  color: var(--color-green);
  display: block;
}
.atout h3 { font-size: 1.05rem; }
.atout p { font-size: 0.92rem; color: var(--color-text-muted); margin: 0; }

/* ============================================================
   CTA banner
============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-dark) 100%);
  color: #fff;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto 2rem; }
.cta-banner .btn--filled {
  background: #fff;
  color: var(--color-green-dark);
}
.cta-banner .btn--filled:hover {
  background: var(--color-anthracite);
  color: #fff;
}

/* ============================================================
   Page header (sub-pages)
============================================================ */
.page-header {
  background: linear-gradient(135deg, #F8FAF5 0%, #EBF3DC 100%);
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3rem);
  text-align: center;
}
.page-header h1 { margin-bottom: 0.75rem; }
.page-header p { color: var(--color-text-muted); max-width: 600px; margin: 0 auto; }

/* ============================================================
   Services detail (template-services.php)
============================================================ */
.services-detail .container { max-width: 900px; }
.service-detail {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
}
.service-detail:last-child { border-bottom: none; }
.service-detail__icon {
  width: 56px; height: 56px;
  flex: 0 0 56px;
  background: var(--color-bg-alt);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green);
}
.service-detail__icon svg { width: 28px; height: 28px; display: block; }
.service-detail__body h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--color-anthracite-d);
}
.service-detail__body p { margin-bottom: 1rem; color: var(--color-text); }
.service-detail__points {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.service-detail__points li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.service-detail__points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-green);
  font-weight: bold;
}
@media (max-width: 600px) {
  .service-detail { grid-template-columns: 1fr; gap: 1rem; }
}

/* ============================================================
   Contact form
============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.contact-info p { margin-bottom: 1rem; color: var(--color-text-muted); }
.contact-info a { color: var(--color-green-dark); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: flex; flex-direction: column; gap: 0.35rem; }
.form-row label { font-size: 0.9rem; font-weight: var(--weight-semibold); color: var(--color-anthracite-d); }
.form-row--check .form-check { display: flex; flex-direction: row; align-items: center; gap: 0.55rem; font-weight: var(--weight-regular); cursor: pointer; white-space: nowrap; }
.form-row--check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--color-green); margin: 0; flex: 0 0 auto; }
.form-row--check .form-check span { font-size: 0.9rem; color: var(--color-text); }
.form-row input,
.form-row select,
.form-row textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
  transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(124,179,66,0.15);
}
.hp-field { position: absolute; left: -9999px; }
.form-message {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.form-message--success {
  background: #E8F5DC;
  border-left: 4px solid var(--color-green);
  color: var(--color-green-dark);
}
.form-message--error {
  background: #FDECEA;
  border-left: 4px solid #D32F2F;
  color: #B71C1C;
}

/* ============================================================
   À propos
============================================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) { .about-intro { grid-template-columns: 1fr; } }
.about-intro { margin-bottom: 2.5rem; }
.about-photo__img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 4px solid #fff;
  outline: 1px solid var(--color-border);
}
.about-photo__link {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.9rem;
}
.about-photo__link a {
  color: var(--color-green-dark);
  text-decoration: none;
  font-weight: var(--weight-semibold);
}
.about-photo__link a:hover { text-decoration: underline; }
.about-text p { font-size: 1.05rem; }

.about-creds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.about-cred {
  border-left: 3px solid var(--color-green);
  padding: 0.5rem 0 0.5rem 1rem;
}
.about-cred strong { display: block; color: var(--color-anthracite-d); font-size: 0.95rem; }
.about-cred span { color: var(--color-text-muted); font-size: 0.85rem; }

/* ============================================================
   Contact
============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { padding: 2rem; background: var(--color-bg-alt); border-radius: 8px; }
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-info ul { display: flex; flex-direction: column; gap: 1rem; }
.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}
.contact-info svg {
  width: 20px; height: 20px;
  color: var(--color-green);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-info a:hover { color: var(--color-green); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: var(--weight-medium);
  color: var(--color-anthracite);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(124,179,66,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-message {
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
}
.form-message--success {
  background: rgba(124,179,66,0.1);
  color: var(--color-green-dark);
  border: 1px solid var(--color-green);
}
.form-message--error {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FCA5A5;
}

/* ============================================================
   Footer
============================================================ */
.site-footer {
  background: var(--color-anthracite-d);
  color: rgba(255,255,255,0.85);
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.footer-brand h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
}
.footer-col a:hover { color: var(--color-green-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
}
.footer-bottom p {
  color: rgba(255,255,255,0.65);
  margin: 0;
}
.footer-bottom a { color: rgba(255,255,255,0.85); text-decoration: underline; }
.footer-bottom a:hover { color: var(--color-green-light); }

/* ============================================================
   Utilities
============================================================ */
.text-center { text-align: center; }
.mt-3 { margin-top: 3rem; }
.mb-3 { margin-bottom: 3rem; }
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* Sélection */
::selection { background: var(--color-green); color: #fff; }

/* ═══════════════════════════════════════════════════════
   Additions v2 — retours client (sous-titres méthode, bilan chiffré)
═══════════════════════════════════════════════════════ */

/* Sous-titre des étapes méthode */
.method-step__sub {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-top: 0.15rem;
    letter-spacing: 0.02em;
}

/* Note sous la méthode (solutions financières) */
.method-note {
    margin-top: 2.5rem;
    padding: 1rem 1.5rem;
    background: #fff;
    border-left: 3px solid var(--color-green);
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--color-text);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.method-note strong { color: var(--color-green); }

/* Bilan chiffré (about) */
.about-bilan__intro {
    margin-bottom: 0.75rem;
    color: var(--color-text-muted);
}
.about-bilan {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: grid;
    gap: 0.75rem;
}
.about-bilan li {
    padding: 0.9rem 1.1rem;
    background: #f4f8f0;
    border-left: 3px solid var(--color-green);
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.45;
}
.about-bilan li strong {
    color: var(--color-green);
    font-weight: 600;
    margin-right: 0.35rem;
}
.about-bilan li span {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.15rem;
}

/* ═══════════════════════════════════════════════════════
   V3 — Améliorations compétitives : trust band, feature block,
   zone intervention, audit & primes, FAQ
═══════════════════════════════════════════════════════ */

/* ── Trust band (chiffres clés sous hero) ── */
.trust-band {
    padding: 2.5rem 0;
    background: linear-gradient(180deg, #f4f8f0 0%, var(--color-bg-alt) 100%);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.trust-band__stats {
    list-style: none; padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    text-align: center;
}
.trust-band__stats li {
    display: flex; flex-direction: column; gap: .2rem;
    padding: 0.5rem;
    border-right: 1px solid var(--color-border);
}
.trust-band__stats li:last-child { border-right: none; }
.trust-band__stats strong {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--color-green);
    font-weight: 700;
    line-height: 1;
}
.trust-band__stats span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
@media (max-width: 600px) {
    .trust-band__stats li { border-right: none; border-bottom: 1px solid var(--color-border); padding-bottom: 1rem; }
    .trust-band__stats li:last-child { border-bottom: none; }
}

/* ── Feature block (audit & primes promo sur home) ── */
.feature-block {
    padding: 5rem 0;
    background: var(--color-bg);
}
.feature-block__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}
.feature-block__text h2 { margin: .5rem 0 1rem; }
.feature-block__text > p { color: var(--color-text); margin-bottom: 1.25rem; }
.feature-block__list {
    list-style: none; padding: 0; margin: 0 0 1.75rem 0;
    display: grid; gap: .6rem;
}
.feature-block__list li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 0.98rem;
}
.feature-block__list li::before {
    content: "✓";
    position: absolute; left: 0; top: 0;
    color: var(--color-green); font-weight: 700;
    width: 1.25rem; height: 1.25rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: #eaf3e2; border-radius: 50%;
    font-size: .75rem;
}
@media (max-width: 860px) {
    .feature-block__inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ── Badge stack (visuel feature block) ── */
.badge-stack {
    display: grid; gap: 1rem;
    max-width: 320px; margin: 0 auto;
}
.badge-stack__item {
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-green);
    border-radius: 6px;
    display: flex; flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform .2s ease;
}
.badge-stack__item:hover { transform: translateX(4px); }
.badge-stack__item--accent {
    background: var(--color-green); color: #fff;
    border-left-color: #2D6814;
    transform: scale(1.04);
}
.badge-stack__label {
    font-size: .78rem; text-transform: uppercase;
    letter-spacing: .06em; opacity: .75;
}
.badge-stack__value {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.6rem; font-weight: 700; line-height: 1.1;
    margin-top: .15rem;
}
.badge-stack__item:not(.badge-stack__item--accent) .badge-stack__value { color: var(--color-green); }
.badge-stack__sub {
    font-size: .8rem; margin-top: .2rem; opacity: .85;
}

/* ── Zone d'intervention ── */
.zone-section { padding: 4rem 0; background: var(--color-bg-alt); }
.zone-list {
    list-style: none; padding: 0; margin: 2rem 0 1.5rem;
    display: flex; flex-wrap: wrap; gap: .6rem;
    justify-content: center;
}
.zone-list li {
    padding: .55rem 1.1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 500;
}
.zone-note {
    text-align: center; color: var(--color-text-muted);
    max-width: 620px; margin: 0 auto; font-size: .95rem;
}

/* ── Page Audit & Primes ── */
.page-header--accent {
    background: linear-gradient(135deg, #f4f8f0 0%, #e8f3de 100%);
}
.page-header--accent .hero__ctas { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.ap-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.ap-benefit {
    padding: 1.75rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: border-color .2s, transform .2s;
}
.ap-benefit:hover { border-color: var(--color-green); transform: translateY(-2px); }
.ap-benefit__num {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 2rem; font-weight: 700;
    color: var(--color-green); line-height: 1;
    margin-bottom: .75rem;
}
.ap-benefit h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.ap-benefit p { color: var(--color-text-muted); font-size: .95rem; line-height: 1.55; }

/* Vidéo Audit Logement */
.ap-video { padding: 5rem 0; }
.ap-video__embed {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  background: #000;
}
.ap-video__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.ap-video__source {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.ap-video__source a {
  color: var(--color-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ap-video__source a:hover { text-decoration-thickness: 2px; }

.ap-aides { padding: 5rem 0; background: var(--color-bg-alt); }
.ap-aides__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.ap-aide-card {
    padding: 2rem 1.75rem;
    background: #fff;
    border-radius: 8px;
    border-top: 4px solid var(--color-green);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.ap-aide-card h3 { margin: 0 0 .75rem; color: var(--color-green); }
.ap-aide-card > p { font-size: .95rem; margin-bottom: 1rem; }
.ap-aide-card__list {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: .45rem;
    font-size: .92rem;
}
.ap-aide-card__list li {
    position: relative; padding-left: 1.25rem;
    color: var(--color-text);
}
.ap-aide-card__list li::before {
    content: "→"; position: absolute; left: 0;
    color: var(--color-green); font-weight: 700;
}
.ap-aides__note {
    max-width: 720px; margin: 2rem auto 0;
    text-align: center; font-size: .9rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* ── FAQ ── */
.ap-faq { padding: 5rem 0; }
.faq { display: grid; gap: .75rem; margin-top: 2rem; }
.faq__item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0;
    transition: border-color .2s;
}
.faq__item[open] { border-color: var(--color-green); }
.faq__item summary {
    padding: 1.1rem 1.4rem;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--color-text);
    display: flex; justify-content: space-between;
    align-items: center; gap: 1rem;
    user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: "+";
    color: var(--color-green);
    font-size: 1.4rem; font-weight: 400;
    transition: transform .2s;
    flex-shrink: 0;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item p {
    padding: 0 1.4rem 1.2rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Calendrier des obligations de rénovation */
.ap-calendrier {
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--color-bg-alt);
    border-radius: 14px;
    border: 1px solid var(--color-border);
}
.ap-calendrier__intro { max-width: 760px; margin: 0 auto 2rem; text-align: center; }
.ap-calendrier__intro h3 { font-size: 1.4rem; margin: 0 0 1rem; }
.ap-calendrier__intro p { color: var(--color-text-muted); line-height: 1.65; margin: 0; }
.ap-calendrier__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.ap-cal-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.5rem;
}
.ap-cal-card h4 { font-size: 1.05rem; margin: 0 0 .35rem; color: var(--color-green-dark); }
.ap-cal-card__sub { font-size: .88rem; color: var(--color-text-muted); margin: 0 0 1rem; }
.ap-cal-timeline { display: flex; flex-direction: column; gap: .5rem; }
.ap-cal-timeline li {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .75rem;
    background: var(--color-bg-soft);
    border-radius: 6px;
    font-size: .95rem;
}
.ap-cal-year { font-weight: var(--weight-bold); color: var(--color-anthracite-d); min-width: 3.2rem; }
.ap-cal-arrow { color: var(--color-green); font-weight: var(--weight-bold); }
.ap-cal-label { font-weight: var(--weight-semibold); color: var(--color-green-dark); }
.ap-cal-chaudieres {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.ap-cal-chaudieres h4 { font-size: 1.05rem; margin: 0 0 1rem; color: var(--color-green-dark); }
.ap-cal-note {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}
.ap-cal-note p { color: var(--color-text-muted); line-height: 1.65; margin: 0 0 1rem; }
.ap-cal-note .btn { margin-top: .5rem; }

/* ═══════════════════════════════════════════════════════
   V4 — Agréments, témoignages, simulateur, accompagnement, ressources
═══════════════════════════════════════════════════════ */

/* ── Bandeau agréments ── */
.accred-band {
    padding: 2.5rem 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}
.accred-band__label {
    text-align: center; font-size: .8rem;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}
.accred-band__list {
    list-style: none; padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.25rem;
}
.accred {
    display: flex; align-items: center; gap: .85rem;
    padding: .85rem 1rem;
    border-radius: 6px;
    background: var(--color-bg-alt);
    color: var(--color-green);
}
.accred svg { width: 32px; height: 32px; flex-shrink: 0; }
.accred span {
    color: var(--color-text); font-size: .85rem; line-height: 1.35;
}
.accred span strong { color: var(--color-text); font-weight: 600; }

/* ── Témoignages ── */
.testimonials { padding: 5rem 0; background: var(--color-bg-alt); }
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.testimonial-card {
    background: #fff;
    padding: 1.75rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    margin: 0;
    display: flex; flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.testimonial-card__score {
    display: flex; align-items: center; gap: .5rem;
    margin-bottom: 1rem;
}
.score-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.2rem; height: 2.2rem;
    border-radius: 6px;
    font-weight: 700; font-size: 1.1rem;
    font-family: var(--font-heading, 'Outfit', sans-serif);
}
.score-badge--before { background: #FFE0B2; color: #BF360C; }
.score-badge--after { background: #C8E6C9; color: #1B5E20; }
.score-arrow { color: var(--color-text-muted); font-size: 1.2rem; }
.score-badge:not(.score-badge--before):not(.score-badge--after) {
    width: auto; padding: 0 .7rem; background: #E8F5E9; color: var(--color-green);
    font-size: .9rem; text-transform: uppercase; letter-spacing: .05em;
}
.testimonial-card blockquote {
    font-size: .98rem; line-height: 1.55;
    color: var(--color-text); margin: 0 0 1rem; font-style: italic;
    flex-grow: 1;
}
.testimonial-card figcaption {
    font-size: .9rem;
    border-top: 1px solid var(--color-border);
    padding-top: .85rem;
}
.testimonial-card figcaption strong { display: block; }
.testimonial-card figcaption span {
    display: block; color: var(--color-text-muted);
    font-size: .82rem; margin-top: .2rem;
}

/* ── Simulateur primes ── */
.simu-section { padding: 5rem 0; background: var(--color-bg-alt); }
.simu-form {
    background: #fff;
    padding: 2rem 2rem 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    margin-top: 2rem;
    display: grid; gap: 1.5rem;
}
.simu-field label {
    display: block; font-weight: 600;
    margin-bottom: .5rem; font-size: .95rem;
}
.simu-radio-group { display: grid; gap: .4rem; }
.simu-radio-group label {
    display: flex; align-items: center; gap: .6rem;
    padding: .65rem .85rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 400; margin: 0;
    transition: border-color .15s, background .15s;
}
.simu-radio-group label:has(input:checked) {
    border-color: var(--color-green);
    background: #f4f8f0;
}
.simu-radio-group input[type="radio"] { accent-color: var(--color-green); }
.simu-input-wrap {
    display: flex; align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    max-width: 200px;
}
.simu-input-wrap input {
    flex: 1; padding: .7rem .9rem;
    border: none; font-size: 1rem; width: 100%;
    outline: none;
}
.simu-input-wrap:focus-within { border-color: var(--color-green); }
.simu-suffix {
    padding: 0 1rem;
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
    font-weight: 600;
    align-self: stretch;
    display: flex; align-items: center;
}
.simu-hint {
    font-size: .8rem; color: var(--color-text-muted);
    margin-top: .4rem;
}
.simu-result {
    background: linear-gradient(135deg, var(--color-green) 0%, #2D6814 100%);
    color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}
.simu-result__label {
    display: block; font-size: .85rem;
    text-transform: uppercase; letter-spacing: .06em;
    opacity: .85;
}
.simu-result__value {
    display: block;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 2.75rem; font-weight: 700;
    line-height: 1.1; margin-top: .25rem;
}
.simu-result__sub {
    display: block; font-size: .85rem;
    opacity: .9; margin-top: .3rem;
}
.simu-disclaimer {
    font-size: .85rem;
    color: var(--color-text-muted);
    max-width: 700px; margin: 1.75rem auto 0;
    line-height: 1.55; text-align: center;
}
.simu-disclaimer strong { color: var(--color-text); }

/* ── Accompagnement ── */
.accomp-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.accomp-pillar {
    padding: 1.75rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: border-color .2s, transform .2s;
}
.accomp-pillar:hover { border-color: var(--color-green); transform: translateY(-2px); }
.accomp-pillar__icon {
    width: 48px; height: 48px;
    background: #f4f8f0;
    color: var(--color-green);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}
.accomp-pillar__icon svg { width: 26px; height: 26px; }
.accomp-pillar h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.accomp-pillar p { color: var(--color-text-muted); font-size: .95rem; line-height: 1.55; }

.accomp-scope { padding: 5rem 0; background: var(--color-bg-alt); }
.accomp-scope__grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
    margin-top: 2.5rem;
}
.accomp-scope__col {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    border-top: 3px solid var(--color-green);
}
.accomp-scope__col h3 { color: var(--color-green); margin: 0 0 1rem; }
.accomp-scope__col ul {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: .5rem;
}
.accomp-scope__col li {
    position: relative; padding-left: 1.5rem;
    font-size: .95rem;
}
.accomp-scope__col li::before {
    content: "✓"; position: absolute; left: 0;
    color: var(--color-green); font-weight: 700;
}
@media (max-width: 720px) { .accomp-scope__grid { grid-template-columns: 1fr; } }

.accomp-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.accomp-case {
    padding: 1.75rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    position: relative;
}
.accomp-case__tag {
    display: inline-block;
    background: var(--color-green); color: #fff;
    padding: .25rem .65rem;
    border-radius: 999px;
    font-size: .75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .05em;
    margin-bottom: .85rem;
}
.accomp-case h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.accomp-case p { color: var(--color-text-muted); font-size: .92rem; }

/* ── Ressources ── */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}
.resource-card {
    padding: 1.75rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    display: flex; flex-direction: column;
    transition: border-color .2s, transform .2s;
}
.resource-card:hover { border-color: var(--color-green); transform: translateY(-2px); }
.resource-card__tag {
    display: inline-block;
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
    padding: .2rem .7rem;
    border-radius: 999px;
    font-size: .75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .05em;
    margin-bottom: .85rem;
    align-self: flex-start;
}
.resource-card__tag--accent {
    background: var(--color-green);
    color: #fff;
}
.resource-card h2 { font-size: 1.15rem; margin: 0 0 .35rem; }
.resource-card__meta {
    font-size: .8rem;
    color: var(--color-text-muted);
    margin-bottom: .85rem;
}
.resource-card > p {
    font-size: .93rem; color: var(--color-text);
    margin-bottom: 1rem;
}
.resource-card__points {
    list-style: none; padding: 0; margin: 0 0 1.25rem;
    display: grid; gap: .35rem;
    flex-grow: 1;
}
.resource-card__points li {
    position: relative; padding-left: 1.1rem;
    font-size: .87rem;
    color: var(--color-text-muted);
}
.resource-card__points li::before {
    content: "·"; position: absolute; left: .25rem; top: -.15rem;
    color: var(--color-green); font-size: 1.4rem; font-weight: 700;
}
.resource-card__cta {
    color: var(--color-green);
    font-weight: 600;
    text-decoration: none;
    font-size: .9rem;
    margin-top: auto;
}
.resource-card__cta:hover { text-decoration: underline; }
