/* Blog chiffrons.fr — feuille de style autonome.
   Tokens identiques au design system du site (cf. mesure-demo/CLAUDE.md) :
   fond clair, accent bleu, Geist/Geist Mono. Volontairement indépendante
   des chunks Next.js hashés (qui changent à chaque build du site
   principal) — ce mini-système reste stable d'un déploiement à l'autre. */

:root {
  --bg: #fafaf9;
  --fg: #0c0a09;
  --muted: #52525b;
  --accent: #1e40af;
  --border: #e4e4e7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Geist', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
}
.site-header nav {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.site-header nav a.brand { color: var(--fg); font-weight: 600; margin-right: auto; }
.site-header nav a { color: var(--muted); }

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.kicker {
  font-family: 'Geist Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  font-weight: 700;
}
article h2 { font-size: 1.35rem; margin-top: 2.2rem; font-weight: 600; }
article h3 { font-size: 1.1rem; margin-top: 1.6rem; font-weight: 600; }
article p { margin: 1rem 0; }
article ul { padding-left: 1.3rem; }
article li { margin: 0.4rem 0; }
article blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5rem 0;
  padding: 0.2rem 1rem;
  color: var(--muted);
  font-style: italic;
}
article code {
  font-family: 'Geist Mono', monospace;
  background: #f0f0ef;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.source-note {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.mesures-liees {
  margin-top: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  background: #fff;
}
.mesures-liees h2 {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  font-family: 'Geist Mono', monospace;
}
.mesures-liees ul { list-style: none; padding: 0; margin: 0; }
.mesures-liees li + li { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--border); }
.mesures-liees a { font-weight: 600; color: var(--fg); }
.mesures-liees a:hover { color: var(--accent); }
.mesures-liees p { margin: 0.3rem 0 0; font-size: 0.88rem; color: var(--muted); }

/* Page de listing */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.post-list li:first-child { padding-top: 0; }
.post-list time {
  font-family: 'Geist Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
}
.post-list h2 { margin: 0.3rem 0 0.4rem; font-size: 1.25rem; }
.post-list p { margin: 0; color: var(--muted); }

/* Inscription newsletter */
.newsletter {
  margin-top: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  background: #fff;
}
.newsletter h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.newsletter > p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.newsletter form { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.newsletter input[type="email"] {
  flex: 1 1 15rem;
  min-width: 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--fg);
}
.newsletter input[type="email"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.newsletter button {
  padding: 0.6rem 1.1rem;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.newsletter button:hover { filter: brightness(1.1); }
.newsletter button:disabled { opacity: 0.6; cursor: progress; }
/* Le piège à robots est masqué en style en ligne (cf. build.mjs) : il ne
   doit pas dépendre du chargement de cette feuille. */
.newsletter-status {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.85rem;
  min-height: 1.2em;
}
.newsletter-status[data-state="ok"] { color: var(--accent); }
.newsletter-status[data-state="error"] { color: #b91c1c; }
.newsletter-legal {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

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