@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #fafafa;
  --fg: #0a0a0a;
  --muted: #666;
  --faint: #8a8a8a;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
  --surface: #fff;
  --surface-2: #f4f4f5;
  --accent: #2f4bd8;
  --accent-soft: rgba(47, 75, 216, 0.12);
  --code-bg: #0b0b0c;
  --code-fg: #e6e6e6;
  --k: #c792ea;
  --s: #9ccc8f;
  --d: #f0b46b;
  --c: #7a7a7a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -12px rgba(0, 0, 0, 0.18);
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r: 10px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --fg: #ededed;
    --muted: #a1a1a1;
    --faint: #6f6f6f;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.2);
    --surface: #0a0a0a;
    --surface-2: #111;
    --accent: #6b86ff;
    --accent-soft: rgba(107, 134, 255, 0.16);
    --code-bg: #0a0a0a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 12px 32px -12px rgba(0, 0, 0, 0.8);
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px / 1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}
h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -0.03em;
}
h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: inherit;
  text-decoration: none;
}
p a,
.fine a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
}
p a:hover,
.fine a:hover {
  text-decoration-color: var(--fg);
}
code,
pre,
.mono {
  font-family: var(--mono);
  font-feature-settings: "liga" 0;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--fg);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}
.skip:focus {
  left: 12px;
}
.nb {
  white-space: nowrap;
}
.dim {
  color: var(--faint);
}
.fine {
  font-size: 13px;
  color: var(--faint);
}

/* Glow */
.glow {
  position: absolute;
  inset: -20% 0 auto 0;
  height: 70vh;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(60% 60% at 50% 20%, var(--accent-soft), transparent 70%);
  opacity: 0.8;
  filter: blur(20px);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--border);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand svg {
  width: 20px;
  height: 20px;
}
.nav nav {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}
.nav nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease);
}
.nav nav a:hover {
  color: var(--fg);
  background: var(--surface-2);
}
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Lien de langue : même bouton discret que GitHub, mais en largeur de texte.
   Il vit dans .nav-actions, qui survit au repli mobile — la navigation, elle, disparaît. */
.ghost.lang {
  width: auto;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.ghost {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--muted);
  transition:
    color 0.2s,
    background 0.2s;
}
.ghost:hover {
  color: var(--fg);
  background: var(--surface-2);
}
@media (max-width: 800px) {
  .nav nav {
    display: none;
  }
  .lights {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-weight: 500;
  font-size: 15px;
  transition:
    transform 0.15s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}
.btn:hover {
  border-color: var(--fg);
}
.btn:active {
  transform: scale(0.97);
}
.btn.small {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}
.btn.primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn.primary:hover {
  opacity: 0.9;
}
.btn.primary span {
  transition: transform 0.2s var(--ease);
  display: inline-block;
}
.btn.primary:hover span {
  transform: translateX(3px);
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  position: relative;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font: 500 12.5px / 1.3 var(--mono);
  color: var(--muted);
  letter-spacing: 0.01em;
}

.dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.hero h1 {
  margin-top: 26px;
  font-size: clamp(40px, 7vw, 84px);
  letter-spacing: -0.045em;
  line-height: 1.02;
  max-width: 18ch;
}
.shine {
  background: linear-gradient(90deg, var(--fg), var(--muted));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.br-wide {
  display: none;
}
@media (min-width: 900px) {
  .br-wide {
    display: inline;
  }
}
.lede {
  margin-top: 24px;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 64ch;
}
.lede b {
  color: var(--fg);
  font-weight: 600;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 36px;
}
.install {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 6px 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.install .prompt {
  color: var(--faint);
  font-family: var(--mono);
  margin-right: 10px;
}
.install code {
  font-size: 14.5px;
  white-space: nowrap;
}
.copy {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  margin-left: 12px;
  padding: 0 12px;
  border-radius: 999px;
  border: 0;
  background: var(--surface-2);
  color: var(--muted);
  font: 500 13px var(--sans);
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.15s var(--ease);
}
.copy:hover {
  color: var(--fg);
}
.copy:active {
  transform: scale(0.96);
}
.copy.done {
  color: var(--accent);
}

/* Proof */
.proof {
  padding: 40px 0 80px;
}
.label {
  font: 500 12.5px / 1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.judges {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.judges li {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  padding: 14px 16px;
  display: grid;
  gap: 2px;
  transition:
    border-color 0.2s var(--ease),
    transform 0.3s var(--ease);
}
.judges li:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.judges b {
  font-weight: 600;
  letter-spacing: -0.01em;
}
.judges .sub {
  font-size: 12.5px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .judges {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 560px) {
  .judges {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stats {
  display: grid;
  /* auto-fit : quatre colonnes, cinq quand le compteur de téléchargements est là — et rien à
     corriger quand il manque (relevé absent, JavaScript coupé). */
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px;
  margin: 56px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stats dd {
  margin: 0;
  font-size: clamp(40px, 4.4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats small {
  font-size: 22px;
  color: var(--faint);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-left: 2px;
}
.stats dt {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  max-width: 26ch;
}
@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }
}

/* Bandeau validateur */
.tryout {
  padding: 0 0 88px;
}
.tryout-card {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 40px;
  align-items: center;
  padding: 34px 34px 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    radial-gradient(120% 140% at 0% 0%, var(--accent-soft), transparent 58%), var(--surface);
  box-shadow: var(--shadow);
}
.tryout-card h2 {
  margin-top: 12px;
  font-size: clamp(24px, 2.7vw, 33px);
  max-width: 22ch;
}
.tryout-card .pitch {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 62ch;
}
.tryout-card b {
  color: var(--fg);
  font-weight: 600;
}
.tryout-actions {
  display: grid;
  gap: 12px;
  justify-items: start;
}
@media (max-width: 860px) {
  .tryout-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Showcase */
.showcase {
  padding: 24px 0 96px;
}
.head {
  max-width: 66ch;
  margin-bottom: 32px;
}
.head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
}
.head em {
  color: var(--fg);
  font-style: italic;
}
.window {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--code-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.titlebar {
  overflow-x: auto;
  scrollbar-width: none;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
  height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.lights {
  display: inline-flex;
  gap: 7px;
}
.lights i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.tabs {
  flex: none;
  position: relative;
  display: flex;
  gap: 2px;
}
.tabs [role="tab"] {
  white-space: nowrap;
  position: relative;
  z-index: 1;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9a9a9a;
  font: 500 13px var(--sans);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.tabs [role="tab"][aria-selected="true"] {
  color: #fff;
}
.tabs [role="tab"]:hover {
  color: #ddd;
}
.indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 32px;
  width: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  transition:
    transform 0.35s var(--ease),
    width 0.35s var(--ease);
}
.panels {
  position: relative;
}
.panels pre {
  margin: 0;
  padding: 22px 24px;
  overflow-x: auto;
  color: var(--code-fg);
  font-size: 13.5px;
  line-height: 1.6;
  tab-size: 2;
  animation: fade 0.3s var(--ease);
}
.panels pre[hidden] {
  display: none;
}
html:not(.js) .panels pre[hidden] {
  display: block;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.k {
  color: var(--k);
}
.s {
  color: var(--s);
}
.d {
  color: var(--d);
}
.c {
  color: var(--c);
  font-style: italic;
}

/* Bento */
.bento {
  padding: 0 0 96px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.card {
  grid-column: span 1;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 22px 22px 24px;
  transition:
    border-color 0.25s var(--ease),
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card.wide {
  grid-column: span 2;
}
.card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}
.card code {
  font-size: 12.5px;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 5px;
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card.wide {
    grid-column: span 2;
  }
}
@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .card.wide {
    grid-column: span 1;
  }
}

/* Reform */
.reform {
  padding: 0 0 96px;
}
.cols {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.reform .lede {
  font-size: 17px;
  margin-top: 16px;
  max-width: 56ch;
}
.reform .lede em {
  color: var(--fg);
}
.timeline {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.timeline li {
  position: relative;
  padding-left: 26px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.timeline li + li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: -20px;
  height: 22px;
  width: 2px;
  background: var(--border);
}
.timeline time {
  display: block;
  font: 500 12.5px / 1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.timeline .what {
  color: var(--muted);
}
.timeline b {
  color: var(--fg);
  font-weight: 600;
}
.scope {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 8px 22px 18px;
  box-shadow: var(--shadow);
}
.row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.row:last-of-type {
  border-bottom: 0;
}
.row .tick {
  color: var(--accent);
  font-weight: 600;
  width: 16px;
}
.row.off {
  color: var(--muted);
}
.row.off .tick {
  color: var(--faint);
}
.scope .fine {
  margin-top: 10px;
}
@media (max-width: 860px) {
  .cols {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* CTA */
.cta {
  padding: 80px 0 96px;
  border-top: 1px solid var(--border);
}
.cta p {
  color: var(--muted);
  font-size: 17px;
  margin-top: 14px;
  max-width: 62ch;
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 calc(40px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 14px;
}
.foot {
  display: grid;
  gap: 12px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.foot-link:hover {
  color: var(--fg);
}

/* Reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    transition: opacity 0.2s ease;
    transform: none;
  }
  .card,
  .judges li,
  .btn,
  .copy,
  .btn.primary span {
    transition: none;
  }
  .panels pre {
    animation: none;
  }
  .indicator {
    transition: none;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg);
  }
}
