@font-face {
  font-family: 'SourceSans3';
  src: url('/assets/fonts/SourceSans3-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #ffffff;
  --soft: #f1f3f5;
  --border: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --muted: #64748b;
  --primary: #f97316;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }

/* Header */
header.site { border-bottom: 1px solid var(--border); background: white; }
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 32px; height: 32px; object-fit: contain; display: block; }
.brand-name {
  font-family: 'SourceSans3', 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 16px;
}
.header-actions { display: flex; align-items: center; gap: 24px; }
.header-link { font-size: 14px; font-weight: 500; transition: opacity 0.2s ease; }
.header-link:hover { opacity: 0.7; }
.header-cta {
  background: #0f172a;
  color: white;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.header-cta:hover { transform: translateY(-1px); filter: brightness(1.1); }

/* Topbar */
.topbar { background: var(--soft); padding: 36px 0 56px; }
.topbar-inner { max-width: 880px; margin: 0 auto; padding: 0 32px; }
.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--muted); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .current { color: var(--text); font-weight: 500; }
.topbar h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  line-height: 1.25;
}
.topbar h1 .icon { font-size: 30px; flex-shrink: 0; line-height: 1; }
.topbar .meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Article body */
main.article { max-width: 760px; margin: 0 auto; padding: 56px 32px 24px; }
.article p { margin: 0 0 18px; font-size: 16px; color: #1e293b; }
.article p strong { color: var(--text); }
.article h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 36px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 28px 0 10px;
}
.article ol, .article ul {
  margin: 0 0 20px;
  padding-left: 22px;
  color: #1e293b;
  font-size: 16px;
}
.article ol li, .article ul li { margin-bottom: 8px; }
.article ol li::marker { color: var(--primary); font-weight: 700; }
.article a.inline { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.article a.inline:hover { text-decoration: none; }

/* Figures (captures d'écran) */
.article figure {
  margin: 24px 0 28px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--soft);
  box-shadow: var(--shadow);
}
.article figure img,
.article figure svg {
  display: block;
  width: 100%;
  height: auto;
  background: white;
}
.article figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--muted);
  background: var(--soft);
  border-top: 1px solid var(--border);
  text-align: center;
  font-style: italic;
}
.article figcaption .step {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-style: normal;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 8px;
  vertical-align: 1px;
}
.callout {
  background: #fff7ed;
  border: 1px solid #fdba7444;
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 15px;
  color: #7c2d12;
  margin: 8px 0 22px;
}
.callout.info {
  background: #eff6ff;
  border-color: #93c5fd44;
  border-left-color: #3b82f6;
  color: #1e3a8a;
}
.callout.warn {
  background: #fef2f2;
  border-color: #fca5a544;
  border-left-color: #ef4444;
  color: #7f1d1d;
}
.callout strong { color: inherit; }

/* Related articles */
.related {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 24px 32px 0;
  border-top: 1px solid var(--border);
}
.related h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 14px;
}
.related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.related ul a {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
  transition: color 0.2s ease;
}
.related ul a:hover { color: var(--primary); }

/* Feedback */
.feedback {
  max-width: 760px;
  margin: 48px auto 0;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--soft);
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.feedback strong { color: var(--text); display: block; margin-bottom: 12px; font-size: 15px; }
.feedback .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  margin: 0 4px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feedback .btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.feedback .btn.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.feedback .btn.primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.feedback .btn.ghost { background: transparent; }
.feedback .feedback-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.feedback-comment {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 12px auto 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 14px;
  background: white;
  resize: vertical;
  min-height: 80px;
  outline: none;
}
.feedback-comment:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12); }
.feedback-actions { margin-top: 12px; display: flex; gap: 8px; justify-content: center; }
.feedback.is-sending { opacity: 0.85; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 64px;
}
footer a { color: var(--text); font-weight: 500; }
footer a:hover { color: var(--primary); }

@media (max-width: 760px) {
  .header-inner { padding: 14px 20px; }
  .header-link { display: none; }
  .topbar-inner, main.article, .related, .feedback { padding-left: 20px; padding-right: 20px; }
  main.article { padding-top: 40px; }
}
