/**
 * WooWriter AI - Frontend FAQ Styles
 * v2.0 - Stratégie spécificité renforcée : body .aipw-faq-section comme racine
 *        → gagne systématiquement sur les styles du thème WooCommerce
 */

/* ==========================================================================
   1. RESET BOX-SIZING — même stratégie que l'admin
   ========================================================================== */

body .aipw-faq-section,
body .aipw-faq-section *,
body .aipw-faq-section *::before,
body .aipw-faq-section *::after {
    box-sizing: border-box !important;
}

/* ==========================================================================
   2. SECTION PRINCIPALE
   ========================================================================== */

body .aipw-faq-section {
    margin-top: 3rem !important;
    margin-bottom: 2rem !important;
    padding: 2rem !important;
    background-color: #f9fafb !important;
    border-radius: 0.75rem !important;
    border: none !important;
    box-shadow: none !important;
    float: none !important;
    width: auto !important;
}

/* ==========================================================================
   3. TITRE
   ========================================================================== */

body .aipw-faq-section .aipw-faq-title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    margin: 0 0 1.5rem !important;
    padding: 0 !important;
    color: #1f2937 !important;
    line-height: 1.2 !important;
    border: none !important;
    background: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* ==========================================================================
   4. ITEM FAQ
   ========================================================================== */

body .aipw-faq-section .aipw-faq-item {
    margin-bottom: 1.5rem !important;
    padding: 1.5rem !important;
    background-color: #ffffff !important;
    border-radius: 0.5rem !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06) !important;
    transition: box-shadow 0.3s ease !important;
    list-style: none !important;
}

body .aipw-faq-section .aipw-faq-item:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06) !important;
}

body .aipw-faq-section .aipw-faq-item:last-child {
    margin-bottom: 0 !important;
}

/* ==========================================================================
   5. QUESTION
   ========================================================================== */

body .aipw-faq-section .aipw-faq-question {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    margin: 0 0 0.75rem !important;
    padding: 0 !important;
    color: #6366f1 !important;
    line-height: 1.4 !important;
    border: none !important;
    background: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* ==========================================================================
   6. RÉPONSE
   ========================================================================== */

body .aipw-faq-section .aipw-faq-answer {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: #4b5563 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .aipw-faq-section .aipw-faq-answer p {
    margin: 0 0 0.75rem !important;
    padding: 0 !important;
    font-size: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
}

body .aipw-faq-section .aipw-faq-answer p:last-child {
    margin-bottom: 0 !important;
}

/* ==========================================================================
   7. RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    body .aipw-faq-section {
        padding: 1.5rem !important;
        margin-top: 2rem !important;
    }
    body .aipw-faq-section .aipw-faq-title {
        font-size: 1.5rem !important;
    }
    body .aipw-faq-section .aipw-faq-item {
        padding: 1.25rem !important;
    }
    body .aipw-faq-section .aipw-faq-question {
        font-size: 1rem !important;
    }
    body .aipw-faq-section .aipw-faq-answer {
        font-size: 0.9375rem !important;
    }
}

@media (max-width: 480px) {
    body .aipw-faq-section {
        padding: 1rem !important;
        border-radius: 0.5rem !important;
    }
    body .aipw-faq-section .aipw-faq-title {
        font-size: 1.25rem !important;
    }
    body .aipw-faq-section .aipw-faq-item {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
}

/* ==========================================================================
   8. IMPRESSION
   ========================================================================== */

@media print {
    body .aipw-faq-section {
        background-color: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    body .aipw-faq-section .aipw-faq-item {
        page-break-inside: avoid !important;
        box-shadow: none !important;
        border: 1px solid #e5e7eb !important;
    }
}