:root {
  --couleur-primaire: #1b5e20;
  --couleur-primaire-clair: #2e7d32;
  --couleur-fond: #f5f9f4;
  --couleur-texte: #1a1a1a;
  --couleur-texte-muted: #4a5568;
  --couleur-bordure: #c8e6c9;
  --largeur-contenu: 72rem;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell,
    "Noto Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--couleur-texte);
  background: var(--couleur-fond);
}

a {
  color: var(--couleur-primaire-clair);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: var(--couleur-primaire);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.site-header__inner {
  max-width: var(--largeur-contenu);
  margin: 0 auto;
  padding: 1rem 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
}

.site-brand {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-brand a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.site-brand a:hover {
  text-decoration: none;
  opacity: 0.92;
}

.site-brand a > div {
  display: block;
  line-height: 1.25;
}

.site-brand a > div:nth-child(1) {
  font-size: 1.25rem;
  font-weight: 800;
}

.site-brand a > div:nth-child(2) {
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0.95;
}

.site-brand a > div:nth-child(3) {
  margin-top: 0.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  opacity: 0.9;
}

.site-nav {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.site-nav a {
  color: #e8f5e9;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  transition: background 140ms ease, color 140ms ease;
}

.site-nav a:hover {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
}

.site-main {
  max-width: var(--largeur-contenu);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--couleur-bordure);
  background: #fff;
  color: var(--couleur-texte-muted);
  font-size: 0.875rem;
}

.site-footer__inner {
  max-width: var(--largeur-contenu);
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.layout-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.messages {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.messages li {
  padding: 0.65rem 1rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.messages .success {
  background: #e8f5e9;
  color: #1b5e20;
}

.messages .error {
  background: #ffebee;
  color: #b71c1c;
}

.messages .info {
  background: #e3f2fd;
  color: #0d47a1;
}

article h1 {
  margin-top: 0;
  font-size: 1.75rem;
  color: var(--couleur-primaire);
}

article h2 {
  font-size: 1.2rem;
  margin-top: 1.75rem;
}

.intro {
  font-size: 1.05rem;
  color: var(--couleur-texte-muted);
  max-width: 55rem;
}

article ul {
  padding-left: 1.25rem;
}

article li {
  margin-bottom: 0.35rem;
}
