/* ==========================================================
   POLITISTRAT — FAQ
   Identité visuelle SaaS
   ========================================================== */


/* ==========================================================
   01. PAGE
   ========================================================== */

.faq-page-section {
    padding: 5rem 0 6rem;
}



/* ==========================================================
   02. INTRODUCTION
   ========================================================== */

.faq-page-header {
    max-width: 820px;
    margin: 0 auto 4.5rem;
    text-align: center;
}

.faq-page-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid #c7dcf3;
    border-radius: 999px;
    background: #eff7ff;
    color: var(--color-primary, #0055a4);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.faq-page-title {
    margin-bottom: 1rem;
}

.faq-page-intro {
    max-width: 720px;
    margin: 0 auto;
    color: var(--color-text-muted, #64748b);
    font-size: 1rem;
    line-height: 1.7;
}


/* ==========================================================
   03. CATÉGORIES
   ========================================================== */

.faq-category {
    margin-bottom: 4.5rem;
}

.faq-category:last-of-type {
    margin-bottom: 0;
}

.category-heading {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-index {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #c7dcf3;
    border-radius: 10px;
    background: #eff7ff;
    color: var(--color-primary, #0055a4);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.category-title {
    position: relative;
    width: fit-content;
    margin: 0;
    padding-bottom: 0.65rem;
    color: var(--ps-blue-deep, #0f172a);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.category-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 42px;
    height: 3px;
    border-radius: 999px;
    background: var(--color-primary, #0055a4);
}

.category-description {
    max-width: 680px;
    margin: 0.65rem 0 0;
    color: var(--color-text-muted, #64748b);
    font-size: 0.86rem;
    line-height: 1.5;
}


/* ==========================================================
   04. COLONNES FAQ
   ========================================================== */

.faq-columns-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}


/* ==========================================================
   05. ACCORDÉON
   ========================================================== */

.faq-item {
    overflow: hidden;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 11px;
    background: var(--color-bg-surface, #ffffff);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.025);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.faq-item:hover {
    border-color: #cbd5e1;
    box-shadow:
        0 7px 20px rgba(15, 23, 42, 0.05);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 64px;
    box-sizing: border-box;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border: 0;
    background: transparent;
    color: var(--color-text-main, #0f172a);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition:
        color 0.18s ease,
        background-color 0.18s ease;
}

.faq-question:hover {
    background: #f8fbff;
    color: var(--color-primary, #0055a4);
}

.faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border: 1px solid #dbe3ec;
    border-radius: 7px;
    background: #f8fafc;
    color: #64748b;
    font-size: 18px;
    transition:
        transform 0.22s ease,
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease;
}

.faq-item.active {
    border-color: #a9c8e8;
    box-shadow:
        0 0 0 1px rgba(0, 85, 164, 0.06),
        0 10px 25px rgba(15, 23, 42, 0.055);
}

.faq-item.active .faq-question {
    background: #fbfdff;
    color: var(--color-primary, #0055a4);
}

.faq-item.active .faq-icon {
    border-color: #c7dcf3;
    background: #eff7ff;
    color: var(--color-primary, #0055a4);
    transform: rotate(45deg);
}


/* ==========================================================
   06. RÉPONSE
   ========================================================== */

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: #ffffff;
    transition: max-height 0.32s ease;
}

.faq-answer p {
    margin: 0;
    padding: 0 1.15rem 1.15rem;
    border-top: 1px solid transparent;
    color: var(--color-text-muted, #64748b);
    font-size: 0.86rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer p {
    padding-top: 0.9rem;
    border-top-color: #edf2f7;
}


/* ==========================================================
   07. BLOC CONTACT
   ========================================================== */

.faq-contact-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    margin-top: 4rem;
    padding: 1.75rem 2rem;
    border: 1px solid #c7dcf3;
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            #f8fbff 0%,
            #eef6fd 100%
        );
}

.faq-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid #c7dcf3;
    border-radius: 12px;
    background: #ffffff;
    color: var(--color-primary, #0055a4);
    font-size: 25px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.faq-contact-content {
    min-width: 0;
}

.faq-contact-kicker {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--color-primary, #0055a4);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.faq-contact-content h3 {
    margin: 0 0 0.35rem;
    color: var(--ps-blue-deep, #0f172a);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.faq-contact-content p {
    max-width: 680px;
    margin: 0;
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.55;
}

.faq-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    flex-shrink: 0;
    padding: 0.7rem 1rem;
    border: 1px solid var(--color-primary, #0055a4);
    border-radius: 8px;
    background: var(--color-primary, #0055a4);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.faq-contact-button:hover {
    border-color: var(--ps-blue-deep, #002157);
    background: var(--ps-blue-deep, #002157);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.faq-contact-button .material-symbols-outlined {
    font-size: 17px;
}


/* ==========================================================
   08. RESPONSIVE
   ========================================================== */

@media (max-width: 900px) {

    .faq-page-section {
        padding: 4rem 0 5rem;
    }

    .faq-page-header {
        margin-bottom: 3.5rem;
    }

    .faq-columns-container {
        grid-template-columns: 1fr;
    }

    .faq-contact-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .faq-contact-button {
        grid-column: 2;
        justify-self: start;
    }
}


@media (max-width: 768px) {

    .faq-page-section {
        padding: 3rem 0 4rem;
    }

    .faq-page-header {
        margin-bottom: 3rem;
        padding: 0 0.5rem;
    }

    .faq-page-intro {
        font-size: 0.92rem;
    }

    .faq-category {
        margin-bottom: 3.5rem;
    }

    .category-heading {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 0.75rem;
    }

    .category-index {
        width: 38px;
        height: 38px;
        font-size: 0.72rem;
    }

    .category-title {
        font-size: 1.25rem;
    }

    .faq-columns-container {
        gap: 0.75rem;
    }

    .faq-question {
        min-height: 58px;
        padding: 0.9rem 1rem;
        font-size: 0.87rem;
    }

    .faq-answer p {
        padding-right: 1rem;
        padding-left: 1rem;
        font-size: 0.82rem;
    }

    .faq-item.active .faq-answer p {
        padding-top: 0.8rem;
    }

    .faq-contact-card {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.35rem;
    }

    .faq-contact-button {
        grid-column: auto;
        width: 100%;
    }
}


@media (max-width: 480px) {

    .faq-page-section {
        padding: 2.5rem 0 3rem;
    }

    .faq-page-kicker {
        font-size: 0.66rem;
    }

    .category-heading {
        grid-template-columns: 1fr;
    }

    .category-index {
        width: 36px;
        height: 36px;
    }

    .category-title {
        font-size: 1.15rem;
    }

    .faq-question {
        align-items: flex-start;
        gap: 0.7rem;
    }

    .faq-icon {
        width: 28px;
        height: 28px;
        font-size: 17px;
    }
}