/* ============================================================
   Section FAQ — mc-faq
   ============================================================ */

/* ---- Layout principal ---- */
.mc-faq {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    font-family: inherit;
}

/* Sous 1300px : nav passe au-dessus du contenu */
@media (max-width: 1300px) {
    .mc-faq {
        grid-template-columns: 1fr;
    }
}

/* ---- Navigation gauche (desktop > 1300px) ---- */
.mc-faq__nav {
    position: sticky;
    top: 100px;
    padding-right: 16px;
}

.mc-faq__nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #2DA6F91A;
    border-radius: 16px;
    padding: 8px;
}

.mc-faq__nav-item {
    display: block;
}

/* ---- Navigation horizontale + contenu pleine largeur (sous 1300px) ---- */
@media (max-width: 1300px) {
    .mc-faq__nav {
        display: none;
    }

    .mc-faq__content {
        border-left: none !important;
        padding-left: 0px !important;
    }

    .mc-faq__section-title {
        font-size: 16px !important;
    }

    .mc-faq__question span {
        font-size: 14px !important;
    }

    .mc-faq__answer-inner {
        font-size: 12px !important;
    }

        .mc-faq__answer-inner li {
        display: block !important;
    }
}

.mc-faq__nav-link {
    display: block;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #1a2b6d;
    text-decoration: none !important;
    background: transparent;
    transition: background 0.2s, color 0.2s;
    line-height: 1.4;
}

.mc-faq__nav-link:hover {
    background: rgba(45, 166, 249, 0.15);
    color: #1a2b6d;
    text-decoration: none;
}

.mc-faq__nav-link.is-active {
    background: #fff;
    color: #1a2b6d;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    text-decoration: none !important;
}

/* ---- Contenu droite ---- */
.mc-faq__content {
    border-left: 1px solid #e5e5e0;
    padding-left: 48px;
}


/* ---- Section ---- */
.mc-faq__section {
    padding-bottom: 52px;
    scroll-margin-top: 100px;
}

.mc-faq__section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2b6d;
    margin: 0 0 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #398ACB;
}

/* ---- Items accordion ---- */
.mc-faq__items {
    display: flex;
    flex-direction: column;
}

.mc-faq__item {
    border-bottom: 1px solid #e8eaf0;
}

.mc-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 8px 16px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 16px;
    font-size: 0.93rem;
    font-weight: 400;
    color: #222;
    transition: background 0.15s, color 0.15s;
    border-radius: 6px;
    white-space: normal !important;
}

.mc-faq__question span {
    font-weight: 600;
    letter-spacing: -0.03rem;
}

.mc-faq .mc-faq__question:hover,
.mc-faq .mc-faq__question:focus {
    background: #2DA6F91A !important;
    color: #1a2b6d !important;
    padding-left: 8px;
}

.mc-faq .mc-faq__question[aria-expanded="true"] {
    color: #1a2b6d;
    font-weight: 600;
}

.mc-faq__chevron {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    transition: transform 0.25s ease;
    opacity: 0.5;
    color: #1a2b6d;
}

.mc-faq__question[aria-expanded="true"] .mc-faq__chevron {
    transform: rotate(90deg);
    opacity: 1;
}

/* Réponse — animation hauteur */
.mc-faq__answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}

.mc-faq__answer[hidden] {
    display: block !important;
    max-height: 0;
    visibility: hidden;
}

.mc-faq__answer:not([hidden]) {
    max-height: 800px;
    visibility: visible;
}

.mc-faq__answer-inner {
    padding: 4px 0 20px 0;
    font-size: 0.91rem;
    color: #555;
    line-height: 1.75;
}

.mc-faq__answer-inner p {
    margin: 0 0 10px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.03em;
}

/* Liens → bouton */
.mc-faq__answer-inner a {
    display: inline-block;
    padding: 8px 20px;
    background: #398ACB;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 6px;
    transition: opacity 0.2s;
}

.mc-faq__answer-inner a:hover {
    opacity: 0.6;
}

/* Listes — SVG injecté par le filtre WordPress (fill="currentColor") */
.mc-faq__answer-inner ul,
.mc-faq__answer-inner ol {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}

.mc-faq__answer-inner li {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
    color: #555;
    margin-left: 8px !important;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.03em;
}

/* Couleur du SVG bullet injecté par WP */
.mc-faq__answer-inner li>svg {
    color: #398ACB;
    flex-shrink: 0;
    margin-right: 8px !important;
    margin-top: 0.4em !important;
    margin-left: 12px !important;
}