/* Page d'accès à la démonstration : thème Nuit de docs/design/tokens.md. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('polices/manrope-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('polices/manrope-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('polices/bricolage-grotesque-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('polices/bricolage-grotesque-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0e1113;
  --surface: #171b1e;
  --text: #f4efe6;
  --text-2: #cfc8bd;
  --text-3: #a9a39a;
  --text-4: #8c867d;
  --accent: #f2a93b;
  --accent-2: #3fb8af;
  --accent-2-soft: rgba(63, 184, 175, 0.12);
  --accent-2-line: rgba(63, 184, 175, 0.35);
  --line: rgba(244, 239, 230, 0.08);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font: 400 17px/1.6 'Manrope', system-ui, sans-serif;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 16px 24px;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

.logo {
  width: 200px;
  height: auto;
}

.signature {
  margin: 8px 0 0;
  color: var(--text-3);
}

h1,
h2 {
  font-family: 'Bricolage Grotesque', 'Manrope', sans-serif;
  color: var(--text);
  line-height: 1.2;
}

h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
}

h2 {
  margin: 40px 0 12px;
  font-size: 21px;
  font-weight: 600;
}

.annonce {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--accent-2-line);
  border-radius: 18px;
  background: var(--accent-2-soft);
}

.annonce p {
  margin: 0;
}

.pastille {
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent-2);
}

@media (prefers-reduced-motion: no-preference) {
  .pastille {
    animation: pouls 2s ease-in-out infinite;
  }
}

@keyframes pouls {
  50% {
    opacity: 0.35;
  }
}

.note {
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  color: var(--text);
}

.acces {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.acces li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.acces strong {
  color: var(--text);
  font-weight: 700;
}

.acces span {
  color: var(--text-3);
  font-size: 15px;
}

.acces a {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-height: 48px;
  color: inherit;
  text-decoration: none;
}

.acces li:has(a):hover,
.acces li:has(a:focus-visible) {
  border-color: var(--accent-2-line);
}

.acces a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 8px;
}

.etat {
  margin-top: auto;
  padding-top: 8px;
  color: var(--text-4);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
}

.etat.ouvert {
  color: var(--accent);
}

.etat.ouvert::after {
  content: ' →';
}

.qr {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin: 12px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.qr img {
  flex: none;
  width: 200px;
  height: 200px;
  padding: 12px;
  border-radius: 12px;
  /* Le QR se lit sur fond clair, quel que soit le thème. */
  background: #ffffff;
}

.qr figcaption {
  display: flex;
  flex: 1 1 220px;
  flex-direction: column;
  gap: 4px;
}

.qr strong {
  color: var(--text);
  font-weight: 700;
}

.qr span {
  color: var(--text-3);
  font-size: 15px;
}

footer {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-4);
  font-size: 14px;
}
