/* Blog PatriSim — style commun avec les pages légales, légèrement enrichi pour la lecture longue */
:root {
  --navy: #1a2a45;
  --gold: #d4a850;
  --text: #1f2937;
  --text-mid: #4b5563;
  --bg: #ffffff;
  --bg-alt: #f8f9fb;
  --border: #e5e7eb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}
.container { max-width: 760px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

header.page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}
header.page-header a.brand { color: var(--navy); font-weight: 700; text-decoration: none; font-size: 1.1rem; }
header.page-header .meta a { color: var(--text-mid); font-size: 0.9rem; text-decoration: none; }
header.page-header .meta a:hover { color: var(--navy); }

article h1 {
  color: var(--navy);
  font-size: 2rem;
  line-height: 1.25;
  margin: 1rem 0 1rem;
}
article h2 {
  color: var(--navy);
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
article h3 { color: var(--navy); font-size: 1.15rem; margin: 1.8rem 0 0.8rem; }

article p { margin: 0 0 1rem; }
article ul, article ol { margin: 0 0 1rem 1.5rem; }
article li { margin-bottom: 0.4rem; }
article strong { color: var(--navy); font-weight: 600; }

article blockquote {
  border-left: 3px solid var(--gold);
  background: var(--bg-alt);
  padding: 0.8rem 1rem;
  margin: 1.2rem 0;
  color: var(--text-mid);
  font-style: italic;
}

article code {
  background: var(--bg-alt);
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
}

article pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.2rem 0;
}
article pre code { background: transparent; padding: 0; color: inherit; }

article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.95em;
}
article th, article td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
}
article th { background: var(--bg-alt); color: var(--navy); font-weight: 600; }

article a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); }
article a:hover { color: var(--gold); }

.meta-info {
  color: var(--text-mid);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

footer.page-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
footer.page-footer a.brand { color: var(--text-mid); text-decoration: none; font-size: 0.9rem; }
footer.page-footer a.brand:hover { color: var(--navy); }
footer.page-footer a.cta {
  background: var(--navy);
  color: white;
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.92rem;
}
footer.page-footer a.cta:hover { background: var(--gold); color: var(--navy); }

/* Index */
.index-list { list-style: none; padding: 0; margin: 1rem 0; }
.index-list li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.index-list li:last-child { border-bottom: none; }
.index-list h2 { font-size: 1.15rem; margin: 0 0 0.4rem; border: none; padding: 0; }
.index-list h2 a { color: var(--navy); text-decoration: none; }
.index-list h2 a:hover { color: var(--gold); }
.index-list .desc { color: var(--text-mid); font-size: 0.95rem; }
.index-list .meta-info { margin: 0.3rem 0 0; font-size: 0.82rem; }
