/**
 * Newkeys FAQ - Front-office
 * Mise en page éditoriale 2 colonnes. Tokens locaux (--nkf-*) avec valeurs
 * du design system validé : surchargables par le thème hôte si besoin.
 */

.nkf-faq-section {
    --nkf-coral: #FF5A5F;
    --nkf-navy-900: #1A2738;
    --nkf-cream: #FBF6EF;
    --nkf-paper: #FFFFFF;
    --nkf-ink-2: #4A5468;
    --nkf-r-md: 18px;
    --nkf-r-pill: 999px;
    --nkf-sh-md: 0 8px 24px -8px rgba(26, 32, 48, .12), 0 2px 4px rgba(26, 32, 48, .04);
    --nkf-f-display: 'Fraunces', Georgia, serif;
    --nkf-f-body: 'DM Sans', system-ui, -apple-system, sans-serif;

    padding: 64px 0;
    background: var(--nkf-paper);
    font-family: var(--nkf-f-body);
}

.nkf-faq-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.nkf-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 64px;
    align-items: start;
}

.nkf-faq-grid--full {
    grid-template-columns: 1fr;
    max-width: 820px;
    margin: 0 auto;
}

/* ---- Bloc gauche configurable ---- */
.nkf-faq-side .nkf-eyebrow {
    display: inline-block;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--nkf-coral);
    margin-bottom: 16px;
}

.nkf-faq-side .nkf-faq-h2 {
    font-family: var(--nkf-f-display);
    font-weight: 600;
    font-size: 32px;
    line-height: 1.15;
    color: var(--nkf-navy-900);
    margin: 0 0 18px;
}

.nkf-faq-side .nkf-faq-h2 em {
    font-style: italic;
    font-weight: 500;
    color: var(--nkf-coral);
}

.nkf-faq-side .nkf-faq-lead {
    font-size: 16px;
    line-height: 1.6;
    color: var(--nkf-ink-2);
    margin: 0 0 24px;
}

.nkf-faq-side .nkf-faq-lead strong {
    color: var(--nkf-navy-900);
}

.nkf-faq-side .nkf-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    color: var(--nkf-navy-900);
    text-decoration: none;
    border: 1.5px solid var(--nkf-navy-900);
    border-radius: var(--nkf-r-pill);
    padding: 11px 22px;
    transition: background .2s, color .2s;
}

.nkf-faq-side .nkf-btn-ghost:hover {
    background: var(--nkf-navy-900);
    color: #fff;
}

/* ---- Accordéon (colonne droite) ---- */
.nkf-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nkf-faq-item {
    background: var(--nkf-cream);
    border-radius: var(--nkf-r-md);
    overflow: hidden;
    transition: background .2s, box-shadow .2s;
}

.nkf-faq-item summary {
    list-style: none;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
}

.nkf-faq-item summary::-webkit-details-marker {
    display: none;
}

.nkf-faq-item summary:focus-visible {
    outline: 2px solid var(--nkf-coral);
    outline-offset: -2px;
}

.nkf-q-ico {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--nkf-paper);
    color: var(--nkf-coral);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nkf-q-text {
    flex: 1;
    font-family: var(--nkf-f-display);
    font-weight: 600;
    font-size: 17px;
    line-height: 1.3;
    color: var(--nkf-navy-900);
}

.nkf-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--nkf-paper);
    color: var(--nkf-navy-900);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .25s, background .2s, color .2s;
}

.nkf-faq-item[open] {
    background: var(--nkf-paper);
    box-shadow: var(--nkf-sh-md);
}

.nkf-faq-item[open] .nkf-toggle {
    transform: rotate(45deg);
    background: var(--nkf-coral);
    color: #fff;
}

.nkf-answer {
    padding: 0 26px 22px 74px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--nkf-ink-2);
}

.nkf-answer p {
    margin: 0 0 12px;
}

.nkf-answer p:last-child {
    margin-bottom: 0;
}

.nkf-answer a {
    color: var(--nkf-coral);
    text-decoration: underline;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .nkf-faq-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .nkf-faq-section {
        padding: 48px 0;
    }

    .nkf-faq-side .nkf-faq-h2 {
        font-size: 26px;
    }

    .nkf-faq-item summary {
        padding: 18px 18px;
        gap: 12px;
    }

    .nkf-answer {
        padding: 0 18px 18px 18px;
    }
}
