

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .faq {
        padding: 40px 35px;
    }
    .faq__inner {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Related to Flex display */
.faq__inner {
    position: relative;
    display: block;
    margin-bottom: 50px;
}

.faq {
    margin-top: 30px;
}

.faq-filters__inner {
    padding-top: 25px;
    /*padding-bottom: 10px;*/
}

.main .faq .paragraph ul li::before{
    left: 12px;
    height: 3px;
    width: 3px;
}
/* Related to Flex display */
@media screen and (min-width: 1024px) {
    .faq__inner {
        display: flex;
        flex-direction: row-reverse;
        flex: 1 1 auto;
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: 66.6666666666%;
        flex-preferred-size: 66.6666666666%;
        max-width: 66.6666666666%;
        margin-left: 16.6666666666%;
        margin-bottom: 100px;
    }
}

/* bottom margin at the end of all faq */
.faq__inner-list {
    margin-bottom: 50px;
}

/* CSS rule flex */
@media screen and (min-width: 1024px) {
    .faq__inner-list {
        flex: 1 1 auto;
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: 87.5%;
        flex-preferred-size: 87.5%;
        max-width: 87.5%;
        margin-bottom: 0;
        padding-left: 12.5%;
    }
}

/* Bottom margin for all category grouping but the last */
.faq__inner-item:not(:last-child) {
    margin-bottom: 50px;
}

/* Changing the margin size depending on the width */
@media screen and (min-width: 1024px) {
    .faq__inner-item:not(:last-child) {
        margin-bottom: 85px;
    }
}

/* Flex css rule for faq filters */
.faq-filters {
    z-index: 9999;
    position: sticky;
    bottom: 0;
    width: 100vw;
    transform: translateX(-10px);
    background-color: #eee;
}

/* Flex css rule for faq filters when screen wide enough */
@media screen and (min-width: 1024px) {
    .faq-filters {
        z-index: 2;
        position: relative;
        flex: 1 1 auto;
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: 12.5%;
        flex-preferred-size: 12.5%;
        max-width: 12.5%;
        background-color: transparent;
        transform: none;
    }
}

/* Mobile: make category list active when we click on "Filter par thème" */
.faq-filters.active .faq-filters__list {
    display: block;
    opacity: 1;
}

/* Mobile : Flex css rule for category button*/
.faq-filters__button {
    display: flex;
    position: relative;
    background: 0;
    border: 0;
    margin: 0;
    cursor: pointer;
    width: 100%;
    color: #777;
    font-size: 0.583333333333333rem;
    letter-spacing: 0.111111111111111rem;
    text-align: center;
    text-transform: uppercase;
    line-height: 17px;
    outline: 0;
    justify-content: center;
    height: 64px;
    padding-left: 0;
    align-items: center;
}

/* We hide button when not on mobile */
@media screen and (min-width: 1024px) {
    .faq-filters__button {
        display: none;
    }
}

/* Flex css rule for faq category filters */
.faq-filters__list {
    z-index: 9999;
    position: fixed;
    bottom: 60px;
    left: 0;
    width: 100vw;
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
    opacity: 0;
    transition: 0.4s opacity;
    background: #fff;
}

/* Css rule for category list when not on mobile */
@media screen and (min-width: 1024px) {
    .faq-filters__list {
        z-index: 1;
        display: block;
        width: 100%;
        height: auto;
        opacity: 1;
        position: relative;
        bottom: 0;
        left: auto;
        overflow: visible;
        background: 0;
    }
}

/* Css rule for categories */
.faq-filters__item {
    width: 100%;
    padding: 15px 15px;
    font-size: 0.722222222222222rem;
    letter-spacing: 0.111111111111111rem;
    color: #aaa;
    text-align: center;
    line-height: 1.6;
    border: 1px solid #eee;
    border-bottom: 0;
    transition: 0.4s color;
    outline: 0;
}

/* Css rule for categories when screen is wide enough */
@media screen and (min-width: 1024px) {
    .faq-filters__item {
        text-align: left;
        padding: 0 0 25px;
        border: 0;
    }

    .faq-filters__item:hover,
    .faq-filters__item.active {
        color: red;
    }
}

/* The links inherit their colours from  */
.faq-filters__link {
    color: inherit;
    text-decoration: none;
}

.faq-filters__link.active {
    color: red;
}

.faq .paragraph {
    margin-bottom: 30px;
}

/* Search result */
.faq_search_enabled .title--paragraph,
.faq_search_enabled .paragraph {
    display: none;
}

.title--paragraph.faq_search_found {
    display: block;
}

.title--paragraph.faq_search_found + .paragraph {
    display: block;
}


