@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-600-normal.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #070a13;
  --text: #f4f6ff;
  --muted: #95a6c1;
  --line: #28334a;
  --violet: #c17bff;
  --ink: #130b1a;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f5f7fc;
    --text: #141f35;
    --muted: #536581;
    --line: #d2dcec;
    --violet: #7531c9;
    --ink: #ffffff;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 32px 20px;
}

main {
  width: min(100%, 34rem);
}

.kicker {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mark {
  display: block;
  width: 88px;
  height: 88px;
  margin-bottom: 20px;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 10vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.lede,
#etat {
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.5;
}

.lede {
  margin: 20px 0 32px;
}

#installer {
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--violet);
  color: var(--ink);
  font: 600 1rem/1 var(--display);
  cursor: pointer;
}

#installer:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

#installer:hover {
  filter: brightness(1.06);
}

html[data-install="ouverte"] #installer,
html[data-install="installee"] #installer {
  display: none;
}

#etat {
  min-height: 1.5em;
  margin: 16px 0 0;
}

#etat:empty {
  display: none;
}

#secours {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

#secours h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
}

#etapes {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.55;
}

#etapes li + li {
  margin-top: 8px;
}
