/* Socle commun aux deux pages : couleurs, typographie, barre du haut, pied de page. */

:root {
  --bg: #fafafa;
  --fg: #0a0a0a;
  --muted: #5c5c66;
  --faint: #8a8a94;
  --border: #e4e4e7;
  --card: #ffffff;
  --chip: #f4f4f5;
  --accent: #0b57d0;
  --dot: rgb(115 115 115 / 0.35);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px -12px rgb(0 0 0 / 0.12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b;
    --fg: #fafafa;
    --muted: #a1a1aa;
    --faint: #71717a;
    --border: #27272a;
    --card: #111113;
    --chip: #18181b;
    --accent: #8ab4f8;
    --dot: rgb(163 163 163 / 0.22);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -12px rgb(0 0 0 / 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, sans-serif;
  isolation: isolate;
  position: relative;
}
a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1rem; }

/* Icônes Lucide, servies par /assets/icons.svg */
.i {
  width: 1.1rem; height: 1.1rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon-box {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: none;
  border: 1px solid var(--border); border-radius: 0.6rem; background: var(--chip);
}

/* Fond : « Dot Pattern » (dillionverma), composant 21st.dev réécrit en CSS pur. */
.backdrop {
  position: absolute; inset: 0 0 auto; height: var(--backdrop-height, 44rem);
  z-index: -1; overflow: hidden; pointer-events: none;
}
.dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 0);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000, transparent);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000, transparent);
}

/* Pastille */
.pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.3rem 0.8rem; margin-bottom: 1.25rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: color-mix(in srgb, var(--card) 70%, transparent);
  color: var(--muted); font-size: 0.85rem;
}

/* Barre du haut */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1.25rem; padding-bottom: 1.25rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--fg); font-weight: 600; text-decoration: none; }
.brand img { width: 26px; height: 26px; display: block; }
.nav-link { color: var(--muted); font-size: 0.925rem; text-decoration: none; }
.nav-link:hover { color: var(--fg); }

/* Pied de page */
footer { margin-top: 6rem; border-top: 1px solid var(--border); }
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem;
  padding-top: 1.5rem; padding-bottom: 2rem; color: var(--muted); font-size: 0.9rem;
}
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--fg); }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot-links a { display: inline-flex; align-items: center; gap: 0.4rem; }
