:root {
  --vert: #7fba28;
  --bleu: #00a9d1;
  --ardoise: #4596b8;
  --encre: #1c2b33;
  --gris: #5b6b74;
  --fond: #ffffff;
  --filet: #e2e8ec;
}

@media (prefers-color-scheme: dark) {
  :root {
    --encre: #eef4f7;
    --gris: #a3b4be;
    --fond: #12191d;
    --filet: #26333a;
  }
}

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

body {
  margin: 0;
  padding: 2rem 1.25rem 4rem;
  background: var(--fond);
  color: var(--encre);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding-top: 3rem;
}

img {
  display: block;
  width: 11rem;
  height: auto;
  max-width: 100%;
  margin-bottom: 2.5rem;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.125rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin-top: 1.25rem;
  background: var(--vert);
}

p { margin: 0 0 1.25rem; }

.chapo {
  font-size: 1.1875rem;
  color: var(--encre);
}

p:not(.chapo) { color: var(--gris); }

.contact {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.contact a {
  color: var(--ardoise);
  text-decoration: none;
  border-bottom: 2px solid var(--bleu);
  padding-bottom: 2px;
}

.contact a:hover,
.contact a:focus-visible { color: var(--vert); border-bottom-color: var(--vert); }

:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; }

footer {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--filet);
  font-size: 0.875rem;
  line-height: 1.6;
}

footer p { margin-bottom: 0.75rem; color: var(--gris); }
footer p:last-child { margin-bottom: 0; }
