/* ── Page documentation ── */
.doc-page {
    margin-top: 12px;
    margin-left: 70px;
    margin-right: 16px;
    margin-bottom: 32px;
    max-width: 920px;
}

.doc-page-header {
    margin-bottom: 18px;
}

.doc-page-title {
    margin: 0 0 6px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--titre-color);
    letter-spacing: -0.02em;
}

.doc-page-lead {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.55);
    line-height: 1.45;
}

/* ── Onglets ── */
.doc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0 14px;
    margin-bottom: 4px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: var(--header-total-height, 98px);
    z-index: 20;
    background: var(--bg-color);
}

.tab-option {
    flex: 0 0 auto;
    margin: 0;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.62);
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #fafafa;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tab-option:hover {
    color: var(--titre-color);
    border-color: rgba(11, 14, 138, 0.25);
    background: rgba(11, 14, 138, 0.04);
}

.tab-option.active {
    color: var(--titre-color);
    background: rgba(11, 14, 138, 0.08);
    border-color: rgba(11, 14, 138, 0.35);
    box-shadow: 0 1px 0 rgba(11, 14, 138, 0.06);
}

/* ── Zone de contenu ── */
.doc-body {
    padding: 24px 26px 32px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.tab-content-section {
    display: none;
    padding: 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.82);
    word-wrap: break-word;
}

.tab-content-section.active {
    display: block;
    animation: docFadeIn 0.25s ease;
}

.tab-content-section > h2:first-child,
.tab-content-section > h3:first-child {
    margin-top: 0;
}

.tab-content-section h2 {
    margin: 0 0 18px;
    padding-bottom: 10px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--titre-color);
    line-height: 1.3;
    border-bottom: 2px solid rgba(11, 14, 138, 0.12);
}

.tab-content-section h3 {
    margin: 26px 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--effet-color);
    line-height: 1.35;
}

.tab-content-section h4 {
    margin: 18px 0 8px;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--titre-color);
}

.tab-content-section p {
    margin: 0 0 14px;
}

.tab-content-section strong {
    color: var(--titre-color);
    font-weight: 700;
}

.tab-content-section a {
    color: var(--titre-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tab-content-section a:hover {
    color: var(--effet-color);
}

.tab-content-section hr {
    margin: 22px 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

.tab-content-section span {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
    color: var(--titre-color);
}

.tab-content-section ul,
.tab-content-section ol {
    margin: 10px 0 16px;
    padding-left: 1.4rem;
}

.tab-content-section li {
    margin-bottom: 7px;
    line-height: 1.55;
}

.tab-content-section li::marker {
    color: var(--effet-color);
}

.tab-content-section code {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
    background: rgba(11, 14, 138, 0.06);
    color: var(--titre-color);
}

@keyframes docFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Composants existants ── */
.wallet-container {
    margin-top: 12px;
    margin-left: 70px;
    margin-bottom: 16px;
}

.instructions-title {
    text-align: left;
    margin-bottom: 30px;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--text-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--bg-color);
    border: 3px solid var(--titre-color);
    border-radius: 50%;
}

.timeline-content h4 {
    margin: 0;
    font-size: 16px;
}

.timeline-content p {
    margin: 5px 0 0;
    color: var(--text-color);
    font-size: 14px;
}

.tabs-row {
    display: flex;
    border-top: 1px solid var(--border-color);
    margin-top: 0;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
}

.tab-content-wrapper {
    padding: 11px;
}

.doc-page .tab-content-wrapper {
    padding: 0;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-color);
}

.paiment-po {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
}

.paiement-image {
    max-width: 100%;
    width: 320px;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.paiement-image:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 20px;
    font-size: 14px;
}

.doc-table th,
.doc-table td {
    border: 1px solid var(--border-color, #e5e7eb);
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.doc-table th {
    background: rgba(11, 14, 138, 0.06);
    font-weight: 700;
    color: var(--titre-color);
}

.doc-table code {
    font-size: 12px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .doc-page,
    .wallet-container {
        margin-left: 0 !important;
        margin-right: 0;
        max-width: 100%;
    }

    .doc-page-header {
        padding: 0 4px;
    }

    .doc-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        padding: 10px 4px 12px;
        -webkit-overflow-scrolling: touch;
    }

    .tab-option {
        font-size: 12px;
        padding: 6px 12px;
    }

    .doc-body {
        padding: 18px 16px 24px;
        border-radius: 12px;
    }

    .tab-content-section {
        font-size: 14px;
    }

    .tab-content-section h2 {
        font-size: 1.2rem;
    }

    .tab-content-section h3 {
        font-size: 1rem;
        margin-top: 22px;
    }
}

@media (max-width: 600px) {
    .instructions {
        padding: 15px;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-dot {
        left: -26px;
    }

    .paiement-image {
        width: 90%;
    }
}
