/* ==========================================================================
   Pages d'aide : FAQ (page/faq.html.twig) et pages légales (page/legale.html.twig)
   ========================================================================== */
.aide-page {
    max-width: 56rem;
    padding-top: var(--space-10);
    padding-bottom: var(--space-16);
}

/* ─── En-tête de la FAQ ─── */
.aide-entete {
    margin-bottom: var(--space-8);
    text-align: center;
}

.aide-titre {
    margin: 0 0 var(--space-3);
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    color: var(--text-primary);
}

.aide-intro {
    max-width: 40rem;
    margin: 0 auto var(--space-6);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-secondary);
}

.aide-sommaire {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
}

.aide-sommaire__lien {
    padding: var(--space-1) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--text-secondary);
    text-decoration: none;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.aide-sommaire__lien:hover {
    color: var(--text-primary);
    border-color: var(--border-focus);
}

/* ─── Rubriques et questions dépliables ─── */
.aide-rubrique {
    margin-bottom: var(--space-8);
    scroll-margin-top: var(--space-16);
}

.aide-rubrique__titre {
    margin: 0 0 var(--space-3);
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
}

.aide-question {
    margin-bottom: var(--space-2);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.aide-question[open] {
    border-color: var(--border-focus);
}

.aide-question__intitule {
    position: relative;
    padding: var(--space-4) var(--space-12) var(--space-4) var(--space-5);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    list-style: none;
    cursor: pointer;
}

.aide-question__intitule::-webkit-details-marker {
    display: none;
}

/* Chevron qui pivote à l'ouverture */
.aide-question__intitule::after {
    content: '';
    position: absolute;
    top: 50%;
    right: var(--space-5);
    width: var(--space-2);
    height: var(--space-2);
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: translateY(-75%) rotate(45deg);
    transition: transform var(--transition-fast);
}

.aide-question[open] .aide-question__intitule::after {
    transform: translateY(-25%) rotate(225deg);
}

.aide-question__intitule:focus-visible {
    outline: none;
    border-radius: var(--radius-md);
    box-shadow: var(--focus-ring);
}

.aide-question__reponse {
    margin: 0;
    padding: 0 var(--space-5) var(--space-5);
    line-height: var(--leading-normal);
    color: var(--text-secondary);
}

.aide-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-top: var(--space-10);
}

.aide-contact p {
    margin: 0;
    color: var(--text-secondary);
}

/* ─── Pages légales ─── */
.aide-legal {
    max-width: none;
}

.aide-legal__maj {
    margin: 0 0 var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

@media (max-width: 639.98px) {
    .aide-page {
        padding-top: var(--space-6);
    }

    .aide-titre {
        font-size: var(--text-2xl);
    }

    .aide-contact .btn {
        width: 100%;
        justify-content: center;
    }
}
