/* The website in dark, with the app's dark tokens (src/global.css, THEME_DARK): band #0A1614 for the
   paper, background #000 for the white sections, card #1C1C1E, secondary #2C2C2E, border #38383A,
   foreground #F5F5F5, soft #C7C7CC, muted-foreground #A1A1A6, mint #1B3836 with #5EEAD5, and the
   brand's teal on dark, #14B8A6. The action black turns over: the ink button and the Pro plan are
   light with dark text. Every rule here answers one of css/site.css, loaded before it.

   The pages link this sheet with media="(prefers-color-scheme: dark)", so it follows the system; the
   switch beside EN/FR rewrites that media through js/theme.js. Never wrap these rules in a media
   query of their own. Validated mockup: the "Mode sombre du site" boards of the "Site web" sheet
   (2026-11-25). */
html, body { background: #0A1614; }
a { color: #F5F5F5; }
a:hover { color: #14B8A6; }
.site { --paper: #0A1614; --ink: #F5F5F5; --muted: #A1A1A6; --line: rgba(255,255,255,.1); --teal: #14B8A6; }
a:focus-visible, .btn:focus-visible, summary:focus-visible, button:focus-visible { outline-color: #14B8A6; }
.pool.a { background: radial-gradient(circle, rgba(20,184,166,.26), rgba(20,184,166,0) 68%); }
.pool.b { background: radial-gradient(circle, rgba(20,184,166,.14), rgba(20,184,166,0) 68%); }
.dots { background-image: radial-gradient(rgba(255,255,255,.09) 1.2px, transparent 1.5px); }
.ph { box-shadow: 0 40px 70px -30px rgba(0,0,0,.85), inset 0 0 0 1.5px #38383A; }

.links a { color: #C7C7CC; }
.links a[aria-current] { color: var(--teal); }
.menu-btn { background: #1C1C1E; }
.menu-btn span { background: #F5F5F5; }
.lang a[aria-current] { background: #2C2C2E; }
.btn.ink, .url button { background: #F5F5F5; color: #0A0A0A; }
.btn.ink:hover { background: #E5E5E5; color: #0A0A0A; }
.btn.line { background: #1C1C1E; box-shadow: inset 0 0 0 1px #38383A; }
.btn.line:hover { background: #2C2C2E; }
.check { stroke: #14B8A6; }

/* The score card as the app draws it in dark: its tracks at 0.28 (analysisPalette). */
.rc { background: #1C1C1E; color: #F5F5F5; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 60px -18px rgba(0,0,0,.9); }
.ttl { color: #2DD4BF; }
.ring120 path[opacity] { opacity: .28; }

.white, .doc { background: #000; }
.bar { background: rgba(255,255,255,.1); }
.chat { background: #1C1C1E; box-shadow: 0 24px 48px -24px rgba(0,0,0,.85), inset 0 0 0 1px #2C2C2E; }
.bub.me, .asks span { background: #2C2C2E; }
.tool { box-shadow: inset 0 0 0 1px #38383A; }
.tool span { color: #A1A1A6; }
.tile, .card, .help .card, .plan, .faq details, .url { background: #1C1C1E; }
.plan.p { background: #F5F5F5; color: #0A0A0A; }
.plan.p .who { color: #525252; }
.plan.p .check { stroke: #0D9488; }

.toc a:hover { background: #1C1C1E; }
.prose { color: #C7C7CC; }
.prose code { background: #2C2C2E; color: #F5F5F5; }
.prose pre { background: #1C1C1E; }
.prose pre code, .url code { background: none; }
.steps > li::before { background: #1B3836; color: #5EEAD5; }
.note { background: #2A1D0E; color: #F5D0A9; }
.note b { color: #FFEDD5; }
.faq summary::after { border-color: #A1A1A6; }

.gets > div { border-top-color: #F5F5F5; }
.vs .old { background: #1C1C1E; }
.vs .old li { color: #A1A1A6; }
.vs .new { background: #1B3836; }

@container site (max-width: 900px) {
  .menu { background: #1C1C1E; box-shadow: 0 24px 48px -20px rgba(0,0,0,.85), inset 0 0 0 1px #2C2C2E; }
  .links a:hover { background: #2C2C2E; }
  .lang { border-top-color: #2C2C2E; }
  .lang a[aria-current] { background: #2C2C2E; }
}

/* The switch shows where it leads: the sun in dark. */
.theme:hover { background: #2C2C2E; }
.theme .moon { display: none; }
.theme .sun { display: block; }
