/* neoria-v5. Expérimental : typo vive, tickets, plaques. */
/* Thème sombre posé ici : le html n'a pas data-theme. */

html:not([data-theme="clair"]) {
  color-scheme: dark;
  --bg: #12141a;
  --bg-elev: #1c1f27;
  --bg-mute: #0b0d11;
  --fg: #e8eaef;
  --fg-mute: #a8aeb8;
  --fg-faint: #7a808c;
  --line: #2c313a;
  --accent: #3ddbb0;
  --accent-fg: #06231c;
  --ok: #6fbf88;
  --warn: #d4783a;
  --danger: #e07070;
  --veil: rgba(18, 20, 26, 0.9);
}

.demo-page {
  background: var(--bg);
  color: var(--fg);
}

.demo-fixe {
  background: var(--bg);
}

.demo-fixe .tete {
  background: var(--bg);
  border-bottom-color: var(--line);
}

.demo-fixe .tete__marque {
  letter-spacing: 0.04em;
}

.demo-honnete {
  width: fit-content;
  max-width: min(36rem, 100%);
  margin: 0.55rem max(var(--gutter), var(--safe-right)) 0.35rem
    max(var(--gutter), var(--safe-left));
  padding: 0.45rem 0.7rem;
  border: 0;
  background: var(--bg-elev);
  color: var(--fg);
  text-align: left;
  font-size: var(--fs-sm);
}

.demo {
  max-width: 76rem;
  padding-top: 1.4rem;
  padding-bottom: 3.5rem;
}

.demo__intro,
.demo__fil {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
  color: var(--fg-mute);
}

.demo__titre {
  display: inline-block;
  width: fit-content;
  max-width: min(28rem, 100%);
  margin: 0 0 0.7rem;
  padding: 0.65rem 0.85rem 0.8rem;
  background: var(--bg-elev);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.4vw, 2.85rem);
  font-weight: var(--fw-bold);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.demo__lede {
  margin: 0 0 1.6rem;
  max-width: 38rem;
  color: var(--fg);
}

.demo-grille {
  gap: 0;
  padding-top: 0.2rem;
  border-top: 1px solid var(--line);
}

.demo-carte {
  min-height: 0;
  padding: 1.6rem 0 2rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.demo-carte__meta {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
  color: var(--fg-mute);
}

.demo-carte__titre {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.4vw, 3.2rem);
  font-weight: var(--fw-bold);
  line-height: 0.95;
  letter-spacing: var(--ls-display);
}

.demo-carte .btn {
  margin-top: 0.55rem;
}

@media (min-width: 800px) {
  .demo-grille {
    grid-template-columns: 1fr 1fr;
  }

  .demo-carte {
    padding: 1.8rem 2rem 2.2rem 0;
    border-bottom: 0;
  }

  .demo-carte:nth-child(even) {
    border-left: 1px solid var(--line);
    padding-left: 2rem;
    padding-right: 0;
  }

  .demo-carte:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

.demo-fil {
  gap: 0.85rem;
  min-height: 0;
  padding: 0.2rem 0 0.4rem;
}

.demo-msg {
  width: fit-content;
  max-width: min(36rem, 100%);
  padding: 0.65rem 0.85rem 0.8rem;
  border: 0;
  border-radius: 0;
  background: var(--bg-elev);
}

.demo-msg--visiteur {
  background: var(--bg-mute);
}

.demo-msg--hors {
  border: 1px dashed var(--line);
  background: transparent;
}

.demo-choix__btn {
  border-color: var(--line);
  border-radius: 0;
  background: var(--bg);
}

.demo-saisie input {
  border-radius: 0;
  background: var(--bg-mute);
}

.livrable {
  margin-top: 1.4rem;
  padding: 0.85rem 0.9rem 1.25rem;
  border: 0;
  background: var(--bg-elev);
}

.livrable__type {
  font-family: var(--font-mono);
  color: var(--fg-mute);
}

.livrable__titre {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: var(--fw-bold);
  line-height: 0.95;
  letter-spacing: var(--ls-display);
}

.livrable__quand {
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
}

.livrable__ligne {
  border-top-color: var(--line);
}

#demo-porte.demo-porte {
  padding-top: 1.6rem;
  border-top: 0;
}

.demo-porte__phrase {
  display: inline-block;
  width: fit-content;
  max-width: min(36rem, 100%);
  padding: 0.65rem 0.85rem 0.8rem;
  background: var(--bg-elev);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.demo-porte__neo {
  color: var(--fg);
  text-decoration: none;
}

.demo-porte__neo:hover,
.demo-porte__neo:focus-visible {
  text-decoration: underline;
}
