/* ---------------- PAGE ET MOTIF ---------------- */
body:has(.pageFaq) {
    padding-top: 0;
}

.pageFaq {
    padding-top: 505px;
    padding-bottom: 134px;
    overflow: clip;
}

.pageFaq::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 640px;
    background: url('../../img/faq/motif.svg') center top / cover no-repeat;
    transform: scaleY(-1);
    pointer-events: none;
}

@media (max-width: 1600px) {
    .pageFaq::before {
        height: 590px;
    }
}

@media (max-width: 1400px) {
    .pageFaq::before {
        height: 520px;
    }
}

@media (max-width: 992px) {
    .pageFaq {
        padding-top: 174px;
        padding-bottom: 86px;
    }

    .pageFaq > .container {
        padding-inline: 30px;
    }

    .pageFaq::before {
        height: 400px;
    }
}

@media (max-width: 767px) {
    .pageFaq::before {
        left: -50%;
        width: 200%;
        height: auto;
        aspect-ratio: 1723.7 / 995.93;
        background-position: center;
        background-size: contain;
    }
}

/* ---------------- TITRE ---------------- */
.pageFaq h1 {
    margin-bottom: 90px;
    overflow-wrap: anywhere;
    scroll-margin-top: 150px;
}

@media (max-width: 992px) {
    .pageFaq h1 {
        margin-bottom: 10px;
    }
}

/* ---------------- CATÉGORIES ET COLONNES ---------------- */
.faqDisposition {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 16px;
}

.faqCategories {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

@media (min-width: 993px) {
    .faqCategories {
        position: sticky;
        top: 114px;
        align-self: start;
        max-height: calc(100dvh - 134px);
        overflow-y: auto;
        scrollbar-width: none;
    }

    .faqCategories::-webkit-scrollbar {
        display: none;
    }
}

.faqCategories[hidden],
.faqCategorie[hidden] {
    display: none;
}

.faqDisposition:has(.faqCategories[hidden]) {
    display: block;
}

.pageFaq .faqFiltre {
    flex-shrink: 0;
    min-height: 30px;
    padding: 8px 16px;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    overflow-wrap: anywhere;
}

@media (max-width: 992px) {
    .faqDisposition {
        grid-template-columns: minmax(0, 1fr);
        gap: 86px;
    }

    .faqCategories {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px 20px;
        max-width: 280px;
    }
}

/* ---------------- GROUPES DE QUESTIONS ---------------- */
.faqResultats {
    display: flex;
    flex-direction: column;
    gap: 90px;
    min-width: 0;
}

.faqCategorie h2 {
    margin-bottom: 49px;
    font-weight: 600;
    text-transform: none;
    overflow-wrap: anywhere;
}

@media (max-width: 992px) {
    .faqResultats {
        gap: 94px;
    }
}

/* ---------------- RETOUR EN HAUT ---------------- */
.faqRetourZone {
    position: absolute;
    z-index: 5;
    inset: 505px 0 40px;
    pointer-events: none;
}

.faqRetourHaut {
    position: sticky;
    top: calc(100vh - 104px);
    margin-left: auto;
    margin-right: 4%;
    pointer-events: auto;
    display: block;
    width: 59px;
    height: 59px;
    border-radius: 50%;
}

.faqRetourHaut img {
    display: block;
    width: 59px;
    height: 59px;
    object-fit: contain;
}

@media (max-width: 992px) {
    .faqRetourZone {
        top: 263px;
    }

    .faqRetourHaut {
        top: calc(100vh - 115px);
        margin-right: 18px;
    }
}
