:root {
  --bg: #FBF7F0;
  --brand: #6B4F3A;
  --cta: #C24E2E;
  --ink: #2B2621;
  --muted: #7A6E63;
  --line: #D8CFC4;
  --surface: #F3ECE2;
  --paper: #FBF7F0;
  --font-display: Tahoma, "Trebuchet MS", Geneva, Verdana, sans-serif;
  --font-body: "Trebuchet MS", Tahoma, Verdana, Geneva, sans-serif;
  --font-meta: Tahoma, Verdana, Geneva, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  margin: 0;
  padding: 0;
  text-shadow: none;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

img,
video,
iframe,
svg,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.65;
  margin: 0 0 12px;
  text-shadow: none;
  overflow-wrap: break-word;
}

p {
  margin: 0 0 18px;
}

a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--ink);
}

.btn {
  display: inline-block;
  background-color: var(--cta);
  color: var(--paper);
  border: 0;
  border-radius: 0;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.65;
  text-decoration: none;
  box-shadow: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

main {
  display: block;
  width: 100%;
}

.hero {
  position: relative;
  min-height: 520px;
  background-color: #3a2c20;
  background-image: url('/images/hero-couler-une-dalle-beton-dosage-coffrage-cure.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px;
  width: 100%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.hero h1 {
  color: #fff;
  font-size: clamp(34px, 6vw, 68px);
  margin: 0 0 20px;
}

.hero-subtitle {
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.65;
  margin: 0;
}

.article-body {
  background-color: var(--bg);
  padding: 64px 24px;
  width: 100%;
}

.article-container {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.article-container > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 5.4em;
  line-height: 0.9;
  color: var(--brand);
  margin: -0.02em 0.14em 0 0;
}

.article-container section {
  margin-bottom: 48px;
}

.article-container section:last-child {
  margin-bottom: 0;
}

.article-container h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 20px;
  color: var(--ink);
}

.article-container h3 {
  font-size: 20px;
  margin: 24px 0 10px;
  color: var(--ink);
}

.article-container p {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  margin: 0 0 18px;
  color: var(--ink);
}

.article-container ul,
.article-container ol {
  margin: 0 0 20px;
  padding-left: 24px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
}

.article-container ul li,
.article-container ol li {
  margin-bottom: 10px;
  line-height: 1.65;
}

.article-container strong {
  font-weight: 700;
}

.marker {
  border-bottom: 8px solid var(--cta);
  padding-bottom: 2px;
  margin-bottom: -4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.article-figure {
  margin: 32px 0;
  padding: 0;
}

.article-figure img {
  transform: rotate(1.5deg);
  border: 10px solid var(--surface);
  box-shadow: 12px 12px 0 var(--line);
  max-width: 100%;
  height: auto;
  display: block;
}

.article-figure:nth-of-type(even) img {
  transform: rotate(-1.5deg);
}

.article-figure figcaption {
  font-family: var(--font-meta);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 20px;
  padding-left: 4px;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0 32px;
  border: 1px solid var(--line);
  max-width: 100%;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.65;
  background-color: var(--paper);
}

.article-table th,
.article-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  line-height: 1.65;
  vertical-align: top;
}

.article-table tr:last-child td {
  border-bottom: 0;
}

.article-table th {
  background-color: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font-meta);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.article-table td {
  color: var(--ink);
  font-weight: 400;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  counter-reset: step;
  position: relative;
}

.timeline li {
  position: relative;
  padding-left: 64px;
  padding-bottom: 28px;
  counter-increment: step;
  min-height: 44px;
}

.timeline li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background-color: transparent;
  border: 2px solid var(--brand);
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 36px;
  text-align: center;
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 46px;
  bottom: 0;
  width: 2px;
  background-color: var(--line);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li:last-child::after {
  display: none;
}

.timeline h3 {
  font-size: 20px;
  margin: 6px 0 6px;
  color: var(--ink);
}

.timeline p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}

.faq-item {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h3 {
  font-size: 19px;
  margin: 0 0 10px;
  color: var(--ink);
}

.faq-item p {
  margin: 0;
  font-size: 17px;
  color: var(--ink);
}

.cta-final {
  padding: 40px 24px;
  text-align: center;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-final h2 {
  color: var(--ink);
  font-size: clamp(26px, 4vw, 34px);
  margin: 0 0 16px;
}

.cta-final p {
  color: var(--ink);
  font-size: 17px;
  margin: 0 0 24px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final .btn {
  margin-top: 4px;
}

@media (max-width: 768px) {
  .hero {
    min-height: 420px;
    padding: 72px 20px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .article-body {
    padding: 40px 20px;
  }

  .article-container > p:first-of-type::first-letter {
    font-size: 4.4em;
  }

  .article-container h2 {
    font-size: 26px;
  }

  .article-container h3 {
    font-size: 19px;
  }

  .article-container p,
  .article-container ul,
  .article-container ol {
    font-size: 16px;
  }

  .article-figure img {
    border-width: 6px;
    box-shadow: 6px 6px 0 var(--line);
    transform: rotate(1deg);
  }

  .article-figure:nth-of-type(even) img {
    transform: rotate(-1deg);
  }

  .timeline li {
    padding-left: 54px;
  }

  .timeline li::before {
    width: 36px;
    height: 36px;
    line-height: 32px;
    font-size: 16px;
  }

  .timeline li::after {
    left: 17px;
    top: 42px;
  }

  .cta-final {
    padding: 32px 20px;
    margin-top: 32px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 360px;
    padding: 56px 16px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .article-body {
    padding: 32px 16px;
  }

  .article-container h2 {
    font-size: 22px;
  }

  .article-container > p:first-of-type::first-letter {
    font-size: 3.8em;
  }

  .article-table {
    font-size: 13px;
  }

  .article-table th,
  .article-table td {
    padding: 8px 10px;
  }

  .faq-item h3 {
    font-size: 17px;
  }
}

/* ===== TYPOGRAPHY SPACING FIX (APS_ARTICLE_TYPO_REQUIRED_v2) ===== */
/* Defensive guard against universal * { margin: 0 } reset in global.css. */
/* body-scoped via :where() so specificity stays at 0,0,0,1 — beats * but
   loses to any component rule like .tip-box p / .faq-item p. */
body :where(p)              { margin-bottom: 1.1rem; }
body :where(h2)             { margin-top: 2.5rem; margin-bottom: 1rem; }
body :where(h3)             { margin-top: 1.75rem; margin-bottom: 0.75rem; }
body :where(h4)             { margin-top: 1.25rem; margin-bottom: 0.5rem; }
body :where(ul, ol)         { margin-bottom: 1.1rem; padding-left: 1.5rem; }
body :where(li)             { margin-bottom: 0.4rem; }
body :where(blockquote)     { margin: 1.5rem 0; }
