/* =============================================================================
   INDPNS AUTH — pages.css
   Pages de contenu : documentation, support, conditions, confidentialité
   ============================================================================= */
.doc { max-width: 820px; }
.doc h2 { font-size: 22px; font-weight: 500; margin: 44px 0 12px; letter-spacing: -.2px; scroll-margin-top: calc(var(--topbar-h) + 16px); display: flex; align-items: center; gap: 10px; }
.doc h2 svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }
.doc h3 { font-size: 16px; font-weight: 600; margin: 26px 0 8px; color: var(--text); scroll-margin-top: calc(var(--topbar-h) + 16px); }
.doc p, .doc li { font-size: 15px; line-height: 1.7; color: var(--text-secondary); }
.doc p { margin-bottom: 14px; }
.doc ul, .doc ol { margin: 0 0 16px 22px; display: flex; flex-direction: column; gap: 6px; }
.doc a { color: var(--blue); text-decoration: none; }
.doc a:hover { text-decoration: underline; }
.doc strong { color: var(--text); font-weight: 500; }
.doc code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12.5px; padding: 2px 7px; border-radius: 6px; background: var(--surface-hover); border: 1px solid var(--border); color: var(--text); word-break: break-word; }
.doc .meta { font-size: 13px; color: var(--text-muted); margin-top: -4px; }

/* Sommaire (puces défilantes sur mobile) */
.doc-toc { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; margin: 0 0 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.doc-toc::-webkit-scrollbar { display: none; }
.doc-toc a { flex-shrink: 0; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--text-secondary); text-decoration: none; transition: all .15s ease; white-space: nowrap; }
.doc-toc a:hover { color: var(--text); border-color: var(--border-hover); background: var(--surface-hover); text-decoration: none; }

/* Blocs de code */
.code { position: relative; margin: 0 0 18px; background: #000; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; background: var(--surface); border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-muted); font-family: 'JetBrains Mono', ui-monospace, monospace; }
.code-copy { border: 1px solid var(--border); background: transparent; color: var(--text-secondary); font-family: inherit; font-size: 12px; padding: 4px 10px; border-radius: 6px; cursor: pointer; transition: all .15s ease; }
.code-copy:hover { color: var(--text); background: var(--surface-hover); border-color: var(--border-hover); }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12.5px; line-height: 1.65; color: #cfd8e6; tab-size: 2; }
.code pre .c { color: var(--text-muted); } .code pre .k { color: var(--blue); } .code pre .s { color: var(--success); }

/* Endpoints */
.ep { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); margin-bottom: 10px; }
.ep .verb { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: rgba(138,180,248,.12); color: var(--blue); border: 1px solid rgba(138,180,248,.25); }
.ep .verb.post { background: rgba(129,201,149,.12); color: var(--success); border-color: rgba(129,201,149,.25); }
.ep .path { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13.5px; color: var(--text); word-break: break-all; }
.ep .desc { grid-column: 1 / -1; font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; }

/* Tableaux */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius-lg); margin: 0 0 18px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); padding: 11px 16px; background: var(--surface); border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-secondary); vertical-align: top; line-height: 1.5; }
.tbl tr:last-child td { border-bottom: none; }
.tbl td:first-child { white-space: nowrap; }

/* Pas numérotés */
.steps { counter-reset: s; list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 56px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: rgba(138,180,248,.12); color: var(--blue); border: 1px solid rgba(138,180,248,.3); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }

/* Encarts */
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid rgba(138,180,248,.28); background: rgba(138,180,248,.07); margin: 0 0 18px; }
.callout svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; margin-top: 3px; }
.callout p { margin: 0; font-size: 14px; }
.callout.warn { border-color: rgba(253,214,99,.3); background: rgba(253,214,99,.07); } .callout.warn svg { color: var(--warning); }

/* Cartes d'action / FAQ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 0 0 24px; }
.card-link { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); text-decoration: none !important; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.card-link:hover { border-color: var(--blue); background: var(--surface-hover); transform: translateY(-2px); }
.card-link svg { width: 22px; height: 22px; color: var(--blue); }
.card-link b { color: var(--text); font-weight: 500; font-size: 15px; }
.card-link span { color: var(--text-secondary); font-size: 13.5px; line-height: 1.5; }

.faq details { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); margin-bottom: 10px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 14px 18px; font-size: 15px; font-weight: 500; color: var(--text); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--text-muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--blue); }
.faq details > div { padding: 0 18px 16px; }
.faq details p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
    .doc h2 { font-size: 19px; margin-top: 36px; }
    .steps li { padding-left: 52px; }
}
