/* Swolee — pages du site swolee.app. Couleurs reprises de l'app
   (constants/tokens.ts, thème Obsidienne), police Plus Jakarta Sans
   servie depuis ce site (aucun appel à un service tiers). */

@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("/fonts/PlusJakartaSans-Regular.ttf") format("truetype"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("/fonts/PlusJakartaSans-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("/fonts/PlusJakartaSans-Bold.ttf") format("truetype"); }

:root {
  --hero-from: #1a1d23;
  --hero-to: #0b0d10;
  --hero-text: #ffffff;
  --hero-subtle: rgba(255, 255, 255, 0.6);
  --hero-chip: rgba(255, 255, 255, 0.1);
  --hero-border: rgba(255, 255, 255, 0.12);

  --bg: #f9fafb;
  --card: #ffffff;
  --subtle: #f3f4f6;
  --text: #111827;
  --body: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --link: #111827;
  --link-line: #9ca3af;
  --todo: #fffbeb;
  --todo-line: #f59e0b;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1117;
    --card: #1a2035;
    --subtle: #1f2937;
    --text: #f9fafb;
    --body: #e5e7eb;
    --muted: #9ca3af;
    --line: #374151;
    --link: #f9fafb;
    --link-line: #6b7280;
    --todo: rgba(245, 158, 11, 0.16);
    --todo-line: #f59e0b;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 16px/1.65 "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ── En-tête : le hero sombre de l'app ─────────────────────────────── */
.hero {
  background: linear-gradient(180deg, var(--hero-from), var(--hero-to));
  color: var(--hero-text);
  border-radius: 0 0 28px 28px;
  padding: 20px 16px 72px;
}
.hero-in, footer { max-width: 760px; margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; line-height: 0; }
.brand img { height: 26px; width: auto; }
.hero-contact { color: var(--hero-subtle); font-size: 13px; text-decoration: none; white-space: nowrap; }
.hero-contact:hover { color: var(--hero-text); }

nav {
  display: flex; gap: 8px; margin: 22px -16px 0; padding: 0 16px 2px;
  overflow-x: auto; scrollbar-width: none;
}
nav::-webkit-scrollbar { display: none; }
nav a {
  flex: none; padding: 7px 14px; border-radius: 999px;
  background: var(--hero-chip); border: 1px solid var(--hero-border);
  color: var(--hero-subtle); font-size: 14px; font-weight: 600; text-decoration: none;
}
nav a:hover { color: var(--hero-text); }
nav a[aria-current="page"] { background: #ffffff; border-color: #ffffff; color: #0f1117; }

.hero h1 { color: var(--hero-text); font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; margin: 30px 0 8px; }
.hero .updated { color: var(--hero-subtle); font-size: 14px; margin: 0; }
.hero .updated a { color: var(--hero-text); text-decoration-color: var(--hero-subtle); }

/* ── Contenu : carte qui chevauche le hero ─────────────────────────── */
main {
  position: relative;
  width: min(760px, 100% - 32px);
  margin: -44px auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 8px 20px 28px;
}
h2 { color: var(--text); font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; margin: 32px 0 8px; }
h3 { color: var(--text); font-size: 16px; font-weight: 700; margin: 20px 0 6px; }
main > h2:first-child { margin-top: 20px; }
strong { color: var(--text); font-weight: 600; }
a { color: var(--link); text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }

table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0 18px; display: block; overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; background: var(--subtle); }
th:first-child { border-radius: 10px 0 0 10px; }
th:last-child { border-radius: 0 10px 10px 0; }

.todo { background: var(--todo); box-shadow: inset 0 -2px 0 var(--todo-line); padding: 0 4px; border-radius: 4px; }

details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; color: var(--text); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details > :not(summary) { margin-bottom: 0; }

/* ── Accueil ───────────────────────────────────────────────────────── */
.home .hero { padding-bottom: 88px; }
.ring { display: block; width: 64px; height: 64px; margin: 40px 0 18px; }
.home .hero h1 { font-size: 34px; margin-top: 0; }
.home .hero .lead { color: var(--hero-subtle); font-size: 17px; max-width: 34ch; margin: 0; }
.links { list-style: none; padding: 0; margin: 12px 0 0; }
.links li { margin: 0; border-bottom: 1px solid var(--line); }
.links li:last-child { border-bottom: 0; }
.links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; text-decoration: none; }
.links a span { display: block; }
.links .t { color: var(--text); font-weight: 600; }
.links .d { color: var(--muted); font-size: 14px; }
.links a::after { content: "›"; color: var(--muted); font-size: 22px; line-height: 1; }

footer { color: var(--muted); font-size: 13px; padding: 20px 16px 40px; box-sizing: content-box; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; }
footer a { color: var(--muted); }

@media (min-width: 640px) {
  .hero { padding: 28px 24px 84px; }
  .hero h1 { font-size: 36px; }
  .home .hero h1 { font-size: 42px; }
  nav { margin: 26px 0 0; padding: 0; flex-wrap: wrap; overflow: visible; }
  main { padding: 12px 40px 40px; }
}
