/* Base : palette claire (ivoire, sable, graphite), mise en page, grille. Le sombre est dans dark.css. */
:root {
  --bg: #f7f4ee; --surface: #fffdf9; --sand: #ece5d8; --line: #e2dacb; --line-strong: #cfc4b0;
  --text: #24211d; --muted: #6b645a; --accent: #8a6a43; --accent-ink: #fffdf9;
  --invert-bg: #24211d; --invert-text: #f7f4ee; --banner-bg: #ece5d8; --banner-text: #5a5246;
  --shadow: 0 1px 2px rgb(36 33 29 / 0.04), 0 12px 32px rgb(36 33 29 / 0.06);
  --radius: 20px; --radius-sm: 12px; --gap: 16px; --page: 1120px; --pad: 20px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1); --slow: 600ms;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text); min-height: 100dvh;
  display: flex; flex-direction: column;
  transition: background-color var(--slow) var(--ease), color var(--slow) var(--ease);
}
header {
  position: relative; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.bar, .header-row { max-width: var(--page); margin: 0 auto; padding: 14px var(--pad) 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
main { flex: 1; width: 100%; max-width: var(--page); margin: 0 auto; padding: 28px var(--pad) 32px; }
main > div { animation: fade-in 700ms var(--ease) both; }
footer { width: 100%; max-width: var(--page); margin: 0 auto; padding: 12px var(--pad) 112px; color: var(--muted); font-size: 12px; }
.grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 900px) {
  :root { --pad: 48px; --gap: 24px; }
  header { position: sticky; }
  .grid.two { grid-template-columns: 1fr 1fr; }
  .grid.split { grid-template-columns: 1.15fr 1fr; align-items: start; }
  footer { padding-bottom: 40px; }
}
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
