/* Couleurs reprises de theme/tokens.ts (palettes claire et sombre de l'app). */
:root {
  --brand: #e63946;
  --brand-dark: #b71f2b;
  --bg: #ffffff;
  --surface: #f4f5f7;
  --border: #e3e5e8;
  --text-primary: #1a1d21;
  --text-secondary: #5b6169;
  --text-muted: #9096a0;
  --todo-bg: #fcf3d9;
  --todo-text: #8a6100;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181c;
    --surface: #1f242a;
    --border: #2a3038;
    --text-primary: #f2f4f6;
    --text-secondary: #b3bac3;
    --text-muted: #8a929d;
    --todo-bg: #332909;
    --todo-text: #e6a817;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--brand);
  font-weight: 700;
}

.header,
main,
.footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-weight: 800;
  font-size: 20px;
  color: var(--text-primary);
  text-decoration: none;
}

main {
  padding-top: 32px;
  padding-bottom: 48px;
}

h1 {
  font-weight: 800;
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 8px;
}

h2 {
  font-weight: 800;
  font-size: 22px;
  margin: 40px 0 8px;
}

h3 {
  font-weight: 700;
  font-size: 18px;
  margin: 24px 0 4px;
}

.maj {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 24px;
}

.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 16px 0;
}

.card > :first-child {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

/* Repère de champ à remplir avant la mise en ligne (cf. site/README.md). */
.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  font-weight: 700;
  border-radius: 6px;
  padding: 0 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
}

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

.hero p {
  color: var(--text-secondary);
  font-size: 19px;
  max-width: 520px;
  margin: 16px auto 0;
}

.badge {
  display: inline-block;
  margin-top: 32px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 800;
  border-radius: 16px;
  border-bottom: 4px solid var(--brand-dark);
  padding: 14px 24px;
}

.footer {
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 15px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 8px;
}

.footer a {
  color: var(--text-secondary);
  font-weight: 600;
}
