/* ===== FAQ Numeria – Styles complets (avec transitions) ===== */

/* Import de la fonte Syne (si non chargée ailleurs) */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600&display=swap');

#faq-numeria {
    --faq-border: 1px solid rgba(0, 0, 0, 0.31);
    margin-inline: auto;
}

#faq-numeria.toggles {
    margin-top: 75px;
}

/* === Carte toggle : fond crème, radius, layout demandé + 30px entre items === */
#faq-numeria .toggle {
    max-width: 880px;
    margin: 0 auto 30px auto !important;
    /* 30px entre chaque toggle */
    padding: 25px !important;
    /* padding 25 */
    border-radius: 15px;
    background: var(--Crme, #FDF8E7);

    /* layout interne demandé */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
}

/* ---------- Titre & icône ---------- */

/* État fermé : aucune marge sous le titre */
#faq-numeria .toggle>.toggle-title {
    margin: 0 !important;
    transition: margin .25s ease;
    width: 100%;
}

/* État ouvert : marge sous le titre */
#faq-numeria .toggle.open>.toggle-title,
#faq-numeria .toggle.active>.toggle-title,
#faq-numeria .toggle>.toggle-title.is-active,
#faq-numeria .toggle>.toggle-title:has(.toggle-heading[aria-expanded="true"]) {
    margin: 0 !important;
}

/* Lien de titre : typo + layout (gap 69px) */
#faq-numeria .toggle>.toggle-title a {
    color: #272727;
    font-family: "Syne", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 130%;
    text-transform: uppercase;

    display: flex !important;
    flex-direction: row-reverse;
    /* icône à droite */
    align-items: center !important;
    justify-content: space-between;
    gap: 69px;
    /* espace entre texte et icône */
    column-gap: 69px;
    padding: 0 !important;
    margin: 0 !important;
}

/* Titre (span) en bloc */
#faq-numeria .toggle>.toggle-title a>span[itemprop="name"] {
    display: block;
}

/* Icône : 40x40px à droite */
#faq-numeria .faqTogglerIcon {
    width: 40px;
    height: 40px;
    display: block;
    flex: 0 0 auto;
    margin: 0 !important;
    transition: transform .4s ease;
    transform-origin: 50% 50%;
    will-change: transform;
    cursor: pointer;
}

/* Effet survol / focus : rotation + changement d’image */
#faq-numeria .faqTogglerIcon:hover,
#faq-numeria .toggle>.toggle-title a:focus-visible .faqTogglerIcon {
    transform: rotate(90deg);
    content: url('/wp-content/uploads/2025/09/bouton-faq-survol.svg');
}


/* ---------- Contenu animé (ouverture/fermeture) ---------- */
#faq-numeria .faq-item-inner,
#faq-numeria .inner-toggle-wrap {
    padding: 0 !important;
    margin: 0 !important;
}

#faq-numeria .toggle .faq-item-inner {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition:
        max-height .35s ease,
        opacity .25s linear,
        transform .35s ease;
    will-change: max-height, opacity, transform;

}

#faq-numeria .toggle.open .faq-item-inner,
#faq-numeria .toggle.active .faq-item-inner,
#faq-numeria .toggle .toggle-heading[aria-expanded="true"]~.faq-item-inner {
    max-height: 9999px;
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Texte de réponse ---------- */
#faq-numeria .wpb_text_column .wpb_wrapper {
    max-width: 940px;
    width: 100%;
    margin: 0 !important;
    text-align: left !important;
}

#faq-numeria .faq-item-inner,
#faq-numeria .faq-item-inner .wpb_text_column .wpb_wrapper {
    color: #272727;
    font-family: "Syne", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
}

#faq-numeria .faq-item-inner .wpb_text_column .wpb_wrapper {
    margin-top: 30px !important;
    margin-bottom: 20px !important;
}

#faq-numeria .faq-item-inner p,
#faq-numeria .faq-item-inner li,
#faq-numeria .faq-item-inner a,
#faq-numeria .faq-item-inner strong,
#faq-numeria .faq-item-inner em {
    color: inherit;
    font: inherit;
    line-height: inherit;
}

/* Alignement gauche */
#faq-numeria .toggle.default,
#faq-numeria .toggle .faq-item-inner .inner-toggle-wrap .wpb_text_column .wpb_wrapper {
    text-align: left !important;
}

/* Si plusieurs blocs #faq-numeria se suivent */
#faq-numeria+#faq-numeria {
    border-top: none;
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {

    #faq-numeria .toggle .faq-item-inner,
    #faq-numeria .toggle>.toggle-title,
    #faq-numeria .faqTogglerIcon {
        transition: none !important;
    }
}

@media (max-width: 1000px) {

    #faq-numeria .toggle>.toggle-title a {
        gap: 40px;
        column-gap: 40px;

        font-size: 15px;
    }


}