/* Marcel : application web privée. Les valeurs viennent de tokens.css (maquette). Sombre uniquement. */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/instrument-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/instrument-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/instrument-sans-latin-700-normal.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 23px;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

/* Écrans d'accès : installation, connexion, notifications expirées. */
.access {
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 72px var(--space-6) calc(var(--space-8) + env(safe-area-inset-bottom));
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-top: 96px;
  text-align: center;
}

.logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  box-shadow: var(--glow-logo);
}

.brand h1 {
  margin: 0;
}

.brand p {
  margin: 0;
  font-size: 16px;
  line-height: 23px;
  color: var(--text-muted);
}

.actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.note {
  margin: 0;
  text-align: center;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
