/* Pages de contenu du site public (guides par usage, confidentialité). L'accueil garde ses styles dans index.html. */
:root {
  --bg: #f6f7f9; --surface: #fff; --text: #16202a; --muted: #5f6b76; --border: #dde2e7;
  --accent: #0f766e; --accent-strong: #0d5f59; --accent-soft: #e0f2ef; --on-accent: #fff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1419; --surface: #182028; --text: #e6ebf0; --muted: #93a1ad; --border: #2a3540;
    --accent: #2dd4bf; --accent-strong: #5eead4; --accent-soft: #123a36; --on-accent: #06201d;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.7 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
header nav { display: flex; gap: 18px; flex-wrap: wrap; }
header nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
header nav a:hover { color: var(--text); }

.crumbs { font-size: 0.88rem; color: var(--muted); margin: 8px 0 0; }
.crumbs a { color: var(--muted); }

article { max-width: 760px; padding: 8px 0 48px; }
article h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; margin: 12px 0 14px; }
article h2 { font-size: 1.45rem; line-height: 1.25; margin: 40px 0 10px; }
article h3 { font-size: 1.1rem; margin: 24px 0 6px; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 24px; }
article li { margin-bottom: 6px; }
article ol.how { padding-left: 1.3em; }
article ol.how li { margin-bottom: 12px; }
article ol.how li::marker { font-weight: 800; color: var(--accent); }

.cta { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 12px 22px; border-radius: 12px; background: var(--accent); color: var(--on-accent);
  font-weight: 700; text-decoration: none; }
.cta:hover { background: var(--accent-strong); }
.cta small { display: block; font-weight: 500; opacity: 0.85; font-size: 0.78rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 8px 0 8px; }
.cta-row a.second { font-weight: 600; }

.note { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 8px; padding: 12px 16px; margin: 18px 0; }
.note p { margin: 0; }

code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 0.85em; background: var(--accent-soft); padding: 2px 6px; border-radius: 5px; }
pre { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 0.9rem; line-height: 1.5; }
pre code { background: none; padding: 0; }

table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.95rem; background: var(--surface); }
th, td { border: 1px solid var(--border); padding: 7px 10px; text-align: left; vertical-align: top; }
th { background: var(--bg); }
.table-wrap { overflow-x: auto; }

details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 8px 0 0; }

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 12px 0 0; }
.related a { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--text); }
.related a:hover { border-color: var(--accent); }
.related b { display: block; color: var(--accent); }
.related span { color: var(--muted); font-size: 0.92rem; }

footer { padding: 28px 0 44px; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 820px) {
  header nav a:not(.keep) { display: none; }
}
