/* ====================================================================================================================================
   FAQ (accueil V2, étape 5) — même identité "papier / registre" que
   l'accueil, le hub Créer un document et Mon compte.
   ==================================================================================================================================== */

:root {
    --paper: #faf7f2;
    --paper-surface: #ffffff;
    --paper-line: #e8e2d8;
    --ink-soft: #55606f;
}

body {
    background: var(--paper);
}

.section-eyebrow {
    display: block;
    font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}

/* .main-content (base.css) centre ses enfants avec align-items:center -
   largeur explicite pour que le contenu ci-dessous se comporte normalement. */
.faq-hero, .faq-section {
    width: 100%;
}

.faq-hero {
    padding: 4.5rem 2rem 2.5rem;
    text-align: center;
}

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

.faq-hero-title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.faq-hero-subtitle {
    font-size: 15.5px;
    color: var(--ink-soft);
    margin-top: 12px;
}

.faq-section {
    padding: 0 2rem 5rem;
}

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

.faq-group {
    margin-bottom: 2.5rem;
}

.faq-group-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--primary);
    margin-bottom: 0.9rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--paper-line);
}

.faq-item {
    border-bottom: 1px solid var(--paper-line);
}

.faq-item:first-of-type {
    border-top: 1px solid var(--paper-line);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: none;
    border: none;
    padding: 1.1rem 0.1rem;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
}

.faq-question i {
    color: var(--paper-ink-line, #cfc7b8);
    font-size: 0.8rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.2s ease;
}

.faq-answer p {
    min-height: 0;
    overflow: hidden;
    margin: 0 0 1.1rem;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 62ch;
}

.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--paper-line);
}

.faq-cta p {
    font-size: 14px;
    color: var(--ink-soft);
    margin: 0 0 0.8rem;
}

.faq-cta-link {
    display: inline-flex;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 0.7rem 1.3rem;
    border-radius: 9px;
    text-decoration: none;
}

@media (max-width: 640px) {
    .faq-hero { padding: 2.75rem 1.25rem 1.75rem; }
    .faq-section { padding: 0 1.25rem 3.5rem; }
}
