/* Inspiré visuellement de sites type Saracroche : sombre, sobre, accents verts/teal. */
:root {
  --bg: #0b1220;
  --bg-card: #111827;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #10b981;
  --accent2: #0d9488;
  --border: rgba(148, 163, 184, 0.2);
  --radius: 14px;
  --max: 920px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(16, 185, 129, 0.12), transparent),
    radial-gradient(900px 500px at 100% 0%, rgba(13, 148, 136, 0.1), transparent),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(11, 18, 32, 0.85);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: #042f2e;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-weight: 600;
  font-size: 0.95rem;
}

nav a {
  color: var(--muted);
}
nav a:hover {
  color: var(--text);
}

main {
  flex: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 22px 64px;
  width: 100%;
}

.hero {
  text-align: center;
  padding: 32px 0 48px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
}

.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.prose {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  max-width: 720px;
}

.prose h1 {
  margin-top: 0;
  font-size: 1.75rem;
}

.prose h2 {
  margin-top: 1.6em;
  font-size: 1.2rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

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

.lang-alternate {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

html[lang="zh-Hans"] body {
  font-family: "PingFang SC", "Microsoft YaHei", "Heiti SC", "Noto Sans SC",
    ui-sans-serif, system-ui, sans-serif;
}
