/* ==========================================================================
   Guide Éco Rénovation — feuille de style commune
   ========================================================================== */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f8f6;
  --ink: #1a1f1c;
  --ink-soft: #4a544e;
  --muted: #7a847e;
  --line: #e4e9e5;
  --green: #1b7f4e;
  --green-dark: #146a40;
  --green-soft: #e6f4ec;
  --orange: #f0801f;
  --orange-dark: #d86f12;
  --orange-soft: #fff1e3;
  --red: #c8412d;
  --red-soft: #fdecea;
  --blue-soft: #e8f0fb;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(20, 40, 30, .08);
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-family: var(--font-serif); letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 5.2vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 4vw, 1.75rem); margin-top: 1.8em; }
h3 { font-size: 1.15rem; margin-top: 1.4em; }
p { margin: 0 0 1.1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1080px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 30; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 700; font-family: var(--font-serif); font-size: 1.15rem; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--green); display: grid; place-items: center; color: #fff; font-size: 16px; }
.nav a { color: var(--ink-soft); text-decoration: none; margin-left: 18px; font-size: .95rem; }
.nav a:hover { color: var(--green); }
@media (max-width: 640px) { .nav .hide-m { display: none; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 30px 0 40px; background: var(--bg-soft); color: var(--ink-soft); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.site-footer a { color: var(--ink-soft); text-decoration: none; margin-right: 16px; }
.site-footer a:hover { color: var(--green); }
.site-footer .legal { width: 100%; font-size: .8rem; color: var(--muted); line-height: 1.5; }

/* Cards / grid (accueil) */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card .thumb { aspect-ratio: 16/9; background: var(--green-soft); display: grid; place-items: center; font-size: 2.4rem; }
.card .body { padding: 16px 18px 20px; }
.card .tag { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green); font-weight: 700; margin-bottom: 6px; }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.hero { padding: 48px 0 30px; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 640px; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 700; color: var(--green); }

.btn {
  display: inline-block; padding: 14px 24px; border-radius: 10px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 0; font-size: 1rem; line-height: 1.2; text-align: center; transition: background .15s, transform .05s;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(240,128,31,.35); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-block { display: block; width: 100%; }

/* Article */
.article { padding: 28px 0 10px; }
.article .meta { color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-bottom: 18px; }
.article .meta .author { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.article .meta .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft); display: grid; place-items: center; font-weight: 700; color: var(--green); font-size: .8rem; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: .45em; }
.callout { border-left: 4px solid var(--green); background: var(--green-soft); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 22px 0; }
.callout.warn { border-color: var(--orange); background: var(--orange-soft); }
.callout p:last-child { margin: 0; }
.table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; }
.table th, .table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.table th { background: var(--bg-soft); }
.cta-box { background: var(--green-soft); border: 1px solid #cfe7d9; border-radius: var(--radius); padding: 22px; margin: 30px 0; text-align: center; }
.cta-box h3 { margin-top: 0; }

.small { font-size: .85rem; color: var(--muted); }
.center { text-align: center; }
