/* Polices hébergées sur le site (aucun appel à un autre domaine) — licence : fonts/OFL.txt */
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Zilla Slab";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/zilla-slab-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Zilla Slab";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/zilla-slab-latin-700-normal.woff2") format("woff2");
}

/* Jetons repris de DESIGN.md */
:root {
  --primary: #2E5E4E;
  --primary-active: #244B3E;
  --on-primary: #FFFFFF;
  --accent: #9A4F1E;
  --ink: #101828;
  --muted: #475467;
  --canvas: #F7F8FA;
  --surface: #FFFFFF;
  --hairline: #E4E7EC;
  --warning-soft: #F8EBCF;

  --rounded-sm: 4px;
  --rounded-md: 8px;
  --rounded-lg: 12px;

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  --ombre-carte: 0 1px 2px rgb(16 24 40 / 6%);

  --font-texte: "Atkinson Hyperlegible", system-ui, sans-serif;
  --font-titre: "Zilla Slab", Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-texte);
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-md);
}

.logo {
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

.logo span { color: var(--accent); }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

main { padding: 40px 0 56px; }

h1 {
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 var(--spacing-md);
}

h2 {
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.25;
  margin: 40px 0 12px;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 var(--spacing-lg);
}

.button {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  padding: 14px 20px;
  border-radius: var(--rounded-md);
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
}

.button:hover,
.button:active { background: var(--primary-active); }

a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--rounded-sm);
}

.button:focus-visible { border-radius: var(--rounded-md); }

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.steps li,
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  box-shadow: var(--ombre-carte);
}

.steps li { padding: var(--spacing-md) 18px; }

.steps strong {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-size: 18px;
  line-height: 1.35;
}

.card { padding: 20px; }

/* Le padding de la carte suffit : pas de marge en plus en haut et en bas */
.card > :first-child,
.card > dl > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

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

/* Champs à remplir soi-même dans les mentions légales */
.placeholder {
  background: var(--warning-soft);
  padding: 0 var(--spacing-xs);
  border-radius: var(--rounded-sm);
}

dl { margin: 0; }
dt { font-weight: 700; margin-top: 12px; }
dd { margin: 0; color: var(--muted); }

footer {
  border-top: 1px solid var(--hairline);
  padding: 20px 0;
  font-size: 15px;
  color: var(--muted);
}

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

@media (min-width: 640px) {
  h1 { font-size: 40px; }
  main { padding: 64px 0 80px; }
}
