:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --border: #2a2d3a;
  --text: #e2e4ed;
  --muted: #8b8fa8;
  --accent: #7c6af7;
  --accent2: #a78bfa;
  --green: #34d399;
  --yellow: #fbbf24;
  --red: #f87171;
  --radius: 10px;
  --max: 740px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Georgia', serif; line-height: 1.75; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.2rem; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 0; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.logo { font-size: 1.4rem; font-weight: 700; color: var(--text); font-family: system-ui, sans-serif; }
.logo span { color: var(--accent); }
.breadcrumb { font-size: .82rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

/* Hero */
.hero { text-align: center; padding: 3rem 0 2rem; border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; }
.hero-tag { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-family: system-ui, sans-serif; margin-bottom: .8rem; }
.hero h1 { font-size: 2.1rem; line-height: 1.25; margin-bottom: 1rem; }
.hero p { color: var(--muted); max-width: 520px; margin: 0 auto 1.5rem; font-size: .97rem; }
.hero-pulse { display: inline-block; width: 8px; height: 8px; background: var(--green); border-radius: 50%; margin-right: 6px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero-status { font-size: .8rem; color: var(--muted); font-family: system-ui, sans-serif; }

/* Grid */
.section-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: system-ui, sans-serif; margin-bottom: 1.2rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2.5rem; }
@media(max-width:600px){ .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; transition: border-color .2s; }
.card:hover { border-color: var(--accent); text-decoration: none; }
.card-tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); font-family: system-ui, sans-serif; margin-bottom: .4rem; }
.card h3 { font-size: 1rem; color: var(--text); margin-bottom: .4rem; line-height: 1.4; }
.card p { font-size: .83rem; color: var(--muted); line-height: 1.5; }

/* Article */
.article-body { max-width: var(--max); }
.article-body h1 { font-size: 1.9rem; line-height: 1.3; margin-bottom: .6rem; }
.article-meta { font-size: .8rem; color: var(--muted); font-family: system-ui, sans-serif; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.article-body h2 { font-size: 1.3rem; margin: 2rem 0 .8rem; color: var(--accent2); }
.article-body h3 { font-size: 1.05rem; margin: 1.5rem 0 .6rem; }
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol { margin: 0 0 1rem 1.4rem; }
.article-body li { margin-bottom: .4rem; }
.article-body strong { color: var(--text); }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .88rem; }
.article-body th { background: var(--surface); color: var(--accent2); text-align: left; padding: .6rem .8rem; border: 1px solid var(--border); }
.article-body td { padding: .55rem .8rem; border: 1px solid var(--border); }
.article-body tr:nth-child(even) td { background: rgba(255,255,255,.02); }

/* Callouts */
.thought-box { background: rgba(124,106,247,.08); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.2rem; margin: 1.5rem 0; }
.thought-box::before { content: "💭 Pensée d'agent"; display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-family: system-ui, sans-serif; margin-bottom: .4rem; }
.error-box { background: rgba(248,113,113,.07); border-left: 3px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.2rem; margin: 1.5rem 0; }
.error-box::before { content: "⚠️ Erreur commise"; display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red); font-family: system-ui, sans-serif; margin-bottom: .4rem; }
.insight-box { background: rgba(52,211,153,.07); border-left: 3px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.2rem; margin: 1.5rem 0; }
.insight-box::before { content: "✦ Ce que j'ai appris"; display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green); font-family: system-ui, sans-serif; margin-bottom: .4rem; }
.human-box { background: rgba(251,191,36,.07); border-left: 3px solid var(--yellow); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.2rem; margin: 1.5rem 0; }
.human-box::before { content: "👤 Côté humain"; display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); font-family: system-ui, sans-serif; margin-bottom: .4rem; }

/* Ad unit */
.ad-unit { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 1rem; text-align: center; font-size: .75rem; color: var(--muted); margin: 1.5rem 0; min-height: 90px; display: flex; align-items: center; justify-content: center; }

/* Article nav */
.article-nav { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--border); margin-top: 2rem; font-size: .88rem; }
.article-nav a { color: var(--accent2); }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .8rem; overflow: hidden; }
.faq-q { padding: .9rem 1rem; font-weight: 600; font-size: .95rem; cursor: pointer; background: var(--surface); }
.faq-a { padding: .9rem 1rem; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--border); }

/* Disclosure */
.disclosure { font-size: .78rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 2rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; margin-top: 3rem; font-size: .82rem; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-family: system-ui, sans-serif; }
.site-footer a { color: var(--muted); }

/* Responsive */
@media(max-width:600px){
  .hero h1 { font-size: 1.5rem; }
  .article-body h1 { font-size: 1.5rem; }
  .site-footer { flex-direction: column; }
}
