:root {
  --color-brand: #0f172a;
  --color-cta: #f97316;
  --text-dark: #1a1a1a;
  --text-muted: #666;
  --border-soft: #ddd;
  --bg-light: #f4f4f2;
}

*, *::before, *::after { box-sizing: border-box; }

main {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }

.wrap {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
}

.category-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0f172a;
  background-image: url('/images/hero-nergies-vertes-audit-conomies-quipements-durables.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.category-hero__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}
.category-hero__inner {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 900px;
  text-align: center;
  padding: 90px 20px;
  color: #ffffff;
}
.category-hero h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.6;
  color: #ffffff;
  margin: 0 0 22px;
}
.category-hero__lead {
  font-size: 18px;
  line-height: 1.6;
  color: #e5e5e5;
  max-width: 720px;
  margin: 0 auto 34px;
}

.btn-cta {
  display: inline-block;
  background-color: var(--color-cta);
  color: #ffffff;
  text-decoration: none;
  padding: 16px 34px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  transition: background-color 0.2s;
}
.btn-cta:hover {
  background-color: #d95d00;
}

.articles-panel {
  padding: 72px 0;
  background: #ffffff;
}
.articles-panel h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-brand);
  margin: 0 0 14px;
}
.panel-intro {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-top: 42px;
}
.article-card {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.article-card h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-brand);
  margin: 18px 22px 10px;
}
.article-card h3 a {
  color: inherit;
  text-decoration: none;
}
.article-card h3 a:hover {
  text-decoration: underline;
}
.article-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 22px 24px;
}
.empty-note {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 22px;
}

.editorial-block {
  padding: 72px 0;
  background: var(--bg-light);
}
.editorial-block h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-brand);
  margin: 0 0 30px;
}
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.editorial-grid p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0 0 18px;
}
.editorial-grid p:last-child { margin-bottom: 0; }

.families-block {
  padding: 72px 0;
  background: #ffffff;
}
.families-block h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-brand);
  margin: 0 0 14px;
}
.families-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 0 34px;
}
.families-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.families-list li {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 24px 22px;
  background: #ffffff;
  min-width: 0;
}
.families-list strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-brand);
  margin-bottom: 8px;
}
.families-list span {
  display: block;
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

.steps-line {
  padding: 72px 0;
  background: var(--color-brand);
  color: #ffffff;
}
.steps-line h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.6;
  color: #ffffff;
  margin: 0 0 14px;
}
.steps-lead {
  font-size: 17px;
  line-height: 1.6;
  color: #d9d9d9;
  max-width: 780px;
  margin: 0 0 36px;
}
.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.step-item {
  background: #182238;
  border: 1px solid #2b3a5a;
  border-radius: 10px;
  padding: 24px 22px;
  min-width: 0;
}
.steps-line .step-item,
.steps-line .step-item p,
.steps-line .step-item span,
.steps-line .step-item strong {
  color: #ffffff;
}
.step-num {
  display: block;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 10px;
}
.step-item strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 8px;
}
.step-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #d9d9d9;
  margin: 0;
}

.compare-block {
  padding: 72px 0;
  background: #ffffff;
}
.compare-block h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-brand);
  margin: 0 0 14px;
}
.compare-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 0 32px;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  margin-top: 6px;
}
.compare-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
}
.compare-table th {
  background: var(--color-brand);
  color: #ffffff;
  text-align: left;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  border-bottom: 1px solid #1c2942;
}
.compare-table td {
  padding: 15px 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  border-bottom: 1px solid #eee;
  vertical-align: top;
}
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.table-note {
  font-size: 14px;
  line-height: 1.6;
  color: #888;
  margin: 18px 0 0;
}

.qa-block {
  padding: 72px 0;
  background: var(--bg-light);
}
.qa-block h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-brand);
  margin: 0 0 30px;
}
.qa-list {
  display: grid;
  gap: 18px;
}
.qa-item {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 24px 26px;
}
.qa-item h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-brand);
  margin: 0 0 10px;
}
.qa-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

.cta-band {
  padding: 72px 0;
  background: var(--color-brand);
  color: #ffffff;
  text-align: center;
}
.cta-band h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.6;
  color: #ffffff;
  margin: 0 0 16px;
}
.cta-band p {
  font-size: 17px;
  line-height: 1.6;
  color: #d9d9d9;
  max-width: 700px;
  margin: 0 auto 32px;
}

@media (max-width: 768px) {
  .category-hero { min-height: 460px; }
  .category-hero__inner { padding: 70px 16px; }
  .category-hero h1 { font-size: 28px; }
  .category-hero__lead { font-size: 16px; }

  .articles-panel,
  .editorial-block,
  .families-block,
  .steps-line,
  .compare-block,
  .qa-block,
  .cta-band {
    padding: 52px 0;
  }

  .articles-panel h2,
  .editorial-block h2,
  .families-block h2,
  .steps-line h2,
  .compare-block h2,
  .qa-block h2,
  .cta-band h2 {
    font-size: 24px;
  }

  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .btn-cta {
    display: block;
    width: 100%;
    text-align: center;
  }

  .qa-item { padding: 20px 20px; }
  .qa-item h3 { font-size: 17px; }
}

@media (max-width: 480px) {
  .wrap { width: 94%; }
  .category-hero h1 { font-size: 24px; }
  .category-hero__lead { font-size: 15px; }
  .article-card img { height: 180px; }
}