/* AZERTYUIOP.io blog — shared styles. Matches the game's light palette. */
:root {
  --bg: #ffffff;
  --ink: #16181d;
  --muted: #6b6570;
  --line: #e9e6e8;
  --line-soft: #f1eef0;
  --accent: #2b9e57;
  --accent-ink: #1c7a41;
  --accent-soft: #f2faf4;
  --azur: #3d7bff;
  --ambre: #f5a623;
  --maxw: 720px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(1.4) blur(8px);
}
.site-header .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; gap: 14px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 900; font-style: italic; letter-spacing: -0.03em;
  font-size: 18px; text-decoration: none; color: var(--ink);
}
.brand em { color: var(--accent); font-style: inherit; }
.brand svg { flex-shrink: 0; }
.header-cta {
  font-size: 13.5px; font-weight: 800;
  padding: 8px 16px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none;
  white-space: nowrap;
}
.header-cta:hover { background: var(--accent-ink); color: #fff; }
.lang-switch {
  margin-left: auto;
  font-size: 13px; font-weight: 700; text-decoration: none;
  color: var(--muted); border: 1px solid var(--line);
  padding: 6px 11px; border-radius: 999px;
}
.lang-switch:hover { color: var(--ink); border-color: var(--muted); }

/* ---------- Layout ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 20px 72px; }
.breadcrumb {
  font-size: 13.5px; color: var(--muted);
  padding: 22px 0 0; margin: 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

.eyebrow {
  display: inline-block; margin: 26px 0 0;
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
}
h1 {
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.12; letter-spacing: -0.025em;
  font-weight: 900; margin: 10px 0 14px;
}
.post-meta {
  color: var(--muted); font-size: 14.5px;
  margin: 0 0 30px; padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
}
article h2 {
  font-size: clamp(23px, 4.5vw, 29px);
  line-height: 1.2; letter-spacing: -0.02em; font-weight: 800;
  margin: 46px 0 10px;
}
article h3 {
  font-size: 20px; font-weight: 800; letter-spacing: -0.01em;
  margin: 32px 0 6px;
}
article p { margin: 0 0 18px; }
article ul, article ol { margin: 0 0 20px; padding-left: 22px; }
article li { margin: 0 0 9px; }
article strong { font-weight: 700; }
.lead { font-size: 20.5px; color: #2c2f36; line-height: 1.6; }
figure { margin: 30px 0; }
figure img { border-radius: 14px; border: 1px solid var(--line); }
figcaption { font-size: 13.5px; color: var(--muted); margin-top: 9px; text-align: center; }

blockquote {
  margin: 26px 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: #33373f; font-style: italic;
}

/* ---------- Callout / CTA ---------- */
.callout {
  background: var(--accent-soft);
  border: 1px solid #d6efdd;
  border-radius: 16px;
  padding: 24px 24px 26px;
  margin: 38px 0;
}
.callout h2, .callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.btn {
  display: inline-block; margin-top: 6px;
  font-size: 15.5px; font-weight: 800;
  padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none;
}
.btn:hover { background: var(--accent-ink); color: #fff; }

/* ---------- Related / footer ---------- */
.related {
  margin-top: 54px; padding-top: 28px;
  border-top: 1px solid var(--line);
}
.related h2 { font-size: 18px; margin: 0 0 16px; }
.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li { margin: 0 0 12px; }
.related-list a { font-weight: 700; font-size: 17px; }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}
.site-footer .wrap {
  max-width: var(--maxw); margin: 0 auto; padding: 30px 20px 44px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .sep { opacity: 0.4; }

/* ---------- Blog index (hub) ---------- */
.hub-hero { padding: 40px 0 8px; }
.hub-hero h1 { margin-bottom: 8px; }
.hub-hero p { color: var(--muted); font-size: 19px; max-width: 46ch; }
.card-grid {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
  margin: 30px 0 0;
}
@media (min-width: 620px) { .card-grid { grid-template-columns: 1fr 1fr; } }
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 22px 24px; text-decoration: none; color: inherit;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  background: #fff;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -18px rgba(43,158,87,.5);
}
.card .cat {
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--accent);
}
.card h2 {
  font-size: 20px; line-height: 1.25; letter-spacing: -0.015em;
  margin: 8px 0 8px; font-weight: 800;
}
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 34px 0 0; }
.tag {
  font-size: 12.5px; font-weight: 700; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
}
