/* Site onzaro.net — couleurs de l'application : mode jour « Ivoire, anthracite et or patiné » et mode nuit
   « Vert nuit et champagne mat » (docs/design/). Polices Barlow / Barlow Condensed (licence OFL, fonts/OFL-*.txt). */
@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/BarlowCondensed-ExtraBold.woff") format("woff"); font-weight: 800; font-display: swap; }

:root {
  --bg: #F5F2EA;
  --surface: #FFFEFA;
  --surface-alt: #EAE7DF;
  --border: #8D8B82;
  --rule: #D8D3C6;
  --text: #252824;
  --text-dim: #62645D;
  --accent: #252824;
  --on-accent: #F5F2EA;
  --gold: #876C40;
  --forest: #173B2C;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C1511;
    --surface: #141D19;
    --surface-alt: #18221E;
    --border: #39443C;
    --rule: #26302B;
    --text: #F1EEE4;
    --text-dim: #ABAFA5;
    --accent: #D7C49F;
    --on-accent: #0C1511;
    --gold: #D7C49F;
    --forest: #173B2C;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 1.6em 0 0.5em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.1rem; margin-top: 0; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1040px; margin: 0 auto; padding: 18px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { border-radius: 7px; }
.brand span, .wordmark { font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 800; letter-spacing: 0.18em; }
.brand span { font-size: 1.3rem; }
.lang { font-weight: 600; text-decoration: none; border: 1px solid var(--border); border-radius: 999px; padding: 4px 14px; color: var(--text); }

main { min-height: 60vh; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 8px 16px 24px; }
.hero { max-width: 760px; margin: 0 auto; padding: 32px 16px 24px; text-align: center; }
.hero-icon { border-radius: 30px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }
.wordmark { font-size: clamp(2.6rem, 10vw, 4.5rem); margin: 0.4em 0 0.1em; }
.tagline { font-size: 1.25rem; font-weight: 600; margin: 0; color: var(--text); }
.lead { color: var(--text-dim); font-size: 1.1rem; }
.soon { display: inline-block; margin-top: 8px; padding: 8px 18px; border-radius: 999px; background: var(--surface-alt); font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 20px; }
.card p { margin: 0; color: var(--text-dim); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--gold); border-radius: 12px; padding: 12px 16px; }

.button {
  display: inline-block; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 700;
  padding: 12px 22px; border-radius: 12px; margin: 6px;
}
.buttons { margin-top: 18px; }

.studies { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.studies li { border-bottom: 1px solid var(--rule); padding: 12px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.studies a { font-weight: 600; text-decoration: none; color: var(--text); }
.studies a:hover { text-decoration: underline; }
.studies span { color: var(--text-dim); font-size: 0.9rem; }

.legal { max-width: 820px; }
.legal p, .legal li { color: var(--text); }
.table { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.95rem; }
th, td { border: 1px solid var(--rule); padding: 8px 10px; text-align: start; vertical-align: top; }
th { background: var(--surface-alt); }

.foot { border-top: 1px solid var(--rule); margin-top: 40px; padding: 24px 16px 40px; text-align: center; color: var(--text-dim); font-size: 0.95rem; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 8px; }
.foot a { color: var(--text-dim); }

/* ---------------------------------------------------------------- études : document sérieux, noir et blanc */
body.paper { background: #FFFFFF; color: #000000; font-family: Georgia, "Times New Roman", serif; }
body.paper .top, body.paper .foot { font-family: "Barlow", system-ui, sans-serif; }
body.paper .brand, body.paper .lang, body.paper .foot, body.paper .foot a { color: #000000; border-color: #000000; }
body.paper .foot { border-top-color: #000000; }
.doc { max-width: 760px; margin: 0 auto; padding: 8px 16px 32px; }
.doc h1 { font-size: 1.8rem; margin-top: 0.8em; }
.doc h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid #000000; padding-bottom: 4px; margin-top: 1.6em; }
.doc p { color: #000000; }
.doc a { color: #0645AD; }
.crumb { font-family: "Barlow", system-ui, sans-serif; font-size: 0.95rem; }
.ref { border: 1px solid #000000; padding: 12px 16px; margin: 16px 0; font-size: 0.95rem; }
.ref p { margin: 4px 0; }
.ref-label { font-family: "Barlow", system-ui, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.doi { color: #0645AD; word-break: break-all; }
.inst, .note { font-size: 0.92rem; font-style: italic; }
.warn { border-left: 4px solid #000000; padding: 8px 12px; background: #F2F2F2; }

@media (max-width: 520px) {
  body { font-size: 17px; }
  h1 { font-size: 1.7rem; }
  .button { display: block; margin: 8px 0; }
}
@media print {
  .top, .foot, .crumb { display: none; }
  body, body.paper { background: #FFFFFF; color: #000000; }
}
