/**
 * Beriox-HUB — Documentation (page d’accueil des docs)
 */
body {
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: #ffffff;
    color: #2d2d41;
}
.docs-container {
    max-width: var(--site-content-max, 1300px);
    margin: 0 auto;
    padding: 2rem var(--site-gutter, clamp(1.25rem, 4vw, 2rem));
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}
.docs-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}
.docs-sidebar h2 {
    color: #5a5fca;
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
}
.docs-section {
    margin-bottom: 2rem;
}
.docs-section-title {
    color: #2d2d41;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(90, 95, 202, 0.2);
}
.docs-nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #6b7280;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.9rem;
}
.docs-nav-link:hover {
    background: rgba(90, 95, 202, 0.08);
    color: #5a5fca;
}
.docs-nav-link.active {
    background: rgba(90, 95, 202, 0.15);
    color: #5a5fca;
    font-weight: 600;
}
.docs-content {
    min-width: 0;
}
.docs-header {
    margin-bottom: 2rem;
}
.docs-header h1 {
    color: #5a5fca;
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}
.docs-header p {
    color: #6b7280;
    font-size: 1.1rem;
    margin: 0;
}
.docs-search {
    margin-bottom: 2rem;
}
.docs-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(90, 95, 202, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
}
.docs-search input:focus {
    outline: none;
    border-color: #5a5fca;
    box-shadow: 0 0 0 3px rgba(90, 95, 202, 0.1);
}
.docs-search-results {
    display: none;
    margin-top: 0.5rem;
    background: #fff;
    border: 1px solid rgba(90, 95, 202, 0.2);
    border-radius: 8px;
    padding: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}
.docs-search-results.is-open {
    display: block;
}
.docs-search-result-empty {
    padding: 0.5rem;
    color: #6b7280;
}
.docs-search-result-link {
    display: block;
    padding: 0.5rem;
    color: #2d2d41;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}
.docs-search-result-link:hover {
    background: rgba(90, 95, 202, 0.08);
}
.docs-search-result-link small {
    color: #6b7280;
}
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.docs-card {
    background: #fff;
    border: 1px solid rgba(90, 95, 202, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.docs-card:hover {
    border-color: #5a5fca;
    box-shadow: 0 4px 20px rgba(90, 95, 202, 0.15);
    transform: translateY(-2px);
}
.docs-card h3 {
    color: #2d2d41;
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}
.docs-card p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}
.docs-content-locked {
    text-align: center;
    padding: 2rem 1rem;
}
.docs-content-locked .docs-cta-login {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    background: #5a5fca;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2rem;
    transition: background 0.2s, transform 0.2s;
}
.docs-content-locked .docs-cta-login:hover {
    background: #484cb8;
    transform: translateY(-1px);
}
.docs-content-locked .docs-placeholder {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    padding: 1.5rem;
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
    line-height: 1.7;
    color: #6b7280;
}
@media (max-width: 768px) {
    .docs-container {
        grid-template-columns: 1fr;
    }
    .docs-sidebar {
        position: static;
    }
}
