/* athlion-web — feuille de style unique et partagée.
   Tokens issus de athlion-app/doc/athlion-homepage-stitch-brief-v1.md (dark mode).
   HTML/CSS pur, aucun build. */

/* --- Polices auto-hébergées (voir assets/fonts/README.md pour récupérer les .woff2).
   Tant que les fichiers manquent, le navigateur retombe sur les polices système
   déclarées dans les fallbacks ci-dessous. --- */
@font-face {
  font-family: 'Lexend';
  src: url('../fonts/lexend-600.woff2') format('woff2');
  font-weight: 600 700;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('../fonts/hanken-grotesk-400.woff2') format('woff2');
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #121313;
  --surface: #1a1c1c;
  --raised: #1e2020;
  --text: #e2e2e2;
  --muted: #c8c6c6;
  --accent: #b60059;
  --on-accent: #ffffff;
  --success: #7fdb79;
  --border: #4e3d42;
  --accent-glow: rgba(182, 0, 89, 0.25);
  --glass: rgba(18, 19, 19, 0.72);
  --band-dark: #0f1010;

  --font-head: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --maxw: 760px;
  --radius: 12px;
}

/* Mode clair automatique — palette light du design system Athlion.
   Le rose accent (#b60059) et les maquettes « écran d'app » restent inchangés
   (volontairement sombres dans les deux thèmes). */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f9f9f9;
    --surface: #ffffff;
    --raised: #f3f3f3;
    --text: #1a1c1c;
    --muted: #5f5e5e;
    --success: #006b17;
    --border: #e1bec5;
    --glass: rgba(249, 249, 249, 0.8);
    --band-dark: #eeeeee;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

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

a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}

/* --- Layout --- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 48px 24px 96px; }

/* --- Apex minimal --- */
.hero-min {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 48px 24px;
}
.hero-wordmark {
  display: flex;
  align-items: center;
  gap: 0.2em;
}
.hero-logo {
  height: clamp(28px, 5.8vw, 52px);
  width: auto;
  flex-shrink: 0;
}
.hero-min h1 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(40px, 8vw, 72px);
  margin: 0;
}
.hero-min .tagline { color: var(--muted); font-size: 18px; max-width: 480px; margin: 0; }
.hero-min .soon {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.hero-min nav { margin-top: 24px; display: flex; gap: 20px; }

/* --- Prose légale --- */
.legal h1 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 5vw, 40px);
  margin: 0 0 8px;
}
.legal .updated {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 40px;
}
.legal h2 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 20px;
  margin: 40px 0 12px;
}
.legal h3 { font-family: var(--font-head); font-weight: 600; font-size: 16px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--text); }
.legal strong { color: var(--text); font-weight: 600; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }

/* Marqueur de contenu à compléter avant publication. */
.todo {
  display: inline-block;
  background: var(--raised);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
}

/* --- Footer --- */
.footer { border-top: 1px solid var(--border); padding: 32px 24px; text-align: center; }
.footer .links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.footer .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
