/* Solutions BTP Pro : anthracite (#22262b), jaune chantier (#f2a516), fond béton clair (#f5f3ee).
   Titres Archivo Black en capitales, texte Archivo, angles droits et bordures épaisses. Chargé après /assets/site.css. */
:root {
  --bg: #f5f3ee; --card: #ffffff; --line: #ddd8cc; --line-2: #c9c4b8;
  --ink: #22262b; --text: #22262b; --muted: #5c6168;
  --accent: #f2a516; --accent-text: #8a5700; --dark-2: #3a4048;
  --soft: var(--card); --navy: var(--ink); --gold: var(--accent-text); --grey: var(--muted);
  --ok: #2b7a57; --bad: #b3261e;
  --display: "Archivo Black", Archivo, "Arial Black", sans-serif;
  --font: Archivo, system-ui, sans-serif;
}
body { background: var(--bg); color: var(--text); font: 18px/1.65 var(--font); }
a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 75rem; padding-left: 1.5rem; padding-right: 1.5rem; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; color: var(--ink); line-height: 1.08; }
h1 { font-size: clamp(30px, 5.5vw, 42px); }
h2 { font-size: clamp(22px, 3.4vw, 30px); text-transform: uppercase; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }

/* En-tête sombre */
.site-header { background: var(--ink); color: var(--bg); border-bottom: 4px solid var(--accent); }
.header-inner { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding-top: .6rem; padding-bottom: .6rem; }
.site-name, .footer-name { font-family: var(--display); font-size: 21px; text-transform: uppercase; color: var(--bg); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.site-name:hover { color: var(--bg); }
.logo-mark { width: 28px; height: 28px; background: var(--accent); display: inline-block; flex-shrink: 0; }
.site-nav { max-width: 100%; overflow-x: auto; }
.site-nav ul { display: flex; gap: .25rem 1.4rem; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.site-nav a { color: var(--bg); text-decoration: none; font-weight: 600; font-size: 15px; display: inline-block; padding: .5rem 0; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Accueil et listes */
.site-main { padding-top: 2rem; }
.site-intro, .list-head { max-width: none; margin: 0 0 2.5rem; padding: 0 0 1.5rem; border-bottom: 4px solid var(--ink); }
.site-intro h1, .list-head h1 { margin: 0 0 .5rem; text-transform: uppercase; }
.site-intro p, .list-head p { margin: 0; max-width: 56ch; color: var(--muted); font-size: 19px; }
.eyebrow { color: var(--accent-text); letter-spacing: .08em; }

.cards { gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.card { background: var(--card); border: 2px solid var(--ink); display: flex; flex-direction: column; }
.card-link { color: var(--ink); }
.card-img { border-radius: 0; background: var(--dark-2); }
.card-img-empty { background: repeating-linear-gradient(-45deg, #3a4048 0 18px, #22262b 18px 36px); }
.card-cat { align-self: flex-start; display: inline-block; margin: 1rem 1.25rem 0; padding: 3px 8px; background: var(--accent); color: var(--ink); font-size: 12px; letter-spacing: .06em; }
.card-title { margin: .5rem 1.25rem .5rem; text-transform: none; font-family: var(--font); font-weight: 700; font-size: 20px; line-height: 1.25; }
.card-link:hover .card-title { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.card-excerpt { margin: 0 1.25rem .5rem; font-size: 15px; color: var(--muted); }
.card-meta { margin: auto 1.25rem 1rem; font-size: 13px; color: var(--muted); }
@media (min-width: 900px) {
  .cards--home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards--home > .card:first-child .card-link { display: flex; flex-direction: column; flex: 1; }
  .cards--home > .card:first-child .card-img { flex: 1; aspect-ratio: auto; min-height: 16rem; }
  .cards--home > .card:first-child { grid-column: span 2; grid-row: span 2; background: var(--ink); border-color: var(--ink); }
  .cards--home > .card:first-child .card-link, .cards--home > .card:first-child .card-title { color: var(--bg); }
  .cards--home > .card:first-child .card-title { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1.08; }
  .cards--home > .card:first-child .card-excerpt, .cards--home > .card:first-child .card-meta { color: #b9bec5; }
  .cards--home > .card:first-child .card-excerpt { font-size: 17px; }
}
.pager a { background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; padding: .75rem 1.2rem; }
.pager a:hover { background: var(--accent); color: var(--ink); }
.pager span { color: var(--muted); }

/* Article */
.crumbs ol { color: var(--muted); font-size: 14px; }
.a-eyebrow { display: inline-block; background: var(--accent); color: var(--ink); padding: 3px 8px; letter-spacing: .06em; }
.a-eyebrow::after { display: none; }
.a-article h1 { margin: .75rem 0 1rem; }
.a-excerpt { color: var(--muted); font-size: 19px; }
.a-meta { color: var(--muted); border-bottom: 2px solid var(--ink); font-size: 15px; }
.a-meta strong { color: var(--ink); }
.a-block-title { color: var(--ink); letter-spacing: .1em; }
.a-figure img { border-radius: 0; }
.a-figure.is-missing .a-placeholder { background: #e9e5dc; border: 2px dashed #b3ab9a; color: var(--muted); }
.a-quote { border-left: 6px solid var(--accent); color: var(--ink); font-family: var(--font); font-weight: 700; font-size: 20px; }
.a-quote footer { font-family: var(--font); font-weight: 400; }

.a-callout, .a-highlight, .a-summary, .a-tool { background: var(--card); border: 0; border-left: 6px solid var(--accent); border-radius: 0; padding: 1.25rem 1.5rem; }
.a-callout--info { border: 2px solid var(--ink); }
.a-callout--warning { background: #fff6e0; border-left-color: var(--accent); }
.a-callout--danger { background: #fbeeed; border-left-color: var(--bad); }
.a-highlight { font-weight: 700; }

.a-table table { background: var(--card); font-size: 16px; border: 1px solid var(--line); }
.a-table th, .a-table td { border-bottom-color: var(--line); padding: .75rem 1rem; }
.a-table thead th { background: var(--ink); color: var(--bg); }
.a-table tbody th { color: var(--ink); }

.a-faq details { background: var(--card); border: 1px solid var(--line); padding: 1rem 1.25rem; margin-bottom: -1px; }
.a-faq summary { color: var(--ink); }
.a-steps li { background: var(--card); border: 1px solid var(--line); padding: 1rem 1.25rem 1rem 3.5rem; margin-bottom: .6rem; }
.a-steps li::before { left: 1rem; top: 1rem; border-radius: 0; background: none; color: #d98b09; font-family: var(--display); font-weight: 400; font-size: 20px; width: auto; height: auto; }
.a-proscons > div { background: var(--card); border: 1px solid var(--line); border-radius: 0; }
.a-proscons > div:first-of-type { border-top: 4px solid var(--ok); }
.a-proscons > div:last-of-type { border-top: 4px solid var(--bad); }
.a-verdict { background: var(--card); border: 2px solid var(--ink); }
.a-cta { background: var(--ink); color: var(--bg); border-radius: 0; border-left: 6px solid var(--accent); }
.a-cta-btn { background: var(--accent); color: var(--ink); }
.a-cta-btn:hover { background: #ffc04d; color: var(--ink); }
.a-sources h2 { color: var(--ink); font-family: var(--font); }
.a-author { background: var(--card); border: 2px solid var(--ink); }
.a-author strong { color: var(--ink); }

/* Calculateurs (béton…) */
.a-tool { border: 2px solid var(--ink); }
.a-tool label { font-size: 13px; color: var(--muted); }
.a-tool input { border: 1px solid var(--line-2); border-radius: 0; font-weight: 600; }
.a-tool .tool-result { background: var(--accent); border-radius: 0; color: var(--ink); }
.a-tool .tool-result dt { color: var(--ink); }

.related { border-top: 4px solid var(--ink); }

/* Pied de page sombre */
.site-footer { margin-top: 4rem; padding: 2rem 0; background: var(--ink); color: #b9bec5; font-size: 14px; }
.footer-name { font-size: 18px; margin: 0 0 .75rem; }
.footer-name .logo-mark { width: 20px; height: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.footer-links a { color: #e2e4e7; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { margin: 0; }

/* ================= Couche v3 : Claude Varenne, 22 oct. 2026 (posée au-dessus du thème d'origine, qui reste inchangé plus haut) =================
   Besoin du lecteur : les mains sales, le matériau acheté devant soi, un doute sur un chiffre ou une unité ; il cherche le détail précis.
   Changements : tableaux plus lisibles (chiffres alignés, lignes alternées, légende marquée), numérotation des cartes comme un classeur,
   zones tactiles ≥ 44 px, colonne de lecture 46 rem, impression propre pour garder une fiche de préparation ou un devis. */
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.a-article { max-width: 46rem; }
.a-article p:not(.a-eyebrow):not(.a-meta):not(.a-excerpt), .a-article li { font-size: 18.5px; }
.a-table { border: 2px solid var(--ink); }
.a-table table { border: 0; font-variant-numeric: tabular-nums; }
.a-table caption { font-weight: 700; color: var(--ink); }
.a-table tbody th { font-weight: 700; }
.a-table tbody tr:nth-child(even) th, .a-table tbody tr:nth-child(even) td { background: #faf8f3; }
.a-tool .tool-result dd, .a-tool input { font-variant-numeric: tabular-nums; }
.cards { counter-reset: n; }
.card { counter-increment: n; position: relative; }
.card::before { content: "N° " counter(n, decimal-leading-zero); position: absolute; top: .6rem; right: .75rem; z-index: 2; background: var(--bg); padding: .25rem .5rem; font: 400 12px/1 var(--display); color: var(--accent-text); letter-spacing: .06em; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  .site-header, .site-footer, .related, .pager { display: none; }
  body { background: #fff; color: #000; }
  .a-article { max-width: none; }
  .a-table, .a-table th, .a-table td { border-color: #000; }
  a { color: #000; }
}
