/* ═══════════════════════════════════════════════════════════════════════
   MeowChip FAQ IA — Frontend accordéon v1.1
   Palette : #FB7258 #8B3A21 #171927 #f9f7ef #8a9a5b #647687
═══════════════════════════════════════════════════════════════════════ */

/* ── Wrapper ─────────────────────────────────────────────────────────── */
.mcfaq-wrapper {
    margin: 2.5rem 0;
    border: 2px solid #8a9a5b;
    border-radius: 10px;
    overflow: hidden;
    background: #fbfbfb;
    font-family: Georgia, serif;
    box-shadow: 0 2px 12px rgba(23,25,39,.07);
}

/* ── Header titre ────────────────────────────────────────────────────── */
.mcfaq-header {
    background: #8B3A21;
    padding: .9rem 1.5rem;
    text-align: center;
}
.mcfaq-header-title {
    display: block;
    font-family: Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #f9f7ef;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ── Liste des items ─────────────────────────────────────────────────── */
.mcfaq-list {
    padding: .75rem 0;
    background: #fbfbfb;
}

/* ── Item accordéon ──────────────────────────────────────────────────── */
.mcfaq-item {
    border-bottom: 1px solid #e7e4d6;
}
.mcfaq-item:last-child { border-bottom: none; }

/* ── Bouton question ─────────────────────────────────────────────────── */
.mcfaq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.4rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background .18s ease;
    font-family: Georgia, serif;
}
.mcfaq-question:hover,
.mcfaq-item.is-open .mcfaq-question {
    background: #f9f7ef;
}

/* ── Numéro de question ──────────────────────────────────────────────── */
.mcfaq-q-badge {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #8a9a5b;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s ease;
    margin-right: .1rem;
}
.mcfaq-item.is-open .mcfaq-q-badge {
    background: #8B3A21;
}
.mcfaq-question:hover .mcfaq-q-badge {
    background: #FB7258;
}

.mcfaq-question-text {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: #171927;
    line-height: 1.45;
    transition: color .18s ease;
    font-family: Georgia, serif;
}
.mcfaq-item.is-open .mcfaq-question-text,
.mcfaq-question:hover .mcfaq-question-text {
    color: #8B3A21;
}

/* ── Icône +/– ───────────────────────────────────────────────────────── */
.mcfaq-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #8a9a5b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a9a5b;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 300;
    line-height: 1;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .25s ease;
    position: relative;
}
.mcfaq-icon::before {
    content: '';
    display: block;
    width: 10px;
    height: 2px;
    background: currentColor;
    position: absolute;
    transition: opacity .2s ease;
}
.mcfaq-icon::after {
    content: '';
    display: block;
    width: 2px;
    height: 10px;
    background: currentColor;
    position: absolute;
    transition: opacity .2s ease, transform .25s ease;
}
.mcfaq-item.is-open .mcfaq-icon {
    background: #8B3A21;
    border-color: #8B3A21;
    color: #f9f7ef;
}
.mcfaq-item.is-open .mcfaq-icon::after {
    opacity: 0;
    transform: rotate(90deg);
}
.mcfaq-question:hover .mcfaq-icon {
    border-color: #FB7258;
    color: #FB7258;
}
.mcfaq-item.is-open .mcfaq-question:hover .mcfaq-icon {
    background: #FB7258;
    border-color: #FB7258;
    color: #fff;
}

/* ── Réponse ────────────────────────────────────────────────────────── */
.mcfaq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s cubic-bezier(.4,0,.2,1);
}

.mcfaq-answer-inner {
    padding: 1.2rem 1.4rem 1.4rem 1.4rem;
    border-top: 1px solid #e7e4d6;
    background: #f9f7ef;
}

/* Paragraphes — règles !important pour résister aux thèmes */
.mcfaq-answer-inner p {
    font-size: .96rem !important;
    color: #171927 !important;
    line-height: 1.85 !important;
    margin: 0 0 1.1rem 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    max-width: 72ch;
}
.mcfaq-answer-inner p:last-child { margin-bottom: 0 !important; }

/* Gras dans les réponses */
.mcfaq-answer-inner strong,
.mcfaq-answer-inner b {
    color: #8B3A21;
    font-weight: 700;
}

/* Liens de maillage interne */
.mcfaq-answer-inner a {
    color: #8B3A21;
    text-decoration: underline;
    text-decoration-color: #FB7258;
    text-underline-offset: 3px;
    transition: color .15s ease;
}
.mcfaq-answer-inner a:hover {
    color: #FB7258;
}

/* Listes si l'IA en génère malgré tout */
.mcfaq-answer-inner ul,
.mcfaq-answer-inner ol {
    margin: .5rem 0 1rem 1.4rem !important;
    padding: 0;
}
.mcfaq-answer-inner li {
    font-size: .95rem !important;
    line-height: 1.75 !important;
    margin-bottom: .35rem !important;
    color: #171927 !important;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .mcfaq-wrapper { margin: 2rem 0; border-radius: 8px; }
    .mcfaq-header  { padding: .75rem 1.1rem; }
    .mcfaq-header-title { font-size: 1.05rem; }
    .mcfaq-question { padding: .85rem 1.1rem; }
    .mcfaq-question-text { font-size: .93rem; }
    .mcfaq-answer-inner { padding: 1rem 1.1rem 1.1rem; }
    .mcfaq-answer-inner p { font-size: .9rem !important; }
    .mcfaq-q-badge { width: 24px; height: 24px; font-size: .7rem; }
}
@media (max-width: 480px) {
    .mcfaq-wrapper { border-radius: 6px; margin: 1.5rem 0; }
    .mcfaq-header  { padding: .65rem .85rem; }
    .mcfaq-header-title { font-size: .95rem; letter-spacing: .05em; }
    .mcfaq-question { padding: .75rem .85rem; gap: .75rem; }
    .mcfaq-question-text { font-size: .875rem; }
    .mcfaq-icon { width: 22px; height: 22px; }
    .mcfaq-icon::before { width: 8px; }
    .mcfaq-icon::after  { height: 8px; }
    .mcfaq-answer-inner { padding: .9rem .85rem 1rem; }
    .mcfaq-answer-inner p { font-size: .85rem !important; line-height: 1.75 !important; }
    .mcfaq-q-badge { width: 22px; height: 22px; font-size: .68rem; }
}
