/* FAQ Page Styles - Thème DictoQuest */
.faq-hero {
    background: linear-gradient(160deg, #f0ddb8 0%, #e8d4a8 40%, #dcc89a 100%);
    padding: 8rem 2rem 4rem;
    text-align: center;
    margin-top: var(--nav-height);
    position: relative;
}

.faq-hero .section-eyebrow {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold-dark);
    margin-bottom: 0.75rem;
}

.faq-hero .section-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--royal-blue);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.faq-hero .section-subtitle {
    font-size: 1.1rem;
    color: var(--ink-sepia);
    max-width: 640px;
    margin: 0 auto;
}

.faq-section {
    padding: 4rem 2rem;
}

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

.faq-category {
    margin-bottom: 4rem;
}

.faq-category-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2rem;
    color: var(--royal-blue);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--gold-base);
    text-align: center;
}

.faq-item {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--parchment-dark);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px var(--shadow-soft);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 16px 40px var(--shadow-soft);
    border-color: var(--gold-base);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: rgba(232, 212, 168, 0.3);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--ink-brown);
    font-weight: 600;
    font-family: 'Cinzel', serif;
}

/* Le bouton que faq.js place dans le titre : il garde le dessin du titre. */
.faq-question .faq-bouton {
    all: unset;
    display: block;
    cursor: pointer;
}
.faq-question .faq-bouton:focus-visible {
    outline: 3px solid var(--crimson, #8b1538);
    outline-offset: 6px;
    border-radius: 2px;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--crimson);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: linear-gradient(180deg, rgba(212, 188, 130, 0.3) 0%, rgba(232, 212, 168, 0.2) 100%);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 1.5rem 2rem;
}

.faq-answer p {
    margin: 0;
    color: var(--ink-sepia);
    line-height: 1.6;
    font-family: 'Literata', Georgia, serif;
}

.faq-cta {
    background: linear-gradient(180deg, rgba(212, 188, 130, 0.3) 0%, rgba(232, 212, 168, 0.2) 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.faq-cta h2 {
    font-family: 'Cinzel Decorative', serif;
    color: var(--royal-blue);
    margin-bottom: 1rem;
}

.faq-cta p {
    color: var(--ink-sepia);
    margin-bottom: 2rem;
    font-family: 'Literata', Georgia, serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-hero h1 {
        font-size: 2.5rem;
    }
    
    .faq-question {
        padding: 1rem 1.5rem;
    }
    
    /* Repliée, la réponse n'a pas de marge : sinon le haut de sa première ligne
       dépassait sous la question. */
    .faq-answer {
        padding: 0 1.5rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1rem 1.5rem;
    }
} 

/* Sous 900 px, le menu du site n'est plus fixe : il occupe déjà sa hauteur dans la page.
   La marge qui le compensait laissait une bande vide de 124 à 136 px sous l'en-tête. */
@media (max-width: 900px) {
    .faq-hero { margin-top: 0; }
}
