/* ============================================
   WAB OS — les questions fréquentes (accueil, Applications)
   En <details> natifs : ouvrables au clavier et au lecteur d'écran
   sans une ligne de script. Sur l'accueil, deux colonnes au-delà de
   1000 px (.faq-home__list--cols), filets alignés.
   ============================================ */

/* ── FAQ ── */
.faq-home__title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: var(--w-medium);
    line-height: 1.05;
    letter-spacing: var(--track-optical);
    text-wrap: balance;
}

.faq-home__list {
    display: grid;
    gap: 10px;
    width: min(100%, 840px);
    margin: clamp(32px, 5vw, 56px) auto 0;
}

.qa {
    border-radius: var(--r-ctl);
    background: linear-gradient(180deg, var(--paper), oklch(0.985 0.002 85));
    box-shadow: 0 0 0 var(--hair) var(--edge), var(--relief), 0 1px 2px oklch(0.18 0.005 265 / 0.08);
}

/* Ouverte : la question prend le bleu, la touche s'enfonce d'un rien. */
.qa[open] {
    background: var(--paper);
    box-shadow: 0 0 0 var(--hair) var(--klein), 0 1px 2px oklch(0.18 0.005 265 / 0.08);
}

.qa[open] .qa__q {
    color: var(--klein-text);
}

.qa__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 58px;
    padding: 14px 20px;
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    font-weight: var(--w-medium);
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}

.qa__q::-webkit-details-marker {
    display: none;
}

.qa__q:focus-visible {
    outline-offset: -2px;
    border-radius: var(--r-ctl);
}

/* Le signe : un plus qui pivote en croix à l'ouverture. */
.qa__mark {
    flex: none;
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: url('../assets/icons/sym-plus.svg') center / contain no-repeat;
    mask: url('../assets/icons/sym-plus.svg') center / contain no-repeat;
    transition: rotate var(--dur-2) var(--ease-spring);
}

.qa[open] .qa__mark {
    rotate: 45deg;
}

.qa__a {
    padding: 0 20px 20px;
    color: var(--ink-muted);
    line-height: 1.65;
}

.qa__a p {
    max-width: 62ch;
    text-wrap: pretty;
}

/* ── Deux colonnes ── deux piles de quatre questions : chaque
   colonne garde son propre rythme, une question ouverte n'étire pas
   sa voisine. L'en-tête de section (home-head.css) porte déjà l'écart
   au-dessus. */
.faq-home__list--cols {
    margin-top: 0;
}

.faq-col {
    display: grid;
    align-content: start;
    gap: 10px;
}

@media (min-width: 1000px) {
    .faq-home__list--cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        width: 100%;
    }
}
