/* FactoDiag — style.css partagé (blog) */
:root {
  --ink: #111110;
  --ink-soft: #444441;
  --ink-muted: #888780;
  --ink-faint: #C8C6C0;
  --paper: #FAFAF8;
  --paper-2: #F2F1ED;
  --paper-3: #E8E7E2;
  --accent: #1A6B4A;
  --accent-light: #EAF2EC;
  --accent-mid: #2E8B62;
  --warn: #8B3A1A;
  --warn-bg: #F5EDE8;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --r: 4px;
  --r-lg: 8px;
  --t: .16s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.7;
}

/* HEADER */
header {
  background: var(--ink);
  padding: .9rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--paper);
  letter-spacing: .01em;
  font-weight: 400;
  text-decoration: none;
}
.logo strong { font-weight: 600; }
.header-cta {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: white;
  background: var(--accent);
  padding: 7px 16px;
  border-radius: var(--r);
  text-decoration: none;
  transition: background var(--t);
}
.header-cta:hover { background: #0F5A3A; }

/* FOOTER */
footer {
  background: var(--ink);
  color: var(--ink-muted);
  padding: 1.5rem 2.5rem;
  font-size: .75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
footer a { color: var(--ink-muted); text-decoration: underline; text-underline-offset: 2px; }

/* BOUTON CTA */
.btn-cta {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--r);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: .03em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--t);
  white-space: nowrap;
}
.btn-cta:hover { background: #0F5A3A; }

/* ARTICLE HERO */
.article-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 4rem 2.5rem 3.5rem;
  border-bottom: 1px solid #222;
}
.article-hero-inner { max-width: 760px; margin: 0 auto; }
.article-label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent-mid);
}
.article-label a { color: var(--ink-faint); text-decoration: none; }
.article-label a:hover { color: var(--ink-muted); }
.article-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}
.article-intro {
  font-size: 1rem;
  color: var(--ink-faint);
  max-width: 580px;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 2rem;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid #2A2A28;
  padding-top: 1.25rem;
  font-size: .75rem;
  color: var(--ink-muted);
  letter-spacing: .04em;
  flex-wrap: wrap;
}

/* BREADCRUMB */
.breadcrumb {
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 2.5rem 0;
  font-size: .75rem;
  color: var(--ink-muted);
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--ink-faint); }

/* ARTICLE BODY */
.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem 5rem;
  flex: 1;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--paper-3);
}
.article-body h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.article-body h3 { font-size: 1rem; font-weight: 500; color: var(--ink); margin: 1.75rem 0 .6rem; }
.article-body p { font-size: .92rem; color: var(--ink-soft); line-height: 1.8; margin-bottom: 1rem; font-weight: 300; }
.article-body p strong { color: var(--ink); font-weight: 500; }
.article-body ul, .article-body ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.article-body li { font-size: .92rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: .4rem; font-weight: 300; }
.article-body li strong { color: var(--ink); font-weight: 500; }
.article-body a { color: var(--accent); text-underline-offset: 3px; }
.article-body a:hover { color: var(--accent-mid); }

/* NOTE / CALLOUT */
.note {
  background: var(--paper-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.note p { margin: 0; font-size: .88rem; }
.note-warn { border-color: var(--warn); background: var(--warn-bg); }

/* TABLE */
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .85rem; }
.article-body th {
  background: var(--ink);
  color: var(--paper);
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .04em;
}
.article-body td { padding: .75rem 1rem; border-bottom: 1px solid var(--paper-3); color: var(--ink-soft); vertical-align: top; }
.article-body tr:last-child td { border-bottom: none; }
.article-body tr:nth-child(even) td { background: var(--paper-2); }

/* CTA BLOCK */
.cta-block {
  background: var(--ink);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  margin: 3rem 0;
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-block-text h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; letter-spacing: -.02em; margin-bottom: .35rem; }
.cta-block-text p { font-size: .88rem; color: var(--ink-muted); font-weight: 300; margin: 0; }

/* ARTICLES LIÉS */
.related { background: var(--paper-2); border-top: 1px solid var(--paper-3); padding: 3rem 2.5rem; }
.related-inner { max-width: 760px; margin: 0 auto; }
.related-label {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.related-label::before { content: ''; display: block; width: 18px; height: 1px; background: var(--accent); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media(max-width:640px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  background: white;
  border: 1px solid var(--paper-3);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  text-decoration: none;
  display: block;
  transition: box-shadow var(--t);
}
.related-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.related-card-cat { font-size: .65rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.related-card-title { font-family: var(--font-display); font-size: .95rem; font-weight: 400; color: var(--ink); line-height: 1.3; }
