/* ═════════════════════════════════════════════════════════════════════
   BCA Peintures & Sols — styles partagés des pages Articles (SEO)
   Utilisé par /articles/, /articles/<slug>/ et /articles/view.html
   ═════════════════════════════════════════════════════════════════════ */
:root {
  --ink: #0b0b0c;
  --sky: #dbe6ee;
  --copper: #c2593f;
  --copper-hover: #a84b34;
  --surface-card: #f8fafc;
  --border-subtle: rgba(11,11,12,.08);
  --text-muted: #57606a;
  --ease: cubic-bezier(.22,1,.36,1);
  --pad-x: clamp(1.25rem, 4vw, 3.6rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--sky);
  overflow-x: hidden;
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
img { max-width: 100%; height: auto; }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.1rem, 2.4vw, 1.9rem) var(--pad-x);
  background: var(--sky);
}

.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; object-fit: contain; }

.header-right { display: flex; align-items: center; gap: .6rem; }
.back-home {
  font-size: .95rem;
  font-weight: 500;
  padding: .15rem 0;
  position: relative;
}
.back-home::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.back-home:hover::after { transform: scaleX(1); transform-origin: left; }

.btn-play {
  background: var(--copper);
  color: #fff;
  border-radius: 6px;
  padding: .72rem 1.15rem;
  font-size: .95rem;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-weight: 500;
  transition: transform .45s var(--ease), background-color .45s var(--ease), box-shadow .45s var(--ease);
}
.btn-play:hover { transform: translateY(-2px); background: var(--copper-hover); box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); }
.btn-play:active { transform: translateY(0); }

@media (max-width: 560px) { .back-home { display: none; } }

/* ── Layout ─────────────────────────────────────────────────────────── */
.page-wrap { padding: clamp(2.5rem, 5vw, 4.5rem) var(--pad-x); }
.container { max-width: 1240px; margin: 0 auto; }
.container-narrow { max-width: 820px; margin: 0 auto; }

.section-tag {
  display: inline-block;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--copper);
  background: rgba(194,89,63,.1);
  padding: .3rem .75rem;
  border-radius: 4px;
  margin-bottom: .75rem;
}

.section-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.14;
  font-weight: 400;
  margin: 0 0 1.2rem;
}

.section-lead {
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 68ch;
  margin-bottom: 2.5rem;
}

/* ── Breadcrumb ─────────────────────────────────────────────────────── */
.breadcrumbs {
  font-size: .84rem;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
}
.breadcrumbs a { text-decoration: underline; text-underline-offset: 2px; }
.breadcrumbs a:hover { color: var(--copper); }
.breadcrumbs .current { color: var(--copper); font-weight: 600; }

/* ── Article header ─────────────────────────────────────────────────── */
.article-header { margin-bottom: 2rem; }
.article-header h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.15;
  font-weight: 400;
  margin: .6rem 0 1rem;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

/* ── Article body ───────────────────────────────────────────────────── */
.article-content { line-height: 1.78; color: #334155; font-size: 1.02rem; }
.article-content h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.9rem;
  color: var(--ink);
  margin: 2.2rem 0 .8rem;
  line-height: 1.2;
}
.article-content h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.45rem;
  color: var(--ink);
  margin: 1.8rem 0 .6rem;
}
.article-content p { margin: 0 0 1.1rem; }
.article-content ul, .article-content ol { padding-left: 1.4rem; margin: 0 0 1.4rem; }
.article-content li { margin-bottom: .5rem; }
.article-content strong { color: var(--ink); }
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: .92rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}
.article-content th {
  background: #f8fafc;
  padding: .85rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid #e2e8f0;
}
.article-content td { padding: .85rem 1rem; border-bottom: 1px solid #f1f5f9; color: #334155; }
.callout-pro-box {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  padding: 1.2rem 1.4rem;
  border-radius: 0 8px 8px 0;
  margin: 1.8rem 0;
}
.callout-pro-box strong { color: #166534; display: block; margin-bottom: .3rem; font-size: .95rem; }
.article-toc {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
}
.article-toc h4 { margin: 0 0 .6rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; color: #475569; }
.article-toc ol { margin: 0; padding-left: 1.2rem; font-size: .9rem; }
.article-toc li { margin-bottom: .35rem; }

.article-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 2rem 0 0; }
.tag-badge {
  background: #f1f5f9;
  color: #475569;
  font-size: .75rem;
  padding: .2rem .55rem;
  border-radius: 4px;
}

/* ── Cards / grids ──────────────────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.article-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.8rem;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -10px rgba(0,0,0,.08);
  border-color: rgba(194,89,63,.4);
}
.article-card .article-meta {
  border-bottom: none;
  padding-bottom: 0;
  color: var(--copper);
  font-weight: 600;
  font-size: .82rem;
  margin-bottom: .8rem;
  padding-top: 0;
}
.article-card .article-meta .read-time { color: var(--text-muted); font-weight: 400; }
.article-card h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 .8rem;
  font-weight: 400;
}
.article-card p {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 1.2rem;
  flex: 1;
}
.read-more-link { font-weight: 600; font-size: .9rem; color: var(--copper); display: inline-flex; align-items: center; gap: .35rem; }

.featured-card {
  background: #fff;
  border: 2px solid rgba(194,89,63,.2);
  border-radius: 16px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 2.5rem;
  display: block;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,.05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.featured-card:hover { transform: translateY(-3px); box-shadow: 0 18px 35px -12px rgba(0,0,0,.12); }
.featured-badge {
  background: var(--copper);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.featured-card h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1.2;
  margin: .8rem 0;
  font-weight: 400;
}
.featured-card p { color: var(--text-muted); font-size: 1rem; line-height: 1.6; margin: 0 0 1.2rem; max-width: 85ch; }

/* ── Filters ────────────────────────────────────────────────────────── */
.filter-bar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.filter-btn {
  padding: .5rem 1.1rem;
  border-radius: 999px;
  font-size: .88rem;
  background: rgba(11,11,12,.05);
  color: var(--ink);
  font-weight: 500;
  transition: all .25s ease;
}
.filter-btn.active, .filter-btn:hover { background: var(--ink); color: #fff; }

.search-input {
  padding: .75rem 1.1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: .95rem;
  background: #fff;
  outline: none;
  width: 100%;
}
.search-input:focus { border-color: var(--copper); }

/* ── CTA & related ──────────────────────────────────────────────────── */
.article-cta {
  margin-top: 2.8rem;
  padding: 1.8rem;
  background: #fafafc;
  border-radius: 12px;
  border: 1.5px solid rgba(194,89,63,.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.article-cta h4 { margin: 0 0 .3rem; font-size: 1.15rem; color: var(--ink); }
.article-cta p { margin: 0; font-size: .9rem; color: var(--text-muted); max-width: 45ch; }

.related-section { margin-top: 3.5rem; }
.related-section h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 400;
  margin: 0 0 1.5rem;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer-mini {
  background: #0f172a;
  color: #cbd5e1;
  padding: 2.2rem var(--pad-x);
  font-size: .85rem;
}
.site-footer-mini .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer-mini img { height: 34px; width: auto; }
.site-footer-mini a:hover { color: #fff; text-decoration: underline; }
.site-footer-mini .links { display: flex; gap: 1.2rem; flex-wrap: wrap; }

.empty-note {
  grid-column: 1/-1;
  text-align: center;
  padding: 3rem;
  color: #64748b;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
