:root {
  --bg: #0f172a;
  --surface: #111827;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #2563eb;
  --border: #1f2937;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

header.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

header.site-header img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

header.site-header .brand {
  display: flex;
  flex-direction: column;
}

header.site-header .brand strong {
  font-size: 18px;
}

header.site-header .brand span {
  font-size: 13px;
  color: var(--text-muted);
}

.lang-switch {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.lang-switch button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.lang-switch button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.lang-switch button:hover:not(.active) {
  border-color: var(--accent);
  color: var(--text);
}

h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

h2 {
  font-size: 20px;
  margin-top: 36px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

p, li {
  color: #e2e8f0;
}

.muted {
  color: var(--text-muted);
  font-size: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

a {
  color: #60a5fa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
}

.back-link {
  display: inline-block;
  margin-top: 24px;
}

footer {
  margin-top: 64px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

/* --- Grille de fonctionnalités (accueil) ------------------------------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.feature-card .feature-icon {
  font-size: 26px;
  margin-bottom: 10px;
  display: block;
}

.feature-card h3 {
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* --- Puces (badges / statuts) ------------------------------------------ */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
}

.pill {
  display: inline-block;
  background: rgba(37, 99, 235, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
}
