/* Aide et documentation de Vata (aide.html, en/help.html) : même identité que le site (fond sombre, accent doré). */
:root { --bg: #0d0a12; --surface: rgba(255, 255, 255, .055); --line: rgba(255, 255, 255, .12); --text: #f7f4fb; --muted: #bdb6ca; --accent: #d4af5f; --accent-ink: #17120a; color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; color: var(--text); background: var(--bg); line-height: 1.65; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(55% 45% at 8% 4%, rgba(212, 175, 95, .2), transparent 70%), radial-gradient(50% 40% at 96% 30%, rgba(150, 90, 210, .14), transparent 70%), var(--bg); }
a { color: #f3d98b; text-underline-offset: 3px; } a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.top { position: sticky; top: 0; z-index: 20; background: rgba(13, 10, 18, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; } .brand img { height: 26px; width: auto; }
.top nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 14.5px; } .top nav a:hover { color: #fff; background: var(--surface); }
.top nav .lang { border: 1px solid var(--line); } .top nav .cta { background: var(--accent); color: var(--accent-ink); font-weight: 700; } .top nav .cta:hover { background: #e6c36a; color: var(--accent-ink); }

.hero { padding: 44px 0 20px; text-align: center; }
.hero h1 { margin: 0 0 10px; font-size: clamp(30px, 5vw, 48px); line-height: 1.1; letter-spacing: -.02em; background: linear-gradient(95deg, #fff 45%, #f3d98b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 0 auto 22px; max-width: 640px; color: var(--muted); font-size: 17px; }
.search { display: block; max-width: 560px; margin: 0 auto 26px; }
.search input { width: 100%; height: 52px; padding: 0 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: #fff; font: inherit; font-size: 16px; }
.search input::placeholder { color: #8f879c; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; text-align: left; }
.card { display: block; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s, background .15s; }
.card:hover { border-color: rgba(212, 175, 95, .6); background: rgba(255, 255, 255, .08); transform: translateY(-2px); color: var(--text); }
.card .ic { font-size: 26px; display: block; margin-bottom: 6px; } .card strong { display: block; font-size: 16px; } .card small { display: block; margin-top: 2px; color: var(--muted); font-size: 13.5px; line-height: 1.4; }

.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; padding: 28px 0 56px; align-items: start; }
.toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; padding: 16px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; }
.toc strong { display: block; margin: 0 0 8px 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc ul { list-style: none; margin: 0; padding: 0; } .toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; } .toc a:hover, .toc a.on { color: #fff; background: rgba(212, 175, 95, .16); }
.content { min-width: 0; }
.sec { margin: 0 0 36px; padding: 26px 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.sec[hidden], details[hidden], .none[hidden] { display: none; }
.sec h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 26px; line-height: 1.2; } .sec h2 .ic { font-size: 26px; }
.sec h3 { margin: 22px 0 8px; font-size: 18px; color: #f3d98b; }
.sec p { margin: 0 0 12px; color: #e9e4f1; } .sec ul, .sec ol { margin: 0 0 14px; padding-left: 22px; color: #e9e4f1; } .sec li { margin: 6px 0; } .sec li::marker { color: var(--accent); }
.box { margin: 14px 0 6px; padding: 12px 16px; border-radius: 14px; border-left: 4px solid var(--accent); background: rgba(212, 175, 95, .1); } .box.tip { border-color: #7fd8a4; background: rgba(127, 216, 164, .09); }
.box strong { display: block; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: #f3d98b; } .box.tip strong { color: #9fe8bd; } .box p { margin: 4px 0 0; }
.tbl { overflow-x: auto; margin: 6px 0 16px; border-radius: 14px; border: 1px solid var(--line); } table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 15px; }
th, td { padding: 10px 14px; text-align: center; border-bottom: 1px solid var(--line); } thead th { background: rgba(212, 175, 95, .14); color: #f3d98b; } tbody th { text-align: left; font-weight: 600; } tr:last-child th, tr:last-child td { border-bottom: 0; }
details.q { margin: 0 0 10px; border-radius: 16px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); }
details.q summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; position: relative; padding-right: 44px; } details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--accent); } details.q[open] summary::after { content: "−"; }
details.q > div { padding: 0 18px 16px; color: #e9e4f1; }
.none { text-align: center; color: var(--muted); padding: 30px 0; } .help { text-align: center; color: var(--muted); margin: 8px 0 0; }
footer { border-top: 1px solid var(--line); padding: 26px 0 40px; text-align: center; color: var(--muted); font-size: 14px; }
footer nav { display: flex; gap: 8px 22px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; } footer nav a { color: var(--muted); } footer p { margin: 0; }

@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; gap: 18px; } .toc { position: static; max-height: none; } .toc ul { display: flex; flex-wrap: wrap; gap: 4px; } .toc a { padding: 6px 12px; background: rgba(255, 255, 255, .05); }
  .sec { padding: 20px 18px; } .sec h2 { font-size: 22px; }
  .top nav a:not(.cta):not(.lang) { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } }
@media (max-width: 600px) {
  .wrap { padding: 0 14px; }
  .top .wrap { min-height: 54px; gap: 8px; } .brand span { display: none; }
  .top nav a { padding: 6px 10px; font-size: 13px; }
  .hero { padding-top: 28px; } .hero .lead { font-size: 15.5px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 8px; } .card { padding: 12px 12px; } .card small { display: none; }
  .sec { padding: 18px 14px; border-radius: 18px; } table { font-size: 14px; min-width: 460px; }
}
html, body { overflow-x: hidden; }
