:root {
  color-scheme: light dark;
  --bg: #f7f1e6;
  --fg: #2a1a1d;
  --muted: #7a6a60;
  --card: #ffffff;
  --line: #e3d6c2;
  --link: #6b1e2e;
  --accent: #6b1e2e;
  --on-accent: #f7f1e6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1214;
    --fg: #f3ece2;
    --muted: #c2b2a6;
    --card: #241a1d;
    --line: #3d2c30;
    --link: #e3a3b0;
    --accent: #6b1e2e;
    --on-accent: #f7f1e6;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

main.narrow {
  max-width: 640px;
}

h1, h2, h3 {
  line-height: 1.25;
}

h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

h3 {
  margin-top: 1.25rem;
  font-size: 1.05rem;
}

p, li {
  font-size: 1rem;
}

a {
  color: var(--link);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.94em;
}

.meta {
  color: var(--muted);
  margin-top: 0;
}

.box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
}

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

th {
  background: var(--card);
}

/* En-tête et pied de page communs */

.site-header, .site-footer {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.site-footer {
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  color: var(--muted);
}

/* Page d'accueil */

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

.hero img {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 8px 24px rgba(42, 26, 29, 0.18);
}

.hero h1 {
  font-size: 2.6rem;
  margin: 20px 0 8px;
}

.hero .tagline {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

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

.features .box h2 {
  border: 0;
  padding: 0;
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.features .box p {
  margin: 0;
  color: var(--muted);
}
