/* =========================
   FAQ IMPORT DANS FUNCTIONS.PHP
========================= */

.faq-section {
    padding: 80px 0;
}

.faq-section h2.title{
    text-align: center;
    margin-bottom: 24px;
}

.faq-list {
    max-width: 1400px;
    padding: 0 15px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid rgba(75, 66, 76, 0.14);
    border-radius: 16px;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 10px 30px -24px rgba(0, 0, 0, 0.35);
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.faq-item + .faq-item {
    margin-top: 16px;
}

.faq-item:hover {
    border-color: rgba(172, 200, 8, 0.45);
    box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.45);
}

.faq-item.is-open {
    border-color: rgba(172, 200, 8, 0.55);
    box-shadow: 0 20px 45px -30px rgba(0, 0, 0, 0.5);
}

/* Bouton question */
.faq-question {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    border: 0;
    background-color: transparent;
    color: #4b424c;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.faq-question:hover {
    background-color: rgba(172, 200, 8, 0.06);
    color: #4b424c;
}

.faq-question:focus {
    outline: none;
}

.faq-question:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(172, 200, 8, 0.45);
}

.faq-question-text {
    font-size: 1rem;
    font-weight: 600;
    text-transform: initial;
    line-height: 1.2rem;
    flex: 1;
    display: block;
    padding-right: 4px;
    margin: 0px;
}

/* Icône + / - */
.faq-icon {
    position: relative;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background-color: #acc808;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}

.faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after {
    background-color: #4b424c;
}

.faq-item.is-open .faq-icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg) scaleX(0.2);
}

/* Tablettes */
@media (max-width: 991.98px) {
    .faq-section {
        padding: 32px 0;
    }

    .faq-list {
        max-width: 100%;
    }

    .faq-question {
        padding: 20px 22px;
        font-size: 1rem;
    }
}

/* Mobiles */
@media (max-width: 767.98px) {
    .faq-section {
        padding: 28px 0;
    }

    .faq-item {
        border-radius: 12px;
    }

    .faq-item + .faq-item {
        margin-top: 12px;
    }

    .faq-question {
        gap: 14px;
        padding: 18px 18px;
        font-size: 0.96rem;
        line-height: 1.45;
    }

    .faq-icon {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }

    .faq-icon::before,
    .faq-icon::after {
        width: 16px;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .faq-question {
        padding: 16px 16px;
    }

    /* .faq-answer {
        padding: 0 16px 16px;
    } */
}


/* TEST */
.faq-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

.faq-answer-inner {
    padding: 8px 26px 24px;
    color: #212529;
    line-height: 1.7;
    font-size: 1rem;
}

.faq-answer-inner > *:last-child {
    margin-bottom: 0;
}
@media (max-width: 991.98px) {
    .faq-answer-inner {
        padding: 0 22px 22px;
    }
}

@media (max-width: 767.98px) {
    .faq-answer-inner {
        padding: 0 18px 18px;
        font-size: 0.95rem;
        line-height: 1.65;
    }
}

@media (max-width: 480px) {
    .faq-answer-inner {
        padding: 0 16px 16px;
    }
}