/* Diagomax — site statique, sans dépendance. */
:root {
  color-scheme: dark;
  --fond: #000000;
  --texte: #ffffff;
  --survol: #0CB1FF;
  --largeur: 1380px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--fond); font-size: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--fond);
  color: var(--texte);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--texte); text-decoration: none; transition: color 140ms ease; }
a:hover, a:focus-visible { color: var(--survol); }
a:focus-visible { outline: 1px dotted currentColor; outline-offset: 6px; }
img { display: block; max-width: 100%; height: auto; }
.skip-link {
  position: absolute; top: 12px; left: 24px; padding: 8px;
  transform: translateY(-200%); background: var(--fond); z-index: 10;
}
.skip-link:focus { transform: translateY(0); }
.site-header { padding: 38px clamp(22px, 4vw, 64px) 0; }
.site-nav {
  max-width: var(--largeur); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
  align-items: center; gap: clamp(24px, 3.4vw, 54px);
}
.nav-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(22px, 2.4vw, 38px); }
.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }
.nav-group a { padding: 12px 0; white-space: nowrap; font-size: 1rem; }
.nav-group a[aria-current="page"] { font-weight: 700; }
.nav-group a[aria-current="page"], .footer-links a[aria-current="page"] {
  text-decoration-line: underline;
  text-decoration-color: var(--survol);
  text-decoration-thickness: 2px;
  text-underline-offset: .45em;
}
.brand { display: block; width: 100px; justify-self: center; }
.brand img { width: 100px; height: 116px; object-fit: contain; }
main { flex: 1; width: 100%; }
.home {
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: clamp(70px, 13vh, 150px) 24px;
}
.home h1 {
  font-size: clamp(3.4rem, 10.7vw, 10rem);
  font-weight: 500; line-height: 1; letter-spacing: -0.065em;
  margin: 0 0 30px; padding-right: .065em;
}
.home p { font-size: clamp(1.05rem, 2vw, 1.45rem); margin: 0; }
.page { max-width: 1056px; margin: 0 auto; padding: 90px 32px 110px; }
.page-heading { max-width: 860px; margin-bottom: 42px; }
.page h1 {
  margin: 0 0 28px; font-size: clamp(2.5rem, 5.6vw, 5rem);
  letter-spacing: -0.045em; line-height: 1.08; font-weight: 500;
}
.page .intro { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.55; max-width: 760px; }
.page p { max-width: 750px; margin: 0 0 24px; }
.page h2 { font-size: 1.35rem; line-height: 1.35; font-weight: 500; margin: 42px 0 16px; }
.page a { font-weight: 700; }
.page ul { max-width: 750px; padding-left: 22px; }
.page li { padding-left: 4px; margin-bottom: 9px; }
.legal { max-width: 960px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.legal dl { max-width: 750px; margin: 0; }
.legal dt { margin: 22px 0 2px; font-weight: 700; }
.legal dd { margin: 0; overflow-wrap: anywhere; }
.site-footer {
  width: 100%; max-width: 1508px; margin: 0 auto;
  padding: 32px clamp(22px, 4vw, 64px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; font-size: .875rem;
}
.site-footer p { margin: 0; }
.footer-links { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-links a { display: inline-block; padding: 10px 0; }
@media (max-width: 1120px) {
  .site-header { padding-top: 28px; }
  .site-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 28px; }
  .brand { order: -1; flex: 0 0 100%; width: 100%; margin-bottom: 18px; }
  .brand img { margin: 0 auto; }
  .nav-group { display: contents; }
  .home { padding-block: 92px; }
  .page { padding-top: 65px; }
}
@media (max-width: 600px) {
  .site-header { padding-inline: 20px; }
  .site-nav { gap: 0 24px; }
  .nav-group a { font-size: .9375rem; padding: 12px 0; }
  .home { padding: 80px 20px 100px; }
  .home h1 { margin-bottom: 24px; }
  .home p { max-width: 250px; margin: 0 auto; }
  .page { padding: 60px 24px 72px; }
  .page-heading { margin-bottom: 30px; }
  .site-footer { flex-direction: column; gap: 8px; text-align: center; padding: 20px 24px 24px; }
  .footer-links { justify-content: center; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) { a { transition: none; } }
@media print {
  html, body { background: white; color: black; }
  .site-header, .site-footer, .skip-link { display: none; }
  .page { padding: 0; }
  .page a { color: black; }
}
