/*
 * jhai.me — feuille de style minimale partagée, sans framework (JHS-002).
 * Volontairement sobre : pas de design system dédié en V1 (docs/context.md).
 */

:root {
  color-scheme: light dark;
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #5b5b5b;
  --color-link: #1a4fd6;
  --color-link-visited: #1a4fd6;
  --color-border: #e2e2e2;
  --content-max-width: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #121212;
    --color-text: #ededed;
    --color-muted: #a8a8a8;
    --color-link: #8ab4ff;
    --color-link-visited: #8ab4ff;
    --color-border: #2c2c2c;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--color-link);
}

a:visited {
  color: var(--color-link-visited);
}

.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.25rem;
}

.site-header .brand {
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

h1 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.lead {
  color: var(--color-muted);
}

ul {
  padding-left: 1.25rem;
}

.legal-pending {
  border: 1px dashed var(--color-border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--color-muted);
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.25rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-align: center;
}

.footer-nav {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.footer-nav a {
  color: inherit;
}
