/* Wuji — feuille de style unique.
   Les couleurs sont celles de Sources/DesignSystem/Tokens.swift, dans les deux
   apparences : le site suit le réglage du système comme l'application suit celui de
   macOS. Monochrome, filets de 1 px, surfaces opaques, aucune teinte décorative — la
   seule lumière est celle de l'anneau. */

:root {
  /* Clair — chromeBackground #FFFFFF, sidebarBackground #F5F5F7, textPrimary #1D1D1F,
     textSecondary #6E6E73, hairline noir 12 %, selectionFill noir 7 %. */
  --bg:        #FFFFFF;
  --bg-alt:    #F5F5F7;
  --surface:   #FFFFFF;
  --text:      #1D1D1F;
  --muted:     #6E6E73;
  --muted-2:   #86868B;
  --line:      rgba(0,0,0,.12);
  --line-soft: rgba(0,0,0,.08);

  --tint:      rgba(0,0,0,.02);   /* fond des encadrés */
  --hover:     rgba(0,0,0,.05);   /* survol d'un bouton */
  --sel:       rgba(0,0,0,.07);   /* selectionFill */
  --card-hover:#F5F5F7;

  --btn-bg:    #1D1D1F;
  --btn-fg:    #FFFFFF;
  --btn-bg-hover: #000000;
  --btn-glow:  0 10px 30px -12px rgba(0,0,0,.5);

  --glow:      radial-gradient(circle at center,
                 rgba(0,0,0,.055) 0%, rgba(0,0,0,.02) 35%, transparent 68%);
  --ring:      #1D1D1F;
  --ring-glow: 0 0 10px rgba(0,0,0,.28), inset 0 0 6px rgba(0,0,0,.10);

  --nav-bg:    rgba(255,255,255,.72);
  --code-bg:   #F5F5F7;
  --shot-shadow: 0 30px 70px -34px rgba(0,0,0,.45);

  --wrap: 1080px;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Inter,
          system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Sombre — chromeBackground #1C1C1E, sidebarBackground #141416, textPrimary #FFFFFF,
       textSecondary #8E8E93, hairline blanc 16 %, selectionFill blanc 10 %. */
    --bg:        #0B0B0C;
    --bg-alt:    #141416;
    --surface:   #1C1C1E;
    --text:      #FFFFFF;
    --muted:     #8E8E93;
    --muted-2:   #6E6E73;
    --line:      rgba(255,255,255,.12);
    --line-soft: rgba(255,255,255,.07);

    --tint:      rgba(255,255,255,.02);
    --hover:     rgba(255,255,255,.08);
    --sel:       rgba(255,255,255,.10);
    --card-hover:#1C1C1E;

    --btn-bg:    #FFFFFF;
    --btn-fg:    #0B0B0C;
    --btn-bg-hover: #E9E9EC;
    --btn-glow:  0 0 30px rgba(255,255,255,.14);

    --glow:      radial-gradient(circle at center,
                   rgba(255,255,255,.10) 0%, rgba(255,255,255,.04) 35%, transparent 68%);
    --ring:      #FFFFFF;
    --ring-glow: 0 0 10px rgba(255,255,255,.55), inset 0 0 6px rgba(255,255,255,.18);

    --nav-bg:    rgba(11,11,12,.72);
    --code-bg:   #08080A;
    --shot-shadow: 0 40px 90px -30px rgba(0,0,0,.9);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

img { max-width: 100%; height: auto; display: block; }

code, pre, kbd { font-family: var(--mono); }
code { font-size: .88em; color: var(--text); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.sr, .skip {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip-path: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s);
  padding: 10px 14px; z-index: 100;
}

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }

/* ─────────────────────────  Marque : l'anneau  ───────────────────────── */

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }

.ring {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--ring);
  box-shadow: var(--ring-glow);
}

.wordmark {
  font-size: 13px; font-weight: 500; letter-spacing: .34em;
  text-transform: uppercase; padding-left: 2px;
}

/* ─────────────────────────  Barre de navigation  ───────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-in { display: flex; align-items: center; gap: 24px; height: 56px; }

.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  font-size: 14px; color: var(--muted); text-decoration: none;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  font-size: 14px; text-decoration: none; padding: 6px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  transition: background .15s ease, border-color .15s ease;
}
.nav-cta:hover { background: var(--hover); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}

/* ─────────────────────────  Hero  ───────────────────────── */

.hero {
  position: relative;
  padding: 100px 0 0;
  text-align: center;
  overflow: hidden;
}
/* Le halo de l'icône, agrandi derrière le titre. */
.hero::before {
  content: ""; position: absolute; inset: -20% 50% auto; translate: 50% 0;
  width: min(900px, 120vw); aspect-ratio: 1;
  background: var(--glow);
  pointer-events: none;
}
.hero > .wrap { position: relative; }

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

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 600;
}
/* Le titre se casse là où on l'a décidé — sauf quand la ligne ne tient plus. */
@media (max-width: 640px) { .bp { display: none; } }

.lede {
  max-width: 620px; margin: 26px auto 0;
  font-size: 19px; color: var(--muted);
}
.lede + .actions { margin-top: 38px; }

.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 11px 22px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--hover); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg);
  box-shadow: var(--btn-glow);
}
.btn-primary:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); }

.btn-quiet { border-color: transparent; color: var(--muted); }
.btn-quiet:hover { color: var(--text); }

.fineprint { margin-top: 18px; font-size: 13px; color: var(--muted-2); }

/* ─────────────────────────  Les captures  ─────────────────────────

   Les images portent leur propre ombre et leurs coins arrondis : ce sont des fenêtres
   détourées, pas des rectangles. Rien ne les encadre ici, sinon le cadre se verrait. */

.shot { margin: 72px 0 0; }
.shot img { width: 100%; filter: drop-shadow(var(--shot-shadow)); }

figcaption {
  margin-top: 18px; text-align: center;
  font-size: 13px; color: var(--muted-2);
}

.shot-inline { margin: 56px 0; }
.shot-inline img { width: 100%; filter: drop-shadow(var(--shot-shadow)); }

/* Une légende peut porter une touche ou une adresse interne : elles restent en ligne. */
figcaption kbd { min-width: 0; padding: 2px 6px; font-size: 11.5px; }
figcaption code { color: inherit; }

/* ─────────────────────────  Chiffres  ───────────────────────── */

.facts { padding: 90px 0; }
.facts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding-block: 40px;
}
.facts-grid > div { display: flex; flex-direction: column; gap: 8px; }
.facts-grid strong {
  font-size: 40px; font-weight: 500; letter-spacing: -.03em; line-height: 1;
}
.facts-grid span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }

@media (max-width: 860px) {
  .facts { padding: 60px 0; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* ─────────────────────────  Bandes  ───────────────────────── */

.band { padding: 96px 0; border-top: 1px solid var(--line-soft); }
.band.alt { background: var(--bg-alt); }

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  letter-spacing: -.03em; line-height: 1.1; font-weight: 600;
}
h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }

.intro { max-width: 680px; margin: 0 0 48px; color: var(--muted); }
.muted { color: var(--muted); font-size: 15px; }

/* ─────────────────────────  Cartes  ───────────────────────── */

.cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-l);
  overflow: hidden;
}
.card {
  background: var(--bg);
  padding: 28px 26px;
  transition: background .18s ease;
}
.band.alt .card { background: var(--bg-alt); }
.card:hover, .band.alt .card:hover { background: var(--card-hover); }
.card p { margin: 0; font-size: 14.5px; line-height: 1.62; color: var(--muted); }
.card kbd {
  font-size: 12px; padding: 1px 5px; border: 1px solid var(--line);
  border-radius: 5px; color: var(--text); white-space: nowrap;
}

/* ─────────────────────────  Tableau des listes  ───────────────────────── */

.table-scroll { overflow-x: auto; margin-bottom: 56px; }

.lists { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.lists th, .lists td {
  text-align: left; padding: 15px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.lists thead th {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 500;
  border-bottom-color: var(--line);
}
.lists tbody th { font-weight: 500; white-space: nowrap; }
.lists tbody td:first-of-type {
  font-variant-numeric: tabular-nums; color: var(--text); width: 90px;
}
.lists tbody td:last-child { color: var(--muted); }
.lists tbody tr:last-child th, .lists tbody tr:last-child td { border-bottom: none; }

/* ─────────────────────────  Deux colonnes  ───────────────────────── */

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.two p { margin: 0 0 14px; font-size: 15px; color: var(--muted); }
.two p strong { color: var(--text); }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; gap: 36px; } }

/* ─────────────────────────  Honnêteté  ───────────────────────── */

.honest {
  margin-top: 56px; padding: 30px 32px;
  border: 1px solid var(--line); border-radius: var(--r-l);
  background: var(--tint);
}
.honest ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.honest li {
  font-size: 14.5px; color: var(--muted); line-height: 1.6;
  padding-left: 20px; position: relative;
}
.honest li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 9px; height: 1px; background: var(--muted-2);
}
.honest strong { color: var(--text); font-weight: 500; }

/* ─────────────────────────  Interdits  ───────────────────────── */

.rules {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px 48px;
}
.rules li { border-top: 1px solid var(--line); padding-top: 20px; }
.rules h3 { color: var(--text); }
.rules p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.62; }

/* ─────────────────────────  Raccourcis  ───────────────────────── */

.keys {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0 40px;
}
.key {
  display: flex; align-items: baseline; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px; color: var(--muted);
}
kbd {
  font-size: 12.5px; padding: 3px 8px; min-width: 42px; text-align: center;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--sel); color: var(--text);
  flex: none; line-height: 1.4;
}
.key span kbd { min-width: 0; }

/* ─────────────────────────  Installer  ───────────────────────── */

.install { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .install { grid-template-columns: 1fr; } }

.dl, .build {
  border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 30px 32px; background: var(--tint);
}
.dl { display: flex; gap: 24px; align-items: flex-start; }
.dl img { border-radius: 20px; flex: none; }
.dl h3 { font-size: 20px; }
.dl p { margin: 0 0 20px; font-size: 14.5px; color: var(--muted); }
.dl .btn { padding: 9px 18px; font-size: 14px; }
@media (max-width: 520px) { .dl { flex-direction: column; } }

pre {
  margin: 0 0 18px; padding: 16px 18px;
  background: var(--code-bg); border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  overflow-x: auto; font-size: 13px; line-height: 1.7; color: var(--text);
}
.build > p { margin: 0 0 22px; font-size: 14.5px; color: var(--muted); }

.scripts {
  margin: 0; display: grid; grid-template-columns: auto 1fr;
  gap: 10px 18px; font-size: 13.5px; align-items: baseline;
}
.scripts dt { white-space: nowrap; }
.scripts dd { margin: 0; color: var(--muted); }

/* ─────────────────────────  Pied  ───────────────────────── */

.foot { border-top: 1px solid var(--line-soft); padding: 44px 0; }
.foot-in {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--muted-2);
}
.foot p { margin: 0; }
.foot nav { margin-left: auto; display: flex; gap: 20px; }
.foot nav a { text-decoration: none; color: var(--muted); }
.foot nav a:hover { color: var(--text); }
@media (max-width: 640px) { .foot nav { margin-left: 0; flex-wrap: wrap; } }
