/* Page de documentation du modèle epJSON (modele-epjson.php), en complément de show.css */

.doc { max-width: 860px; }
.doc section.card, .doc nav.card { margin-top: 1rem; }
.doc h2 { margin: 0 0 0.7rem; font-size: 1.25rem; }
.doc h3 { margin: 1.3rem 0 0.5rem; font-size: 1rem; color: var(--brand); }
.doc p, .doc li { line-height: 1.55; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li + li { margin-top: 0.35rem; }
.doc .lead { margin: 0.2rem 0 0; color: #dfe6ff; }
.doc a { color: var(--brand); }
.doc .hero a.brand, .doc .hero a.back-btn { color: inherit; }
.doc .hero .brand { color: #b9c6ff; }
.doc .hero .back-btn { color: #fff; }
.doc .note { color: var(--muted); font-size: 0.85rem; }
.doc .warn {
    background: #fff8e6;
    border: 1px solid #e8c766;
    border-radius: 6px;
    padding: 0.6rem 0.9rem;
    font-size: 0.92rem;
}

/* Sommaire */
.toc h2 { font-size: 1.05rem; }
.toc ol { margin: 0; columns: 2; column-gap: 2rem; }
.toc li { break-inside: avoid; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* Tableaux : défilement horizontal sur écran étroit, sans casser la mise en page */
.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.6rem 0 0.8rem;
    font-size: 0.85rem;
    display: block;
    overflow-x: auto;
}
.doc-table th, .doc-table td {
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.doc-table th { background: #f1f4f9; font-weight: 600; white-space: nowrap; }
.doc-table tbody tr:hover { background: #fafbfd; }
.doc-table td code { word-break: normal; }

.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li {
    counter-increment: step;
    position: relative;
    padding-left: 2.2rem;
}
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.05rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
