/* aladore.fr - website styles (the GitHub pages ignore this file) */
:root, html.theme-dark { color-scheme: dark; --bg: #16171a; --fg: #e8e8ea; --muted: #9a9aa2; --line: #2e3036; --link: #8ab4f8; --cell: #1e2024; }
html.theme-light { color-scheme: light; --bg: #f6f6f4; --fg: #1d1d1f; --muted: #6b6b70; --line: #dcdcd8; --link: #1a5fb4; --cell: #ffffff; }
@media (prefers-color-scheme: light) {
  html:not(.js) { color-scheme: light; --bg: #f6f6f4; --fg: #1d1d1f; --muted: #6b6b70; --line: #dcdcd8; --link: #1a5fb4; --cell: #ffffff; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width: 900px; margin: 0 auto; padding: 24px 16px 64px; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; vertical-align: middle; }
h1 { font-size: 1.9rem; margin: 1.6em 0 1em; }
h2 { font-size: 1.35rem; margin: 2em 0 .8em; }
h1, h2 { font-weight: 650; border: 0; }
main > h2:first-child { margin-top: 0; }
[align="center"] { text-align: center; }
div[align="center"] > table { margin: 0 auto; }
table { border-collapse: collapse; margin: 1em auto; }
th, td { border: 1px solid var(--line); padding: 8px 14px; background: var(--cell); }
th { font-weight: 600; }
ul { padding-left: 1.4em; }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--cell); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
blockquote { margin: 1em 0; padding: .2em 1em; border-left: 3px solid var(--line); color: var(--muted); }

/* One page, two languages: English by default, French when chosen */
.only-fr { display: none; }
html.lang-fr .only-fr { display: block; }
html.lang-fr .only-en { display: none; }

/* Top bar: language flags and light / dark switch, on the right */
.topbar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin: 0 0 8px; color: var(--muted); }
.topbar .flags { display: inline-flex; align-items: center; gap: 6px; }
.topbar .flags img { width: 28px; }
.theme-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--fg);
  padding: 4px 6px; cursor: pointer; line-height: 0; }
html.js .theme-toggle { display: inline-block; }
.theme-toggle:hover { border-color: var(--muted); }
html.theme-dark .theme-toggle .moon, html.theme-light .theme-toggle .sun { display: none; }
html:not(.js) .topbar .sep { display: none; }

/* YouTube player (website only) */
.video iframe { display: block; margin: 0 auto; width: 100%; max-width: 640px; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 6px; }
