/* marlvel.app, le site des apps Marlvel Labs sans marque à elles : en noir et blanc, dans la charte de Marlvel (la
   marque M dans son rond, la police du système avec Inter en tête, comme la plateforme), aussi propre que
   playblackcat.com. L'accueil et les bandeaux sont noirs ; les pages de texte, noir sur blanc, ou l'inverse quand
   l'appareil est en sombre. */

:root {
  color-scheme: light dark;
  --black: #0a0a0b;
  --white: #ffffff;
  --on-black: #ffffff;
  --on-black-muted: #9a9ea6;
  --on-black-line: #26282d;
  --ink: #0a0a0b;
  --paper: #ffffff;
  --muted: #5b5f66;
  --faint: #8a8e95;
  --line: #e6e7e9;
  --soft: #f4f4f5;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3f3f4;
    --paper: #0a0a0b;
    --muted: #a6aab1;
    --faint: #7c8088;
    --line: #232529;
    --soft: #131416;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

/* La marque : le M dans son rond, et le logotype MARLVEL sur LABS, comme celui de BlackCat Labs. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--on-black);
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  font-weight: 800;
}

.wordmark .name {
  font-size: 15px;
  letter-spacing: 0.22em;
  padding-left: 0.22em;
}

.wordmark .labs {
  margin-top: 4px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.72em;
  padding-left: 0.72em;
  color: var(--on-black-muted);
}

/* Le bandeau noir des pages de texte. */
.bar {
  background: var(--black);
  color: var(--on-black);
  border-bottom: 1px solid transparent;
}

.bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.bar nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 22px;
  font-size: 14px;
}

.bar nav a {
  color: var(--on-black-muted);
  text-decoration: none;
}

.bar nav a:hover,
.bar nav a[aria-current="page"] {
  color: var(--on-black);
}

/* L'accueil et la page introuvable : un plein écran noir, la marque en grand sous une trame de points. */
.home {
  background: var(--black);
  color: var(--on-black);
}

.stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.17) 1px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 42%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 65% 55% at 50% 42%, #000 15%, transparent 72%);
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 0 56px;
  text-align: center;
}

.lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  font-size: clamp(40px, 7.2vw, 74px);
  font-weight: 800;
  line-height: 1;
}

.lockup img {
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 70px rgba(255, 255, 255, 0.2), 0 0 180px rgba(255, 255, 255, 0.09);
}

.lockup .name {
  margin-top: 0.55em;
  letter-spacing: 0.2em;
  padding-left: 0.2em;
}

.lockup .labs {
  margin-top: 0.55em;
  font-size: 0.3em;
  font-weight: 600;
  letter-spacing: 0.9em;
  padding-left: 0.9em;
  color: var(--on-black-muted);
}

.tag {
  max-width: 30ch;
  margin: 40px 0 0;
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.45;
  color: #d4d6da;
}

/* Les apps publiques, sous la phrase de l'accueil, quand il y en aura. */
.apps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.apps a {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: var(--on-black);
  font-weight: 600;
  text-decoration: none;
}

.apps a:hover {
  background: var(--on-black);
  color: var(--black);
}

.hero .mark {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 60px rgba(255, 255, 255, 0.18);
}

.code {
  margin: 34px 0 0;
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero .lost {
  margin: 14px 0 0;
  font-size: clamp(18px, 2.1vw, 22px);
  font-weight: 600;
}

.hero .back {
  margin: 26px 0 0;
  font-size: 15px;
  color: var(--on-black-muted);
}

.hero .back a {
  color: var(--on-black);
}

/* Le pied noir de toutes les pages. */
.site-foot {
  background: var(--black);
  color: var(--on-black-muted);
  font-size: 13px;
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 24px 0 28px;
  border-top: 1px solid var(--on-black-line);
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.site-foot a {
  color: var(--on-black-muted);
  text-decoration: none;
}

.site-foot a:hover,
.site-foot a[aria-current="page"] {
  color: var(--on-black);
}

.site-foot p {
  margin: 0;
}

/* Sous une page de texte, le pied commence où le blanc s'arrête : pas de filet, sauf en sombre. */
main + .site-foot .wrap {
  border-top-color: transparent;
}

@media (prefers-color-scheme: dark) {
  .bar {
    border-bottom-color: var(--on-black-line);
  }

  main + .site-foot .wrap {
    border-top-color: var(--on-black-line);
  }
}

/* Les pages de texte : conditions, mentions légales, politiques, support. */
main {
  flex: 1;
}

.page-head {
  padding: 64px 0 4px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-head h1 {
  max-width: 18em;
  margin: 0;
  font-size: clamp(34px, 5.4vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang a,
.lang span {
  padding: 2px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
}

.lang [aria-current] {
  background: var(--ink);
  color: var(--paper);
}

.layout {
  display: grid;
  gap: 48px;
  padding: 36px 0 104px;
}

.toc[hidden] {
  display: none !important;
}

.toc {
  display: none;
}

@media (min-width: 1000px) {
  .layout.with-toc {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 72px;
  }

  .toc {
    display: block;
    position: sticky;
    top: 28px;
    align-self: start;
    max-height: calc(100vh - 56px);
    overflow: auto;
    font-size: 14px;
  }
}

.toc p {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.toc a {
  display: block;
  margin-left: -1px;
  padding: 5px 0 5px 14px;
  border-left: 2px solid transparent;
  color: var(--muted);
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover {
  color: var(--ink);
}

.toc a.on {
  border-left-color: var(--ink);
  color: var(--ink);
  font-weight: 600;
}

.prose {
  min-width: 0;
  max-width: 70ch;
}

.prose > :first-child {
  margin-top: 0;
}

.prose .lead {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
}

.prose h2 {
  margin: 56px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 24px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.015em;
  scroll-margin-top: 24px;
}

.prose h3 {
  margin: 30px 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.prose p {
  margin: 0 0 14px;
}

.prose ul {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 8px;
}

.prose strong {
  font-weight: 700;
}

/* « En bref » : le résumé, sur un fond à peine gris. */
.prose ul.short {
  margin: 0 0 8px;
  padding: 22px 26px;
  border-radius: 16px;
  background: var(--soft);
  list-style: none;
}

.short li {
  position: relative;
  padding-left: 22px;
}

.short li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

/* L'encadré de la garantie légale, recopié mot pour mot : seulement un cadre. */
.box {
  margin: 18px 0 28px;
  padding: 8px 24px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  font-size: 15px;
}

.box p {
  margin: 12px 0;
}

/* Les mentions légales : l'anglais, puis le français. */
.prose section + section {
  margin-top: 88px;
  padding-top: 36px;
  border-top: 2px solid var(--ink);
}

.prose section > h2:first-of-type {
  margin-top: 36px;
}

.prose > section:first-child > h2:first-of-type {
  margin-top: 0;
}

.prose .fr-title {
  margin: 10px 0 0;
  font-size: clamp(30px, 4.6vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* La page d'une app : son nom en grand, une phrase, ses pages. */
.app-head {
  padding-bottom: 112px;
}

.app-line {
  max-width: 34ch;
  margin: 18px 0 0;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.45;
  color: var(--muted);
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.app-links a {
  display: inline-block;
  padding: 9px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.app-links a:hover {
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .bar .wrap {
    min-height: 64px;
  }

  .brand {
    gap: 10px;
  }

  .wordmark .name {
    letter-spacing: 0.18em;
    padding-left: 0.18em;
  }

  .bar nav {
    gap: 4px 14px;
    font-size: 12.5px;
  }

  .page-head {
    padding-top: 44px;
  }

  /* Trois liens dans le bandeau (les pages d'une app) : la marque seule, sans le logotype. */
  .bar:has(nav a:nth-child(3)) .wordmark {
    display: none;
  }

  .prose h2 {
    margin-top: 44px;
    font-size: 21px;
  }

  .prose ul.short {
    padding: 18px 20px;
  }

  .box {
    padding: 4px 18px;
  }
}
