/* Portail « Fait maison » — feuille commune. Couleurs en jetons, clair et sombre. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-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: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-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 {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #17171a;
  --muted: #6c6b70;
  --faint: #9a99a0;
  --line: #e9e7e1;
  --hover: #f3f1ec;
  --accent: #0f7b5f;
  --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgb(20 20 30 / 0.05), 0 6px 20px rgb(20 20 30 / 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --surface: #1a1a1d;
    --ink: #f2f1ee;
    --muted: #a3a2a8;
    --faint: #6f6e75;
    --line: #26262a;
    --hover: #1b1b1f;
    --accent: #3fbf96;
    --accent-ink: #0b1f18;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 6px 20px rgb(0 0 0 / 0.3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
main { max-width: 1040px; margin: 0 auto; padding: 48px 16px 64px; }
@media (min-width: 760px) { main { padding: 96px 40px 96px; } }

/* En-tête */
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 44px; height: 44px; flex: none; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; letter-spacing: -0.045em; font-weight: 750; margin: 0; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.5; max-width: 32em; margin: 20px 0 0; letter-spacing: -0.01em; }
.lead strong { color: var(--ink); font-weight: 600; }

/* Liste des applis */
.apps { list-style: none; margin: 64px 0 0; padding: 0; border-top: 1px solid var(--line); }
.apps li { border-bottom: 1px solid var(--line); }
.app {
  display: grid; align-items: center; gap: 4px 20px;
  grid-template-columns: 56px 1fr auto;
  grid-template-areas: 'icon name go' 'icon desc go' 'icon meta go';
  padding: 22px 12px; margin: 0 -12px; border-radius: 14px;
  text-decoration: none; transition: background 160ms ease;
}
a.app:hover, a.app:focus-visible { background: var(--hover); outline: none; }
a.app:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.app .icon { grid-area: icon; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12), 0 4px 14px -6px var(--tint); background: linear-gradient(160deg, color-mix(in oklab, var(--tint) 82%, white), var(--tint)); }
.app .icon svg { width: 28px; height: 28px; }
.app .name { grid-area: name; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.app .desc { grid-area: desc; color: var(--muted); max-width: 44em; }
.app .meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 0.8125rem; color: var(--faint); }
.app .meta span { display: inline-flex; align-items: center; gap: 6px; }
.app .meta .sep::before { content: ''; width: 3px; height: 3px; border-radius: 9px; background: currentColor; margin-right: 8px; }
.app .go { grid-area: go; display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.app .go svg { width: 16px; height: 16px; transition: transform 180ms ease; }
a.app:hover .go, a.app:focus-visible .go { color: var(--ink); }
a.app:hover .go svg, a.app:focus-visible .go svg { transform: translate(2px, -2px); }
.app.soon .icon { filter: grayscale(0.35); opacity: 0.7; }
.app.soon .go { color: var(--faint); font-weight: 500; }
@media (max-width: 640px) {
  .app { grid-template-columns: 48px 1fr; grid-template-areas: 'icon name' 'desc desc' 'meta meta' 'go go'; gap: 6px 14px; }
  .app .icon { width: 48px; height: 48px; border-radius: 12px; }
  .app .desc { margin-top: 6px; }
  .app .go { margin-top: 6px; }
  .app .meta .sep::before { display: none; }
  .app .meta { flex-direction: column; gap: 2px; }
}

footer { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--faint); font-size: 0.8125rem; }

/* Page d'une appli */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 0.9rem; margin-bottom: 40px; }
.back:hover { color: var(--ink); }
.hero { display: grid; gap: 20px 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 640px) { .hero { grid-template-columns: auto 1fr; } .hero .app-icon { margin-top: 4px; } }
.hero .app-icon { width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, color-mix(in oklab, var(--tint) 82%, white), var(--tint)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12), 0 10px 30px -12px var(--tint); }
.hero .app-icon svg { width: 36px; height: 36px; }

.downloads { display: grid; gap: 12px; margin-top: 40px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .downloads { grid-template-columns: repeat(3, 1fr); } }
.dl {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: 'ico title' 'ico sub'; column-gap: 14px; align-items: center;
  padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.dl svg { grid-area: ico; width: 26px; height: 26px; color: var(--muted); }
.dl strong { grid-area: title; font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; }
.dl span { grid-area: sub; color: var(--muted); font-size: 0.85rem; }
.dl[href]:hover, .dl[href]:focus-visible { border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow); outline: none; }
.dl.mine { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.dl.mine svg, .dl.mine span { color: color-mix(in oklab, var(--accent-ink) 78%, transparent); }
.dl.mine:hover { border-color: var(--accent); }
.version { margin-top: 20px; color: var(--muted); font-size: 0.925rem; }
.version ul { margin-top: 10px; }

.features { display: grid; gap: 28px 40px; margin-top: 72px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { display: grid; grid-template-columns: 36px 1fr; gap: 4px 14px; align-content: start; }
.feature svg { grid-row: span 2; width: 22px; height: 22px; margin-top: 3px; color: var(--accent); }
.feature h3 { margin: 0; font-size: 1.05rem; letter-spacing: -0.015em; }
.feature p { margin: 0; color: var(--muted); }

.cols { display: grid; gap: 40px; margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); grid-template-columns: 1fr; }
@media (min-width: 820px) { .cols { grid-template-columns: 1fr 1fr; } }
h2 { font-size: 1.15rem; letter-spacing: -0.02em; margin: 0 0 14px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 38px; color: var(--muted); }
.steps li + li { margin-top: 14px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 99px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 0.8rem; font-weight: 600; color: var(--ink); }
.steps strong, .cols strong { color: var(--ink); font-weight: 600; }
.cols p { margin: 0 0 12px; color: var(--muted); }
ul { padding-left: 1.2em; margin: 0; }
li + li { margin-top: 6px; }
kbd { font: 0.82em ui-monospace, SFMono-Regular, Menlo, monospace; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
