/* energy.aib.be — feuille de style unique */
:root {
  --green: #7cb400;
  --green-dark: #4f7a00;
  --ink: #1f2a1a;
  --ink-2: #4b5547;
  --line: #e2e6dc;
  --bg: #f3f5f0;
  --card: #ffffff;
  --radius: 10px;
  --max: 1100px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: absolute; top: 8px; left: 8px; z-index: 10; background: #fff; padding: 8px 12px; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }

/* Bandeau */
.hero { position: relative; background: var(--green); }
.hero-track { display: grid; }
.hero-slide { grid-area: 1 / 1; width: 100%; opacity: 0; transition: opacity .8s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-dots { position: absolute; bottom: 12px; right: 16px; display: flex; gap: 8px; }
.hero-dots button {
  width: 12px; height: 12px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid #fff; background: rgba(255,255,255,.35);
}
.hero-dots button.is-active { background: #fff; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

/* Navigation */
.main-nav { background: var(--ink); }
.main-nav ul {
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--max);
  display: flex; flex-wrap: wrap; justify-content: center;
}
.main-nav a {
  display: block; padding: 14px 18px; color: #fff; text-decoration: none; font-size: 15px;
}
.main-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--green); }
.menu-toggle {
  display: none; width: 100%; padding: 14px 16px; border: 0; background: transparent;
  color: #fff; font: inherit; text-align: left; cursor: pointer;
}
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: inline-block; width: 18px; height: 2px; background: #fff; position: relative; vertical-align: middle;
}
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-bars { margin-right: 8px; }

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .main-nav ul { display: none; flex-direction: column; }
  .main-nav.is-open ul { display: flex; }
  .main-nav a { border-top: 1px solid rgba(255,255,255,.1); }
}

/* Contenu */
main { padding-block: 32px; }
.card {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--line);
  padding: clamp(20px, 4vw, 48px);
}
h1, h2, h3 { line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 24px; }
h2 { font-size: clamp(21px, 2.6vw, 26px); margin: 32px 0 12px; }
h3 { font-size: 19px; margin: 24px 0 8px; }
.card > :first-child, .block:first-child h2 { margin-top: 0; }
p { margin: 0 0 16px; }
ul, ol { padding-left: 1.3em; margin: 0 0 16px; }
li { margin-bottom: 6px; }
li::marker { color: var(--green-dark); }
.lead { font-size: 1.15em; color: var(--ink-2); }

.block + .block { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 8px; }
.block h2 { margin-top: 24px; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 8px 40px; }
.grid-2 > section > :first-child { margin-top: 16px; }

.table-wrap { overflow-x: auto; margin: 0 0 24px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; width: 50%; }
@media (max-width: 560px) { th, td { padding: 10px 8px; font-size: 15px; } }
thead th { background: var(--bg); }
th:last-child, td:last-child { background: #f4faea; }
thead th:last-child { background: var(--green); color: #fff; }

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps > li {
  counter-increment: step; position: relative; padding: 4px 0 8px 64px; margin-bottom: 16px;
}
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700; font-size: 20px; display: grid; place-items: center;
}
.steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 21px; top: 52px; bottom: -12px; width: 2px; background: var(--line);
}
.steps h2 { margin: 6px 0 4px; font-size: 21px; }
.step-meta { color: var(--ink-2); font-weight: 600; margin-bottom: 8px; }

.layers { list-style: none; padding: 0; }
.layers > li:not(.layer-link) {
  border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius);
  padding: 16px 20px 4px;
}
.layers h2 { margin: 0 0 8px; font-size: 20px; }
.layer-link { text-align: center; color: var(--ink-2); font-style: italic; padding: 10px 0; margin: 0; }
.layer-link::before { content: "↓ "; color: var(--green-dark); font-style: normal; }

.checklist { list-style: none; padding: 0; }
.checklist li::before { content: "✓"; color: var(--green-dark); font-weight: 700; margin-right: 10px; }

address { font-style: normal; margin-bottom: 16px; }

/* Boutons, formulaire */
.btn {
  display: inline-block; background: var(--green-dark); color: #fff; border: 0; border-radius: 6px;
  padding: 12px 24px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--green-dark); }
.btn-light:hover { background: var(--ink); color: #fff; }

.contact-form { max-width: 640px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.contact-form .req { font-weight: 400; color: var(--ink-2); font-size: .9em; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: inherit;
  border: 1px solid #c8cec0; border-radius: 6px; background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--green-dark); outline: 2px solid var(--green); outline-offset: 0; }
.form-note { font-size: .9em; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: 6px; padding: 14px 18px 2px; margin-bottom: 20px; }
.notice ul { margin-bottom: 12px; }
.notice-ok { background: #eef7dc; border: 1px solid #b9dc7a; }
.notice-error { background: #fdecec; border: 1px solid #f0b4b4; }

/* Appel à l'action */
.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--green); color: #fff; border-radius: var(--radius); padding: 24px clamp(20px, 4vw, 48px);
  margin-bottom: 32px;
}
.cta p { margin: 0; }
.cta-title { font-size: 22px; font-weight: 700; }

/* Pied de page */
.site-footer { background: var(--ink); color: #d8dccf; font-size: 15px; padding-top: 32px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 32px; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 4px; }
.copyright { text-align: center; margin: 16px 0 0; padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
