/* APP-TOOLS — page catalogue. Sobre, aplats, theme-aware (clair + sombre). */
:root {
  --tl-bg: #f7f7fb;
  --tl-surface: #ffffff;
  --tl-border: #e4e4ee;
  --tl-text: #1b1b28;
  --tl-muted: #6b6b7d;
  --tl-accent: #6d28d9;      /* violet, cohérent avec l'identité EDU */
  --tl-accent-weak: #ede9fe;
}
@media (prefers-color-scheme: dark) {
  :root {
    --tl-bg: #14141b;
    --tl-surface: #1e1e29;
    --tl-border: #2e2e3d;
    --tl-text: #ececf2;
    --tl-muted: #9a9aae;
    --tl-accent: #a78bfa;
    --tl-accent-weak: #2a2340;
  }
}
:root[data-theme="dark"] {
  --tl-bg: #14141b; --tl-surface: #1e1e29; --tl-border: #2e2e3d;
  --tl-text: #ececf2; --tl-muted: #9a9aae; --tl-accent: #a78bfa; --tl-accent-weak: #2a2340;
}
:root[data-theme="light"] {
  --tl-bg: #f7f7fb; --tl-surface: #ffffff; --tl-border: #e4e4ee;
  --tl-text: #1b1b28; --tl-muted: #6b6b7d; --tl-accent: #6d28d9; --tl-accent-weak: #ede9fe;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--tl-bg);
  color: var(--tl-text);
  line-height: 1.5;
}
.tl-header { padding: 3rem 1.5rem 1.5rem; max-width: 960px; margin: 0 auto; }
.tl-header h1 { margin: 0; font-size: 2rem; font-weight: 700; }
.tl-sub { margin: .4rem 0 0; color: var(--tl-muted); }
.tl-main { max-width: 960px; margin: 0 auto; padding: 0 1.5rem 3rem; }
.tl-domain { margin-top: 2.2rem; }
.tl-domain h2 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--tl-muted); margin: 0 0 .8rem;
}
.tl-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.tl-card {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1rem 1.1rem;
  background: var(--tl-surface);
  border: 1px solid var(--tl-border);
  border-radius: 12px;
  text-decoration: none; color: inherit;
  transition: border-color .12s ease, transform .12s ease;
}
.tl-card:hover { border-color: var(--tl-accent); transform: translateY(-2px); }
.tl-card:focus-visible { outline: 2px solid var(--tl-accent); outline-offset: 2px; }
.tl-title { font-weight: 600; }
.tl-desc { color: var(--tl-muted); font-size: .9rem; }
.tl-meta { margin-top: .3rem; }
.tl-lic {
  font-size: .72rem; padding: .12rem .5rem; border-radius: 999px;
  background: var(--tl-accent-weak); color: var(--tl-accent); font-weight: 600;
}
.tl-empty { color: var(--tl-muted); margin-top: 2rem; }
.tl-footer {
  max-width: 960px; margin: 0 auto; padding: 1.5rem;
  color: var(--tl-muted); font-size: .8rem; border-top: 1px solid var(--tl-border);
}
