/* ============================================================
   FICHIER: css/faq.css
   Style dédié au composant FAQ (Sommaire + Accordéon)
============================================================ */

/* --- CONFIGURATION COULEURS LOCALES --- */
.faq-component-wrapper {
    --faq-bg-item: rgba(255, 255, 255, 0.05);
    --faq-border: rgba(255, 255, 255, 0.15);
    --faq-or: #f59e0b;      /* Doré */
    --faq-turquoise: #22d3ee; /* Turquoise */
    --faq-text-main: #ffffff;
    --faq-text-sub: #f1f1f1;
    --faq-bg-answer: rgba(0, 0, 0, 0.2);
}

/* --- CONTENEUR GLOBAL --- */
.section.section-mystique.faq-section {
    background-color: #2e003e; /* Violet foncé de sécurité */
    color: #fff;
    padding: 60px 20px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

/* --- SOMMAIRE (Table des matières) --- */
.faq-sommaire {
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--faq-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-sommaire h3 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--faq-or) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-sommaire h3::before { content: "📑"; font-size: 1.2rem; }

.faq-sommaire ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 colonnes */
    gap: 12px 30px;
}

.faq-sommaire li a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.faq-sommaire li a::before {
    content: "↳";
    margin-right: 8px;
    color: var(--faq-turquoise);
    font-weight: bold;
}

.faq-sommaire li a:hover { color: #fff; padding-left: 5px; }
.faq-sommaire li a:hover::before { color: var(--faq-or); }

/* --- ITEM ACCORDÉON --- */
.faq-item {
    background: var(--faq-bg-item);
    border: 1px solid var(--faq-border);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    scroll-margin-top: 140px; /* Décale le scroll pour le menu sticky */
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--faq-or);
}

/* État Actif */
.faq-item.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--faq-or);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* --- QUESTION (Header cliquable) --- */
.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    user-select: none;
    color: var(--faq-text-main);
}

/* CORRECTIF VISIBILITÉ H3 */
.faq-question h3 {
    color: #ffffff !important; /* Force le blanc */
    margin: 0;
    padding: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    font-family: inherit;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--faq-or);
    font-weight: 400;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon { transform: rotate(45deg); color: #fff; }

/* --- RÉPONSE (Contenu caché) --- */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease;
    background: var(--faq-bg-answer);
}

.faq-answer p {
    margin: 0;
    line-height: 1.7;
    font-size: 0.98rem;
    padding: 0 24px 24px 24px;
    color: var(--faq-text-sub) !important;
}

.faq-item.active .faq-answer { opacity: 1; }

/* Responsive */
@media (max-width: 768px) {
    .faq-sommaire ul { grid-template-columns: 1fr; }
    .faq-sommaire { padding: 20px; }
}
