/* ============================================================
   FAQ PREMIUM — AEZ Global Trade
   Accordéon institutionnel, sobre, responsive.
   Namespace .faq2- pour éviter tout conflit avec l'ancienne FAQ.
   Charte : navy #1A1F2E · orange #FF5630 · light #F8FAFC
   ============================================================ */

:root {
    --faq2-navy: #1a1f2e;
    --faq2-navy-soft: #2a3145;
    --faq2-orange: #ff5630;
    --faq2-orange-dark: #e04420;
    --faq2-bg: #f8fafc;
    --faq2-border: #e6eaf0;
    --faq2-text: #3f4757;
    --faq2-text-soft: #6b7280;
    --faq2-white: #ffffff;
}

/* ---------- Section wrapper ---------- */
.faq2-section {
    background: var(--faq2-bg);
    padding: 84px 0 96px;
}

.faq2-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Intro ---------- */
.faq2-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 44px;
}

.faq2-eyebrow {
    display: inline-block;
    color: #c2410c; /* texte sur fond clair — AA (5,18:1) */
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.faq2-intro h2 {
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--faq2-navy);
    line-height: 1.2;
    margin: 0 0 1.1rem;
}

.faq2-intro p {
    color: var(--faq2-text-soft);
    font-size: 1.06rem;
    line-height: 1.7;
    margin: 0;
}

/* ---------- Category quick-nav ---------- */
.faq2-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 56px;
    max-width: 780px;
}

.faq2-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid var(--faq2-border);
    border-radius: 999px;
    background: var(--faq2-white);
    color: var(--faq2-navy);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.faq2-nav a i {
    color: var(--faq2-orange);
    font-size: 0.9rem;
}

.faq2-nav a:hover {
    border-color: var(--faq2-orange);
    color: var(--faq2-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 86, 48, 0.14);
}

/* ---------- Category block ---------- */
.faq2-category {
    margin-bottom: 52px;
    scroll-margin-top: 120px; /* compense la navbar sticky */
}

.faq2-category:last-of-type {
    margin-bottom: 0;
}

.faq2-category__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--faq2-border);
}

.faq2-category__icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(26, 31, 46, 0.05);
    color: var(--faq2-navy);
    font-size: 1.15rem;
}

.faq2-category__title {
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--faq2-navy);
    margin: 0;
    line-height: 1.25;
}

/* ---------- Accordion item ---------- */
.faq2-item {
    background: var(--faq2-white);
    border: 1px solid var(--faq2-border);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq2-item:hover {
    box-shadow: 0 6px 22px rgba(26, 31, 46, 0.07);
}

.faq2-item.is-open {
    border-color: rgba(255, 86, 48, 0.4);
    box-shadow: 0 8px 28px rgba(26, 31, 46, 0.09);
}

/* Question (button, accessible) */
.faq2-item__q {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.faq2-item__q-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 86, 48, 0.09);
    color: var(--faq2-orange);
    font-size: 0.92rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.faq2-item.is-open .faq2-item__q-icon {
    background: var(--faq2-orange);
    color: #fff;
}

.faq2-item__q-text {
    flex: 1;
    font-size: 1.04rem;
    font-weight: 700;
    color: var(--faq2-navy);
    line-height: 1.45;
}

.faq2-item__q-toggle {
    flex-shrink: 0;
    color: var(--faq2-text-soft);
    font-size: 0.95rem;
    transition: transform 0.28s ease, color 0.2s ease;
}

.faq2-item.is-open .faq2-item__q-toggle {
    transform: rotate(180deg);
    color: var(--faq2-orange);
}

/* Answer — animation fluide via grid-template-rows */
.faq2-item__a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.faq2-item.is-open .faq2-item__a {
    grid-template-rows: 1fr;
}

.faq2-item__a-inner {
    overflow: hidden;
}

.faq2-item__a-body {
    padding: 2px 22px 22px 70px;
}

.faq2-item__a-body p {
    color: var(--faq2-text);
    font-size: 0.98rem;
    line-height: 1.75;
    margin: 0 0 0.85rem;
}

.faq2-item__a-body p:last-child {
    margin-bottom: 0;
}

.faq2-item__a-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0.95rem;
}

.faq2-item__a-body li {
    position: relative;
    padding-left: 26px;
    color: var(--faq2-text);
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 9px;
}

.faq2-item__a-body li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--faq2-orange);
}

.faq2-item__a-body li:last-child {
    margin-bottom: 0;
}

/* Note d'appui (nuance / réserve) */
.faq2-note {
    margin-top: 0.4rem;
    padding: 12px 16px;
    background: var(--faq2-bg);
    border-left: 3px solid var(--faq2-orange);
    border-radius: 0 8px 8px 0;
    font-size: 0.93rem !important;
    color: var(--faq2-text-soft) !important;
}

/* ---------- Teaser (page d'accueil) ---------- */
.faq2-teaser-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq2-more {
    text-align: center;
    margin-top: 36px;
}

/* ---------- CTA final ---------- */
.faq2-cta {
    margin-top: 72px;
    background: var(--faq2-navy);
    border-radius: 22px;
    padding: 52px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq2-cta::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 86, 48, 0.22), transparent 70%);
    pointer-events: none;
}

.faq2-cta__icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 86, 48, 0.16);
    color: var(--faq2-orange);
    font-size: 1.35rem;
    position: relative;
}

.faq2-cta h3 {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    position: relative;
}

.faq2-cta p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.02rem;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 1.9rem;
    position: relative;
}

.faq2-cta__buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.faq2-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.faq2-btn--primary {
    background: var(--faq2-orange);
    color: #fff;
}

.faq2-btn--primary:hover {
    background: var(--faq2-orange-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(255, 86, 48, 0.35);
}

.faq2-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.faq2-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .faq2-section {
        padding: 60px 0 72px;
    }

    .faq2-nav {
        margin-bottom: 42px;
    }

    .faq2-item__q {
        padding: 16px 16px;
        gap: 12px;
    }

    .faq2-item__q-text {
        font-size: 0.98rem;
    }

    .faq2-item__a-body {
        padding: 2px 18px 20px 18px;
    }

    .faq2-category__title {
        font-size: 1.15rem;
    }

    .faq2-cta {
        padding: 40px 24px;
        border-radius: 18px;
    }

    .faq2-cta h3 {
        font-size: 1.35rem;
    }

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