:root {
  --color-brand: #2B4C5E;
  --color-cta: #0E8388;
  --ink: #22323C;
  --muted: #56666F;
  --paper: #E3EBEF;
  --white: #FFFFFF;
}

html, body { overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
img, svg, video, iframe { max-width: 100%; height: auto; }
body { background-color: #E3EBEF; overflow-wrap: break-word; word-wrap: break-word; }
[id] { scroll-margin-top: 24px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #FFFFFF; color: #2B4C5E; padding: 10px 16px; font-weight: 700; font-size: 16px; text-decoration: underline; text-decoration-thickness: 2px; border: 2px solid #2B4C5E; z-index: 999; }
.skip-link:focus { left: 12px; top: 12px; }

.page-shell { margin-left: 260px; }

.hero { position: relative; background-image: url('/images/hero-fondations-preparer-sol-gros-oeuvre.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat; background-color: #2B4C5E; min-height: 58vh; display: flex; align-items: flex-end; color: #FFFFFF; }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.55); }
.hero-content { position: relative; z-index: 1; padding: 96px clamp(32px, 5vw, 64px) 80px clamp(72px, 9vw, 128px); max-width: 1040px; }
.hero-title { color: #FFFFFF; font-size: clamp(40px, 5vw, 60px); font-weight: 700; line-height: 1.65; max-width: 22ch; margin: 0 0 20px 0; }
.article-meta { color: #E3EBEF; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.65; margin: 0 0 20px 0; }
.hero-star { display: block; margin: 0 0 28px 0; }
.hero-intro { color: #FFFFFF; font-size: 19px; font-weight: 400; line-height: 1.65; max-width: 620px; margin: 0 0 32px 0; }

.btn { display: inline-block; background-color: #0E8388; color: #FFFFFF; font-size: 16px; font-weight: 700; line-height: 1.65; text-transform: uppercase; letter-spacing: 0.04em; padding: 14px 28px; text-decoration: none; box-shadow: 4px 4px 0 rgba(34, 50, 60, 0.2); transition: background-color 0.2s, box-shadow 0.2s; }
.btn:hover { background-color: #0B6C70; color: #FFFFFF; box-shadow: 2px 2px 0 rgba(34, 50, 60, 0.2); }
.btn:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }

.article-main { padding: 80px clamp(32px, 5vw, 64px) 96px clamp(72px, 9vw, 128px); color: #22323C; }
.article-main h2 { color: #2B4C5E; font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; line-height: 1.65; max-width: 720px; margin: 0 0 24px 0; }
.article-main h3 { color: #2B4C5E; font-size: 24px; font-weight: 700; line-height: 1.65; max-width: 720px; margin: 40px 0 12px 0; }
.article-main p { font-size: 17px; line-height: 1.65; max-width: 720px; margin: 0 0 20px 0; }
.article-main strong { font-weight: 700; }

.art-section { margin-bottom: 48px; }
.sep { border: 0; border-top: 2px solid #2B4C5E; max-width: 720px; margin: 0 0 48px; }

.pull-quote { background: #FFFFFF; border: 2px solid #2B4C5E; padding: 24px; max-width: 720px; margin: 40px 0; box-shadow: 4px 4px 0 rgba(43, 76, 94, 0.2); }
.pull-quote p { color: #2B4C5E; font-size: 21px; font-weight: 700; line-height: 1.65; margin: 0; max-width: none; }

.table-wrap { max-width: 880px; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 32px 0 40px 0; }
.data-table { width: 100%; min-width: 640px; border-collapse: collapse; background: #FFFFFF; border: 2px solid #2B4C5E; box-shadow: 6px 6px 0 rgba(43, 76, 94, 0.15); }
.data-table caption { font-size: 13px; color: #56666F; text-align: left; padding: 0 2px 10px 2px; line-height: 1.65; }
.data-table th { background-color: #2B4C5E; color: #FFFFFF; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; text-align: left; padding: 12px 14px; border: 1px solid #7A8B94; line-height: 1.65; }
.data-table td { font-size: 16px; color: #22323C; padding: 12px 14px; border: 1px solid #7A8B94; vertical-align: top; line-height: 1.65; }
.data-table th, .data-table td { min-width: 0; }

.steps { counter-reset: step; max-width: 720px; margin: 32px 0 40px 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; position: relative; padding-left: 64px; margin-bottom: 24px; font-size: 17px; line-height: 1.65; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 44px; height: 44px; background: #FFFFFF; border: 2px solid #2B4C5E; color: #2B4C5E; font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; line-height: 1; }
.steps strong { color: #2B4C5E; font-weight: 700; }

.checklist { max-width: 720px; margin: 32px 0 8px 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 44px; margin-bottom: 16px; font-size: 17px; line-height: 1.65; color: #22323C; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; background: #FFFFFF; border: 2px solid #2B4C5E; }

.faults { max-width: 720px; margin: 32px 0 8px 0; padding: 0; list-style: none; }
.faults li { margin-bottom: 20px; font-size: 17px; line-height: 1.65; color: #22323C; }
.faults strong { color: #2B4C5E; font-weight: 700; }

.big-num { display: inline-block; font-size: clamp(56px, 7vw, 104px); font-weight: 700; line-height: 1; color: #2B4C5E; vertical-align: -0.15em; padding: 0 4px; }

.figure-block { margin: 40px 0 48px 0; max-width: 880px; }
.figure-block img { display: block; width: 100%; height: auto; filter: grayscale(1) contrast(1.05); border: 2px solid #2B4C5E; }
.figure-block figcaption { margin-top: 12px; font-size: 14px; color: #56666F; line-height: 1.65; max-width: 720px; }

.cta-band { background-color: #2B4C5E; color: #FFFFFF; padding: 56px clamp(32px, 4vw, 56px); margin-top: 48px; }
.cta-band h2 { color: #FFFFFF; max-width: 720px; margin: 0 0 16px 0; }
.cta-band p { color: #E3EBEF; max-width: 720px; margin: 0 0 28px 0; }
.cta-band .btn { margin-top: 4px; }

.related-block { margin-top: 96px; }
.related-block p { margin-bottom: 8px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; margin-top: 32px; }
.related-card { background: #FFFFFF; border: 2px solid #2B4C5E; padding: 28px; box-shadow: 6px 6px 0 rgba(43, 76, 94, 0.15); }
.related-card h3 { font-size: 20px; font-weight: 700; color: #2B4C5E; line-height: 1.65; margin: 0 0 12px 0; max-width: none; }
.card-meta { font-size: 13px; font-weight: 700; color: #56666F; text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.65; margin: 0 0 12px 0; max-width: none; }
.card-text { font-size: 16px; color: #22323C; line-height: 1.65; margin: 0; max-width: none; }

.site-note { font-size: 14px; color: #56666F; line-height: 1.65; max-width: 720px; margin-top: 56px; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

@media (max-width: 900px) {
  .page-shell { margin-left: 0; }
  .hero { min-height: 46vh; }
  .hero-content { padding: 56px 24px 44px 24px; }
  .article-main { padding: 48px 24px 64px 24px; }
  .art-section { margin-bottom: 32px; }
  .sep { margin: 0 0 32px; }
  .cta-band { margin-top: 32px; padding: 40px 28px; }
  .related-block { margin-top: 64px; }
  .figure-block { margin: 32px 0 36px 0; }
  .table-wrap { margin: 24px 0 32px 0; }
  .hero-intro { font-size: 17px; }
}

@media (max-width: 480px) {
  .btn { display: block; text-align: center; padding: 14px 20px; }
  .data-table td { font-size: 14px; padding: 10px; }
  .data-table th { padding: 10px; }
  .steps li { padding-left: 52px; }
  .steps li::before { width: 38px; height: 38px; font-size: 17px; }
  .checklist li { padding-left: 40px; }
  .related-grid { grid-template-columns: 1fr; }
  .site-note { margin-top: 40px; }
}

/* ===== 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; }
