/* ========================================
   STYLES - BASE DE CONNAISSANCES
   ======================================== */

/* HERO RECHERCHE */
.kb-hero {
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 3rem;
}

.kb-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 2rem;
}

.kb-search-box {
    max-width: 42rem;
    margin: 0 auto;
    position: relative;
}

.kb-search-box .search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #94a3b8;
}

.kb-search-input {
    width: 100%;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.kb-search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
}

/* SUGGESTIONS DE RECHERCHE */
.search-suggestions {
    max-width: 42rem;
    margin: 0.5rem auto 0;
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f8fafc;
}

.suggestion-item strong {
    color: #2563eb;
}

/* CATÉGORIES */
.kb-categories {
    margin-bottom: 3rem;
}

.kb-categories h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.category-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
    transform: translateY(-4px);
}

.category-card.urgence {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.category-card.urgence:hover {
    border-color: #f59e0b;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.15);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.category-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2563eb;
    font-weight: 500;
    font-size: 0.875rem;
}

/* ARTICLES POPULAIRES */
.kb-popular {
    margin-bottom: 3rem;
}

.kb-popular h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.popular-article {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s;
}

.popular-article:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.article-category {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 9999px;
}

.article-category.urgence {
    background: #fef3c7;
    color: #92400e;
}

.article-views {
    font-size: 0.75rem;
    color: #94a3b8;
}

.popular-article h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.popular-article p {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-link {
    color: #2563eb;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.article-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* CTA AIDE */
.kb-help-cta {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #cbd5e1;
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
}

.help-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.help-content p {
    color: #64748b;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.btn-create-ticket {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #2563eb;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-create-ticket:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .kb-hero h1 {
        font-size: 1.75rem;
    }

    .kb-search-input {
        font-size: 1rem;
        padding: 1rem 1rem 1rem 3rem;
    }

    .categories-grid,
    .popular-grid {
        grid-template-columns: 1fr;
    }

    .kb-help-cta {
        padding: 2rem 1.5rem;
    }
}