/* ═══════════════════════════════════════════════════════════════════════════
   MON PETIT TRADEUR — Guide utilisateur (pages statiques /guide/)
   Identité : base sombre, violet on-chain #9945FF → vert Solana #14F195.
   Même langage visuel que l'app et les cartes Telegram.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
    --bg: #0b0f14; --panel: #11161d; --panel2: #161d26;
    --line: #232b33; --txt: #e8edf2; --muted: #9aa4b0; --dim: #5a6470;
    --violet: #9945FF; --violet2: #B07CFF; --green: #14F195;
    --amber: #fbbf24; --red: #ef4444;
    --grad: linear-gradient(90deg, #B07CFF, #14F195);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg); color: var(--txt);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    line-height: 1.65; font-size: 16.5px;
}
a { color: var(--violet2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Structure ── */
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px 80px; }
header.site {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11,15,20,0.92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
header.site .bar {
    max-width: 980px; margin: 0 auto; padding: 12px 20px;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
header.site img.logo { width: 34px; height: 34px; border-radius: 8px; }
header.site .brand {
    font-weight: 800; font-size: 17px;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
    white-space: nowrap;
}
header.site nav { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; }
header.site nav a { color: var(--muted); font-size: 14px; font-weight: 600; }
header.site nav a.cta {
    color: #0b0f14; background: var(--grad); padding: 5px 14px; border-radius: 999px;
}
header.site nav a.cta:hover { text-decoration: none; filter: brightness(1.1); }

.crumb { font-size: 13.5px; color: var(--dim); margin: 22px 0 6px; }
.crumb a { color: var(--dim); }

h1 { font-size: 34px; line-height: 1.25; margin: 10px 0 6px; letter-spacing: -0.5px; }
.lead { font-size: 19px; color: var(--muted); margin-bottom: 30px; }
h2 {
    font-size: 24px; margin: 44px 0 14px; padding-top: 10px;
    border-top: 1px solid var(--line);
}
h2:first-of-type { border-top: none; }
h3 { font-size: 19px; margin: 28px 0 10px; }
p { margin: 12px 0; }
ul, ol { margin: 12px 0 12px 24px; }
li { margin: 6px 0; }
strong { color: #fff; }
code {
    background: var(--panel2); border: 1px solid var(--line); border-radius: 6px;
    padding: 1.5px 7px; font-size: 14.5px; color: var(--green);
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

/* ── Encarts ── */
.box { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 18px 0; background: var(--panel); }
.box.tip    { border-left: 4px solid var(--green); }
.box.warn   { border-left: 4px solid var(--amber); }
.box.danger { border-left: 4px solid var(--red); }
.box .t { font-weight: 800; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.box.tip .t { color: var(--green); } .box.warn .t { color: var(--amber); } .box.danger .t { color: var(--red); }

/* ── Anatomie de carte (façon manuel d'appareil) ── */
.anatomy { position: relative; margin: 26px 0 8px; }
.anatomy img { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.pin {
    position: absolute; width: 30px; height: 30px; border-radius: 50%;
    background: var(--grad); color: #0b0f14; font-weight: 800; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 3px rgba(11,15,20,0.85), 0 2px 10px rgba(0,0,0,0.6);
    transform: translate(-50%, -50%); cursor: default;
}
.legend { counter-reset: leg; margin: 22px 0; padding: 0; list-style: none; }
.legend li {
    counter-increment: leg; position: relative;
    padding: 13px 16px 13px 56px; margin: 0;
    border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
}
.legend li + li { margin-top: 8px; }
.legend li::before {
    content: counter(leg); position: absolute; left: 14px; top: 14px;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--grad); color: #0b0f14; font-weight: 800; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
}
.legend b { color: #fff; }
.legend .d { color: var(--muted); font-size: 15px; display: block; margin-top: 2px; }

/* ── Glossaire de page ── */
dl.gloss { margin: 18px 0; }
dl.gloss dt {
    font-weight: 800; color: var(--violet2); margin-top: 16px; font-size: 16.5px;
}
dl.gloss dd { margin-left: 0; color: var(--muted); font-size: 15.5px; }

/* ── Cartes de navigation (sommaire) ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 20px 0; }
.card {
    display: block; border: 1px solid var(--line); border-radius: 16px;
    padding: 18px 20px; background: var(--panel); transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--violet); text-decoration: none; transform: translateY(-2px); }
.card .em { font-size: 26px; }
.card .h { font-weight: 800; font-size: 17px; color: #fff; margin: 6px 0 4px; }
.card .s { font-size: 14px; color: var(--muted); }

/* ── Tableaux ── */
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
th { text-align: left; color: var(--dim); font-size: 13px; text-transform: uppercase; letter-spacing: .6px; padding: 8px 12px; border-bottom: 2px solid var(--line); }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
td:first-child { color: var(--txt); font-weight: 600; }

/* ── Pied de page + navigation précédent/suivant ── */
.pn { display: flex; gap: 12px; margin: 50px 0 10px; }
.pn a {
    flex: 1; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px;
    background: var(--panel); color: var(--txt);
}
.pn a:hover { border-color: var(--violet); text-decoration: none; }
.pn .lbl { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .8px; }
.pn .ttl { font-weight: 700; margin-top: 3px; }
.pn a.next { text-align: right; }
footer.site {
    border-top: 1px solid var(--line); margin-top: 30px; padding: 26px 20px 40px;
    text-align: center; color: var(--dim); font-size: 13.5px;
}
footer.site a { color: var(--muted); }
.disclaimer { font-size: 12.5px; color: var(--dim); max-width: 760px; margin: 10px auto 0; }

@media (max-width: 640px) {
    h1 { font-size: 27px; } .lead { font-size: 17px; }
    .pin { width: 24px; height: 24px; font-size: 12.5px; }
    body { font-size: 16px; }
}
