/*
 * Content pages (.page-content): association (presentation, press, join, contact), legal pages, FAQ and
 * useful sites, loaded only by these pages (Association/*, Divers/*). Tokens only, no hard-coded color.
 */

/* Neutral tone (DESIGN_SYSTEM.md §2: the color follows the audience, otherwise ink), for .a-eyebrow,
   .a-arrow-link and .a-icon-tile of content meant for everyone */
.page-content .is-ink { --tone: var(--a-ink); --tone-soft: var(--a-sand); --tone-ink: var(--a-ink); --tone-text: var(--a-ink-2); }

/* A link in a callout looks like a link of the running text (.a-prose a) */
.page-content .a-callout__text a { color: var(--a-coral-ink); font-weight: 700; }

/* ---------- Presentation: "keyword: text" lists of the service cards ---------- */
.page-association .content-services { align-items: start; }
.page-association .content-keywords { display: flex; flex-direction: column; gap: 10px; margin: 0; padding-left: 1.4em; color: var(--a-ink-2); font-size: var(--a-fs-field); }
.page-association .content-keywords strong { color: var(--a-ink); }

/* ---------- Press ---------- */
.page-press .press-card__head { display: flex; align-items: center; gap: 14px; }
.page-press .press-card__quote {
    margin: 0;
    padding: 12px 20px;
    border-left: 4px solid var(--a-sun);
    border-radius: 0 var(--a-radius-tile) var(--a-radius-tile) 0;
    background: var(--a-sun-soft);
    color: var(--a-ink-2);
    font-size: var(--a-fs-field);
}

/* ---------- Join: year list (next to the section title), cards of the join forms ---------- */
.page-join .join-year { display: flex; flex-direction: column; flex-shrink: 0; }
.page-join .join-year__controls { display: flex; gap: 12px; }
.page-join .join-year .form-select { width: auto; min-width: 128px; }
/* The list reloads the page on change (js/join.js): the button is for the browsers without JavaScript */
.js .page-join [data-join-year-submit] { display: none; }
/* "Comment adhérer ?" and "Pourquoi adhérer ?": same height (the 8-4 grid aligns at the start) */
.page-join .join-bottom { align-items: stretch; }

/* ---------- Contact ---------- */
.page-contacts .contact-faq { margin-top: var(--a-gutter); }

/* ---------- FAQ: groups of questions, accordion, sticky aside ---------- */
.page-faq .faq-groups { gap: 48px; }
.page-faq .faq-group__head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.page-faq .faq-group__title { margin: 0; font-size: var(--a-fs-h3); }

.page-faq .faq-item {
    border: var(--a-border) solid var(--a-line);
    border-radius: var(--a-radius-card);
    background: var(--a-card);
    box-shadow: var(--a-shadow-card);
}
.page-faq .faq-item__summary {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 60px;
    padding: 16px var(--a-pad-card);
    border-radius: var(--a-radius-card);
    cursor: pointer;
    list-style: none;
}
.page-faq .faq-item__summary::-webkit-details-marker { display: none; }
.page-faq .faq-item__summary:hover .faq-item__question { color: var(--a-coral); }
.page-faq .faq-item__summary:focus-visible { outline: 3px solid var(--a-sun); outline-offset: 2px; }
.page-faq .faq-item__question { flex: 1 1 0; min-width: 0; margin: 0; font-family: var(--a-font-body); font-size: var(--a-fs-row); font-weight: 800; line-height: 1.35; }
.page-faq .faq-item__chevron { flex-shrink: 0; font-size: 20px; transition: transform var(--a-ease); }
.page-faq .faq-item[open] .faq-item__chevron { transform: rotate(180deg); }
.page-faq .faq-item__answer { display: flex; flex-direction: column; gap: 12px; padding: 0 var(--a-pad-card) var(--a-pad-card); color: var(--a-ink-2); }
.page-faq .faq-item__answer > * { margin: 0; }
.page-faq .faq-item__answer a { color: var(--a-coral-ink); font-weight: 700; }

.page-faq .faq-aside .a-callout__body .btn { align-self: flex-start; margin-top: 12px; }

@media (min-width: 992px) {
    .page-faq .faq-aside { position: sticky; top: var(--a-gutter); }
}
/* One column: the table of contents would come after all the questions, where it is of no use (N9); the contact callout stays at the end */
@media (max-width: 991.98px) {
    .page-faq .faq-aside > nav { display: none; }
}

@media (max-width: 767.98px) {
    .page-faq .faq-groups { gap: 32px; }
    .page-faq .faq-item__summary { padding-block: 14px; }
    .page-faq .faq-aside .a-callout__body .btn { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
    .page-faq .faq-item__chevron { transition: none; }
}
