﻿/* Identité Pourquoi (override léger) */
:root {
    --accent: #a78bfa; /* violet */
    --accent-soft: rgba(167,139,250,.14);
    --container-width: 980px; /* un peu plus “lecture” */
}

/* Pages Q/R : focus lecture */
.qa-article {
    background: radial-gradient(circle at top left, rgba(15,23,42,0.9), rgba(2,6,23,0.98));
    border-radius: 1.75rem;
    padding: 2.25rem 2rem 2.5rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    margin-top: 1.75rem;
}

    .qa-article header h1 {
        margin-top: .4rem;
        margin-bottom: .6rem;
    }

.qa-short {
    margin: 0;
    padding: .85rem 1rem;
    border-radius: 1rem;
    background: rgba(167,139,250,.10);
    border: 1px solid rgba(167,139,250,.25);
    color: var(--text);
}

.qa-content {
    margin-top: 1.25rem;
}

/* Ton ContentMarkdown est affiché dans <pre class="qa-md"> */
pre.qa-md {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: hidden;
}

/* Cards cliquables (si tu utilises <a class="card">...) */
a.card {
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}

    a.card:hover {
        transform: translateY(-2px);
    }

/* Cards Q/R (catégorie + home) */
.qa-card {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    cursor: pointer;
}

.qa-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qa-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .65rem;
    border-radius: 999px;
    border: 1px solid rgba(167,139,250,.28);
    background: rgba(167,139,250,.10);
    color: var(--text);
    font-size: .85rem;
}

.qa-card-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.35;
}

.qa-card-desc {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.qa-card-cta {
    margin-top: .15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
    opacity: .9;
    font-weight: 600;
}

a.qa-card:hover .qa-card-cta {
    opacity: 1;
}

.qa-content p {
    line-height: 1.8;
    color: var(--text-muted);
}

.qa-content h2 {
    margin-top: 1.2rem;
}

.qa-content ul {
    margin: .6rem 0 1rem;
    padding-left: 1.1rem;
}

.faq-item {
    margin-top: .6rem;
}

.category-count {
    margin-top: .25rem;
    color: var(--text-muted);
}

.category-intro {
    margin-top: .5rem;
    max-width: 720px;
    line-height: 1.7;
    color: var(--text-muted);
}
